spawn-pipe tests: Fix test failure with MSVC.
[gnulib.git] / ChangeLog
blobc702e4458a7c0d030e26028a1b5d8e9f12ed58dd
1 2020-11-29  Bruno Haible  <bruno@clisp.org>
3         spawn-pipe tests: Fix test failure with MSVC.
4         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
5         (gl_msvc_invalid_parameter_handler): New function.
6         (main): Set a global invalid-parameter handler.
7         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
9 2020-11-29  Bruno Haible  <bruno@clisp.org>
11         execute: Add tests.
12         * tests/test-execute.sh: New file.
13         * tests/test-execute-main.c: New file.
14         * tests/test-execute-child.c: New file.
15         * modules/execute-tests: New file.
17 2020-11-29  Bruno Haible  <bruno@clisp.org>
19         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
20         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
21         works.
22         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
23         fallback implementation as on Haiku.
24         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
25         effective.
26         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
28 2020-11-29  Bruno Haible  <bruno@clisp.org>
30         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
31         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
32         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
33         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
34         * lib/windows-spawn.c: Remove modifications for kLIBC.
35         * modules/spawn-pipe (Files): Add the new files.
36         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
38 2020-11-28  Bruno Haible  <bruno@clisp.org>
40         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
41         Reported by Paul Eggert in
42         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
43         * m4/sparcv8+.m4: New file.
44         * modules/sparcv8+: New file.
45         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
47 2020-11-28  Bruno Haible  <bruno@clisp.org>
49         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
50         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
52 2020-11-28  Bruno Haible  <bruno@clisp.org>
54         windows-spawn: New module.
55         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
56         implementations.
57         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
58         * modules/windows-spawn: New file.
59         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
60         * lib/spawn-pipe.c: Likewise.
61         * modules/execute (Files): Remove lib/w32spawn.h.
62         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
63         xalloc.
64         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
65         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
66         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
67         xalloc.
68         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
70 2020-11-27  Bruno Haible  <bruno@clisp.org>
72         ssfmalloc tests: Port to macOS 11.
73         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
75 2020-11-26  Bruno Haible  <bruno@clisp.org>
77         Fix dependencies of modules that use '_exit' on native Windows.
78         Reported by Jim Meyering in
79         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
80         * modules/_Exit (Depends-on): Add unistd.
81         * modules/closein (Depends-on): Likewise.
82         * modules/closeout (Depends-on): Likewise.
83         * modules/forkpty (Depends-on): Likewise.
84         * modules/posix_spawn-internal (Depends-on): Likewise.
85         * modules/savewd (Depends-on): Likewise.
86         * modules/stat-time-tests (Depends-on): Likewise.
88 2020-11-26  Bruno Haible  <bruno@clisp.org>
90         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
91         * modules/raise-tests (Depends-on): Add unistd.
92         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
94 2020-11-25  Jim Meyering  <meyering@fb.com>
96         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
97         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
98         non-NULL, since we don't bother handing strdup failure.
100         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
101         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
102         * tests/test-raise.c: Include unistd.h.
103         (handler): Use _exit, not exit.
105 2020-11-23  Bruno Haible  <bruno@clisp.org>
107         Use the correct printf format attribute for mingw.
108         Reported by Reuben Thomas <rrt@sc3d.org> in
109         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
111         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
112         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
114         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
115         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
116         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
117         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
118         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
119         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
121         * modules/vasnprintf (Depends-on): Add stdio.
122         * lib/vasnprintf.h: Include <stdio.h>.
123         (asnprintf, vasnprintf): Use the standard printf format attribute.
125         * modules/xvasprintf (Depends-on): Add stdio.
126         * lib/xvasprintf.h: Include <stdio.h>.
127         (xasprintf, xvasprintf): Use the standard printf format attribute.
129         * modules/xprintf (Depends-on): List stdio first.
130         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
131         depends on GNULIB_VPRINTF_POSIX.
132         (xfprintf, xvfprintf): Use a printf format attribute that depends on
133         GNULIB_VFPRINTF_POSIX.
135         * modules/c-vasnprintf (Depends-on): Add stdio.
136         * lib/c-vasnprintf.h: Include <stdio.h>.
137         (c_vasnprintf): Use the standard printf format attribute.
139         * modules/c-vasprintf (Depends-on): Add stdio.
140         * lib/c-vasprintf.h: Include <stdio.h>.
141         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
143         * modules/c-vsnprintf (Depends-on): Add stdio.
144         * lib/c-vsnprintf.h: Include <stdio.h>.
145         (c_vsnprintf): Use the standard printf format attribute.
147         * modules/c-snprintf (Depends-on): Add stdio.
148         * lib/c-snprintf.h: Include <stdio.h>.
149         (c_snprintf): Use the standard printf format attribute.
151         * modules/c-xvasprintf (Depends-on): Add stdio.
152         * lib/c-xvasprintf.h: Include <stdio.h>.
153         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
155         * modules/error (Depends-on): Depend on stdio always.
156         * lib/error.h: Include <stdio.h>.
157         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
158         (error, error_at_line): Use a printf format attribute that depends on
159         GNULIB_VFPRINTF_POSIX.
160         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
161         _GL_ATTRIBUTE_FORMAT_PRINTF.
163         * modules/verror (Depends-on): Add stdio.
164         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
165         (verror, verror_at_line): Use the standard printf format attribute.
166         * lib/verror.c: Include "error.h".
168         * modules/argp (Depends-on): Add stdio.
169         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
170         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
172         * modules/libtextstyle-optional (Depends-on): Add stdio.
173         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
174         printf format attribute.
176         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
177         format attribute.
179 2020-11-23  Pádraig Brady  <P@draigBrady.com>
181         selinux-at, selinux-h: use const correct declarations
182         * lib/se-selinux.in.h: Use const for "set" functions,
183         to match current selinux, and support cleaner user code.
184         * lib/selinux-at.c: Likewise.
185         * lib/selinux-at.h: Likewise.
187 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
189         canonicalize-lgpl: fix memory leak
190         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
191         which could have occurred if BUF was so large that malloc was
192         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
193         this eliminates the need to free BUF separately.
195 2020-11-22  Bruno Haible  <bruno@clisp.org>
197         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
198         * modules/xvasprintf (Depends-on): Add xalloc.
199         * modules/pipe-filter-gi (Depends-on): Likewise.
200         * modules/execute (Depends-on): Likewise, for w32spawn.h.
201         * modules/spawn-pipe (Depends-on): Likewise.
203 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
205         bootstrap: add option hooks
206         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
207         (bootstrap_option_hook): Likewise.
208         (usage): Call bootstrap_print_option_usage_hook.
210 2020-11-22  Bruno Haible  <bruno@clisp.org>
212         argp: Don't break getprogname on non-glibc systems.
213         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
214         program_invocation_name and program_invocation_short_name.
216 2020-11-22  Bruno Haible  <bruno@clisp.org>
218         doc: Document <link.h>.
219         * doc/glibc-headers/link.texi: New file.
220         * doc/gnulib.texi: Include it.
222 2020-11-22  Bruno Haible  <bruno@clisp.org>
224         doc: Add references to the LSB.
225         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
226         * doc/posix-functions/*.texi: Likewise.
228 2020-11-22  Bruno Haible  <bruno@clisp.org>
230         doc: Fix a makeinfo warning (regression 2020-11-03).
231         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
233 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
235         parse-datetime: fix printf format typo
236         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
237         previous patch to this file.  Problem reported by Chris Elvidge in
238         <https://bugs.gnu.org/44763#32>.
240         setlocale-null-tests: work around GCC bug 44511
241         * tests/test-setlocale_null-mt-all.c:
242         * tests/test-setlocale_null-mt-one.c:
243         Ignore -Wreturn-type, to work around GCC bug 44511.
245         nl_langinfo-tests: work around GCC bug 44511
246         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
247         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
248         Problem reported for GNU grep by Andreas Schwab
249         <https://bugs.gnu.org/44535>.
251         selinux-h: add stubs for selabel_open etc.
252         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
253         because matchpathcon is deprecated in favor of selabel_open etc.,
254         so this patch adds stubs for these functions.
255         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
256         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
257         as it is needed for selabel_open and selinux/selinux.h declares
258         this type here.
259         * modules/selinux-h (Files): Add the new files.
260         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
261         (lib_SOURCES): Add se-label.in.h, se-label.c.
262         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
263         (selinux/label.h): New rule, mimicking selinux/context.h.
264         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
265         (Include): Add selinux/label.h.
267 2020-11-21  Bruno Haible  <bruno@clisp.org>
269         Update after 'test-driver' in Automake changed.
270         * build-aux/test-driver.diff: Rebase.
272 2020-11-21  Daiki Ueno  <ueno@gnu.org>
274         read-file: remove dead assignment
275         * lib/read-file.c (fread_file): Remove dead assignment when
276         RF_SENSITIVE is set, flagged by clang-analyzer.
278 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
280         bitset: tests: exercise the stats too
282         * tests/test-bitset.c: Display the stats at the end of the test.
283         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
284         last bin, display "256-..." rather that "256-511", since the last bin
285         does count item greater than or equal to 256.
287 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
289         bitset: tests: try harder to break it
290         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
291         BITSET_LIST_SIZE.
292         (main): Likewise.
293         While at it, also exercise super small bitsets.
295 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
297         bitset: use ffs where possible in the vector implementation
298         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
300 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
302         bitset: use ffs where possible in the table implementation
303         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
305 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
307         bitset: check empty and full bitsets
308         * tests/test-bitset.c (check_zero, check_ones): New.
309         (check_attributes): Use them.
311 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
313         bitset: be sure to always return a value
314         * lib/bitset/array.c (abitset_small_list): Always update *next and
315         return a value.
317 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
319         vcs-to-changelog: Expect spaces in file names
320         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
321         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
322         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
323         tabs to spaces.
324         (list_changes): Use tabs to identify file names.
326 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
328         bitset: strengthen tests
329         * tests/test-bitset.c (compare): Also check count.
330         Deal only with random values, move the one-bit tests to...
331         (check_one_bit): this new function.
332         (check_attributes): Call it.
334 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
336         bitset: fix iteration over table bitsets
337         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
339 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
341         bitset: rename internal details for consistency
342         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
344 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
346         bitset: test: run deterministic tests on several bitset sizes
347         * tests/test-bitset.c (check_attributes): Run it with small and large
348         sizes.
350 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
352         bitset: use ffs where possible in the list implementation
353         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
355 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
357         bitset: use ffs where possible in array implementation
358         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
360 2020-11-17  Bruno Haible  <bruno@clisp.org>
362         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
363         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
364         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
365         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
366         C++ mode.
368 2020-11-17  Bruno Haible  <bruno@clisp.org>
370         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
371         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
372         is always declared.
373         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
374         declared.
376 2020-11-17  Bruno Haible  <bruno@clisp.org>
378         Fix link errors on AIX.
379         * modules/clean-temp (Link): Link with $(LIBTHREAD).
380         * modules/getumask (Link): Link with $(LIBTHREAD).
381         * modules/getumask-tests (Makefile.am): Link test-getumask with
382         $(LIBTHREAD).
383         * modules/supersede (Link): Link with $(LIBTHREAD).
384         * modules/supersede-tests (Makefile.am): Link test-supersede with
385         $(LIBTHREAD).
386         * modules/fatal-signal (Link): New section.
387         * modules/execute (Link): New section.
388         * modules/csharpexec (Link): Link with $(LIBTHREAD).
389         * modules/javaexec (Link): Link with $(LIBTHREAD).
390         * modules/spawn-pipe (Link): New section.
391         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
392         $(LIBTHREAD).
393         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
394         * modules/javacomp (Link): Link with $(LIBTHREAD).
395         * modules/javaversion (Link): Link with $(LIBTHREAD).
396         * modules/pipe-filter-gi (Link): New section.
397         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
398         test-pipe-filter-gi2-main with $(LIBTHREAD).
399         * modules/pipe-filter-ii (Link): New section.
400         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
401         test-pipe-filter-ii2-main with $(LIBTHREAD).
402         * modules/term-style-control (Link): New section.
403         * modules/term-style-control-tests (Makefile.am): Link
404         test-term-style-control-hello, test-term-style-control-yes with
405         $(LIBTHREAD).
406         * modules/wait-process (Link): New section.
407         * modules/nonblocking-pipe-tests (Makefile.am): Link
408         test-nonblocking-pipe-main with $(LIBTHREAD).
409         * modules/nonblocking-socket-tests (Makefile.am): Link
410         test-nonblocking-socket-main with $(LIBTHREAD).
412 2020-11-16  Bruno Haible  <bruno@clisp.org>
414         Fix link errors on platforms with libunistring.
415         * modules/c32isalnum (Link): New section.
416         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
417         $(LIBUNISTRING).
418         * modules/c32isalpha (Link): New section.
419         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
420         $(LIBUNISTRING).
421         * modules/c32isblank (Link): New section.
422         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
423         $(LIBUNISTRING).
424         * modules/c32iscntrl (Link): New section.
425         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
426         $(LIBUNISTRING).
427         * modules/c32isdigit (Link): New section.
428         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
429         $(LIBUNISTRING).
430         * modules/c32isgraph (Link): New section.
431         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
432         $(LIBUNISTRING).
433         * modules/c32islower (Link): New section.
434         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
435         $(LIBUNISTRING).
436         * modules/c32isprint (Link): New section.
437         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
438         $(LIBUNISTRING).
439         * modules/c32ispunct (Link): New section.
440         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
441         $(LIBUNISTRING).
442         * modules/c32isspace (Link): New section.
443         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
444         $(LIBUNISTRING).
445         * modules/c32isupper (Link): New section.
446         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
447         $(LIBUNISTRING).
448         * modules/c32isxdigit (Link): New section.
449         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
450         $(LIBUNISTRING).
451         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
452         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
453         $(LIBUNISTRING).
455 2020-11-16  Bruno Haible  <bruno@clisp.org>
457         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
458         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
459         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
460         * modules/getumask-tests (Makefile.am): Link test-getumask with
461         $(LIBINTL).
462         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
463         * modules/supersede-tests (Makefile.am): Link test-supersede with
464         $(LIBINTL).
465         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
466         $(LIBINTL).
468 2020-11-16  Bruno Haible  <bruno@clisp.org>
470         getumask: Document link dependencies.
471         * modules/getumask (Link): New section.
473 2020-11-16  Bruno Haible  <bruno@clisp.org>
475         Update link dependencies in modules after 2020-09-09 change.
476         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
477         * modules/mkdtemp (Link): Likewise.
478         * modules/mkostemp (Link): Likewise.
479         * modules/mkostemps (Link): Likewise.
480         * modules/mkstemp (Link): Likewise.
481         * modules/mkstemps (Link): Likewise.
482         * modules/supersede (Link): Likewise.
483         * modules/tmpfile (Link): Likewise.
484         * modules/tmpfile-safer (Link): Likewise.
486 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
488         getumask-tests: port to Solaris 10 etc.
489         Problem reported by Tom Christensen in:
490         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
491         * modules/getumask-tests (test_getumask_LDADD):
492         Add $(LIB_CLOCK_GETTIME).
494 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
496         bitset: use ffsl to accelerate iterations over set bits
497         Suggested by Bruno Haible.
498         * modules/bitset: Depend upon ffsl.
499         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
500         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
502 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
504         bitset: more tests
505         * tests/test-bitset.c (compare): Make it clear that the random values
506         should not be modified.
507         Check bitset_first, bitset_last and BITSET_FOR_EACH.
509 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
511         bitset: fix the copy from lbitset to other types
512         * lib/bitset/list.c (lbitset_copy): Rename as...
513         (lbitset_copy_): this.
514         (lbitset_copy): New.
515         Dispatch to heterogeneous/homogeneous copy.
517 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
519         bitset: making debug traces more useful
520         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
522         bitset: comment changes
523         * lib/bitset.c: Move some documenting comments to...
524         * lib/bitset.h: here.
525         * lib/bitset/array.c: Fix some comments.
527 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
529         careadlinkat: warn better about GCC bug 93644
530         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
531         not in effect, use "#warning" to let builders know more clearly
532         about GCC bug 93644, because the bug triggers even if no -W option
533         is given to GCC.
535 2020-11-13  Jim Meyering  <meyering@fb.com>
537         hard-locale-tests: avoid a -Wstrict-prototypes warning
538         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
539         changing "main ()" to "main (void)". This was the only case that
540         triggered a warning when building grep with --enable-gcc-warnings.
542 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
544         time_rz: simplify CVE-2017-7476 fix
545         * lib/time_rz.c: Do not include limits.h; I think it was included
546         under the mistaken impression that limits.h defines SIZE_MAX.
547         (SIZE_MAX): Remove.
548         (save_abbr): Put string length into a ptrdiff_t variable,
549         so that the size comparison works naturally.  This
550         fixes CVE-2017-7476 in a cleaner way.
552         parse-datetime: streamline overflow checking
553         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
554         did not work for unsigned destinations, and since time_t might
555         be unsigned that meant it did not work for time_t destinations.
556         This limitation of INT_ADD_WRAPV has been fixed, so we can
557         now streamline parse-datetime.y a bit.
558         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
559         has not been used for a while.
560         (yylex, parse_datetime2): Assume C99 declarations after statements.
561         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
562         to TYPE_MINIMUM.
563         (parse_datetime2): No need for time_overflow now that
564         INT_ADD_WRAPV works for unsigned results.
566         parse-datetime-tests: port to Alpine Linux 3.12.1
567         * tests/test-parse-datetime.c: Include errno.h for errno,
568         and unistd.h for _SC_TZNAME_MAX and sysconf.
569         (main): In the outlandishly-long time zone abbreviation test,
570         do not exceed TZNAME_MAX as this has undefined behavior,
571         and on Alpine Linux 3.12.1 it makes the test fail.
573 2020-11-09  Pádraig Brady  <P@draigBrady.com>
575         mgetgroups: avoid warning with clang
576         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
577         so disable -Wpointer-sign for all clang versions.
579 2020-11-07  Bruno Haible  <bruno@clisp.org>
581         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
582         Reported by Simon Josefsson in
583         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
584         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
585         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
586         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
588 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
590         tests: pacify Sun C 5.9
591         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
592         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
593         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
594         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
595         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
596         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
597         Remove unreachable ‘return NULL;’s.
599         tests: port better to XLC 12.01
600         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
601         even in code that is not executed, as IBM XLC 12.01 complains "The
602         subscript -1 is less than zero."
603         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
604         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
605         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
606         arguments than are required by the macro definition."
608 2020-11-03  Bruno Haible  <bruno@clisp.org>
610         aligned-malloc: Use fixes from the new modules.
611         * modules/aligned-malloc (Depends-on): Add posix_memalign,
612         aligned_alloc, memalign.
613         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
615 2020-11-03  Bruno Haible  <bruno@clisp.org>
617         aligned_alloc: Add tests.
618         * tests/test-aligned_alloc.c: New file.
619         * modules/aligned_alloc-tests: New file.
621         aligned_alloc: New module.
622         * lib/stdlib.in.h (aligned_alloc): New declaration.
623         * lib/aligned_alloc.c: New file.
624         * m4/aligned_alloc.m4: New file.
625         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
626         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
627         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
628         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
629         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
630         * modules/aligned_alloc: New file.
631         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
632         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
633         AIX bug.
635 2020-11-03  Bruno Haible  <bruno@clisp.org>
637         posix_memalign: Add tests.
638         * tests/test-posix_memalign.c: New file.
639         * modules/posix_memalign-tests: New file.
641         posix_memalign: New module.
642         * lib/stdlib.in.h (posix_memalign): New declaration.
643         * lib/posix_memalign.c: New file.
644         * m4/posix_memalign.m4: New file.
645         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
646         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
647         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
648         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
649         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
650         * modules/posix_memalign: New file.
651         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
652         * doc/posix-functions/posix_memalign.texi: Mention the new module and
653         the OpenBSD bug.
655 2020-11-03  Bruno Haible  <bruno@clisp.org>
657         memalign: Add tests.
658         * tests/test-memalign.c: New file.
659         * modules/memalign-tests: New file.
661         memalign: New module.
662         * modules/memalign: New file.
663         * doc/glibc-functions/memalign.texi: Mention the new module.
665 2020-11-03  Bruno Haible  <bruno@clisp.org>
667         verify tests: Fix crash with GCC (regression 2020-11-02).
668         * tests/test-verify.c (main): Fix initializer of s.
670 2020-11-03  Pádraig Brady  <P@draigBrady.com>
672         mountlist: recognize more file system types as remote
674         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
675         "remote" file systems from stat.c in coreutils.
677 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
679         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
680         * tests/test-verify.c (main): Initialize state variable.
681         Reported by Bruno Haible for GCC 5.4.0.
683 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
685         dfa.h: support inclusion from C++
686         * lib/dfa.h: Allow multiple inclusion, and inclusion from
687         C++ code.  The latter was suggested by Arnold Robbins.
689 2020-11-01  Bruno Haible  <bruno@clisp.org>
691         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
692         * tests/test-ssfmalloc.c: Include <limits.h>.
693         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
695 2020-11-01  Bruno Haible  <bruno@clisp.org>
697         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
698         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
700 2020-11-01  Jim Meyering  <meyering@fb.com>
702         dfa-tests: test for today's invalid-merge fix
703         * tests/test-dfa-invalid-merge.sh: New file.
704         * modules/dfa-tests (Files): Add it.
705         (TESTS): Add it.
707 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
709         dfa: retain sequences of similar nodes in optimization
710         DFA was merging similar nodes when it should not.  For example,
711         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
712         is not merged.  Problem reported by Gonzalo Padrino in
713         https://bugs.gnu.org/44351
714         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
715         optimization.
717 2020-11-01  Jim Meyering  <meyering@fb.com>
719         test-dfa-match-aux.c: accept EREs, not BREs
720         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
721         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
723 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
725         verify tests: avoid -Wmissing-declarations warnings
726         * tests/test-verify.c (test_assume_expressions): Add declaration.
727         (test_assume_optimization): Likewise.
728         (test_assume_noreturn): Likewise.
729         (main): Move down after all other definitions.  While at it, also
730         call test_assume_expressions and test_assume_optimization as a
731         runtime check.
733 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
735         sys_stat: update comments for S_IRWXUGO, S_IXUGO
736         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
737         Perhaps these macros should be removed, as they’re not in either
738         POSIX or GNU.  They could be moved to stat-macros.h, which would
739         be cleaner in some sense.
741 2020-10-25  Bruno Haible  <bruno@clisp.org>
743         ssfmalloc tests: Small tweaks.
744         * tests/test-ssfmalloc.c: Add comments.
745         (alloc_pages): Don't require PROT_EXEC bits.
746         (block_sizes): Add more small sizes, for better coverage of
747         ssfmalloc-bitmap.h.
749         ssfmalloc tests: Portability to Minix.
750         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
751         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
752         * m4/mmap-anon.m4: Update comment.
754         ssfmalloc: Portability to AIX.
755         * modules/ssfmalloc (Include): Add ssfmalloc.h.
756         (Link): New section.
757         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
758         $(LIBTHREAD).
760         ssfmalloc: Portability to Cygwin.
761         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
762         (pg_offset_t): Define depending on PAGESIZE_MAX.
763         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
764         (PAGESIZE_MAX): New macro.
766         ssfmalloc: Fix buffer overrun in bitmap search.
767         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
768         word *words_end.
770 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
772         doc: mention ‘restrict’ and C++
773         * doc/gnulib-readme.texi (C99 features assumed): Document
774         that ‘restrict’ should be avoided in C++ code.
776 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
778         selinux-at, selinux-h: port to SELinux 3.1
779         The new release finally deprecated the typedef 'security_context_t',
780         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
781         Use the simpler 'char *' instead.
782         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
783         (lgetfilecon): Likewise.
784         (fgetfilecon): Likewise.
785         (map_to_failure): Likewise.
786         (rpl_getfilecon): Likewise.
787         (rpl_lgetfilecon): Likewise.
788         (rpl_fgetfilecon): Likewise.
789         * lib/se-selinux.in.h (security_context_t): Remove typedef.
790         (getcon): Adjust type of context parameter.
791         (freecon): Likewise.
792         (getfscreatecon): Likewise.
793         (setfscreatecon): Likewise.
794         (matchpathcon): Likewise.
795         (getfilecon): Likewise.
796         (lgetfilecon): Likewise.
797         (fgetfilecon): Likewise.
798         (setfilecon): Likewise.
799         (lsetfilecon): Likewise.
800         (fsetfilecon): Likewise.
801         (security_check_context): Likewise.
802         (security_check_context_raw): Likewise.
803         (setexeccon): Likewise.
804         (security_compute_create): Likewise.
805         * lib/selinux-at.c (getfileconat): Likewise.
806         (lgetfileconat): Likewise.
807         (setfileconat): Likewise.
808         (lsetfileconat): Likewise.
809         * lib/selinux-at.h: Likewise.
811 2020-10-19  Bruno Haible  <bruno@clisp.org>
813         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
814         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
815         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
816         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
817         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
818         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
819         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
821 2020-10-18  Bruno Haible  <bruno@clisp.org>
823         ssfmalloc: Add tests.
824         * tests/test-ssfmalloc.c: New file.
825         * modules/ssfmalloc-tests: New file.
827         ssfmalloc: New module.
828         * lib/ssfmalloc.h: New file.
829         * lib/ssfmalloc-bitmap.h: New file.
830         * modules/ssfmalloc: New file.
832 2020-10-18  Bruno Haible  <bruno@clisp.org>
834         wchar: Fix configure test result on some versions of AIX.
835         Reported by Clément Chigot <clement.chigot@atos.net> in
836         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
837         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
838         systems.
840 2020-10-18  Bruno Haible  <bruno@clisp.org>
842         time: Fix warning about asctime when asctime is not used.
843         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
844         invocation.
846 2020-10-18  Bruno Haible  <bruno@clisp.org>
848         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
849         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
850         '_GL_ATTRIBUTE_CONST'.
851         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
852         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
853         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
854         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
855         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
856         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
857         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
859 2020-10-18  Bruno Haible  <bruno@clisp.org>
861         obstack: Fix a clang warning.
862         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
864 2020-10-16  Bruno Haible  <bruno@clisp.org>
866         hash: Rename hash_delete to hash_remove.
867         * lib/hash.h (hash_remove): Renamed from hash_delete.
868         (hash_delete): New declaration.
869         * lib/hash.c (hash_remove): Renamed from hash_delete.
870         (hash_delete): New function.
871         * tests/test-hash.c (main): Update.
872         * lib/fts-cycle.c (leave_dir): Likewise.
873         * NEWS: Mention the change.
875 2020-10-16  Bruno Haible  <bruno@clisp.org>
877         hash, xhash: Make usable from C++.
878         * lib/hash.h: Add extern "C".
880 2020-10-16  Bruno Haible  <bruno@clisp.org>
882         hash, xhash: Move comments to the .h file.
883         * lib/hash.c: Move comments meant for the user from here...
884         * lib/xhash.c: ... and here...
885         * lib/hash.h: ... to here.
887 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
889         Don't declare an intention to modify the return value of strerror.
890         * tests/test-perror2.c (main): Assign the return value of strerror to a
891         'const char *' variable.
893 2020-10-11  Bruno Haible  <bruno@clisp.org>
895         *printf: Avoid "expanded before it was required" warning.
896         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
897         AC_DEFUN_ONCE.
899 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
901         getprogname: Add support for OpenServer 6 and UnixWare 7.
902         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
903         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
905 2020-10-11  Bruno Haible  <bruno@clisp.org>
907         tests: Avoid a name clash on UnixWare.
908         Reported by Tim Rice <tim@multitalents.net> in
909         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
910         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
912 2020-10-11  Bruno Haible  <bruno@clisp.org>
914         stdioext: Update comments regarding UnixWare.
915         Reported by Tim Rice <tim@multitalents.net> in
916         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
917         * lib/fbufmode.c: Update comments.
918         * lib/fflush.c: Likewise.
919         * lib/fpending.c: Likewise.
920         * lib/fpurge.c: Likewise.
921         * lib/freadable.h: Likewise.
922         * lib/freadable.c: Likewise.
923         * lib/freadahead.c: Likewise.
924         * lib/freading.h: Likewise.
925         * lib/freading.c: Likewise.
926         * lib/freadptr.c: Likewise.
927         * lib/freadseek.c: Likewise.
928         * lib/fseeko.c: Likewise.
929         * lib/fseterr.c: Likewise.
930         * lib/fwritable.h: Likewise.
931         * lib/fwritable.c: Likewise.
932         * lib/fwriting.h: Likewise.
933         * lib/fwriting.c: Likewise.
935 2020-10-11  Bruno Haible  <bruno@clisp.org>
937         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
938         Reported by Tim Rice <tim@multitalents.net> in
939         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
940         Uses the info from
941         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
942         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
944 2020-10-11  Bruno Haible  <bruno@clisp.org>
946         stdioext: Avoid compilation errors on UnixWare 7.
947         Reported by Tim Rice <tim@multitalents.net> in
948         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
949         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
950         * lib/fpurge.c: Likewise.
951         * lib/freadable.h: Likewise.
952         * lib/freading.h: Likewise.
953         * lib/fwritable.h: Likewise.
954         * lib/fwriting.h: Likewise.
955         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
956         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
957         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
958         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
959         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
960         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
962 2020-10-11  Bruno Haible  <bruno@clisp.org>
964         stdioext: Update comments regarding Cygwin.
965         * lib/fpending.c: Update comments.
966         * lib/fpurge.c: Likewise.
967         * lib/freadable.h: Likewise.
968         * lib/freadable.c: Likewise.
969         * lib/freading.h: Likewise.
970         * lib/freading.c: Likewise.
971         * lib/fwritable.h: Likewise.
972         * lib/fwritable.c: Likewise.
973         * lib/fwriting.h: Likewise.
974         * lib/fwriting.c: Likewise.
976 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
978         Fix "warning: implicit declaration of function 'pthread_sigmask'".
979         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
980         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
982 2020-10-10  Bruno Haible  <bruno@clisp.org>
984         *-list, *-oset, *-omap: Avoid possible compiler warnings.
985         Reported by Marc Nieper-Wißkirchen in
986         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
987         * lib/gl_anylinked_list2.h (gl_linked_iterator,
988         gl_linked_iterator_from_to): Mark as 'pure'.
989         (gl_linked_iterator_free): Mark as 'const'.
990         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
991         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
992         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
993         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
994         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
995         (gl_tree_iterator_free): Mark as 'const'.
996         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
997         'pure'.
998         (gl_tree_iterator_free): Mark as 'const'.
999         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
1000         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
1001         (gl_tree_iterator_free): Mark as 'const'.
1002         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
1003         compare_position_threshold): Mark as 'pure'.
1004         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
1005         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
1006         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
1007         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
1008         'pure'.
1009         (gl_array_iterator_free): Mark as 'const'.
1010         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
1011         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
1012         (gl_array_iterator_free): Mark as 'const'.
1013         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
1014         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
1015         gl_array_iterator_atleast): Mark as 'pure'.
1016         (gl_array_iterator_free): Mark as 'const'.
1017         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
1018         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
1019         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
1020         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
1021         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
1022         gl_carray_sortedlist_search): Mark as 'pure'.
1023         (gl_carray_iterator_free): Mark as 'const'.
1025 2020-10-10  Bruno Haible  <bruno@clisp.org>
1027         rbtree-list: Avoid possible compiler warnings.
1028         This mirrors the change of avltree-list on 2014-09-16.
1029         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
1030         declaration. Add cast to void for ignored value of check_invariants.
1032 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1034         stack: New module.
1035         * MODULES.html.sh: Add entry for the stack module.
1036         * modules/stack: New file.
1037         * modules/stack-tests: New file.
1038         * lib/stack.h: New file.
1039         * tests/test-stack.c: New file.
1041 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1043         attribute: improve const, pure doc
1044         Problem reported by Marc Nieper-Wißkirchen in:
1045         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
1046         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
1047         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
1049 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1051         thread: pacify GCC on Solaris 10
1052         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
1053         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
1054         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
1055         where pthread_t is unsigned int.
1057 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1059         c-stack: avoid AS_IF
1060         Problem reported by Bruno Haible in:
1061         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
1062         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
1064         c-stack: pacify GCC 9.3.1 when using libsigsegv
1065         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
1067 2020-10-04  Bruno Haible  <bruno@clisp.org>
1069         localename: Fix a couple of "unused parameter" warnings.
1070         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
1071         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
1072         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
1073         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
1074         parameter list.
1076 2020-10-04  Bruno Haible  <bruno@clisp.org>
1078         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
1079         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
1080         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
1081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
1082         HAVE_SNPRINTF_TRUNCATION_C99.
1083         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
1084         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
1086 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1088         c-stack: streamline Solaris configuration
1089         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
1090         the code is used only if a test for sigaltstack worked
1091         in some other way.
1092         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
1093         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
1094         heuristic does not work).
1095         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
1096         we no longer require the libsigsegv module.
1097         (Depends-on): Depend on havelib, not libsigsegv.
1099         c-stack: stop using SIGSTKSZ
1100         It’s been proposed to stop making SIGSTKSZ an integer constant:
1101         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
1102         Also, using SIGSTKSZ in #if did not conform to current POSIX.
1103         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
1104         * lib/c-stack.c (SIGSTKSZ): Remove.
1105         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
1106         All uses changed.
1108         c-stack: fix libsigsegv typo
1109         Problem reported by Bruno Haible in:
1110         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
1111         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
1112         to be used only on Solaris (exactly where it is not needed!).
1114 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
1116         MODULES.html.sh: Fix typo.
1117         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
1119 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1121         version-etc: pacify Oracle Studio 12.6
1122         Without this patch, it complains: "version-etc.h", line 64:
1123         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
1124         pedantic mode.
1125         * lib/version-etc.h (version_etc): Port to C89 macro rules.
1127 2020-09-27  Bruno Haible  <bruno@clisp.org>
1129         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
1130         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1131         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1132         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
1133         ourselves; don't use AC_DECL_SYS_SIGLIST.
1135 2020-09-27  Bruno Haible  <bruno@clisp.org>
1137         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
1138         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1139         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1140         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
1141         instead of _AC_COMPUTE_INT.
1143 2020-09-27  Bruno Haible  <bruno@clisp.org>
1145         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
1146         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1147         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1148         Based on a patch by Paul Eggert.
1149         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
1150         test STDC_HEADERS. Assume <stdlib.h> exists.
1151         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
1153 2020-09-27  Bruno Haible  <bruno@clisp.org>
1155         Enable testing of prereleases of Autoconf 2.70.
1156         Suggested by Paul Eggert in
1157         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
1158         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
1159         >= 2.70.
1160         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
1161         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
1162         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
1164 2020-09-27  Bruno Haible  <bruno@clisp.org>
1166         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
1167         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1168         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1169         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
1170         AC_PROG_CC, depending on the Autoconf version.
1172 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
1174         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
1175         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
1176         of AC_HELP_STRING.
1177         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
1179 2020-09-27  Bruno Haible  <bruno@clisp.org>
1181         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
1182         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1183         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1184         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
1186 2020-09-27  Bruno Haible  <bruno@clisp.org>
1188         extensions: Simplify last commit.
1189         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
1190         AC_GNU_SOURCE ever.
1192 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1194         extensions: require AC_GNU_SOURCE only for <=2.63
1195         Problem reported by Gavin Smith in:
1196         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
1197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
1198         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
1199         shouldn’t be needed after that, and Autoconf 2.70 complains about
1200         it being obsolete.
1202 2020-09-26  Bruno Haible  <bruno@clisp.org>
1204         regex-tests: Make test more robust.
1205         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
1206         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
1208 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1210         regex-tests: fix possible Turkish false-alarm
1211         * modules/regex-tests (Depends-on): Add wctype-h.
1212         * tests/test-regex.c: Include wctype.h.
1213         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
1214         as the Turkish regex test assumes this.
1216         regex-tests: fix test and add debug output
1217         Perhaps this will fix the recent grep test failure reported at:
1218         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
1219         At least, the debug output should help narrow down the failure.
1220         * tests/test-regex.c: Include stdarg.h, stdio.h.
1221         (exit_status): New var.
1222         (report_error): New function.
1223         (main): Use it to report failures to stdout instead of merely
1224         exiting with some nonzero status.  The status info alone isn’t
1225         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
1226         regex before calling re_compile_pattern, fixing a portability bug.
1228         regex: no longer match glibc
1229         * config/srclist.txt: Comment out regex_internal.c for now.
1231 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1233         regex: fix ignore-case Turkish bug
1234         * lib/regex_internal.c (build_wcs_upper_buffer):
1235         Do not assume that converting single-byte character to upper
1236         yields a single-byte character.  This is not true for Turkish,
1237         where towupper (L'i') yields L'İ', which is not single-byte.
1238         * tests/test-regex.c (main): Test for this bug.
1240         regex: port to weird isascii platforms
1241         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
1243 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1245         dfa: make dfasupported a global function
1246         * lib/dfa.c (dfasupported): Rename, and make it global.
1247         Update caller.
1248         * lib/dfa.h (dfasupported): Add prototype.
1250 2020-09-20  Bruno Haible  <bruno@clisp.org>
1252         canonicalize: Add support for UNC file names on native Windows.
1253         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
1254         <https://savannah.gnu.org/bugs/?59079>.
1255         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
1256         extend the prefix to include the server.
1258 2020-09-20  Bruno Haible  <bruno@clisp.org>
1260         supersede: Fix test failures on native Windows.
1261         * lib/supersede.c (open_supersede): Handle non-regular files on native
1262         Windows like on Solaris.
1263         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
1265 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1267         test-stdalign: test Oracle Studio better
1268         * doc/posix-headers/stdalign.texi (stdalign.h):
1269         * tests/test-stdalign.c (main):
1270         Sun Studio Bug #2125432 seems to be fixed.
1272         c-stack: output diagnostic in single 'write'
1273         * lib/c-stack.c (die): In the typical case, use just one 'write'
1274         syscall to output the diagnostic, as this lessens interleaving.
1275         (die, c_stack_action): Assume C99.
1276         * modules/c-stack (Depends-on): Add c99, mempcpy.
1278         c-stack: improve checking if !libsigsegv
1279         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
1280         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
1281         unlikely pointer overflow.  Also, fix some obsolete code and typos.
1282         I found these problems while looking into this bug report:
1283         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
1284         * lib/c-stack.c: Include c-stack.h first, to test interface.
1285         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
1286         max_align_t, intprops.h for INT_ADD_WRAPV.
1287         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
1288         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
1289         for libsigsegv 2.8 and earlier since the bug should be fixed
1290         after that.
1291         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
1292         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
1293         Assume sprintf returns byte count; this assumption is safe now.
1294         (page_size): New static volatile variable, since sysconf isn’t
1295         documented to be async-signal-safe on Solaris.  This variable is
1296         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
1297         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
1298         SIGINFO_WORKS).
1299         (segv_handler): Use it if present.  Never report null pointer
1300         dereference as a stack overflow.  Check for (unlikely) unsigned
1301         and/or pointer overflow.
1302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1303         Rename cache variables to gl_cv_sys_stack_overflow_works
1304         and gl_cv_sys_xsi_stack_overflow_heuristic.
1305         All uses changed.
1306         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
1307         c-stack no longer uses STACK_DIRECTION.
1308         Do not check for unistd.h, since we depend on unistd.
1309         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
1310         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
1311         stdbool, stddef.
1313 2020-09-20  Bruno Haible  <bruno@clisp.org>
1315         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
1316         * m4/musl.m4: Revert 2020-09-19 patch.
1317         * m4/setlocale_null.m4: Likewise.
1318         * modules/setlocale-null: Likewise.
1320 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
1321             Bruno Haible  <bruno@clisp.org>
1323         relocatable-prog: Fix for multiple relocatable library directories.
1324         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
1325         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
1326         being attached to a single one.
1328 2020-09-19  Jim Meyering  <meyering@fb.com>
1330         test-verify.c: avoid -Wshadow warnings
1331         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
1332         (enum): Capitalize member names. Adjust uses.
1334 2020-09-19  Bruno Haible  <bruno@clisp.org>
1336         havelib: Avoid linking with libc.a on GNU systems.
1337         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
1338         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
1339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
1340         dependency_libs value of a .la file, ignore '-lc' options on GNU
1341         systems.
1343 2020-09-19  Bruno Haible  <bruno@clisp.org>
1345         Fix recognition of musl libc on Alpine Linux 3.10.
1346         Reported by Jeffrey Walton <noloader@gmail.com> in
1347         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
1348         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
1349         (gl_MUSL_LIBC): Require it.
1350         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
1351         * modules/setlocale-null (Files): Add m4/musl.m4.
1353 2020-09-19  Bruno Haible  <bruno@clisp.org>
1355         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
1356         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
1357         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
1358         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
1359         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
1360         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
1361         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
1362         or <threads.h>.
1363         (ITEMS, MAX_RESULT_LEN): New macros.
1364         (nl_langinfo_unlocked): New function.
1365         (gl_get_nl_langinfo_lock): New declaration.
1366         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
1367         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
1368         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
1369         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
1370         REPLACE_NL_LANGINFO.
1371         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
1372         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
1373         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
1374         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
1375         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
1377 2020-09-18  Bruno Haible  <bruno@clisp.org>
1379         fsusage, getaddrinfo: Produce more regular configure output.
1380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
1381         corresponding AC_MSG_RESULT.
1382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1384 2020-09-18  Bruno Haible  <bruno@clisp.org>
1386         Add back gl_SILENT.
1387         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
1389 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1391         c-stack-tests: fix -fsanitize=undefined false alarm
1392         * tests/test-c-stack2.sh: Skip the test-harness self-test
1393         if ‘gcc -fsanitize=undefined’ is in use.
1395 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
1397         signalblocking: simplify and remove gl_SILENT
1398         gl_SILENT was problematic because if a trap was sprung, stderr
1399         generated during the trap was lost.  Avoid the problem by
1400         removing the need for gl_SILENT.
1401         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
1402         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
1403         Simplify, avoiding the need for gl_SILENT while preserving the
1404         ability of the user to override the value of the cache variable,
1405         now ac_cv_func_sigprocmask.
1407 2020-09-17  Bruno Haible  <bruno@clisp.org>
1409         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
1410         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
1411         (gl_SILENT): Use 'exec', not a compound statement, to redirect
1412         AS_MESSAGE_FD.
1414 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
1416         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
1417         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
1418         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
1419         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
1420         Define to 0.
1421         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
1422         Do not use __builtin_mul_overflow_p.
1424         libc-config: port __THROW to Ubuntu 4
1425         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
1426         for GCC 3.3.  Problem reported by Jeffrey Walton in:
1427         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
1428         The GCC 3.3.4 documentation says the attribute should work, but
1429         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
1430         little point or desire to research this circa-2004 platform further,
1431         so just avoid the attribute there.
1433 2020-09-17  Jim Meyering  <meyering@fb.com>
1435         test-dfa-match.sh: port timeout work-around to newer Busybox
1436         * tests/test-dfa-match.sh: Update timeout -t portability test to
1437         accommodate Busybox 1.30.0 and newer.
1439 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1441         fnmatch: adjust to match glibc fix
1442         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
1443         This does not affect Gnulib; it merely keeps Gnulib and glibc
1444         closer together, to help with any eventual merge, by incorporating
1445         a recent glibc patch.  The patch and the following commentary is
1446         by Andreas Schwab.
1447         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
1448         contains the index into the extra array, whereas wextra points
1449         into the extra array at this index, containing the length of the
1450         following collating sequence in the wide character representation.
1452 2020-09-16  Bruno Haible  <bruno@clisp.org>
1454         stat, fstat: Fix compilation error with old mingw headers.
1455         Reported by Eli Zaretskii <eliz@gnu.org> in
1456         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
1457         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
1458         define it.
1460 2020-09-16  Bruno Haible  <bruno@clisp.org>
1462         stat, fstat: Fix when compiling for versions older than Windows Vista.
1463         Reported by Eli Zaretskii <eliz@gnu.org> in
1464         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
1465         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
1466         that was originally set before we redefined it.
1467         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
1468         (gl_PREREQ_STAT): Require it.
1469         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
1471 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1473         dfa: remove dfa-heap-overrun workaround
1474         * lib/dfa.c (reorder_tokens): Go back to a single pass that
1475         both sets map[*] and does other things.  This reverts
1476         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
1477         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
1478         fixed the underlying problem.
1480 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1482         dfa: avoid use of uninitialized constraint
1483         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
1484         to zero here.
1485         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
1486         use of an uninitialized constraint by later code when ! (flags[i]
1487         & OPT_QUEUED) means merge_nfa_state was not called to initialize
1488         the constraint.  Problem found by running 'valgrind src/grep -E
1489         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
1491         dfa: assume C99 in reorder_tokens
1492         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
1494         dfa: fix dfa-heap-overrun failure
1495         * lib/dfa.c (reorder_tokens): When setting
1496         map[d->follows[i].elems[j].index], instead of incorrectly assuming
1497         that (i < d->follows[i].elems[j].index), use two loops, one to set
1498         the map array and the other to use it.  The incorrect assumption
1499         caused some elements to be missed, and this in turn caused grep's
1500         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
1501         with GCC.  I found this bug while investigating
1502         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
1503         and I think the bug also occurs on GNU/Linux but with more-subtle
1504         symptoms.  The bug predates the recent dfa.c changes; perhaps the
1505         recent changes make the bug more likely.
1507 2020-09-13  Bruno Haible  <bruno@clisp.org>
1509         parse-datetime: Make the build rule work with parallel 'make'.
1510         Reported by Daiki Ueno <ueno@gnu.org> in
1511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
1512         * modules/parse-datetime (Makefile.am): Use a phony target and the
1513         general idiom for rules that produce multiple files.
1515 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
1517         getpass: Check for nonnull prompt argument while avoiding warnings.
1518         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
1519         (getpass) [!_WIN32]: Print prompt only if nonnull.
1521 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1523         dfa: epsilon-closure tweaks (Bug#40634)
1524         Rename BACKWORD to BACKWARD consistently.
1525         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
1526         (addtok_mb): Redo slightly to make it act more like a state machine.
1527         Check depth only when it increases.
1528         (epsclosure): Let the switch test the tokens.
1529         (dfaanalyze): Cache tindex.  Simplify position loops.
1530         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
1531         only if it is not null, since we're testing that anyway.
1532         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
1534 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1536         dfa: use backward set in removal of epsilon closure
1537         When removing in epsilon closure, the code searched all nodes
1538         sequentially, and this was slow for some cases.  Build a backward
1539         set before search, and only check previous position with the set.
1540         Problem reported in <https://bugs.gnu.org/40634>.
1541         * lib/dfa.c (struct dfa): New member 'epsilon'.
1542         (addtok_mb): Check whether a pattern has epsilon node or not.
1543         (epsclosure): New arg BACKWORD; caller changed.  When removing
1544         epsilon node and reconnecting, check only previous positions.
1545         Treat BEG as if it were character.
1546         (dfaanalyze): Build backward set.
1548 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1550         canonicalize: fix pointer indexing bugs
1551         Problem reported by Florian Weimer in:
1552         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
1553         * lib/canonicalize-lgpl.c (__realpath):
1554         * lib/canonicalize.c (canonicalize_filename_mode):
1555         Do not generate a pointer past the end of the array.
1556         * lib/canonicalize.c (canonicalize_filename_mode):
1557         Do not use a pointer after passing it to realloc.
1559 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1561         tempname: help merge with glibc
1562         Inspired by draft patches by Adhemerval Zanella in:
1563         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
1564         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
1565         * lib/tempname.c: Include stdalign.h, time.h.
1566         If _LIBC, do not include random-bits.h.
1567         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
1568         (RANDOM_BITS): Remove, replacing with ...
1569         (random_bits): ... this new static function.  All uses changed.
1570         Add entropy each time if getrandom is not supported.
1571         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
1572         Assume 64-bit support a la C99.
1573         (try_tempname_len): Take advantage of ASLR when initializing
1574         random value.
1575         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
1577         getcwd: merge recent glibc changes
1578         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
1579         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
1581 2020-09-06  Bruno Haible  <bruno@clisp.org>
1583         attribute: Clarify which file to include.
1584         * modules/attribute (Include): Add "attribute.h".
1586 2020-09-06  Bruno Haible  <bruno@clisp.org>
1588         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
1589         * lib/pipe-filter-ii.c: Include <process.h>.
1590         * lib/pipe-filter-gi.c: Likewise.
1592 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1594         verify: avoid __builtin_assume
1595         Our latest attempt to use Clang’s __builtin_assume caused a crash
1596         in GNU Emacs that we spent quite some time tracking down as being
1597         caused by the switch to __builtin_assume.  It’s not known whether
1598         the crash is due is a Clang bug or a portability bug in GNU Emacs.
1599         For now, play it safe and avoid __builtin_assume.
1600         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
1601         (assume): Simplify by not trying to use Clang’s __builtin_assume.
1603 2020-09-05  Bruno Haible  <bruno@clisp.org>
1605         Fix several "warning: no previous prototype for function".
1606         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
1607         in front of the declaration of the lookup function in
1608         unicase/locale-languages.h.
1609         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
1610         unictype/bidi_byname.h.
1611         * modules/unictype/category-byname (Makefile.am): Likewise in
1612         unictype/categ_byname.h.
1613         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
1614         unictype/combiningclass_byname.h.
1615         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
1616         unictype/joininggroup_byname.h.
1617         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
1618         unictype/joiningtype_byname.h.
1619         * modules/unictype/property-byname (Makefile.am): Likewise in
1620         unictype/pr_byname.h.
1621         * modules/unictype/scripts (Makefile.am): Likewise in
1622         unictype/scripts_byname.h.
1623         * modules/uninorm/composition (Makefile.am): Likewise in
1624         uninorm/composition-table.h.
1626 2020-09-05  Bruno Haible  <bruno@clisp.org>
1628         select: Fix "warning: no previous prototype for function".
1629         * lib/select.c: Include <sys/select.h>.
1631 2020-09-05  Bruno Haible  <bruno@clisp.org>
1633         Use module 'c99' when needed for variadic macros with '...' syntax.
1634         * modules/crypto/sm3 (Depends-on): Add c99.
1636 2020-09-05  Bruno Haible  <bruno@clisp.org>
1638         Use module 'c99' when needed for subobject initializer syntax.
1639         * modules/tempname (Depends-on): Add c99.
1640         * modules/nstrftime-tests (Depends-on): Likewise.
1642 2020-09-05  Bruno Haible  <bruno@clisp.org>
1644         Use module 'c99' when needed for declaration-after-statement syntax.
1645         * modules/backup-rename (Depends-on): Add c99.
1646         * modules/backupfile (Depends-on): Likewise.
1647         * modules/bitset-tests (Depends-on): Likewise.
1648         * modules/bitsetv (Depends-on): Likewise.
1649         * modules/c-strtod (Depends-on): Likewise.
1650         * modules/c-strtold (Depends-on): Likewise.
1651         * modules/clean-temp (Depends-on): Likewise.
1652         * modules/copy-file (Depends-on): Likewise.
1653         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
1654         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
1655         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
1656         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
1657         * modules/crypto/md5-buffer (Depends-on): Likewise.
1658         * modules/crypto/md5-tests (Depends-on): Likewise.
1659         * modules/crypto/sha1-buffer (Depends-on): Likewise.
1660         * modules/crypto/sha1-tests (Depends-on): Likewise.
1661         * modules/crypto/sha256-buffer (Depends-on): Likewise.
1662         * modules/crypto/sha256-tests (Depends-on): Likewise.
1663         * modules/crypto/sha512-buffer (Depends-on): Likewise.
1664         * modules/crypto/sha512-tests (Depends-on): Likewise.
1665         * modules/diffseq (Depends-on): Likewise.
1666         * modules/fatal-signal (Depends-on): Likewise.
1667         * modules/fchmodat (Depends-on): Likewise.
1668         * modules/fstrcmp (Depends-on): Likewise.
1669         * modules/fsusage (Depends-on): Likewise.
1670         * modules/fts (Depends-on): Likewise.
1671         * modules/fts-tests (Depends-on): Likewise.
1672         * modules/getumask (Depends-on): Likewise.
1673         * modules/git-merge-changelog (Depends-on): Likewise.
1674         * modules/hash-map (Depends-on): Likewise.
1675         * modules/hash-set (Depends-on): Likewise.
1676         * modules/lchmod (Depends-on): Likewise.
1677         * modules/libgmp-tests (Depends-on): Likewise.
1678         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
1679         * modules/linkedhash-map (Depends-on): Likewise.
1680         * modules/linkedhash-set (Depends-on): Likewise.
1681         * modules/long-options (Depends-on): Likewise.
1682         * modules/mbrtoc32 (Depends-on): Likewise.
1683         * modules/memchr2-tests (Depends-on): Likewise.
1684         * modules/memmem-tests (Depends-on): Likewise.
1685         * modules/memrchr-tests (Depends-on): Likewise.
1686         * modules/mktime-internal (Depends-on): Likewise.
1687         * modules/nstrftime (Depends-on): Likewise.
1688         * modules/opendirat (Depends-on): Likewise.
1689         * modules/parse-datetime (Depends-on): Likewise.
1690         * modules/quotearg-simple-tests (Depends-on): Likewise.
1691         * modules/same (Depends-on): Likewise.
1692         * modules/supersede (Depends-on): Likewise.
1693         * modules/supersede-tests (Depends-on): Likewise.
1694         * modules/time_rz (Depends-on): Likewise.
1695         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1696         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
1697         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
1698         * modules/xalloc (Depends-on): Likewise.
1699         * modules/xnanosleep (Depends-on): Likewise.
1701 2020-09-05  Bruno Haible  <bruno@clisp.org>
1703         Fix "warning: array initialized from parenthesized string constant".
1704         * tests/test-memmem.c (main): Remove parentheses around string constant.
1705         * tests/test-c-strcasestr.c (main): Likewise.
1706         * tests/test-strcasestr.c (main): Likewise.
1708 2020-09-05  Bruno Haible  <bruno@clisp.org>
1710         argmatch tests: Fix ISO C compliance warning.
1711         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
1712         invocation.
1714 2020-09-05  Bruno Haible  <bruno@clisp.org>
1716         uniname/uniname: Fix -Wshadow warning.
1717         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
1718         * modules/uniname/uniname (Depends-on): Add c99.
1720 2020-09-05  Bruno Haible  <bruno@clisp.org>
1722         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
1723         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
1724         argument to size_t.
1725         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
1726         n to size_t.
1728 2020-09-05  Bruno Haible  <bruno@clisp.org>
1730         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
1731         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
1732         u32_uctomb): Change type of last argument to ptrdiff_t.
1733         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
1734         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
1735         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
1736         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
1737         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
1739 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1741         manywarnings: remove -Wchkp and -Wabi from C++ too
1742         Suggested by Reuben Thomas in:
1743         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
1744         At some point somebody should merge the many other manywarnings-c.m4
1745         changes into manywarnings-c++.m4 too, e.g.,
1746         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
1747         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
1748         Remove -Wchkp, -Wabi.
1750 2020-08-30  Bruno Haible  <bruno@clisp.org>
1752         strerrorname_np: Add tests.
1753         * tests/test-strerrorname_np.c: New file.
1754         * modules/strerrorname_np-tests: New file.
1756         strerrorname_np: New module.
1757         * lib/string.in.h (strerrorname_np): New declaration.
1758         * lib/strerrorname_np.c: New file.
1759         * m4/strerrorname_np.m4: New file.
1760         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
1761         is declared.
1762         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
1763         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
1764         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
1765         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
1766         * modules/strerrorname_np: New file.
1767         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
1768         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
1769         the glibc 2.32 bug.
1771 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1773         perror, strerror_r: remove unportable tests
1774         Problem reported by Florian Weimer in:
1775         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
1776         * tests/test-perror2.c (main):
1777         * tests/test-strerror_r.c (main): Omit unportable tests.
1779 2020-08-26  Bruno Haible  <bruno@clisp.org>
1781         stdint, wchar, wctype-h: Change configure message.
1782         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
1783         enough..." instead of "checking whether wint_t is too small...".
1785 2020-08-26  Bruno Haible  <bruno@clisp.org>
1787         time_rz: Change configure message.
1788         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
1789         near extrema..." instead of "checking whether localtime loops forever
1790         near extrema...".
1792 2020-08-26  Bruno Haible  <bruno@clisp.org>
1794         stdint: Change configure message.
1795         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
1796         without ISO C predefines..." instead of "checking whether stdint.h
1797         predates C++11...".
1799 2020-08-26  Bruno Haible  <bruno@clisp.org>
1801         socketlib: Change configure message.
1802         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
1803         instead of "checking if we need to call WSAStartup in winsock2.h and
1804         -lws2_32...".
1806 2020-08-26  Bruno Haible  <bruno@clisp.org>
1808         include_next: Change configure message.
1809         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
1810         code line length is unlimited..." instead of "checking whether system
1811         header files limit the line length...".
1813 2020-08-26  Bruno Haible  <bruno@clisp.org>
1815         getcwd: Change configure message.
1816         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
1817         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
1818         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
1820 2020-08-26  Bruno Haible  <bruno@clisp.org>
1822         chdir-long: Change configure message.
1823         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
1824         system supports file names of any length..." instead of "checking
1825         whether this system has an arbitrary file name length limit...".
1826         Set gl_cv_have_unlimited_file_name_length instead of
1827         gl_cv_have_arbitrary_file_name_length_limit.
1828         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
1830 2020-08-26  Bruno Haible  <bruno@clisp.org>
1832         ceill: Change configure message.
1833         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
1834         instead of "checking whether ceill() breaks with small values...".
1836 2020-08-26  Bruno Haible  <bruno@clisp.org>
1838         iconv: Change configure message.
1839         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
1840         with its POSIX signature..." instead of "checking for iconv
1841         declaration...". Remove K&R C support.
1843 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
1845         getcwd: help the merge back into glibc
1846         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
1847         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
1848         The idea is to make it easier for Gnulib lib/getcwd.c to match
1849         glibc io/getcwd-generic.c.
1850         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
1851         Include not-cancel.h.
1852         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
1853         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
1854         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
1855         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
1856         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
1857         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
1858         (__getcwd_generic): Rename from __getcwd.
1859         Use the abovementioned macros for consistency with glibc.
1860         (weak_alias): Remove.
1862 2020-08-25  Bruno Haible  <bruno@clisp.org>
1864         verify: Avoid warnings when assume(0) is used.
1865         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
1866         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
1867         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
1868         the constant 0.
1869         * tests/test-verify.c (f): New function.
1870         (state): New type.
1871         (test_assume_expressions, test_assume_optimization,
1872         test_assume_noreturn): New functions.
1874 2020-08-25  Bruno Haible  <bruno@clisp.org>
1876         fstrcmp: Clarification regarding NOTE_ORDERED.
1877         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
1879 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1881         diffseq: new option NOTE_ORDERED
1882         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
1883         * NEWS: Mention this.
1884         * lib/diffseq.h (NOTE_ORDERED): New macro.
1885         (IF_LINT2): Remove; no longer needed.
1886         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
1887         subproblem and iterate to do the larger.
1889 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1891         sys_types: let Autoconf 2.70 do pid_t
1892         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
1893         only for Autoconf versions 2.69 and earlier, since 2.70
1894         will be fixed.
1896 2020-08-23  Bruno Haible  <bruno@clisp.org>
1898         tests: Don't assume that pid_t fits in an 'int'.
1899         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
1900         of 'int'.
1901         * tests/test-nonblocking-socket-main.c (main): Likewise.
1903         sys_types: Fix definition of pid_t on 64-bit MSVC.
1904         * m4/pid_t.m4: New file.
1905         * modules/sys_types (Files): Add it.
1906         * modules/dirent (Files): Likewise.
1907         * modules/fcntl-h (Files): Likewise.
1908         * modules/sched (Files): Likewise.
1909         * modules/signal-h (Files): Likewise.
1910         * modules/spawn (Files): Likewise.
1911         * modules/sys_stat (Files): Likewise.
1912         * modules/sys_wait (Files): Likewise.
1913         * modules/termios (Files): Likewise.
1914         * modules/unistd (Files): Likewise.
1916 2020-08-23  Bruno Haible  <bruno@clisp.org>
1918         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
1919         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
1920         program.
1922 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1924         intprops: be consistent about +X vs X+0
1925         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
1927         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
1928         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
1929         is a bit-field, on older GCC or non-GCC compilers where we do
1930         things ourselves instead of using __builtin_mul_overflow.
1931         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
1932         to applying sizeof to a bit-field.
1933         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
1934         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
1936 2020-08-23  Bruno Haible  <bruno@clisp.org>
1938         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
1939         Reported by Jörg Sonnenberger <joerg@netbsd.org>
1940         via Thomas Klausner <tk@giga.or.at> in
1941         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
1942         * lib/supersede.c (open_supersede): When opening an existing non-regular
1943         file on Solaris, use O_CREAT although it should not be necessary.
1945 2020-08-23  Bruno Haible  <bruno@clisp.org>
1947         verify: Make assume work on bit field expressions (regr. 2020-08-22).
1948         Reported by Benno Schulenberg <bensberg@telfort.nl> in
1949         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
1950         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
1951         variable.
1953 2020-08-23  Bruno Haible  <bruno@clisp.org>
1955         libc-config: Improve comments.
1956         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
1957         cannot use clang's __diagnose_if__ here.
1959 2020-08-22  Bruno Haible  <bruno@clisp.org>
1961         verify: Do use __builtin_assume on clang.
1962         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
1963         variable in a statement expression.
1965 2020-08-22  Bruno Haible  <bruno@clisp.org>
1967         sig2str: Add more signals.
1968         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
1970 2020-08-22  Bruno Haible  <bruno@clisp.org>
1972         doc: Update for OpenBSD 6.0, 6.7.
1973         * doc/*/*.texi: Update.
1974         * m4/printf.m4: Update comments and cross-compilation guesses.
1975         * m4/ceill.m4: Update comments.
1976         * m4/getcwd-abort-bug.m4: Likewise.
1977         * m4/ilogb.m4: Likewise.
1978         * m4/ilogbf.m4: Likewise.
1979         * m4/langinfo_h.m4: Likewise.
1980         * m4/modf.m4: Likewise.
1981         * m4/modff.m4: Likewise.
1983 2020-08-22  Bruno Haible  <bruno@clisp.org>
1985         doc: Mention sig2str module.
1986         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
1988 2020-08-21  Bruno Haible  <bruno@clisp.org>
1990         sigdescr_np: Add tests.
1991         * tests/test-sigdescr_np.c: New file.
1992         * modules/sigdescr_np-tests: New file.
1994         sigdescr_np: New module.
1995         * lib/string.in.h (sigdescr_np): New declaration.
1996         * lib/sigdescr_np.c: New file.
1997         * m4/sigdescr_np.m4: New file.
1998         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
1999         declared.
2000         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
2001         HAVE_SIGDESCR_NP.
2002         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
2003         HAVE_SIGDESCR_NP.
2004         * modules/sigdescr_np: New file.
2005         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
2006         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
2008 2020-08-20  Bruno Haible  <bruno@clisp.org>
2010         sigabbrev_np: Add tests.
2011         * tests/test-sigabbrev_np.c: New file.
2012         * modules/sigabbrev_np-tests: New file.
2014         sigabbrev_np: New module.
2015         * lib/string.in.h (sigabbrev_np): New declaration.
2016         * lib/sigabbrev_np.c: New file.
2017         * m4/sigabbrev_np.m4: New file.
2018         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
2019         declared.
2020         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
2021         HAVE_SIGABBREV_NP.
2022         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
2023         HAVE_SIGABBREV_NP.
2024         * modules/sigabbrev_np: New file.
2025         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
2026         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
2028 2020-08-20  Bruno Haible  <bruno@clisp.org>
2030         stdalign tests: Skip test with AIX xlclang.
2031         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
2033 2020-08-20  Bruno Haible  <bruno@clisp.org>
2035         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
2036         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
2037         workaround as for GCC versions < 4.9.
2039 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2041         Sync up ProjectQuirks comments and documentation
2042         Transform the ProjectQuirks comments into a docstring so that it can
2043         be accessed from python as ProjectQuirks.__doc__ and harmonize
2044         descriptions with the documentation.
2045         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
2046         Transform comments into a docstring.
2047         * doc/vcs-to-changelog.texi: Sync up description with comments.
2049         Split ProjectQuirks out into its own file
2050         ProjectQuirks is used by external quirks files and importing it from
2051         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
2052         is cleaner to put it in its own file anyway.
2053         * build-aux/vcstocl/projectquirks.py: A new file...
2054         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
2055         we move ProjectQuirks and import the file.
2057 2020-08-19  Bruno Haible  <bruno@clisp.org>
2059         uchar: Fix compilation errors in C++ mode on macOS.
2060         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
2061         system header file before attempting to use 'char16_t' and 'char32_t'.
2063 2020-08-19  Bruno Haible  <bruno@clisp.org>
2065         ansi-c++-opt: Work around an autoconf macro reordering problem.
2066         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
2067         section.
2069 2020-08-19  Bruno Haible  <bruno@clisp.org>
2071         math C++ tests: Fix compilation error in with GCC 10.
2072         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
2073         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
2074         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2076 2020-08-19  Bruno Haible  <bruno@clisp.org>
2078         uchar: Fix compilation errors in C++ mode on OpenBSD.
2079         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
2080         CXX_HAS_UCHAR_TYPES is 1.
2081         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
2082         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
2083         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
2085 2020-08-19  Bruno Haible  <bruno@clisp.org>
2087         Fix compilation errors in C++ mode on OpenBSD.
2088         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
2089         OpenBSD with clang, use the approach without C preprocessor macro.
2091 2020-08-18  Bruno Haible  <bruno@clisp.org>
2093         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
2094         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
2095         AC_LANG_POP.
2097 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2099         verify: avoid __built_assume on Clang
2100         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
2101         Clang 9 incorrectly diagnoses arguments as having side effects
2102         even when they do not.  I guess Clang 9 considers any function
2103         call as if it had a side effect here.
2105         libc-config: avoid Clang’s __diagnose_if__
2106         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
2107         For now, do not use __diagnose_if__ here, as this fails
2108         on Fedora 31 with Clang 9.0.1, with diagnostic
2109         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
2110         size than length of destination buffer
2111         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
2112         for functions that are not called?
2114         careadlinkat: speedup for GCC 10 with GCC_LINT
2115         Inspired by a suggestion by Bruno Haible in:
2116         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
2117         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
2118         (readlink_stk): New function, with most of the old careadlinkat
2119         contents and with a new STACK_BUF arg.  Inline it in GCC 10
2120         if GCC_LINT.
2121         (careadlinkat): Use the new function for everything but the
2122         stack buffer.
2124         * build-aux/gcc-warning.spec: Update comments.
2126 2020-08-17  Bruno Haible  <bruno@clisp.org>
2128         Assume autoconf >= 2.64.
2129         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
2131 2020-08-17  Bruno Haible  <bruno@clisp.org>
2133         Revert autoupdate's revert.
2134         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
2136 2020-08-17  Bruno Haible  <bruno@clisp.org>
2138         uchar C++ tests: Fix build error on FreeBSD 12.
2139         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
2140         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
2141         <cuchar> does not exist.
2143 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2145         time_rz: remove unused functions
2146         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
2148         time_rz: fix issues with mktime_z failures
2149         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
2150         Use a cheaper tm_yday test for failed mktime.
2152 2020-08-16  Bruno Haible  <bruno@clisp.org>
2154         intprops test: Strengthen on clang.
2155         * tests/test-intprops.c (VERIFY): Use verify_stmt.
2157 2020-08-16  Bruno Haible  <bruno@clisp.org>
2159         nstrftime: Guide inlining also on clang.
2160         * lib/nstrftime.c (iso_week_days): Inline also on clang.
2162 2020-08-16  Bruno Haible  <bruno@clisp.org>
2164         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
2165         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
2167 2020-08-16  Bruno Haible  <bruno@clisp.org>
2169         log2l: Disable MSVC workaround on clang.
2170         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
2172 2020-08-16  Bruno Haible  <bruno@clisp.org>
2174         argp: Emit a warning also with clang.
2175         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
2176         clang.
2178 2020-08-16  Bruno Haible  <bruno@clisp.org>
2180         libc-config: Enable __REDIRECT macro also on clang.
2181         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
2182         __ASMNAME2): Define on clang like on GCC.
2184 2020-08-16  Bruno Haible  <bruno@clisp.org>
2186         regex: Use initializer shorthand syntax also with clang.
2187         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
2188         with clang.
2190 2020-08-16  Bruno Haible  <bruno@clisp.org>
2192         regex: Use space optimization also with clang.
2193         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
2194         with clang.
2196 2020-08-16  Bruno Haible  <bruno@clisp.org>
2198         Use _Static_assert and static_assert primitives when present on clang.
2199         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
2200         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
2201         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
2203 2020-08-16  Bruno Haible  <bruno@clisp.org>
2205         Use 'throw ()' for optimization in C++ mode also on clang.
2206         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
2207         * lib/getopt-cdefs.in.h (__THROW): Likewise.
2208         * lib/md5.h (__THROW): Likewise.
2210 2020-08-16  Bruno Haible  <bruno@clisp.org>
2212         absolute-header: Add support for clang.
2213         * modules/absolute-header (Makefile.am): Include '__clang__' in the
2214         HAVE_INCLUDE_NEXT expression.
2216 2020-08-16  Bruno Haible  <bruno@clisp.org>
2218         Fix "warning: implicitly declaring library function 'strcasecmp'".
2219         * lib/argp-help.c: Include <strings.h>.
2221 2020-08-16  Bruno Haible  <bruno@clisp.org>
2223         stdio: Don't break attribute 'scanf' on clang.
2224         * lib/stdio.in.h (scanf): Treat clang like GCC.
2226 2020-08-16  Bruno Haible  <bruno@clisp.org>
2228         Use __restrict also on clang.
2229         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
2230         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
2231         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
2233 2020-08-16  Bruno Haible  <bruno@clisp.org>
2235         pthread-spin: Use GCC built-ins also on clang.
2236         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2237         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
2238         also on clang.
2240 2020-08-16  Bruno Haible  <bruno@clisp.org>
2242         asyncsafe-spin tests: Update.
2243         * tests/test-asyncsafe-spin2.c: Update to match the change in
2244         lib/asyncsafe-spin.c from 2020-08-11.
2246 2020-08-16  Bruno Haible  <bruno@clisp.org>
2248         setenv: Use tree code also with clang.
2249         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
2251 2020-08-16  Bruno Haible  <bruno@clisp.org>
2253         math: Optimize signbit also on clang.
2254         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
2255         on clang.
2257 2020-08-16  Bruno Haible  <bruno@clisp.org>
2259         avltreehash-list, rbtreehash-list: Optimize also on clang.
2260         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
2261         __builtin_expect also on clang.
2263 2020-08-16  Bruno Haible  <bruno@clisp.org>
2265         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
2266         * lib/socket.c: Use WSASocketW, not WSASocketA.
2268         Fix "warning: format specifies type 'unsigned long'".
2269         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
2270         argument to match the format directive.
2272         Fix "warning: no case matching constant switch condition '0'".
2273         * tests/test-fcntl.c (check_flags): Add a 'default' case.
2275         Fix "warning: integer overflow in expression".
2276         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
2277         remove a 'long' overflow.
2279         Fix "warning: "getpagesize" redefined".
2280         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
2281         macro.
2283         Fix "warning: implicitly declaring library function 'strncasecmp'".
2284         * lib/strptime.c: Include <strings.h>.
2286         Fix "warning: 'snprintf' macro redefined".
2287         * lib/strerror_r.c (snprintf): Undefine before redefining.
2289         Fix "warning: address of array 'locale' will always evaluate to 'true'".
2290         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
2292         Fix "warning: '__stat64' macro redefined".
2293         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
2295         Fix "warning: 'format' attribute argument not supported: rpl_printf".
2296         * lib/stdio.in.h (printf): Treat clang like GCC.
2298         Fix "warning: attribute declaration must precede definition" with clang.
2299         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
2300         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
2301         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
2302         on non-glibc systems.
2303         * lib/netdb.in.h (gai_strerror): Likewise.
2304         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
2305         * lib/sys_stat.in.h (fstat): Likewise.
2306         * lib/utime.in.h (utime): Likewise.
2308         Fix undesired warnings.
2309         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
2310         clang.
2312 2020-08-16  Bruno Haible  <bruno@clisp.org>
2314         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
2315         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
2316         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
2317         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
2318         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
2320 2020-08-16  Bruno Haible  <bruno@clisp.org>
2322         Don't use Autoconf quadrigraphs.
2323         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
2324         Autoconf quadrigraph.
2325         * m4/free.m4 (gl_FUNC_FREE): Likewise.
2326         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
2327         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
2328         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2329         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2330         * m4/math_h.m4 (gl_MATH_H): Likewise.
2331         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2333 2020-08-16  Bruno Haible  <bruno@clisp.org>
2335         Fix quoting of AC_LANG_PROGRAM arguments.
2336         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
2337         arguments through [[...]].
2338         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
2339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2341         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
2342         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
2343         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2344         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
2345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2346         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2347         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2348         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
2349         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
2350         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2352 2020-08-16  Bruno Haible  <bruno@clisp.org>
2354         Assume autoconf >= 2.64.
2355         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
2356         * DEPENDENCIES: Require Autoconf 2.64 or newer.
2357         * NEWS: Mention the changed requirement.
2358         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
2359         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
2360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
2361         variables.
2362         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2363         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2364         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
2365         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
2366         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
2367         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
2368         Likewise.
2369         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
2370         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
2371         * m4/configmake.m4: Update comment.
2373 2020-08-16  Bruno Haible  <bruno@clisp.org>
2375         sys_ioctl: Simplify.
2376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
2377         AC_INCLUDES_DEFAULT.
2379 2020-08-16  Bruno Haible  <bruno@clisp.org>
2381         Fix quoting of AC_LANG_SOURCE arguments.
2382         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
2383         GL_NOCRASH expansion.
2384         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
2385         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2386         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2387         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2388         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2390 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2392         nstrftime: be more predictable about errno
2393         This aligns nstrftime better with draft POSIX 202x strftime.
2394         * lib/nstrftime.c: Include errno.h.
2395         (width_add, __strftime_internal): Set errno on failure,
2396         and preserve it on success.  Check for mktime_z failure.
2397         * modules/nstrftime (Depends-on): Add errno.
2398         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
2399         * tests/test-nstrftime.c: Include intprops.h, limits.h.
2400         (errno_test): New test function.
2401         (main): Call it.
2403 2020-08-15  Bruno Haible  <bruno@clisp.org>
2405         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
2406         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
2407         from dependency analysis first.
2409 2020-08-15  Bruno Haible  <bruno@clisp.org>
2411         Determine asm output option and filename suffix for MSVC/clang.
2412         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
2413         clang-cl.
2415 2020-08-15  Bruno Haible  <bruno@clisp.org>
2417         doc: Update for MSVC/clang.
2418         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
2419         that MSVC 14 does not have.
2421 2020-08-15  Bruno Haible  <bruno@clisp.org>
2423         Revert autoupdate's revert.
2424         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
2426 2020-08-15  Bruno Haible  <bruno@clisp.org>
2428         frexpl: Fix configuration test result on MSVC.
2429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
2430         zero.
2432 2020-08-15  Bruno Haible  <bruno@clisp.org>
2434         Support compiling without -loldnames on native Windows.
2435         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
2436         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
2437         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2438         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
2439         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2441         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
2442         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
2443         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2444         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
2445         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
2446         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
2447         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2448         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
2449         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
2450         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
2451         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
2454         Likewise.
2455         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
2456         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2457         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
2458         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2460         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
2461         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
2462         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2463         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2464         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
2465         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2466         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
2467         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
2468         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2469         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
2470         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2471         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2472         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2473         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
2474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2475         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
2476         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2477         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2478         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2479         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2480         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2481         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2482         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
2483         test for getcwd.
2484         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
2485         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
2486         with GL_MDA_DEFINES.
2487         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
2488         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
2489         prefixed symbol.
2490         * lib/search.in.h (lfind, lsearch): Likewise.
2491         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
2492         Likewise.
2493         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
2494         * lib/string.in.h (memccpy, strdup): Likewise.
2495         * lib/sys_stat.in.h (chmod, umask): Likewise.
2496         * lib/time.in.h (tzset): Likewise.
2497         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
2498         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
2499         read, rmdir, swab, unlink, write): Likewise.
2500         * lib/utime.in.h (utime): Likewise.
2501         * lib/wchar.in.h (wcsdup): Likewise.
2502         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
2503         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
2504         rpl_-prefixed macro.
2505         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
2506         * lib/close.c (close_nothrow): On native Windows, use _close.
2507         * lib/creat.c (orig_creat): On native Windows, use _creat.
2508         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
2509         * lib/dup2.c (dup2_nothrow): Use _dup2.
2510         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
2511         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
2512         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
2513         * lib/open.c (orig_open): On native Windows, use _open.
2514         * lib/read.c (read_nothrow): Use _read.
2515         * lib/rmdir.c: On native Windows, use _rmdir.
2516         * lib/unlink.c: On native Windows, use _unlink.
2517         * lib/write.c (write_nothrow): Use _write.
2518         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
2519         undefined symbol.
2520         * lib/sys_socket.in.h (close): Likewise.
2521         * lib/sys_time.in.h (close): Likewise.
2522         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
2524 2020-08-15  Bruno Haible  <bruno@clisp.org>
2526         Fix "unknown pragma ignored" warnings with clang on native Windows.
2527         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
2528         * lib/cbrtf.c: Likewise.
2529         * lib/ceil.c: Likewise.
2530         * lib/floor.c: Likewise.
2531         * lib/fma.c: Likewise.
2532         * lib/fmod.c: Likewise.
2533         * lib/rint.c: Likewise.
2534         * lib/round.c: Likewise.
2535         * lib/trunc.c: Likewise.
2536         * tests/test-ceil2.c: Likewise.
2537         * tests/test-ceilf2.c: Likewise.
2538         * tests/test-floor2.c: Likewise.
2539         * tests/test-floorf2.c: Likewise.
2540         * tests/test-trunc2.c: Likewise.
2541         * tests/test-truncf2.c: Likewise.
2542         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2545 2020-08-15  Bruno Haible  <bruno@clisp.org>
2547         Fix compilation errors in C++ mode with clang on native Windows.
2548         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
2549         non-glibc systems.
2550         * lib/sched.in.h (sched_yield): Likewise.
2552 2020-08-14  Bruno Haible  <bruno@clisp.org>
2554         stdnoreturn: Work around problem with MSVC/clang.
2555         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
2556         system header after <stdnoreturn.h>.
2557         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
2559 2020-08-14  Bruno Haible  <bruno@clisp.org>
2561         utime-h: Generate an utime.h file always.
2562         * modules/utime-h (Makefile.am): Generate utime.h always.
2563         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
2564         GL_GENERATE_UTIME_H.
2566 2020-08-14  Bruno Haible  <bruno@clisp.org>
2568         mktime, mktime-internal: Remove obsolete code.
2569         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
2571 2020-08-14  Bruno Haible  <bruno@clisp.org>
2573         getcwd: Remove obsolete code.
2574         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
2575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2577 2020-08-14  Bruno Haible  <bruno@clisp.org>
2579         tzset: Assume the function exists.
2580         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
2581         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
2582         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
2583         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
2584         HAVE_TZSET.
2585         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
2586         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
2588         nstrftime: Assume tzset exists.
2589         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
2590         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
2591         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
2593         mktime, mktime-internal: Assume tzset exists.
2594         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
2595         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
2597 2020-08-14  Bruno Haible  <bruno@clisp.org>
2599         strdup: Assume the function exists.
2600         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
2601         whether strdup exists.
2602         * modules/strdup (Files): Remove lib/strdup.c.
2603         (configure.ac): Don't compile strdup.c.
2604         * modules/strdup-posix (Depends-on, configure.ac): Don't test
2605         ac_cv_func_strdup.
2606         * doc/posix-functions/strdup.texi: Update.
2607         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
2608         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
2609         (Depends-on): Remove unistr/u8-strlen.
2611 2020-08-13  Bruno Haible  <bruno@clisp.org>
2613         sys_random: Work around an uClibc bug.
2614         Reported by akater <nuclearspace@gmail.com>
2615         via Stefan Kangas <stefan@marxist.se>
2616         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
2617         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
2618         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
2619         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2620         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
2622 2020-08-12  Bruno Haible  <bruno@clisp.org>
2624         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
2625         Reported by Florian Weimer in
2626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
2627         * lib/gen-uni-tables.c (output_predicate): Change the element type of
2628         the level3 array to 'unsigned int'.
2629         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
2630         * lib/unictype/categ_*.h: Regenerated.
2631         * lib/unictype/ctype_*.h: Regenerated.
2632         * lib/unictype/pr_*.h: Regenerated.
2633         * lib/unictype/sy_*.h: Regenerated.
2634         * lib/unicase/cased.h: Regenerated.
2635         * lib/unicase/ignorable.h: Regenerated.
2637 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2639         stdint: port intptr_t to more-recent MinGW
2640         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
2641         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
2642         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
2643         Apparently those two macros were removed in mingwrt-3.22
2644         dated 2016-07-14.
2646 2020-08-12  Bruno Haible  <bruno@clisp.org>
2648         thread-optim: Export function-like macros only.
2649         Suggested by Paul Eggert.
2650         * lib/thread-optim.h (gl_multithreaded): New macro.
2651         (IF_MT_DECL, IF_MT): Remove macros.
2652         * doc/multithread.texi (Multithreading Optimizations): Add a small
2653         example.
2654         * lib/fatal-signal.c: Update all uses.
2655         * lib/clean-temp.c: Likewise.
2656         * lib/localename.c: Likewise.
2657         * modules/localename (Depends-on): Add stdbool.
2659 2020-08-12  Bruno Haible  <bruno@clisp.org>
2661         Revert autoupdate's revert.
2662         * config/srclist.txt: Mark regex.h as needing sync with glibc.
2664 2020-08-11  Bruno Haible  <bruno@clisp.org>
2666         thread-optim: Fix a compiler warning.
2667         * lib/thread-optim.h (IF_MT_DECL): Define differently.
2669 2020-08-11  Bruno Haible  <bruno@clisp.org>
2671         Use __restrict also on clang.
2672         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
2673         (__restrict_arr): On clang, define like on GCC.
2674         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
2675         (_Restrict_arr_): Use _Restrict_ also on clang.
2676         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
2677         (_Restrict_arr_): Use _Restrict_ also on clang.
2679 2020-08-11  Bruno Haible  <bruno@clisp.org>
2681         Use flexible array syntax also on clang.
2682         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
2683         define like for GCC 3.
2685 2020-08-11  Bruno Haible  <bruno@clisp.org>
2687         fcntl: On native Windows, use _setmode, not setmode.
2688         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
2689         * lib/binary-io.h: Update comment.
2690         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
2691         * tests/test-dup2.c: Likewise.
2692         * tests/test-dup-safer.c: Likewise.
2693         * tests/test-fcntl.c: Likewise.
2695 2020-08-11  Bruno Haible  <bruno@clisp.org>
2697         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
2698         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
2699         * lib/spawn-pipe.c (create_pipe): Likewise.
2700         * tests/test-nonblocking-pipe-main.c (main): Likewise.
2701         * tests/test-nonblocking-socket-main.c (main): Likewise.
2702         * lib/wait-process.c: Update comment.
2703         * doc/posix-functions/fork.texi: Update.
2705 2020-08-11  Bruno Haible  <bruno@clisp.org>
2707         asyncsafe-spin: Use GCC built-ins also on clang.
2708         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
2709         the newer GCC built-ins also on clang.
2711 2020-08-11  Bruno Haible  <bruno@clisp.org>
2713         Use expression statements also on clang.
2714         * lib/cdefs.h (__extension__): Don't define to empty on clang.
2715         * lib/obstack.h (__extension__): Likewise.
2716         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
2717         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
2718         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
2719         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
2720         obstack_finish, obstack_free): Enable as optimized macros also on clang.
2721         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
2723 2020-08-10  Bruno Haible  <bruno@clisp.org>
2725         Use many __attribute__s with clang.
2726         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
2727         on clang.
2728         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
2729         New macros.
2730         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
2731         on clang.
2732         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
2733         also on older clang versions.
2734         (__attribute__): Don't define to empty on clang.
2735         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
2736         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
2737         (__attribute_const__): Use __attribute__ __const__ also on clang.
2738         (__attribute_used__): Use __attribute__ __used__ also on clang.
2739         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
2740         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
2741         clang.
2742         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
2743         clang.
2744         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
2745         also on clang.
2746         (__nonnull): Use __attribute__ __nonnull__ also on clang.
2747         (__attribute_warn_unused_result__): Use __attribute__
2748         __warn_unused_result__ also on clang.
2749         (__always_inline): Use __attribute__ __always_inline__ also on clang.
2750         (__attribute_artificial__): Use __attribute__ __artificial__ also on
2751         clang >= 7.
2752         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
2753         clang versions.
2754         (_Noreturn): Don't redefine on clang >= 3.5.
2755         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
2756         also on clang.
2757         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
2758         on clang.
2759         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2760         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2761         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2762         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
2763         also on clang.
2764         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2765         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
2766         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
2767         also on clang.
2768         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
2769         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
2770         __attribute__ __noreturn__ also on clang.
2771         * lib/obstack.h (__attribute_noreturn__): Likewise.
2772         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
2773         clang.
2774         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
2775         always_inline also on clang.
2776         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
2777         clang.
2779 2020-08-10  Bruno Haible  <bruno@clisp.org>
2781         c-ldtoastr tests: Fix test failure.
2782         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
2783         is longer than 'double'.
2785 2020-08-10  Bruno Haible  <bruno@clisp.org>
2787         Revert autoupdate's revert.
2788         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
2790 2020-08-09  Bruno Haible  <bruno@clisp.org>
2792         string: Fix build error in C++ mode with clang (regression from today).
2793         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
2794         parameters, one for GCC, one for clang.
2795         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
2796         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
2797         as return type.
2799 2020-08-09  Bruno Haible  <bruno@clisp.org>
2801         ftruncate: Use _chsize, not chsize.
2802         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
2803         * lib/ftruncate.c: Test HAVE__CHSIZE.
2804         (chsize_nothrow): Use _chsize, not chsize.
2806 2020-08-09  Bruno Haible  <bruno@clisp.org>
2808         Silence warnings from clang 10 with -Wimplicit-fallthrough.
2809         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
2810         clang >= 10.
2811         * lib/fnmatch.c (FALLTHROUGH): Likewise.
2812         * lib/fts.c (FALLTHROUGH): Likewise.
2813         * tests/macros.h (FALLTHROUGH): Likewise.
2814         * lib/regex_internal.h (FALLTHROUGH): Likewise.
2815         * config/srclist.txt: Mark it as needing sync with glibc.
2817 2020-08-09  Bruno Haible  <bruno@clisp.org>
2819         stdbool tests: Enable the stricter tests also on clang.
2820         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
2821         (e): Enable the address-to-bool conversion test also on clang.
2823 2020-08-09  Bruno Haible  <bruno@clisp.org>
2825         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
2826         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
2828 2020-08-09  Bruno Haible  <bruno@clisp.org>
2830         Use attribute __aligned__ with clang.
2831         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
2832         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
2834 2020-08-09  Bruno Haible  <bruno@clisp.org>
2836         Use __alignof__ with clang.
2837         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
2838         on clang.
2839         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
2840         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
2841         clang.
2842         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
2843         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
2844         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
2845         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
2847 2020-08-09  Bruno Haible  <bruno@clisp.org>
2849         ignore-value: Simplify on clang.
2850         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
2851         workaround.
2853 2020-08-09  Bruno Haible  <bruno@clisp.org>
2855         Use __typeof__ with clang.
2856         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
2857         "clang -std=gnu99".
2858         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
2859         * tests/test-stdint.c (verify_same_types): Enable the check also on
2860         clang.
2862 2020-08-09  Bruno Haible  <bruno@clisp.org>
2864         Add ability to emit user-defined warnings and errors with clang.
2865         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
2866         _GL_ATTRIBUTE_WARNING using an attribute for clang.
2867         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
2868         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
2869         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
2870         attribute for clang.
2872 2020-08-09  Bruno Haible  <bruno@clisp.org>
2874         intprops: Fix typo in comment.
2875         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
2877 2020-08-09  Bruno Haible  <bruno@clisp.org>
2879         Use __builtin_signbit* with clang.
2880         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
2881         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
2882         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
2883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
2884         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
2885         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
2886         not REPLACE_SIGNBIT_USING_GCC.
2888 2020-08-09  Bruno Haible  <bruno@clisp.org>
2890         Use __builtin_isnan with clang.
2891         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
2892         not __builtin_isnanf. Also on clang.
2893         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
2894         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
2895         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
2896         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
2897         built-in.
2898         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
2899         not __builtin_isnanl. Also on clang.
2900         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
2901         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
2902         * lib/math.in.h (__has_builtin): Remove macro.
2903         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
2904         __builtin_isnanf. Also on clang.
2905         (isnand, gl_isnan_d): With clang, use the GCC built-in.
2906         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
2907         __builtin_isnanl. Also on clang.
2908         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
2909         on clang.
2911 2020-08-09  Bruno Haible  <bruno@clisp.org>
2913         thread-optim: Fix logic error.
2914         Reported by Paul Eggert.
2915         * lib/thread-optim.h (IF_MT): Fix logic error.
2917 2020-08-08  Bruno Haible  <bruno@clisp.org>
2919         localename: Use module 'thread-optim'.
2920         * lib/localename.c: Include thread-optim.h.
2921         (struniq): Use IF_MT macro.
2922         * modules/localename (Depends-on): Add thread-optim.
2924         clean-temp: Use module 'thread-optim'.
2925         * lib/clean-temp.c: Include thread-optim.h.
2926         (register_temporary_file, unregister_temporary_file, create_temp_dir,
2927         register_temp_file, unregister_temp_file, register_temp_subdir,
2928         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
2929         close_temp, fclose_variant_temp): Use IF_MT macro.
2930         * modules/clean-temp (Depends-on): Add thread-optim.
2932         fatal-signal: Use module 'thread-optim'.
2933         * lib/fatal-signal.c: Include thread-optim.h.
2934         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
2935         macro.
2936         * modules/fatal-signal (Depends-on): Add thread-optim.
2938 2020-08-08  Bruno Haible  <bruno@clisp.org>
2940         New module 'thread-optim'.
2941         * lib/thread-optim.h: New file.
2942         * modules/thread-optim: New file.
2943         * doc/multithread.texi (Multithreading Optimizations): New section.
2945 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
2947         doc: more updates for glibc 2.32
2948         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
2949         * doc/posix-functions/fchmodat.texi: Update.
2951 2020-08-07  Bruno Haible  <bruno@clisp.org>
2953         doc: Update for glibc 2.32.
2954         * doc/glibc-functions/__libc_single_threaded.texi: New file.
2955         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
2956         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
2957         * doc/glibc-functions/sigabbrev_np.texi: New file.
2958         * doc/glibc-functions/sigdescr_np.texi: New file.
2959         * doc/glibc-functions/strerrordesc_np.texi: New file.
2960         * doc/glibc-functions/strerrorname_np.texi: New file.
2961         * doc/gnulib.texi: Include them.
2962         (Glibc sys/single_threaded.h): New section.
2963         * doc/pastposix-functions/h_errno.texi: Update.
2964         * doc/posix-functions/*.texi: Likewise.
2965         * doc/glibc-functions/*.texi: Likewise.
2967 2020-08-07  Bruno Haible  <bruno@clisp.org>
2969         alloca: No need to compile alloca.c with clang.
2970         * lib/alloca.c: Skip all code with clang.
2972         Use __builtin_alloca with clang.
2973         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
2975 2020-08-06  Bruno Haible  <bruno@clisp.org>
2977         Use __builtin_assume with clang.
2978         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
2979         (assume): Use __builtin_assume when available.
2981 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2983         libgmp: add <gmp/gmp.h> support
2984         * m4/libgmp.m4 (gl_LIBGMP):
2985         * modules/libgmp (configure.ac, Makefile.am):
2986         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
2987         ‘#include <gmp.h>’.
2989 2020-08-06  Bruno Haible  <bruno@clisp.org>
2991         Consider that clang defines __OPTIMIZE__ like GCC does.
2992         * lib/streq.h: Define the inline functions also on clang.
2993         * lib/c-strcaseeq.h: Likewise.
2994         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
2995         the GCC workaround to clang.
2997 2020-08-06  Bruno Haible  <bruno@clisp.org>
2999         safe-alloc: Remove unused code.
3000         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
3002 2020-08-06  Bruno Haible  <bruno@clisp.org>
3004         Use __builtin_expect with clang everywhere.
3005         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
3006         also on clang.
3008 2020-08-05  Bruno Haible  <bruno@clisp.org>
3010         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
3011         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
3012         built-in also on clang.
3013         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
3014         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
3016 2020-08-05  Bruno Haible  <bruno@clisp.org>
3018         Use __builtin_clz{,l,ll} with clang, also on Windows.
3019         * lib/integer_length.c: With clang, use the GCC built-in, not
3020         <intrin.h>.
3021         * lib/integer_length_l.c: Likewise.
3022         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
3023         also on clang.
3024         * lib/vasnprintf.c (divide): Likewise.
3026 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3028         Update srclist.txt as per recent glibc changes
3029         * config/srclist.txt: Uncomment lines to reflect recent merges
3030         from Gnulib to glibc.
3032 2020-08-03  Bruno Haible  <bruno@clisp.org>
3034         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3035         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
3037 2020-08-03  Bruno Haible  <bruno@clisp.org>
3039         integer_length_ll: Optimize for MSVC in 64-bit mode.
3040         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3041         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3043 2020-08-03  Bruno Haible  <bruno@clisp.org>
3045         integer_length_ll: Optimize for MSVC in 32-bit mode.
3046         * lib/integer_length_l.c: Include <intrin.h>.
3047         (integer_length): Define as inline function, like in
3048         lib/integer_length.c.
3050 2020-08-03  Bruno Haible  <bruno@clisp.org>
3052         integer_length: Optimize for MSVC.
3053         * lib/integer_length.c: Include <intrin.h>.
3054         (integer_length): With MSVC, use the _BitScanReverse built-in.
3056 2020-08-03  Bruno Haible  <bruno@clisp.org>
3058         ffsll: Optimize for MSVC in 64-bit mode.
3059         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3060         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3061         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
3063 2020-08-03  Bruno Haible  <bruno@clisp.org>
3065         ffsll: Optimize for MSVC in 32-bit mode.
3066         * lib/ffsl.h: Include <intrin.h>.
3067         (ffs): Define as inline function, like in lib/ffs.c.
3069 2020-08-03  Bruno Haible  <bruno@clisp.org>
3071         ffs: Optimize for MSVC.
3072         * lib/ffs.c: Include <intrin.h>.
3073         (ffs): With MSVC, use the _BitScanForward built-in.
3075 2020-08-03  Bruno Haible  <bruno@clisp.org>
3077         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
3078         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
3079         variable.
3081 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
3083         fopen: Avoid undesired interactions with glibc headers.
3084         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
3085         __need_FILE, as the latter does not work with glibc.
3087 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3089         fcntl: document some F_SETLK errno variations
3090         * doc/posix-functions/fcntl.texi (fcntl): Document
3091         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
3093 2020-08-02  Bruno Haible  <bruno@clisp.org>
3095         oset: Add an 'iterator_atleast' operation.
3096         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
3097         extracted from gl_array_search_atleast.
3098         (gl_array_search_atleast): Use it.
3099         (gl_array_iterator_atleast): New function.
3100         (gl_array_oset_implementation): Use it.
3101         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
3102         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
3103         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
3104         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
3105         member.
3106         (gl_oset_iterator_atleast): New function.
3107         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
3108         (gl_OSet::iterator): Add another auxiliary constructor.
3109         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
3110         New functions.
3111         (main): Test also gl_oset_iterator_atleast.
3112         * tests/test-avltree_oset.c (is_at_least): New function.
3113         (main): Test also gl_oset_iterator_atleast.
3114         * tests/test-rbtree_oset.c (is_at_least): New function.
3115         (main): Test also gl_oset_iterator_atleast.
3116         * tests/test-oset-c++.cc (is_at_most): New function.
3117         (main): Test also gl_OSet::begin_atleast.
3119 2020-08-02  Bruno Haible  <bruno@clisp.org>
3121         oset-c++, omap-c++: Remove restriction for search_atleast method.
3122         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
3123         a different type than the element.
3124         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
3125         a different type than the key.
3127 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3129         gnumakefile: say ‘$(MAKE)’ not ‘make’
3130         * top/GNUmakefile (abort-due-to-no-makefile):
3131         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
3132         This change is backported from Autoconf.
3134 2020-08-01  Bruno Haible  <bruno@clisp.org>
3136         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3137         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
3138         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3139         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3140         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3141         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
3143 2020-08-01  Bruno Haible  <bruno@clisp.org>
3145         libtextstyle-optional: Update tests.
3146         * modules/libtextstyle-optional-tests (configure.ac): Invoke
3147         gl_LIBTEXTSTYLE_OPTIONAL.
3149 2020-08-01  Bruno Haible  <bruno@clisp.org>
3151         parse-datetime: Fix wrong #line statements.
3152         * modules/parse-datetime (Makefile.am): Correct #line statements also in
3153         parse-datetime-gen.h.
3155 2020-08-01  Bruno Haible  <bruno@clisp.org>
3157         libtextstyle[-optional]: Allow requesting a minimum version.
3158         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
3159         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
3160         gl_LIBTEXTSTYLE_SEARCH): New macros.
3161         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
3162         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
3163         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
3164         * modules/libtextstyle-optional (configure.ac): Don't invoke
3165         gl_LIBTEXTSTYLE_OPTIONAL.
3166         * NEWS: Mention the changes.
3168 2020-07-31  Bruno Haible  <bruno@clisp.org>
3170         _GL_CMP: Improve documentation.
3171         Reported by Paul Eggert in
3172         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
3173         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
3174         passed.
3176 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3178         largefile: sync with Autoconf master
3179         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
3180         Avoid undefined behavior on platforms where off_t is 32 bits.
3181         See: https://bugs.debian.org/742780
3183         alloca: sync with Autoconf master
3184         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3185         Do not define if Autoconf 2.70 or later, since Autoconf master
3186         now matches us.
3188 2020-07-30  Bruno Haible  <bruno@clisp.org>
3190         unicodeio: Add comment.
3191         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
3192         different iconv behaviours.
3194 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3196         Work around some Oracle Studio attribute bugs
3197         These were discovered when building bleeding-edge Emacs with
3198         Oracle Studio.
3199         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
3200         Port to Oracle Studio 12.6, which mishandles __attribute__
3201         ((__cold__)) and __attribute__ ((__may_alias__)) even though
3202         __has_attribute says they work.
3204 2020-07-29  Bruno Haible  <bruno@clisp.org>
3206         unicodeio: Fix wrong result on musl libc.
3207         Reported by A. Wilcox <awilfox@adelielinux.org> in
3208         <https://www.openwall.com/lists/musl/2020/07/29/2>.
3209         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
3210         on musl libc.
3211         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
3212         * modules/unicodeio (Files): Add m4/musl.m4.
3214 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3216         fsusage, regex, stat-size: remove Cray support
3217         As near as I can make out this is actually support for UNICOS/mp,
3218         last released 2005, and Cray hasn’t supported that for years.
3219         * config/srclist.txt: Comment out regex.h for now.
3220         * lib/fsusage.c (get_fs_usage):
3221         * lib/regex.h (re_comp, re_exec):
3222         * lib/stat-size.h (ST_NBLOCKSIZE):
3223         Don’t worry about _CRAY.
3225 2020-07-29  Bruno Haible  <bruno@clisp.org>
3227         parse-datetime: Fix compilation error with bison 3.7.
3228         * modules/parse-datetime (Makefile.am): Create a generated header file
3229         parse-datetime-gen.h in the source directory. Correct #include and
3230         #line statements during preprocessing.
3232 2020-07-28  Bruno Haible  <bruno@clisp.org>
3234         fopen-gnu: Create files correctly (regression from 2020-05-24).
3235         * lib/fopen.c (rpl_open): Pass a third argument to open().
3237 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3239         xalloc-die: don’t depend on xalloc
3240         This removes a circular dependency, as xalloc depends on xalloc-die.
3241         * modules/xalloc-die (Files): Add lib/xalloc.h.
3242         (Depends-on): Remove xalloc.
3243         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
3245         dfa-tests: port to MSVC
3246         Problem reported by Gisle Vanem in:
3247         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
3248         Also, remove an unnecessary dependency on getprogname.
3249         * modules/dfa-tests (Depends-on): Remove getprogname.
3250         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
3251         (exit_status): New static var.
3252         (dfawarn): Set it instead of exiting.
3253         Do not declare as _Noreturn, to pacify MSVC.
3254         (main): Return exit_status.
3256 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3258         argz: pacify MSVC
3259         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
3260         Problem reported by Gisle Vanem.
3262         libgmp: remove dependency on havelib
3263         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
3264         use the more-traditional AC_SEARCH_LIBS approach.
3265         This should work better with GNU Emacs configuration,
3266         which uses pkg-config instead of a havelib-style approach.
3267         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
3268         * modules/libgmp (Depends-on): Remove havelib.
3270         libgmp: remove HAVE_GMP, LIB_GMP
3271         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
3272         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
3274 2020-07-26  Bruno Haible  <bruno@clisp.org>
3276         inttypes: Remove support for AIX 4.
3277         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
3278         * m4/inttypes-pri.m4: Remove file.
3279         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
3280         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
3281         * modules/inttypes-incomplete (Makefile.am): Don't substitute
3282         PRI_MACROS_BROKEN.
3283         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
3285 2020-07-26  Bruno Haible  <bruno@clisp.org>
3287         gettimeofday: Remove workaround for Mac OS X 10.0.
3288         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
3289         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
3290         * lib/gettimeofday.c: Don't include localtime-buffer.h.
3291         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3292         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3293         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
3294         * modules/localtime-buffer: Remove file.
3295         * lib/localtime-buffer.h: Remove file.
3296         * lib/localtime-buffer.c: Remove file.
3297         * m4/localtime-buffer.m4: Remove file.
3298         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
3300 2020-07-26  Bruno Haible  <bruno@clisp.org>
3302         tzset: Remove workaround for Solaris 2.6.
3303         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
3304         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
3305         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
3306         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
3307         * lib/localtime-buffer.c: Likewise.
3308         * lib/localtime.c: Likewise.
3309         * lib/tzset.c: Don't include localtime-buffer.h.
3310         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
3311         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
3312         is 1.
3313         * modules/tzset (Depends-on): Remove localtime-buffer.
3315 2020-07-26  Bruno Haible  <bruno@clisp.org>
3317         expl: Simplify autoconf test.
3318         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
3319         with small values..." test into the "checking whether expl works..."
3320         test.
3322 2020-07-26  Bruno Haible  <bruno@clisp.org>
3324         alloca: Remove Cray-2 and Cray Y-MP support.
3325         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
3326         Enable also on Autoconf >= 2.69.
3327         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
3328         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
3329         i00afunc): Remove.
3331 2020-07-25  Bruno Haible  <bruno@clisp.org>
3333         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
3334         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
3336 2020-07-25  Bruno Haible  <bruno@clisp.org>
3338         sigprocmask: Small autoconf macro improvement.
3339         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
3340         user to override the value of gl_cv_func_sigprocmask.
3341         * m4/gnulib-common.m4 (gl_SILENT): New macro.
3343 2020-07-25  Bruno Haible  <bruno@clisp.org>
3345         Small autoconf macro improvements.
3346         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
3347         override the value of gl_cv_func_working_mktime.
3348         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
3349         compiler produces multi-arch binaries..." in the configure output.
3350         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
3351         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
3353 2020-07-25  Bruno Haible  <bruno@clisp.org>
3355         doc: Update for NetBSD 7.1, 8.0, 9.0.
3356         * doc/*/*.texi: Update.
3357         * m4/exp2l.m4: Update comments.
3358         * m4/expl.m4: Likewise.
3359         * m4/ilogb.m4: Likewise.
3360         * m4/ilogbf.m4: Likewise.
3361         * m4/log10l.m4: Likewise.
3362         * m4/logl.m4: Likewise.
3363         * m4/printf.m4: Likewise.
3364         * m4/rintl.m4: Likewise.
3365         * m4/wcwidth.m4: Likewise.
3367 2020-07-24  Bruno Haible  <bruno@clisp.org>
3369         doc: Update for Mac OS X 10.13.
3370         * doc/*/*.texi: Update.
3371         * m4/expm1l.m4: Update comments.
3372         * m4/getgroups.m4: Likewise.
3373         * m4/getlogin_r.m4: Likewise.
3374         * m4/linkat.m4: Likewise.
3375         * m4/printf.m4: Likewise.
3377 2020-07-24  Bruno Haible  <bruno@clisp.org>
3379         doc: Update for Cygwin 2.9.0.
3380         * doc/*/*.texi: Update.
3382 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3384         parse-datetime: modernize doc
3385         * doc/parse-datetime.texi: Use more-current examples.
3386         Don’t lead with 32-bit time_t, as it’s on its way out.
3387         Capitalize “Epoch” to be consistent with POSIX.
3389         timespec: remove dependence on ‘verify’
3390         * lib/timespec.h: Do not include verify.h; no longer needed.
3391         * modules/timespec (Depends-on): Remove ‘verify’.
3393         Optimize a few more three-valued comparisons
3394         * lib/timespec.h (timespec_cmp, timespec_sign):
3395         * lib/utimecmp.c (utimecmpat):
3396         Avoid conditional branches by using _GL_CMP.
3398         Fix _GL_CMP parenthesization typo
3399         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
3401 2020-07-24  Bruno Haible  <bruno@clisp.org>
3403         dfa: Revert breaking gawk.
3404         Reported by Arnold Robbins <arnold@skeeve.com>.
3405         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
3407 2020-07-23  Bruno Haible  <bruno@clisp.org>
3409         Optimize three-valued comparison between integers.
3410         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
3411         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
3412         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
3413         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
3414         * lib/dfa.c (compare): Likewise.
3415         * lib/fts.c (fts_compare_ino): Likewise.
3416         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
3417         * lib/mbscasecmp.c (mbscasecmp): Likewise.
3418         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
3419         * lib/memcasecmp.c (memcasecmp): Likewise.
3420         * lib/memcmp2.c (memcmp2): Likewise.
3421         * lib/savedir.c (direntry_cmp_inode): Likewise.
3422         * lib/strcasecmp.c (strcasecmp): Likewise.
3423         * lib/strncasecmp.c (strncasecmp): Likewise.
3424         * lib/unistr/u-cmp2.h (FUNC): Likewise.
3426 2020-07-23  Bruno Haible  <bruno@clisp.org>
3428         lchmod: Use /proc on Cygwin.
3429         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
3431 2020-07-23  Ken Brown  <kbrown@cornell.edu>
3433         fchmodat: Use /proc on Cygwin
3434         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
3436 2020-07-21  Bruno Haible  <bruno@clisp.org>
3438         aligned-malloc: Optionally use aligned_alloc.
3439         * lib/aligned-malloc.h: Verify the alignment.
3440         (aligned_malloc): Use aligned_alloc as an alternative.
3441         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
3442         * doc/posix-functions/aligned_alloc.texi: Mention the modules
3443         'aligned-malloc' and 'pagealign_alloc'.
3445 2020-07-21  Bruno Haible  <bruno@clisp.org>
3447         aligned-malloc: Add tests.
3448         * tests/test-aligned-malloc.c: New file.
3449         * modules/aligned-malloc-tests: New file.
3451         aligned-malloc: New module.
3452         * lib/aligned-malloc.h: New file.
3453         * m4/malloc-align.m4: New file.
3454         * modules/aligned-malloc: New file.
3455         * doc/posix-functions/posix_memalign.texi: Mention the new module.
3456         * doc/glibc-functions/memalign.texi: Likewise.
3458 2020-07-21  Bruno Haible  <bruno@clisp.org>
3460         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
3461         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
3462         sure PRIPTR_PREFIX is defined to "ll", not "l".
3464 2020-07-21  Bruno Haible  <bruno@clisp.org>
3466         printf-posix: Make an autoconf test more future-proof.
3467         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
3468         using uintptr_t.
3470 2020-07-20  Bruno Haible  <bruno@clisp.org>
3472         list, oset, omap: Relicense some of the container modules under LGPLv2+.
3473         * modules/list (License): Change to LGPLv2+.
3474         * modules/array-list (License): Likewise.
3475         * modules/carray-list (License): Likewise.
3476         * modules/linked-list (License): Likewise.
3477         * modules/avltree-list (License): Likewise.
3478         * modules/rbtree-list (License): Likewise.
3479         * modules/oset (License): Likewise.
3480         * modules/array-oset (License): Likewise.
3481         * modules/avltree-oset (License): Likewise.
3482         * modules/rbtree-oset (License): Likewise.
3483         * modules/omap (License): Likewise.
3484         * modules/array-omap (License): Likewise.
3485         * modules/avltree-omap (License): Likewise.
3486         * modules/rbtree-omap (License): Likewise.
3488 2020-07-20  Bruno Haible  <bruno@clisp.org>
3490         oset: Add an 'update' operation.
3491         * lib/gl_array_oset.c (gl_array_update): New function.
3492         (gl_array_oset_implementation): Use it.
3493         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3494         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3495         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
3496         extracted from gl_tree_nx_add_before.
3497         (gl_tree_nx_add_before): Invoke it.
3498         (gl_tree_add_node_after): New function, extracted from
3499         gl_tree_nx_add_after.
3500         (gl_tree_nx_add_after): Invoke it.
3501         (gl_tree_remove_node_no_free): New function, extracted from
3502         gl_tree_remove_node.
3503         (gl_tree_remove_node): Invoke it.
3504         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
3505         extracted from gl_tree_nx_add_before.
3506         (gl_tree_nx_add_before): Invoke it.
3507         (gl_tree_add_node_after): New function, extracted from
3508         gl_tree_nx_add_after.
3509         (gl_tree_nx_add_after): Invoke it.
3510         (gl_tree_remove_node_no_free): New function, extracted from
3511         gl_tree_remove_node.
3512         (gl_tree_remove_node): Invoke it.
3513         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
3514         from gl_tree_iterator_next.
3515         (gl_tree_iterator_next): Invoke it.
3516         (gl_tree_prev_node, gl_tree_update): New functions.
3517         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3518         (gl_avltree_oset_implementation): Use gl_tree_update.
3519         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3520         (gl_rbtree_oset_implementation): Use gl_tree_update.
3521         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
3522         (gl_oset_update): New function.
3523         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
3524         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
3525         * modules/rbtree-oset (configure.ac): Likewise.
3526         * tests/test-oset-update.h: New file.
3527         * tests/test-array_oset.c: Include test-oset-update.h.
3528         (main): Invoke test_update.
3529         * tests/test-avltree_oset.c: Likewise.
3530         * tests/test-rbtree_oset.c: Likewise.
3531         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
3532         * modules/avltree-oset-tests (Files): Likewise.
3533         * modules/rbtree-oset-tests (Files): Likewise.
3534         * tests/test-oset-c++.cc (action): New function.
3535         (main): Test the 'update' member function.
3537 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3539         md5, sha1, sha256, sha512: pacify Autoconf 2.70
3540         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
3541         shell if, so that the argument to AC_CHECK_HEADERS is
3542         a simple string that does not require shell evaluation.
3543         This fixes a warning generated by Autoconf 2.69b.
3545 2020-07-12  Bruno Haible  <bruno@clisp.org>
3547         libgmp: Avoid warning when --without-libgmp is used.
3548         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
3549         GCC >= 8, not for GCC >= 4.6.
3551 2020-07-12  Bruno Haible  <bruno@clisp.org>
3553         libgmp: Link to the correct shared library.
3554         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
3555         * modules/libgmp (Depends-on): Add havelib.
3556         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
3557         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
3559 2020-07-12  Bruno Haible  <bruno@clisp.org>
3561         libgmp tests: Add some safety checks.
3562         * modules/libgmp-tests (Depends-on): Add verify.
3563         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
3564         (main): Verify that gmp.h and libgmp versions match.
3566 2020-07-10  Bruno Haible  <bruno@clisp.org>
3568         unicodeio: Fix wrong result on NetBSD.
3569         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
3570         characters also on NetBSD.
3572 2020-07-09  Bruno Haible  <bruno@clisp.org>
3574         unicodeio: Fix wrong result on Solaris 11.
3575         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
3576         via Akim Demaille <akim.demaille@gmail.com> in
3577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
3578         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
3579         characters on Solaris.
3580         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
3581         UTF-8 output or the specified fallback.
3583 2020-07-08  Bruno Haible  <bruno@clisp.org>
3585         unicodeio: Add tests.
3586         * tests/test-unicodeio.c: New file.
3587         * tests/test-unicodeio1.sh: New file.
3588         * tests/test-unicodeio2.sh: New file.
3589         * tests/test-unicodeio3.sh: New file.
3590         * modules/unicodeio-tests: New file.
3592 2020-07-08  Bruno Haible  <bruno@clisp.org>
3594         unicodeio: Document link requirements.
3595         * modules/unicodeio (Link): New section.
3597 2020-07-07  Bruno Haible  <bruno@clisp.org>
3599         doc: Remove support for some very old platforms.
3600         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
3601         * doc/posix-functions/memcpy.texi: Likewise.
3602         * doc/posix-functions/memmove.texi: Likewise.
3603         * doc/posix-functions/memset.texi: Likewise.
3604         * doc/posix-functions/getcwd.texi: Likewise.
3606         memchr: Remove support for some very old platforms.
3607         * m4/memchr-obsolete.m4: Remove file.
3608         * modules/memchr-obsolete: Remove file.
3609         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
3610         absent. Don't define HAVE_MEMCHR.
3611         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
3612         * modules/memchr (Depends-on): Remove memchr-obsolete.
3613         (configure.ac): Assume HAVE_MEMCHR is 1.
3614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3615         HAVE_MEMCHR.
3616         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
3617         * doc/posix-functions/memchr.texi: Don't mention module
3618         'memchr-obsolete'.
3619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
3620         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
3621         * modules/strnlen (Depends-on): Remove memchr-obsolete.
3623         dup2: Remove support for some very old platforms.
3624         * m4/dup2-obsolete.m4: Remove file.
3625         * modules/dup2-obsolete: Remove file.
3626         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
3627         Don't define HAVE_DUP2.
3628         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
3629         * lib/dup2.c: Likewise.
3630         * modules/dup2 (Depends-on, configure.ac): Likewise.
3631         (Depends-on): Remove dup2-obsolete.
3632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
3633         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
3634         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
3636 2020-07-07  Bruno Haible  <bruno@clisp.org>
3638         canonicalize: Trim module dependencies.
3639         * lib/hash-triple.h: Group declarations.
3640         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
3641         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
3642         (STREQ): Remove macro.
3643         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
3644         * modules/hash-triple-simple: New file, based on modules/hash-triple.
3645         * modules/hash-triple (Files): Remove lib/hash-triple.h.
3646         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
3647         * modules/canonicalize (Depends-on): Remove hash-triple. Add
3648         hash-triple-simple.
3649         * modules/file-set (Depends-on): Likewise.
3651 2020-07-07  Bruno Haible  <bruno@clisp.org>
3653         Clarify dependencies to double-slash-root.
3654         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
3655         (Depends-on): Add double-slash-root.
3656         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
3657         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
3659 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3661         libgmp: new module
3662         The idea is to let programs simply include <gmp.h>, and
3663         so long as they live within the mini-gmp subset they need
3664         not worry about whether the GMP libraries are installed.
3665         * MODULES.html.sh: Mention it.
3666         * config/srclist.txt: Mention files copied from GMP source.
3667         * config/srclistvars.sh (GMP): New var.
3668         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
3669         * modules/libgmp-tests, tests/test-libgmp.c: New files.
3670         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
3672 2020-07-05  Bruno Haible  <bruno@clisp.org>
3674         mkancesdirs: Trim module dependencies.
3675         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
3676         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
3678 2020-07-05  Bruno Haible  <bruno@clisp.org>
3680         getprogname: Trim module dependencies.
3681         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
3682         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
3683         basename-lgpl.
3685 2020-07-05  Bruno Haible  <bruno@clisp.org>
3687         filenamecat-lgpl: Trim module dependencies.
3688         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
3689         dirname.h.
3690         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
3691         basename-lgpl, filename.
3693 2020-07-05  Bruno Haible  <bruno@clisp.org>
3695         backupfile, backup-rename: Trim module dependencies.
3696         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
3697         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
3698         basename-lgpl.
3699         * modules/backup-rename (Depends-on): Likewise.
3701 2020-07-05  Bruno Haible  <bruno@clisp.org>
3703         argp: Trim module dependencies.
3704         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
3705         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
3707 2020-07-05  Bruno Haible  <bruno@clisp.org>
3709         basename-lgpl: New module.
3710         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
3711         lib/basename-lgpl.c.
3712         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
3713         <stdbool.h>, filename.h.
3714         (last_component): Rename a local variable.
3715         * lib/dirname.h: Include basename-lgpl.h.
3716         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
3717         (last_component, base_len): Remove declarations.
3718         * modules/basename-lgpl: New file.
3719         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
3720         (Depends-on): Add basename-lgpl. Remove double-slash-root.
3721         (Makefile.am): Don't compile basename-lgpl.c.
3722         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
3723         not 'dirname'.
3725 2020-07-05  Bruno Haible  <bruno@clisp.org>
3727         dirname, dirname-lgpl: Simplify.
3728         * m4/dirname.m4: Remove file.
3729         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
3730         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
3731         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
3733 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
3735         tests: avoid shadowing warning
3736         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
3738 2020-07-05  Bruno Haible  <bruno@clisp.org>
3740         supersede: Add tests.
3741         * tests/test-supersede.c: New file.
3742         * tests/test-supersede-open.h: New file.
3743         * tests/test-supersede-fopen.h: New file.
3744         * modules/supersede-tests: New file.
3746         supersede: New module.
3747         * lib/supersede.h: New file.
3748         * lib/supersede.c: New file.
3749         * m4/supersede.m4: New file.
3750         * modules/supersede: New file.
3752 2020-07-05  Bruno Haible  <bruno@clisp.org>
3754         Add some copyright headers.
3755         * lib/dev-ino.h: Add copyright header.
3756         * lib/di-set.h: Likewise.
3757         * lib/fchown-stub.c: Likewise.
3758         * lib/file-set.h: Likewise.
3759         * lib/hash-triple.h: Likewise.
3760         * lib/idcache.h: Likewise.
3761         * lib/ino-map.h: Likewise.
3762         * lib/mkancesdirs.h: Likewise.
3763         * lib/scratch_buffer.h: Likewise.
3764         * lib/se-context.in.h: Likewise.
3765         * lib/stdopen.h: Likewise.
3766         * lib/userspec.h: Likewise.
3768 2020-07-04  Bruno Haible  <bruno@clisp.org>
3770         getrandom: Relicense under LGPLv2+.
3771         Paul Eggert's approval is in
3772         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
3773         * modules/getrandom (License): Change to LGPLv2+.
3775 2020-07-04  Bruno Haible  <bruno@clisp.org>
3777         getumask: Add tests.
3778         * tests/test-getumask.c: New file.
3779         * modules/getumask-tests: New file.
3781         getumask: New module.
3782         * lib/sys_stat.in.h (getumask): New declaration.
3783         * lib/getumask.c: New file.
3784         * m4/getumask.m4: New file.
3785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
3786         declared.
3787         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
3788         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
3789         HAVE_GETUMASK.
3790         * modules/getumask: New file.
3791         * tests/test-sys_stat-c++.cc (getumask): Check signature.
3792         * doc/glibc-functions/getumask.texi: New file.
3793         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
3795 2020-07-04  Bruno Haible  <bruno@clisp.org>
3797         clean-temp: Add support for temporary files with given mode.
3798         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
3799         * lib/clean-temp.c (struct try_create_file_params): New type.
3800         (try_create_file): New function.
3801         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
3802         gen_tempname.
3804 2020-07-04  Bruno Haible  <bruno@clisp.org>
3806         clean-temp: Document limitations.
3807         * lib/clean-temp.h: Document limitations.
3809 2020-07-04  Bruno Haible  <bruno@clisp.org>
3811         clean-temp: Add support for temporary files with unpredictable names.
3812         * lib/clean-temp.h (gen_register_open_temp): New declaration.
3813         * lib/clean-temp.c: Include tempname.h.
3814         (gen_register_open_temp): New function.
3815         * modules/tempname (configure.ac): Define a module indicator.
3817 2020-07-04  Bruno Haible  <bruno@clisp.org>
3819         clean-temp: Add support for temporary files anywhere in the file system.
3820         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
3821         cleanup_temporary_file): New declarations.
3822         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
3823         variables.
3824         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
3825         (dir_cleanup_list): Renamed from cleanup_list.
3826         (cleanup_action): Process the file_cleanup_list as well.
3827         (do_init_clean_temp): New function.
3828         (clean_temp_once): New variable.
3829         (init_clean_temp): New function.
3830         (create_temp_dir): Invoke it.
3831         (register_temporary_file, unregister_temporary_file,
3832         cleanup_temporary_file): New functions.
3833         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
3834         argument.
3836 2020-07-04  Bruno Haible  <bruno@clisp.org>
3838         clean-temp: Improve comments.
3839         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3840         fwriteerror_temp, close_stream_temp): Clarify intended use.
3841         * lib/clean-temp.c: Likewise.
3843 2020-07-04  Bruno Haible  <bruno@clisp.org>
3845         clean-temp: Make multithread-safe, part 2.
3846         * lib/fatal-signal.h: Include <signal.h>.
3847         (get_fatal_signal_set): New declaration.
3848         * lib/fatal-signal.c (get_fatal_signal_set): New function.
3849         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
3850         (struct closeable_fd): New type.
3851         (fatal_signal_set): New variable.
3852         (init_fatal_signal_set): New function.
3853         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
3854         (cleanup_action): Invoke asyncsafe_close instead of close.
3855         (create_temp_dir): Invoke init_fatal_signal_set.
3856         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
3857         element.
3858         (unregister_fd): Remove function.
3859         (close_temp): Cleanup descriptors list on the fly. Invoke
3860         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
3861         (fclose_variant_temp): New function.
3862         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
3863         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
3865 2020-07-04  Bruno Haible  <bruno@clisp.org>
3867         clean-temp: Make multithread-safe, part 1.
3868         * lib/clean-temp.c: Include glthread/lock.h.
3869         (cleanup_list_lock): New variable.
3870         (register_temp_file, unregister_temp_file, register_temp_subdir,
3871         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
3872         (create_temp_dir): Likewise. Don't free the old array.
3873         (descriptors_lock): New variable.
3874         (register_fd, unregister_fd): Use it.
3875         * modules/clean-temp (Depends-on): Add lock.
3877 2020-07-04  Bruno Haible  <bruno@clisp.org>
3879         fatal-signal: Make multithread-safe.
3880         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3881         (do_init_fatal_signal_set): New function, extracted from
3882         init_fatal_signal_set.
3883         (fatal_signal_set_once): New variable.
3884         (init_fatal_signal_set): Use gl_once.
3886 2020-07-03  Bruno Haible  <bruno@clisp.org>
3888         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
3889         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
3890         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
3891         <bcrypt.h>.
3893 2020-07-03  Bruno Haible  <bruno@clisp.org>
3895         dfa tests: Follow common file naming conventions.
3896         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
3897         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
3898         * tests/test-dfa-invalid-char-class.sh: Renamed from
3899         tests/dfa-invalid-char-class.sh. Update.
3900         * modules/dfa-tests (Files, Makefile.am): Update.
3902 2020-07-03  Bruno Haible  <bruno@clisp.org>
3904         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
3905         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
3906         the GCC extended asm syntax also for the Sun Studio 12 compilers.
3908 2020-07-03  Bruno Haible  <bruno@clisp.org>
3910         asyncsafe-spin: Reduce code duplication.
3911         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
3912         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
3913         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
3915 2020-07-03  Bruno Haible  <bruno@clisp.org>
3917         lchmod: Simplify after 2020-02-22 change.
3918         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
3920 2020-07-03  Bruno Haible  <bruno@clisp.org>
3922         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
3923         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
3925 2020-07-03  Bruno Haible  <bruno@clisp.org>
3927         dfa: Make sure the compiler does not barf on 'inline'.
3928         * modules/dfa (configure.ac): Require AC_C_INLINE.
3930 2020-07-03  Bruno Haible  <bruno@clisp.org>
3932         bitset: Make sure the compiler does not barf on 'inline'.
3933         * modules/bitset (configure.ac): New section.
3935 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
3937         manywarnings: improve port to GCC 10.1
3938         * build-aux/gcc-warning.spec: Also list warnings that are default
3939         or are enabled by already-given flags.  This lets us speed up
3940         checking for attributes, and makes the generated compilation
3941         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
3942         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
3943         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
3944         to shell variables that may have long values.
3945         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
3946         consequences of other flags, to speed up checking and
3947         shorten commands.
3949         tests: pacify gcc -fanalyzer on zerosize_ptr
3950         * tests/test-memcasecmp.c (main):
3951         * tests/test-memchr.c (main):
3952         * tests/test-memchr2.c (main):
3953         * tests/test-memcmp.c (main):
3954         * tests/test-memmem.c (main):
3955         * tests/test-memrchr.c (main):
3956         * tests/unistr/test-chr.h (main):
3957         * tests/unistr/test-cmp.h (test_cmp):
3958         Check whether zerosize_ptr returns NULL before using it.
3959         This pacifies GCC 10.1’s new fanalyzer option, and matches
3960         other uses of zerosize_ptr.
3962 2020-07-01  Bruno Haible  <bruno@clisp.org>
3964         asyncsafe-spin: Add tests.
3965         * tests/test-asyncsafe-spin1.c: New file.
3966         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
3967         tests/test-pthread-spin.c.
3968         * modules/asyncsafe-spin-tests: New file.
3970 2020-07-01  Bruno Haible  <bruno@clisp.org>
3972         asyncsafe-spin: New module.
3973         * lib/asyncsafe-spin.h: New file.
3974         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
3975         * modules/asyncsafe-spin: New file.
3977 2020-07-01  Bruno Haible  <bruno@clisp.org>
3979         windows-spin: Fix race condition on multiprocessor systems.
3980         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
3982 2020-07-01  Bruno Haible  <bruno@clisp.org>
3984         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
3985         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3986         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
3987         an implementation based on other GCC built-ins.
3989 2020-07-01  Bruno Haible  <bruno@clisp.org>
3991         pthread-spin: Optimize fallback for GCC versions >= 4.7.
3992         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3993         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
3994         lock byte.
3996 2020-07-01  Bruno Haible  <bruno@clisp.org>
3998         pthread-spin: Add error checking.
3999         * lib/pthread-spin.c: Include <stdbool.h>.
4000         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
4001         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
4002         the unlocks.
4003         * modules/pthread-spin (Depends-on): Add stdbool.
4005 2020-07-01  Bruno Haible  <bruno@clisp.org>
4007         pthread-spin: Add tests.
4008         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
4009         * modules/pthread-spin-tests: New file.
4011 2020-07-01  Bruno Haible  <bruno@clisp.org>
4013         tests: Reduce code duplication.
4014         * tests/atomic-int-posix.h: New file, extracted from
4015         tests/test-pthread-mutex.c.
4016         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
4017         * tests/test-pthread-rwlock.c: Likewise.
4018         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
4019         * modules/pthread-rwlock-tests (Files): Likewise.
4021 2020-07-01  Bruno Haible  <bruno@clisp.org>
4023         tests: Refactor.
4024         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
4025         * tests/test-mtx.c: Include it. Remove the corresponding code.
4026         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
4028 2020-07-01  Bruno Haible  <bruno@clisp.org>
4030         tests: Refactor.
4031         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
4032         * tests/test-lock.c: Include it. Remove the corresponding code.
4033         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
4035 2020-06-29  Bruno Haible  <bruno@clisp.org>
4037         sys_socket: Don't define socklen_t if it is already defined on mingw.
4038         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
4039         <https://savannah.gnu.org/bugs/?57725>,
4040         by Rahul Das <bokul_4u@yahoo.com> in
4041         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
4042         and by Eli Zaretskii <eliz@gnu.org> in
4043         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
4044         * lib/sys_socket.in.h (socklen_t): Remove definition.
4046 2020-06-29  Bruno Haible  <bruno@clisp.org>
4048         alloca-opt: Fix warning on mingw.
4049         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
4050         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
4051         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
4052         whether alloca is defined.
4054 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4056         getrandom: do not depend on ‘open’ on mingw
4057         Similarly for at-internal, getloadavg.  These modules do not call
4058         the ‘open’ function when they are compiled on mingw.  On mingw,
4059         this avoids having to compile open.c when building Emacs, which
4060         does its own thing with ‘open’.
4061         * modules/at-internal, modules/getloadavg, modules/getrandom:
4062         (Depends-on): Don’t depend on ‘open’ on mingw.
4063         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
4064         * modules/getloadavg (Depends-on):
4065         Depend on intprops, open, stdbool, stdlib only if compiling
4066         getloadavg.c.
4068 2020-06-28  Bruno Haible  <bruno@clisp.org>
4070         doc: Add a note about sigprocmask vs. pthread_sigmask.
4071         * doc/posix-functions/sigprocmask.texi: Add note.
4073 2020-06-28  Bruno Haible  <bruno@clisp.org>
4075         getrandom: Fix compilation errors on older versions of mingw.
4076         Reported by Eli Zaretskii <eliz@gnu.org> in
4077         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
4078         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
4079         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
4080         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
4081         BCryptGenRandom ourselves.
4083 2020-06-28  Bruno Haible  <bruno@clisp.org>
4085         clean-temp: Fix wrong errno in error message.
4086         * lib/clean-temp.c (create_temp_dir): Save errno around
4087         unblock_fatal_signals call.
4089 2020-06-27  Bruno Haible  <bruno@clisp.org>
4091         fatal-signal: Make multithread-safe.
4092         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
4094 2020-06-27  Bruno Haible  <bruno@clisp.org>
4096         clean-temp: Don't force deletion of temporary files on native Windows.
4097         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
4098         argument.
4099         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
4100         * NEWS: Mention the change.
4101         * lib/javacomp.c (write_temp_file): Update.
4103 2020-06-27  Bruno Haible  <bruno@clisp.org>
4105         fatal-signal: Make multithread-safe.
4106         * lib/fatal-signal.c: Include glthread/lock.h.
4107         (at_fatal_signal_lock): New variable.
4108         (at_fatal_signal): Use it.
4109         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
4110         (block_fatal_signals, unblock_fatal_signals): Use them.
4111         * modules/fatal-signal (Depends-on): Add lock.
4113 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
4115         getloadavg: don’t depend on fopen-gnu
4116         This is for Emacs, which does not need fopen-gnu for anything else,
4117         and which would need it only on a NetBSD platform where getloadavg
4118         does not work (does that even happen?).
4119         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
4120         * modules/getloadavg (Depends-on): Remove fopen-gnu.
4122         * tests/test-getloadavg.c (main): Fix typo.
4124 2020-06-27  Bruno Haible  <bruno@clisp.org>
4126         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
4127         * modules/tempname (Link): New section.
4128         * modules/mkdtemp (Link): Likewise.
4129         * modules/clean-temp (Link): Likewise.
4130         * modules/mkstemp (Link): Likewise.
4131         * modules/stdlib-safer (Link): Likewise.
4132         * modules/mkstemps (Link): Likewise.
4133         * modules/mkostemp (Link): Likewise.
4134         * modules/mkostemps (Link): Likewise.
4135         * modules/tmpfile (Link): Likewise.
4136         * modules/tmpfile-safer (Link): Likewise.
4137         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
4138         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
4139         $(LIB_GETRANDOM).
4140         * NEWS: Mention the changes.
4142 2020-06-27  Bruno Haible  <bruno@clisp.org>
4144         fopen-gnu: Simplify code.
4145         * lib/fopen.c: Include <stdbool.h>.
4146         (rpl_fopen): Use a single variable open_flags instead of
4147         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
4148         * modules/fopen (Depends-on): Add stdbool.
4150 2020-06-26  Bruno Haible  <bruno@clisp.org>
4152         canonicalize: Improve documentation.
4153         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
4154         return convention.
4156 2020-06-26  Bruno Haible  <bruno@clisp.org>
4158         xgetcwd: Improve documentation.
4159         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
4161 2020-06-26  Bruno Haible  <bruno@clisp.org>
4163         getcwd: Improve documentation.
4164         * lib/getcwd.c (__getcwd): Document the failure return convention.
4166 2020-06-26  Bruno Haible  <bruno@clisp.org>
4168         fchdir: Improve documentation.
4169         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
4170         convention.
4172 2020-06-26  Bruno Haible  <bruno@clisp.org>
4174         filenamecat-lgpl: Set errno upon failure.
4175         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
4176         return convention.
4177         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
4179 2020-06-26  Bruno Haible  <bruno@clisp.org>
4181         areadlink-with-size: Set errno upon failure.
4182         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
4183         fails.
4184         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
4186 2020-06-26  Bruno Haible  <bruno@clisp.org>
4188         copy-file: Shrink dependencies.
4189         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
4190         qcopy-acl.
4192 2020-06-26  Bruno Haible  <bruno@clisp.org>
4194         doc: Mention declaration fixes implemented by some modules.
4195         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
4196         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
4197         declaration appear in <unistd.h>.
4198         * doc/posix-functions/dup.texi: Likewise.
4199         * doc/posix-functions/dup2.texi: Likewise.
4200         * doc/posix-functions/gethostname.texi: Likewise.
4201         * doc/posix-functions/isatty.texi: Likewise.
4202         * doc/posix-functions/lseek.texi: Likewise.
4203         * doc/posix-functions/unlink.texi: Likewise.
4204         * doc/posix-functions/read.texi: Mention the module 'read'.
4205         * doc/posix-functions/write.texi: Mention the effects of the module
4206         'write'.
4208 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
4210         c-dtoastr, c-ldtoastr: new modules
4211         These modules provide the same functionality as the modules
4212         dtoastr and ldtoastr except for the formatting taking place in the
4213         C locale.
4214         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
4215         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
4216         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
4217         defined.  Use c_snprintf and c_strtod/c_strtold instead of
4218         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
4219         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
4220         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
4221         modules/c-ldtoastr-tests: New files.
4222         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
4223         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
4225 2020-06-21  Bruno Haible  <bruno@clisp.org>
4227         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
4228         * lib/tzset.c: Include <stdlib.h>, <string.h>.
4230 2020-06-16  Bruno Haible  <bruno@clisp.org>
4232         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
4233         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
4235 2020-06-16  Bruno Haible  <bruno@clisp.org>
4237         thread, thrd: Avoid a compiler warning.
4238         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
4240 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
4242         windows-thread: Avoid a compiler warning.
4243         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
4244         void.
4245         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
4247 2020-06-15  Bruno Haible  <bruno@clisp.org>
4249         unictype/joininggroup-name: Fix warning on 64-bit mingw.
4250         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
4251         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
4252         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
4253         first.
4255 2020-06-06  Bruno Haible  <bruno@clisp.org>
4257         calloc-gnu tests: Avoid a test failure with clang.
4258         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
4259         'volatile', to defeat compiler optimizations.
4261 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4263         getloadavg: fix double-increment bug
4264         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
4265         Linux without glibc, Android, Cygwin.  This fixes a bug I
4266         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
4267         Problem and fix reported by Semen Verchenko in:
4268         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
4270         tempname: use getrandom, not getentropy
4271         This removes a dependency, as getentropy depends on getrandom.
4272         * lib/tempname.c: Include sys/random.h instead of unistd.h.
4273         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
4274         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
4276 2020-06-01  Bruno Haible  <bruno@clisp.org>
4278         doc: New chapter 'Multithreading'.
4279         * doc/multithread.texi: New file.
4280         * doc/gnulib.texi: Include it.
4282 2020-06-01  Bruno Haible  <bruno@clisp.org>
4284         doc: Move 'Running self-tests under valgrind' section.
4285         * doc/gnulib.texi (Build Infrastructure Modules): Include
4286         valgrind-tests.texi here...
4287         (Miscellaneous Notes): ... not here.
4289 2020-06-01  Bruno Haible  <bruno@clisp.org>
4291         doc: Move 'Visual Studio Compatibility' section.
4292         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
4293         here...
4294         (Build Infrastructure Modules): ... not here.
4296 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4298         doc: improve randomness discussion
4299         Inspired by comments from Jeffrey Walton in:
4300         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
4301         * doc/glibc-functions/getentropy.texi (getentropy):
4302         * doc/glibc-functions/getrandom.texi (getrandom):
4303         Improve discussion of problems with "random" data,
4304         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
4306 2020-06-01  Bruno Haible  <bruno@clisp.org>
4308         doc: Fix Texinfo syntax error.
4309         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
4311 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
4313         doc: Change '.' to '@.' where appropriate.
4314         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
4315         * doc/glibc-functions/fstatfs.texi: Likewise.
4316         * doc/glibc-functions/fts_children.texi: Likewise.
4317         * doc/glibc-functions/fts_read.texi: Likewise.
4318         * doc/glibc-functions/getdirentries.texi: Likewise.
4319         * doc/glibc-functions/mkostemp.texi: Likewise.
4320         * doc/glibc-functions/mkostemps.texi: Likewise.
4321         * doc/glibc-functions/mkstemps.texi: Likewise.
4322         * doc/glibc-functions/preadv.texi: Likewise.
4323         * doc/glibc-functions/pwritev.texi: Likewise.
4324         * doc/glibc-functions/sendfile.texi: Likewise.
4325         * doc/glibc-functions/statfs.texi: Likewise.
4326         * doc/gnulib-intro.texi: Likewise.
4327         * doc/gnulib-tool.texi: Likewise.
4328         * doc/intprops.texi: Likewise.
4329         * doc/lib-symbol-visibility.texi: Likewise.
4330         * doc/licenses-texi.texi: Likewise.
4331         * doc/pastposix-functions/bcmp.texi: Likewise.
4332         * doc/pastposix-functions/bcopy.texi: Likewise.
4333         * doc/pastposix-functions/bzero.texi: Likewise.
4334         * doc/pastposix-functions/ecvt.texi: Likewise.
4335         * doc/pastposix-functions/fcvt.texi: Likewise.
4336         * doc/pastposix-functions/ftime.texi: Likewise.
4337         * doc/pastposix-functions/gcvt.texi: Likewise.
4338         * doc/pastposix-functions/getwd.texi: Likewise.
4339         * doc/pastposix-functions/index.texi: Likewise.
4340         * doc/pastposix-functions/mktemp.texi: Likewise.
4341         * doc/pastposix-functions/rindex.texi: Likewise.
4342         * doc/pastposix-functions/wcswcs.texi: Likewise.
4343         * doc/posix-functions/aio_cancel.texi: Likewise.
4344         * doc/posix-functions/aio_error.texi: Likewise.
4345         * doc/posix-functions/aio_fsync.texi: Likewise.
4346         * doc/posix-functions/aio_read.texi: Likewise.
4347         * doc/posix-functions/aio_return.texi: Likewise.
4348         * doc/posix-functions/aio_suspend.texi: Likewise.
4349         * doc/posix-functions/aio_write.texi: Likewise.
4350         * doc/posix-functions/creat.texi: Likewise.
4351         * doc/posix-functions/ctime.texi: Likewise.
4352         * doc/posix-functions/daylight.texi: Likewise.
4353         * doc/posix-functions/fgetpos.texi: Likewise.
4354         * doc/posix-functions/fopen.texi: Likewise.
4355         * doc/posix-functions/freopen.texi: Likewise.
4356         * doc/posix-functions/fseeko.texi: Likewise.
4357         * doc/posix-functions/fsetpos.texi: Likewise.
4358         * doc/posix-functions/fstatat.texi: Likewise.
4359         * doc/posix-functions/fstatvfs.texi: Likewise.
4360         * doc/posix-functions/ftello.texi: Likewise.
4361         * doc/posix-functions/ftruncate.texi: Likewise.
4362         * doc/posix-functions/getrlimit.texi: Likewise.
4363         * doc/posix-functions/lio_listio.texi: Likewise.
4364         * doc/posix-functions/localtime.texi: Likewise.
4365         * doc/posix-functions/lseek.texi: Likewise.
4366         * doc/posix-functions/mkstemp.texi: Likewise.
4367         * doc/posix-functions/mktime.texi: Likewise.
4368         * doc/posix-functions/open.texi: Likewise.
4369         * doc/posix-functions/openat.texi: Likewise.
4370         * doc/posix-functions/opendir.texi: Likewise.
4371         * doc/posix-functions/pread.texi: Likewise.
4372         * doc/posix-functions/pwrite.texi: Likewise.
4373         * doc/posix-functions/readdir.texi: Likewise.
4374         * doc/posix-functions/readdir_r.texi: Likewise.
4375         * doc/posix-functions/scandir.texi: Likewise.
4376         * doc/posix-functions/seekdir.texi: Likewise.
4377         * doc/posix-functions/setrlimit.texi: Likewise.
4378         * doc/posix-functions/statvfs.texi: Likewise.
4379         * doc/posix-functions/strftime.texi: Likewise.
4380         * doc/posix-functions/telldir.texi: Likewise.
4381         * doc/posix-functions/timezone.texi: Likewise.
4382         * doc/posix-functions/tmpfile.texi: Likewise.
4383         * doc/posix-functions/truncate.texi: Likewise.
4384         * doc/posix-functions/tzname.texi: Likewise.
4385         * doc/posix-functions/wcsftime.texi: Likewise.
4386         * doc/windows-sockets.texi: Likewise.
4388 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4390         getrandom-tests: do not assume GRND_RANDOM yields short read
4391         * tests/test-getrandom.c (main): Omit assertion that
4392         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
4393         when b’s size is 100000.  This assertion fails with Linux kernel
4394         5.6.13, as that kernel ignores the GRND_RANDOM flag.
4395         The separate blocking pool is going away in the Linux kernel, and
4396         they’ve added a flag GRND_INSECURE instead; see:
4397         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
4398         The assertion was iffy anyway; what’s to prevent a kernel from
4399         lazily filling a large buffer with random bytes?
4401         read-file-test: pacify --enable-gcc-warnings
4402         * tests/test-read-file.c (test_read_file): Now static.
4404         tempname: merge from glibc and coreutils
4405         Also, merge in Gnulib’s more-recent methods of making it easier
4406         to share between Gnulib and glibc, and fix a few randomness
4407         glitches.
4408         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
4409         (__set_errno): Remove; libc-config.h does that for us.
4410         Do not include <sys/time.h>.
4411         (__secure_getenv) [_LIBC]: New macro.
4412         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
4413         (RANDOM_BITS): Rewrite.
4414         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
4415         (random_value): New typedef.
4416         (try_file, try_dir, try_nocreate): Move up.
4417         (gen_tempname_len, try_tempname_len): New functions.
4418         (gen_tempname_len): Use a constant array rather than a switch.
4419         (try_tempname_len): Don’t assume string length fits in int.
4420         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
4421         has enough entropy (it’s a bit short).
4422         (__gen_tempname): Rewrite in terms of gen_tempname_len.
4423         (__try_tempname): Rewrite in terms of try_tempname_len.
4424         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
4425         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
4426         Add getentropy, libc-config.
4428 2020-05-31  Bruno Haible  <bruno@clisp.org>
4430         getrandom, getentropy: Mention the crypto/gc-random module.
4431         Suggested by Simon Josefsson in
4432         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
4433         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
4434         crypto/gc-random module.
4435         * doc/glibc-functions/getentropy.texi: Likewise.
4437 2020-05-31  Bruno Haible  <bruno@clisp.org>
4439         getentropy: Enhance tests.
4440         * tests/test-getentropy.c (main): Add one more test.
4441         * tests/test-unistd-c++.cc: Check the signature of getentropy.
4443 2020-05-31  Bruno Haible  <bruno@clisp.org>
4445         getentropy: Work around a macOS and Solaris problem.
4446         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
4447         'getentropy' module.
4448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4449         UNISTD_H_HAVE_SYS_RANDOM_H.
4450         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
4451         UNISTD_H_HAVE_SYS_RANDOM_H.
4452         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
4453         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
4454         problem. List more platforms.
4456 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4458         fnmatch: merge from glibc
4459         Also, merge in Gnulib’s more-recent methods of making it easier
4460         to share between Gnulib and glibc.
4461         * lib/fnmatch.c: Reorder includes to match glibc better.
4462         Include libc-config.h instead of config.h.
4463         Include alloca.h only if _LIBC || HAVE_ALLOCA.
4464         Do not include "../locale/elem-hash.h" if _LIBC.
4465         Define macros for btowc, etc. if _LIBC.  All uses simplified.
4466         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
4467         Include intprops.h, since glibc has it now.
4468         (SIZE_MAX): Remove; use (size_t) -1 instead.
4469         Omit the "Comment out all this code" ifdef, since Gnulib
4470         has never really needed it.
4471         (STREQ): Remove; no longer used.
4472         (__libc_use_alloca, alloca, alloca_account): Define as
4473         needed if !_LIBC.
4474         (ISWCTYPE): Remove; all uses replaced by iswctype.
4475         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
4476         (internal_function): Remove.  All uses removed.
4477         (STRUCT): New macro.
4478         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
4479         (WMEMCMP): New macro.
4480         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
4481         and <locale/weightwc.h>.
4482         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
4483         __builtin_expect.  Check for integer overflow more
4484         systematically.  Account for alloca storage better when
4485         recursive.  Use strnlen instead of strlen for efficiency.
4486         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
4487         (struct STRUCT): New type.
4488         (FCT, EXT): New ENDS and ALLOCA_USED args.
4489         All callers changed.
4490         (FCT): Prefer __glibc_unlikely to __builtin_expect.
4491         Simplify by assuming WIDE_CHAR_SUPPORT.
4492         Copy _LIBC code from glibc without worrying Gnulib compatibility.
4493         Cast cold to UCHAR to avoid signedness warning.
4494         (END): Check for invalid pattern.
4495         (EXT): Improve alloca/malloc checking (taken from glibc),
4496         and improve it some more by using intprops.h and checking
4497         for integer overflow and using bool for booleans.
4498         * lib/libc-config.h (compat_symbol): New macro.
4499         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
4500         acceptable to non-GCC when a trailing semicolon is added.
4501         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
4502         libc-config, strnlen.  Remove alloca.
4504 2020-05-31  Bruno Haible  <bruno@clisp.org>
4506         getrandom: Doc and test tweaks.
4507         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
4508         it sets errno when failing.
4509         * tests/test-getrandom.c (main): Disable the high-quality check on those
4510         platforms on which it fails.
4511         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
4512         Cygwin to the list of platforms that don't have the function. Add a note
4513         about the quality of the result.
4514         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
4515         declaration; this is fixed by module 'getrandom'.
4517 2020-05-31  Bruno Haible  <bruno@clisp.org>
4519         getrandom: Add support for native Windows.
4520         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
4521         <wincrypt.h>.
4522         (CRYPT_VERIFY_CONTEXT): New macro.
4523         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
4524         'A'.
4525         (GetProcAddress): New macro.
4526         (BCryptGenRandomFuncType): New type.
4527         (BCryptGenRandomFunc, initialized): New variables.
4528         (initialize): New function.
4529         (getrandom): On native Windows, use <bcrypt.h> API when available, and
4530         <wincrypt.h> API as fallback.
4531         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
4532         * modules/getrandom (Link): New section.
4533         * modules/getentropy (Link): Likewise.
4534         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
4535         $(LIB_GETRANDOM).
4536         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
4537         $(LIB_GETRANDOM).
4538         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
4539         against $(LIB_GETRANDOM).
4540         * doc/glibc-functions/getrandom.texi: Mention the native Windows
4541         support.
4543 2020-05-31  Bruno Haible  <bruno@clisp.org>
4545         getrandom: Simplify the determination of the random number devices.
4546         Suggested by Paul Eggert in
4547         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
4548         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
4549         macros.
4550         * modules/getrandom (Depends-on): Remove crypto/gc-random.
4552 2020-05-31  Bruno Haible  <bruno@clisp.org>
4554         crypto/gc-random: Fix list of crypto devices for Solaris.
4555         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
4557 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
4559         list: fix GCC warnings
4560         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
4561         (gl_tree_next_node, gl_tree_node_nx_set_value)
4562         (gl_tree_previous_node, gl_tree_next_node):
4563         Mark unused arguments.
4564         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
4565         * lib/gl_anylinked_list2.h (gl_linked_node_value)
4566         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
4568         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
4569         the same variable name in nested scopes.
4571 2020-05-31  Bruno Haible  <bruno@clisp.org>
4573         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
4574         Reported by Akim Demaille in
4575         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
4576         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
4577         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
4578         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
4579         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
4580         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
4582 2020-05-30  Bruno Haible  <bruno@clisp.org>
4584         wmemchr: Relicense under LGPLv2+.
4585         * modules/wmemchr (License): Set to LGPLv2+.
4587 2020-05-30  Bruno Haible  <bruno@clisp.org>
4589         wmempcpy: New module.
4590         Reported by Paul Eggert in
4591         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
4592         * lib/wchar.in.h (wmempcpy): New declaration.
4593         * lib/wmempcpy.c: New file.
4594         * m4/wmempcpy.m4: New file.
4595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
4596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
4597         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
4598         HAVE_WMEMPCPY.
4599         * modules/wmempcpy: New file.
4600         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
4601         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
4602         * modules/mempcpy (Description): Fix typo.
4604 2020-05-30  Bruno Haible  <bruno@clisp.org>
4606         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
4607         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
4609 2020-05-30  Bruno Haible  <bruno@clisp.org>
4611         sys_random: Work around macOS bug.
4612         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
4613         <stdlib.h> before <sys/random.h>.
4614         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4615         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
4616         first.
4617         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
4619 2020-05-30  Bruno Haible  <bruno@clisp.org>
4621         getrandom: Override incompatible system function on Solaris 11.
4622         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
4623         * lib/getrandom.c (getrandom): When the system has getrandom, just
4624         invoke it.
4625         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
4626         system's getrandom function's prototype is not the expected one.
4627         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
4628         REPLACE_GETRANDOM.
4629         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
4630         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
4631         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
4632         EAGAIN.
4633         * doc/glibc-functions/getrandom.texi: Mention the new module and the
4634         Solaris problem.
4636 2020-05-30  Bruno Haible  <bruno@clisp.org>
4638         sys_random: Add C++ tests.
4639         * tests/test-sys_random-c++.cc: New file.
4640         * modules/sys_random-c++-tests: New file.
4641         * modules/sys_random-tests (Depends-on): Depend on it.
4643         sys_random: Add tests.
4644         * tests/test-sys_random.c: New file.
4645         * modules/sys_random-tests: New file.
4647         sys_random: New module.
4648         * lib/sys_random.in.h: Use the common idioms for overridable header
4649         files.
4650         * m4/sys_random_h.m4: New file.
4651         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
4652         * modules/sys_random: New file.
4653         * modules/getrandom (Files): Remove lib/sys_random.in.h.
4654         (Depends-on): Add sys_random.
4655         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
4656         gl_UNISTD_MODULE_INDICATOR.
4657         (Makefile.am): Don't generate sys/random.h here.
4658         * doc/glibc-headers/sys_random.texi: New file.
4659         * doc/gnulib.texi: Include it.
4661 2020-05-30  Bruno Haible  <bruno@clisp.org>
4663         unistd: Remove conflicting declaration of getrandom().
4664         * lib/unistd.in.h (getrandom): Remove declaration.
4665         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
4666         declared.
4667         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
4668         HAVE_GETRANDOM.
4669         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
4670         HAVE_GETRANDOM.
4672 2020-05-30  Bruno Haible  <bruno@clisp.org>
4674         getrandom: Add tests.
4675         * tests/test-getrandom.c: New file.
4676         * modules/getrandom-tests: New file.
4678 2020-05-30  Bruno Haible  <bruno@clisp.org>
4680         crypto/gc-random: Fix link error on MSVC.
4681         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
4682         * modules/crypto/gc-random (Link): New section.
4683         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
4684         $(LIB_GC_RANDOM).
4686 2020-05-30  Bruno Haible  <bruno@clisp.org>
4688         Don't assume that UNICODE is not defined.
4689         Many Windows API functions are defined differently (redirecting to a
4690         function with suffix 'W') if the application defines the macro UNICODE
4691         than by default (redirecting to a function with suffix 'A').
4692         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
4693         variant with suffix 'A'.
4694         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
4695         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
4696         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
4697         * lib/getlogin.c (GetUserName): Likewise.
4698         * lib/getlogin_r.c (GetUserName): Likewise.
4699         * lib/gettimeofday.c (LoadLibrary): Likewise.
4700         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
4701         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
4702         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
4703         * lib/mountlist.c (GetDriveType): Likewise.
4704         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
4705         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
4706         Likewise.
4707         * lib/physmem.c (GetModuleHandle): Likewise.
4708         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
4709         PeekMessage, DispatchMessage): Likewise.
4710         * lib/progreloc.c (GetModuleFileName): Likewise.
4711         * lib/putenv.c (SetEnvironmentVariable): Likewise.
4712         * lib/read.c (GetNamedPipeHandleState): Likewise.
4713         * lib/readdir.c (FindNextFile): Likewise.
4714         * lib/relocatable.c (GetModuleFileName): Likewise.
4715         * lib/rename.c (MoveFileEx): Likewise.
4716         * lib/rewinddir.c (FindFirstFile): Likewise.
4717         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
4718         PeekMessage, DispatchMessage): Likewise.
4719         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
4720         * lib/socket.c (WSASocket): Likewise.
4721         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
4722         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
4723         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
4724         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
4725         * lib/tmpdir.c (GetTempPath): Likewise.
4726         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
4727         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
4728         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
4729         * lib/windows-cond.c (CreateEvent): Likewise.
4730         * lib/windows-rwlock.c (CreateEvent): Likewise.
4731         * lib/windows-timedmutex.c (CreateEvent): Likewise.
4732         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
4733         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
4734         * lib/write.c (GetNamedPipeHandleState): Likewise.
4736 2020-05-30  Bruno Haible  <bruno@clisp.org>
4738         physmem: Fix compilation errors on MSVC.
4739         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
4740         * modules/physmem (Depends-on): Add unistd.
4742 2020-05-29  Bruno Haible  <bruno@clisp.org>
4744         gnulib-tool: Fix link errors with a particular set of modules on mingw.
4745         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
4746         LDADD a second time, after the second occurrence of libtests.a.
4747         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
4749 2020-05-29  Bruno Haible  <bruno@clisp.org>
4751         fnmatch: Rely on more gnulib modules.
4752         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
4753         wmempcpy, mempcpy.
4754         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
4755         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
4756         HAVE_MEMPCPY are all 1.
4757         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
4758         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
4760 2020-05-29  Bruno Haible  <bruno@clisp.org>
4762         Avoid dynamic lookup of Windows API functions when possible.
4763         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
4764         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
4765         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
4766         (use_win32_p): Define differently.
4767         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
4768         CreateHardLinkFunc, initialized, initialize): Don't define in a build
4769         for Windows XP or higher.
4771 2020-05-29  Daiki Ueno  <ueno@gnu.org>
4773         read-file: disable buffering if RF_SENSITIVE is set
4774         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
4775         Suggested by Glenn Strauss.
4776         (fread_file): Suggest calling setvbuf before calling this
4777         function.  Suggested by Bruno Haible.
4779 2020-05-29  Bruno Haible  <bruno@clisp.org>
4781         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
4782         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
4783         program.
4784         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
4785         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
4786         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
4787         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
4789 2020-05-29  Bruno Haible  <bruno@clisp.org>
4791         Fix compilation error on native Windows (regression from 2020-05-28).
4792         Reported by Daiki Ueno.
4793         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
4794         macro when not using dynamic loading.
4795         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
4796         QueryFullProcessImageNameFunc): Likewise.
4797         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
4798         GetFinalPathNameByHandleFunc): Likewise.
4800 2020-05-29  Daiki Ueno  <ueno@gnu.org>
4802         fopen-gnu-tests: fix "\x" escape usage
4803         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
4805 2020-05-28  Bruno Haible  <bruno@clisp.org>
4807         Avoid dynamic loading of Windows API functions when possible.
4808         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
4809         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
4810         * lib/gettimeofday.c (GetProcAddress,
4811         GetSystemTimePreciseAsFileTimeFuncType,
4812         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
4813         define in a build for Windows 8 or higher.
4814         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
4815         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
4816         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
4817         in a build for Windows Vista or higher.
4818         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
4819         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
4820         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
4822 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
4824         explicit_bzero-tests: improve -Wmissing-declarations pacification
4825         * tests/test-explicit_bzero.c: Now noinline.
4826         Suggested by Bruno Haible in:
4827         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
4829 2020-05-28  Bruno Haible  <bruno@clisp.org>
4831         Fix build errors due to read-file changes (regression from 2020-05-27).
4832         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
4833         invocation.
4834         * tests/test-sameacls.c (main): Likewise.
4835         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
4836         read_binary_file.
4837         * tests/test-pipe-filter-ii1.c (main): Likewise.
4839 2020-05-28  Bruno Haible  <bruno@clisp.org>
4841         fts: Make more robust in multithreaded applications.
4842         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
4843         * modules/fts (Depends-on): Add 'open'.
4845 2020-05-28  Bruno Haible  <bruno@clisp.org>
4847         relocatable-prog: Make more robust in multithreaded applications.
4848         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
4849         relocatable-prog-wrapper.
4850         (find_executable): Pass an O_CLOEXEC flag to open().
4851         * modules/relocatable-prog (Depends-on): Add 'open'.
4853 2020-05-28  Bruno Haible  <bruno@clisp.org>
4855         getloadavg: Make more robust in multithreaded applications.
4856         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
4857         Simplify use of O_CLOEXEC.
4858         * modules/getloadavg (Depends-on): Add 'open'.
4860 2020-05-28  Bruno Haible  <bruno@clisp.org>
4862         vma-iter: Make more robust in multithreaded applications.
4863         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
4864         open().
4865         * modules/vma-iter (Depends-on): Add 'open'.
4867 2020-05-28  Bruno Haible  <bruno@clisp.org>
4869         truncate: Make more robust in multithreaded applications.
4870         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
4872 2020-05-28  Bruno Haible  <bruno@clisp.org>
4874         pagealign_alloc: Make more robust in multithreaded applications.
4875         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
4876         open().
4877         * modules/pagealign_alloc (Depends-on): Add 'open'.
4879 2020-05-28  Bruno Haible  <bruno@clisp.org>
4881         openat: Make more robust in multithreaded applications.
4882         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
4884 2020-05-28  Bruno Haible  <bruno@clisp.org>
4886         at-internal: Make more robust in multithreaded applications.
4887         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
4888         open().
4890 2020-05-28  Bruno Haible  <bruno@clisp.org>
4892         mountlist: Make more robust in multithreaded applications.
4893         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
4894         open().
4895         * modules/mountlist (Depends-on): Add 'open'.
4897 2020-05-28  Bruno Haible  <bruno@clisp.org>
4899         login_tty: Make more robust in multithreaded applications.
4900         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
4901         * modules/login_tty (Depends-on): Add 'open'.
4903 2020-05-28  Bruno Haible  <bruno@clisp.org>
4905         javacomp: Make more robust in multithreaded applications.
4906         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
4907         open().
4908         * modules/javacomp (Depends-on): Add 'open'.
4910 2020-05-28  Bruno Haible  <bruno@clisp.org>
4912         getprogname: Make more robust in multithreaded applications.
4913         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
4914         * modules/getprogname (Depends-on): Add 'open'.
4916 2020-05-28  Bruno Haible  <bruno@clisp.org>
4918         get_progname_of: Make more robust in multithreaded applications.
4919         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
4920         open().
4921         * modules/get_progname_of (Depends-on): Add 'open'.
4923 2020-05-28  Bruno Haible  <bruno@clisp.org>
4925         get_ppid_of: Make more robust in multithreaded applications.
4926         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
4927         * modules/get_ppid_of (Depends-on): Add 'open'.
4929 2020-05-28  Bruno Haible  <bruno@clisp.org>
4931         get-rusage-as: Make more robust in multithreaded applications.
4932         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
4933         flag to open().
4934         * modules/get-rusage-as (Depends-on): Add 'open'.
4936 2020-05-28  Bruno Haible  <bruno@clisp.org>
4938         crypto/gc: Make more robust in multithreaded applications.
4939         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
4940         * modules/crypto/gc (Depends-on): Add 'open'.
4942 2020-05-28  Bruno Haible  <bruno@clisp.org>
4944         copy-file: Make more robust in multithreaded applications.
4945         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
4946         open().
4948 2020-05-28  Bruno Haible  <bruno@clisp.org>
4950         chown: Make more robust in multithreaded applications.
4951         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
4953 2020-05-28  Bruno Haible  <bruno@clisp.org>
4955         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
4956         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
4958 2020-05-28  Daiki Ueno  <ueno@gnu.org>
4960         fopen-gnu: make 'b' flag can be used with 'e' on Windows
4961         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
4962         specified on Windows.
4963         * tests/test-fopen-gnu.c (DATA): New define.
4964         (main): Add test for reading binary files with an 'e' flag.
4966 2020-05-27  Bruno Haible  <bruno@clisp.org>
4968         Don't assume that UNICODE is not defined.
4969         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
4970         differently if the application defines the macro UNICODE.
4971         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
4972         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
4973         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
4974         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
4975         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
4977 2020-05-27  Bruno Haible  <bruno@clisp.org>
4979         Improve pattern for defining _WIN32_WINNT.
4980         Newer versions of the Windows API may not only add, but also remove API
4981         functions. Therefore, when the user is e.g. building for Windows 10, we
4982         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
4983         use of APIs that were present in Windows 8 but removed in Windows 10.
4984         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
4985         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
4986         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
4987         * lib/sethostname.c (_WIN32_WINNT): Likewise.
4988         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
4990 2020-05-27  Bruno Haible  <bruno@clisp.org>
4992         javacomp: Make more robust in multithreaded applications.
4993         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
4994         * modules/javacomp (Depends-on): Add fopen-gnu.
4996 2020-05-27  Bruno Haible  <bruno@clisp.org>
4998         mountlist: Make more robust in multithreaded applications.
4999         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
5000         to fopen.
5001         * modules/mountlist (Depends-on): Add fopen-gnu.
5003 2020-05-27  Bruno Haible  <bruno@clisp.org>
5005         sethostname: Make more robust in multithreaded applications.
5006         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
5007         * modules/sethostname (Depends-on): Add fopen-gnu.
5009 2020-05-27  Bruno Haible  <bruno@clisp.org>
5011         readutmp: Make more robust in multithreaded applications.
5012         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
5013         * modules/readutmp (Depends-on): Add fopen-gnu.
5015 2020-05-27  Bruno Haible  <bruno@clisp.org>
5017         getpass: Make more robust in multithreaded applications.
5018         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
5019         * modules/getpass (Depends-on): Add fopen-gnu.
5021 2020-05-27  Bruno Haible  <bruno@clisp.org>
5023         getloadavg: Make more robust in multithreaded applications.
5024         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
5025         * modules/getloadavg (Depends-on): Add fopen-gnu.
5027 2020-05-27  Bruno Haible  <bruno@clisp.org>
5029         exclude: Make more robust in multithreaded applications.
5030         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
5031         * modules/exclude (Depends-on): Add fopen-gnu.
5033 2020-05-27  Bruno Haible  <bruno@clisp.org>
5035         bitset: Make more robust in multithreaded applications.
5036         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
5037         'e' flag to fopen.
5038         * modules/bitset (Depends-on): Add fopen-gnu.
5040 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5042         read-file: add RF_SENSITIVE flag
5043         * lib/read-file.h (RF_SENSITIVE): New define.
5044         * lib/read-file.c (fread_file, read_file): Take into account of
5045         RF_SENSITIVE flag.
5046         * modules/read-file (Depends-on): Add explicit_bzero.
5047         This adds an alternative behavior of those functions to explicitly
5048         clear the internal memory block when it becomes unused.  This is
5049         useful for reading sensitive information from a file.
5051 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5053         read-file: add flags to modify reading behavior
5054         * lib/read-file.h (RF_BINARY): New define.
5055         (fread_file, read_file): Take FLAGS argument.
5056         (read_binary_file): Remove.
5057         * lib/read-file.c (internal_read_file): Merge into ...
5058         (read_file): ... here.
5059         * modules/read-file-tests (Files): Add "tests/macros.h".
5060         * tests/test-read-file.c (main): Refactor using ASSERT macro.
5061         * NEWS: Mention this change.
5063 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
5065         doc/gnulib-intro.texi: add missing "to" in sentence
5066         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
5067         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
5068         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
5070 2020-05-26  Bruno Haible  <bruno@clisp.org>
5072         count-one-bits: Fix MSVC specific code.
5073         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5074         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
5075         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
5076         using GCC.
5077         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
5078         (__popcnt64): In 32-bit mode, define as an inline function.
5079         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
5081 2020-05-26  Bruno Haible  <bruno@clisp.org>
5083         argz: Avoid name clashes through argz.h.
5084         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5085         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
5086         * lib/argz.h: Don't use __ prefixed identifiers.
5087         (const): Remove definition.
5088         (argz_next): Remove inline definitions.
5090 2020-05-26  Daiki Ueno  <ueno@gnu.org>
5092         read-file: make use of fopen-gnu
5093         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
5094         (read_binary_file): Likewise.
5095         * modules/read-file (Depends-on): Add fopen-gnu.
5097 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5099         getentropy, getrandom: new modules
5100         * MODULES.html.sh (func_all_modules):
5101         * lib/unistd.in.h (getentropy, getrandom):
5102         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
5103         * modules/unistd (unistd.h):
5104         Add support for getentropy, getrandom.
5105         * doc/glibc-functions/getentropy.texi (getentropy):
5106         * doc/glibc-functions/getrandom.texi (getrandom):
5107         These are now fixed on some platforms.
5108         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
5109         * m4/getentropy.m4, m4/getrandom.m4:
5110         * modules/getentropy, modules/getentropy-tests:
5111         * modules/getrandom, modules/getrandom-tests:
5112         * tests/test-getentropy.c, tests/test-getrandom.c:
5113         New files.
5115 2020-05-25  Bruno Haible  <bruno@clisp.org>
5117         Add missing C99 dependencies.
5118         Reported by Paul Smith <psmith@gnu.org> in
5119         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
5120         * modules/assert (Depends-on): Add c99.
5121         * modules/filenamecat-lgpl (Depends-on): Likewise.
5122         * modules/libc-config (Depends-on): Likewise.
5123         * modules/mktime (Depends-on): Likewise.
5124         * modules/random_r (Depends-on): Likewise.
5125         * modules/regex (Depends-on): Likewise.
5126         * modules/scratch_buffer (Depends-on): Likewise.
5127         * modules/timespec-add (Depends-on): Likewise.
5128         * modules/timespec-sub (Depends-on): Likewise.
5129         * modules/verify (Depends-on): Likewise.
5131 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5133         explicit_bzero-tests: pacify -Wmissing-declarations
5134         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
5135         Now static.
5137 2020-05-24  Bruno Haible  <bruno@clisp.org>
5139         fopen-gnu: Add tests.
5140         * tests/test-fopen-gnu.c: New file.
5141         * modules/fopen-gnu-tests: New file.
5143         fopen-gnu: New module.
5144         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
5145         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
5146         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
5147         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
5148         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
5149         * modules/fopen-gnu: New file.
5150         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
5152 2020-05-24  Bruno Haible  <bruno@clisp.org>
5154         open, openat: Really support O_CLOEXEC.
5155         * lib/open.c (open): When have_cloexec is still undecided, do pass a
5156         O_CLOEXEC flag to orig_open.
5157         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
5158         pass a O_CLOEXEC flag to orig_openat.
5159         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
5160         * modules/open-tests (Depends-on): Add fcntl.
5161         * modules/openat-tests (Depends-on): Likewise.
5162         * modules/fcntl-safer-tests (Depends-on): Likewise.
5164 2020-05-24  Bruno Haible  <bruno@clisp.org>
5166         fopen: Fix the trailing slash workaround.
5167         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
5168         write access. Pass the right flags to open().
5169         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
5171 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5173         assure: new macro ‘affirm’
5174         * lib/assure.h: Include verify.h.
5175         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
5176         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
5177         and commentary by Bruno Haible in:
5178         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
5179         * modules/assure (Depends-on:): Add verify.
5181 2020-05-23  Bruno Haible  <bruno@clisp.org>
5183         calloc-gnu: Make test work in non-flat address spaces.
5184         Uses code by Paul Eggert.
5185         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
5186         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
5188 2020-05-23  Bruno Haible  <bruno@clisp.org>
5190         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
5191         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
5192         AC_RUN_IFELSE invocations.
5194 2020-05-23  Bruno Haible  <bruno@clisp.org>
5196         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
5197         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
5198         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
5199         don't have it.
5200         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5201         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
5202         don't have it.
5203         * lib/isnanf-nolibm.h (__has_builtin): New macro.
5204         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5205         it.
5206         * lib/isnanl-nolibm.h (__has_builtin): New macro.
5207         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5208         it.
5209         * lib/math.in.h (__has_builtin): New macro.
5210         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5211         it.
5212         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5213         it.
5214         (isnan): Don't use the builtins on clang versions that don't have
5215         __builtin_isnanf and __builtin_isnanl.
5217 2020-05-23  Bruno Haible  <bruno@clisp.org>
5219         calloc-gnu: Avoid wrong configure results with clang.
5220         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
5221         'volatile', to defeat compiler optimizations.
5223 2020-05-23  Bruno Haible  <bruno@clisp.org>
5225         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
5226         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
5227         'long double' values by reference, with values taken from a statically
5228         allocated array.
5230 2020-05-23  Bruno Haible  <bruno@clisp.org>
5232         findprog-in: Ignore directories.
5233         Reported by Frederick Eaton via Dmitry Goncharov in
5234         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
5235         * lib/findprog-in.c (find_in_given_path): When the file found is a
5236         directory, set errno to EACCES and, during a PATH search, continue
5237         searching.
5238         * modules/findprog-in (Depends-on): Add sys_stat, stat.
5240 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5242         verify: document ‘assume’ better
5243         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
5245 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
5247         gendocs: Clarify licenses for templates.
5248         * doc/gendocs_template: Add a GNU All-Permissive license notice
5249         and bump Parent-Version.
5250         * doc/gendocs_template_min: Add a GNU All-Permissive license
5251         notice and copy the explanatory comment about the license notice
5252         at the bottom from gendocs_template.
5254 2020-05-21  Bruno Haible  <bruno@clisp.org>
5256         group-member: Relicense under LGPLv2+.
5257         Jim Meyering's approval is in
5258         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
5259         Paul Eggert's approval is in
5260         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
5261         Eric Blake's approval is in
5262         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
5263         * modules/group-member (License): Change to LGPLv2+.
5265 2020-05-21  Bruno Haible  <bruno@clisp.org>
5267         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
5268         Reported by Tim Rühsen in
5269         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
5272 2020-05-21  Bruno Haible  <bruno@clisp.org>
5274         regex: Avoid wrong configure results with "clang -fsanitize=leak".
5275         Reported by Tim Rühsen in
5276         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5277         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
5278         before returning with status 0.
5280 2020-05-21  Bruno Haible  <bruno@clisp.org>
5282         glob: Avoid wrong configure results with "clang -fsanitize=leak".
5283         Reported by Tim Rühsen in
5284         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5285         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
5287 2020-05-21  Bruno Haible  <bruno@clisp.org>
5289         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
5290         Reported by Tim Rühsen in
5291         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5292         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
5293         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
5294         respectively.
5296 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
5298         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
5299         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
5301 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5303         ftoastr: fix ifndef typo
5304         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
5306 2020-05-19  Bruno Haible  <bruno@clisp.org>
5308         havelib: Tweak documentation.
5309         * doc/havelib.texi (Searching for Libraries): Fix typo.
5311 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5313         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
5314         This was needed earlier because modules had to import the main script,
5315         but that is no longer true.  Rename the script so that it is
5316         consistent with all other scripts in gnulib and uses hyphens.
5317         * build-aux/vcs_to_changelog.py: Rename to...
5318         * build-aux/vcs-to-changelog.py: ... this.
5319         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
5320         * modules/vcs-to-changelog: Likewise.
5322 2020-05-17  Bruno Haible  <bruno@clisp.org>
5324         Clarify intended usage of the license file modules.
5325         Reported by Asher Gordon <AsDaGo@posteo.net> in
5326         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
5327         * doc/licenses-texi.texi (License Texinfo sources): Mention the
5328         GNU AGPL. Explain the intended usage of the modules.
5329         * modules/fdl (Notice): Discourage use as a module.
5330         * modules/fdl-1.3 (Notice): Likewise.
5332 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
5334         hash: add hash_xinsert
5335         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
5337 2020-05-16  Bruno Haible  <bruno@clisp.org>
5339         findprog-lgpl: Fix link error (existing since 2008-09-02).
5340         * modules/findprog-lgpl (Makefile.am): Arrange to compile
5341         findprog-lgpl.c, not findprog.c.
5342         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
5343         XNMALLOC.
5345 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
5347         c-stack: pacify -Wunused-result when DEBUG
5348         Problem reported by Marc Nieper-Wißkirchen in:
5349         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
5350         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
5351         Explicitly ignore write failures.
5353 2020-05-13  Jim Meyering  <meyering@fb.com>
5355         announce-gen: improve a comment
5356         * build-aux/announce-gen: Improve comment.
5358 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
5360         xalloc: pacify -Wanalyzer-possible-null-argument
5361         Problem reported for GCC 10.1.0 by Bruno Haible in:
5362         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
5363         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
5364         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
5365         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
5367 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5369         careadlinkat: fix GCC 10 workaround
5370         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
5371         Massage the code so that it’s closer to what it was before
5372         the GCC 10.1.0 workaround was introduced.  This fixes
5373         a loop when !buffer and the bug workaround is in effect.
5374         Remove unnecessary casts.  Defend in a different way
5375         against (buffer && !buffer_size), by adding at least 1
5376         to buf_size each time through the loop.
5378 2020-05-10  Bruno Haible  <bruno@clisp.org>
5380         doc: Mark HP-UX as unsupported.
5381         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
5383 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5385         careadlinkat: limit GCC workaround
5386         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
5387         10.1.0 and later, since the workaround is pretty bad and the GCC
5388         bug should get fixed.
5390 2020-05-10  Bruno Haible  <bruno@clisp.org>
5392         havelib: Enhance documentation.
5393         * doc/havelib.texi (Searching for Libraries): Mention the bad
5394         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
5396 2020-05-10  Bruno Haible  <bruno@clisp.org>
5398         attribute: Clarify list of attributes.
5399         * lib/attribute.h: Reorder the list of attributes, and group them by
5400         purpose.
5402 2020-05-10  Bruno Haible  <bruno@clisp.org>
5404         string: Fix compilation error in C++ mode.
5405         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
5406         _GL_WARN_ON_USE.
5407         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
5408         instead of _GL_WARN_ON_USE.
5410 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
5412         announce-gen: add support for dist-lzip
5413         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
5415 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
5417         manywarnings: port to GCC 10.1
5418         * build-aux/gcc-warning.spec:
5419         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
5420         Add GCC 10.1.0 warnings.
5422         careadlinkat: pacify -Wreturn-local-addr
5423         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
5424         Pacify gcc 10’s -Wreturn-local-addr option.
5425         Simplify some of the later code.
5427 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
5429         attribute: remove ATTRIBUTE_DEPRECATED
5430         * lib/attribute.h: Improve recently-added comments, mostly
5431         by shortening them (use active voice, etc.).
5432         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
5433         Problem reported by Bruno Haible in:
5434         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
5436 2020-05-09  Bruno Haible  <bruno@clisp.org>
5438         attribute: Add comments.
5439         * lib/attribute.h: Document each macro.
5441 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
5443         bitset: use the attribute module
5444         * modules/bitset: Depend on 'attribute'.
5445         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
5446         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
5447         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
5448         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
5450 2020-05-09  Bruno Haible  <bruno@clisp.org>
5452         c-stack: Fix warning when DEBUG is enabled.
5453         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
5454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
5455         * lib/c-stack.c: Include <stdio.h>.
5457 2020-05-09  Bruno Haible  <bruno@clisp.org>
5459         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
5460         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
5461         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5462         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5463         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5464         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5465         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5466         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5467         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5468         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
5469         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5470         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5471         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5473 2020-05-09  Bruno Haible  <bruno@clisp.org>
5475         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
5476         Reported by Akim Demaille in
5477         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
5478         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
5479         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
5480         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
5482 2020-05-09  Bruno Haible  <bruno@clisp.org>
5484         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
5485         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
5486         that usually comes from m4/gnulib-common.m4.
5487         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5489 2020-05-09  Bruno Haible  <bruno@clisp.org>
5491         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
5492         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
5493         that usually comes from m4/gnulib-common.m4.
5494         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5495         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5496         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5498 2020-05-09  Bruno Haible  <bruno@clisp.org>
5500         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
5501         * lib/uchar.in.h (char16_t): Define as macro if
5502         GNULIB_OVERRIDES_CHAR16_T.
5503         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
5504         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
5505         (gl_UCHAR_H): Invoke them.
5506         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
5507         GNULIB_OVERRIDES_CHAR32_T.
5508         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
5509         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
5510         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
5511         GNULIB_OVERRIDES_CHAR32_T.
5513 2020-05-09  Bruno Haible  <bruno@clisp.org>
5515         Macro tweaks.
5516         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
5517         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
5519 2020-05-08  Bruno Haible  <bruno@clisp.org>
5521         c32rtomb: Avoid compilation failure on Haiku.
5522         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
5523         inline definitions.
5524         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
5526 2020-05-08  Bruno Haible  <bruno@clisp.org>
5528         mbrtoc32: Avoid compilation failure on Haiku.
5529         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
5530         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
5531         AC_CHECK_FUNCS_ONCE.
5532         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
5534 2020-05-08  Bruno Haible  <bruno@clisp.org>
5536         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
5537         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
5539 2020-05-08  Bruno Haible  <bruno@clisp.org>
5541         list: Update documentation.
5542         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
5543         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
5544         * doc/containers.texi (Container data types): Document the new list
5545         operations and their complexity.
5547 2020-05-08  Bruno Haible  <bruno@clisp.org>
5549         ignore-value tests: Use module 'attribute'.
5550         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
5551         * tests/test-ignore-value.c: Include attribute.h.
5552         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
5553         * modules/ignore-value-tests (Depends-on): Add attribute.
5555 2020-05-08  Bruno Haible  <bruno@clisp.org>
5557         uniname/uniname: Use module 'attribute'.
5558         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
5559         * lib/uniname/uninames.h: Regenerated.
5560         * lib/uniname/uniname.c: Include attribute.h.
5561         * modules/uniname/uniname (Depends-on): Add attribute.
5563 2020-05-08  Bruno Haible  <bruno@clisp.org>
5565         c32rtomb: Use module 'attribute'.
5566         * lib/c32rtomb.c: Include attribute.h.
5567         (FALLTHROUGH): Remove macro.
5568         * modules/c32rtomb (Depends-on): Add attribute.
5570 2020-05-08  Bruno Haible  <bruno@clisp.org>
5572         xsize: Use module 'attribute'.
5573         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
5574         * modules/xsize (Depends-on): Add attribute.
5576 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5578         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
5580         * lib/attribute.h: Minor style fixes.
5582         Fix version-etc glitch on OpenIndiana
5583         Problem reported by Mats Erik Andersson in:
5584         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
5585         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
5586         that now clashes with gnulib-common.h.  All uses changed.
5588 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
5590         attribute: new module
5591         This simplifies use of GCC and C2X attributes like ‘deprecated’.
5592         * MODULES.html.sh: Add attribute.
5593         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
5594         * doc/gnulib.texi (Particular Modules): Add Attributes.
5595         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
5596         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
5597         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
5598         * lib/vasnprintf.c:
5599         Include attribute.h, and let it define FALLTHROUGH.
5600         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
5601         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
5602         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
5603         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
5604         This is a copy since Gawk doesn’t use Gnulib.
5605         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
5606         is incompatible with gl_COMMON_BODY’s.  All uses changed.
5607         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
5608         Keep the existing FALLTHROUGH definition since Glibc might use it,
5609         and it does no harm to Gnulib’s FALLTHROUGH.
5610         * lib/fts_.h, lib/inttostr.h:
5611         (__GNUC_PREREQ): Remove; no longer needed.
5612         (__attribute_warn_unused_result__): Remove.  All uses
5613         replaced by _GL_ATTRIBUTE_NODISCARD.
5614         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
5615         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
5616         __attribute__ ((__warn_unused_result__)), for forward
5617         compatibility to C2X.
5618         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
5619         _GL_ATTRIBUTE_NODISCARD.
5620         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
5621         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
5622         replaced by gl_COMMON_BODY’s implementation, which has a
5623         slightly different signature.
5624         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
5625         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
5626         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
5627         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
5628         No doubt all uses should be replaced, at some point.
5629         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
5630         (_Noreturn): Use it.
5631         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
5632         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
5633         (_GL_ATTRIBUTE_COLD)
5634         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
5635         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
5636         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
5637         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
5638         (_GL_ATTRIBUTE_MAYBE_UNUSED)
5639         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
5640         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
5641         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
5642         (_GL_ATTRIBUTE_RETURNS_NONNULL)
5643         (_GL_ATTRIBUTE_SENTINEL): New macros.
5644         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
5645         * modules/fnmatch, modules/freopen-safer, modules/fts:
5646         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
5647         * modules/quotearg, modules/savewd:
5648         * modules/unistdio/u16-u16-vasnprintf:
5649         * modules/unistdio/u16-vasnprintf:
5650         * modules/unistdio/u32-u32-vasnprintf:
5651         * modules/unistdio/u32-vasnprintf:
5652         * modules/unistdio/u8-u8-vasnprintf:
5653         * modules/unistdio/u8-vasnprintf:
5654         * modules/unistdio/ulc-vasnprintf:
5655         * modules/unistr/u8-uctomb, modules/vasnprintf:
5656         (Depends-on:): Add attribute module.
5658 2020-05-03  Bruno Haible  <bruno@clisp.org>
5660         bison: Fix today's commit.
5661         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
5663 2020-05-03  Bruno Haible  <bruno@clisp.org>
5665         list-c++: Add get_first, get_last, set_first, set_last operations.
5666         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
5667         set_first, set_last.
5668         * lib/gl_list.h: Tweak comments.
5670 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
5672         bison: rely on bison's %require to check a version requirement
5673         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
5674         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
5675         enough of not.
5676         So far it is the only know Yacc tool that supports '%require'.
5677         Other yaccs will actually even choke on seeing the -o option after the
5678         input file name.
5679         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
5681 2020-05-02  Bruno Haible  <bruno@clisp.org>
5683         list: Add get_first, get_last, set_first, set_last operations.
5684         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
5685         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
5686         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
5688 2020-05-02  Bruno Haible  <bruno@clisp.org>
5690         list: Remove redundant code for remove_first and remove_last operations.
5691         * lib/gl_list.h (struct gl_list_implementation): Remove fields
5692         remove_first, remove_last.
5693         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
5694         * lib/gl_array_list.c: Revert last change.
5695         * lib/gl_carray_list.c: Likewise.
5696         * lib/gl_anylinked_list2.h: Likewise.
5697         * lib/gl_linked_list.c: Likewise.
5698         * lib/gl_linkedhash_list.c: Likewise.
5699         * lib/gl_anytree_list2.h: Likewise.
5700         * lib/gl_avltree_list.c: Likewise.
5701         * lib/gl_avltreehash_list.c: Likewise.
5702         * lib/gl_rbtree_list.c: Likewise.
5703         * lib/gl_rbtreehash_list.c: Likewise.
5704         * lib/gl_sublist.c: Likewise.
5706 2020-05-02  Bruno Haible  <bruno@clisp.org>
5708         bison-i18n: Add support for cross-compilation.
5709         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
5710         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
5711         via Akim Demaille <akim@lrde.epita.fr>.
5712         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
5713         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
5714         Don't use bison's --print-localedir option when cross-compiling.
5715         Also, fix an error message and a comment.
5717 2020-05-01  Bruno Haible  <bruno@clisp.org>
5719         list: Add remove_first and remove_last operations.
5720         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
5721         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
5722         * lib/gl_list.h (struct gl_list_implementation): Add fields
5723         remove_first, remove_last.
5724         (gl_list_remove_first, gl_list_remove_last): New functions.
5725         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
5726         functions, based on gl_array_remove_at.
5727         (gl_array_list_implementation): Implement the new operations.
5728         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
5729         New functions, based on gl_carray_remove_at.
5730         (gl_carray_list_implementation): Implement the new operations.
5731         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
5732         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
5733         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
5734         new operations.
5735         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
5736         Likewise.
5737         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
5738         New functions, based on gl_tree_remove_at.
5739         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
5740         new operations.
5741         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5742         Likewise.
5743         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
5744         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
5745         Likewise.
5746         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
5747         New functions, based on gl_sublist_remove_at.
5748         (gl_sublist_list_implementation): Implement the new operations.
5749         * lib/gl_list.hh (class gl_List): Add methods remove_first,
5750         remove_last.
5751         * tests/test-array_list.c (main): Test also gl_list_remove_first and
5752         gl_list_remove_last.
5753         * tests/test-avltree_list.c (main): Likewise.
5754         * tests/test-avltreehash_list.c (main): Likewise.
5755         * tests/test-carray_list.c (main): Likewise.
5756         * tests/test-linked_list.c (main): Likewise.
5757         * tests/test-linkedhash_list.c (main): Likewise.
5758         * tests/test-rbtree_list.c (main): Likewise.
5759         * tests/test-rbtreehash_list.c (main): Likewise.
5761 2020-05-01  Bruno Haible  <bruno@clisp.org>
5763         parse-datetime: Fix a build failure with an older bison version.
5764         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
5765         parse-datetime.tab.c if a suitable version of bison was not found.
5767 2020-05-01  Bruno Haible  <bruno@clisp.org>
5769         bison: New module.
5770         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
5771         m4/parse-datetime.m4.
5772         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
5773         * modules/bison: New file.
5774         * modules/parse-datetime (Files): Remove m4/bison.m4.
5775         (Depends-on): Add bison.
5777 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
5779         Update users.txt.
5780         * users.txt: Add poke.
5782 2020-04-28  Bruno Haible  <bruno@clisp.org>
5784         posix_spawn_file_actions_addfchdir tests: Enhance test.
5785         * tests/test-posix_spawn5.c: Include findprog.h.
5786         (test): New function, extracted from main.
5787         (main): Invoke it. Also, invoke it with a program name such as
5788         "bin/pwd".
5789         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
5790         findprog.
5792 2020-04-28  Bruno Haible  <bruno@clisp.org>
5794         posix_spawn_file_actions_addchdir tests: Enhance test.
5795         * tests/test-posix_spawn4.c: Include findprog.h.
5796         (test): New function, extracted from main.
5797         (main): Invoke it. Also, invoke it with a program name such as
5798         "bin/pwd".
5799         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
5800         findprog.
5802 2020-04-28  Bruno Haible  <bruno@clisp.org>
5804         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
5805         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
5806         access elements of the wrong union member.
5808 2020-04-27  Bruno Haible  <bruno@clisp.org>
5810         getdate: Remove deprecated module.
5811         * modules/getdate: Remove file.
5812         * doc/getdate.texi: Remove file.
5813         * lib/getdate.h: Remove file.
5814         * NEWS: Mention the removal.
5816 2020-04-27  Bruno Haible  <bruno@clisp.org>
5818         realloc: Remove deprecated module.
5819         * modules/realloc: Remove file.
5820         * NEWS: Mention the removal.
5822 2020-04-27  Bruno Haible  <bruno@clisp.org>
5824         calloc: Remove deprecated module.
5825         * modules/calloc: Remove file.
5826         * NEWS: Mention the removal.
5828 2020-04-27  Bruno Haible  <bruno@clisp.org>
5830         malloc: Remove deprecated module.
5831         * modules/malloc: Remove file.
5832         * NEWS: Mention the removal.
5834 2020-04-27  Bruno Haible  <bruno@clisp.org>
5836         fnmatch-posix: Remove deprecated module.
5837         * modules/fnmatch-posix: Remove file.
5838         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
5839         * NEWS: Mention the removal.
5841 2020-04-27  Bruno Haible  <bruno@clisp.org>
5843         pipe: Remove deprecated module.
5844         * modules/pipe: Remove file.
5845         * lib/pipe.h: Remove file.
5846         * NEWS: Mention the removal.
5848 2020-04-27  Bruno Haible  <bruno@clisp.org>
5850         getopt: Remove deprecated module.
5851         * modules/getopt: Remove file.
5852         * NEWS: Mention the removal.
5854 2020-04-27  Bruno Haible  <bruno@clisp.org>
5856         remove-dest-slash: Remove deprecated module.
5857         * modules/rename-dest-slash: Remove file.
5858         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
5859         Update.
5860         * NEWS: Mention the removal.
5862 2020-04-27  Bruno Haible  <bruno@clisp.org>
5864         unictype/bidicategory-*: Remove deprecated modules.
5865         * modules/unictype/bidicategory-all: Remove file.
5866         * modules/unictype/bidicategory-byname: Remove file.
5867         * modules/unictype/bidicategory-name: Remove file.
5868         * modules/unictype/bidicategory-of: Remove file.
5869         * modules/unictype/bidicategory-test: Remove file.
5870         * MODULES.html.sh (Unicode string functions): Update.
5871         * NEWS: Mention the removals.
5873 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5875         Tune fts for FTS_LOGICAL+FTS_NOSTAT
5876         From a suggestion by Askar Safin in:
5877         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
5878         * lib/fts.c (fts_build): If file types are known, optimize
5879         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
5880         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
5881         non-directories.
5883 2020-04-19  Bruno Haible  <bruno@clisp.org>
5885         vasnprintf: Add support for printing wide characters using escapes.
5886         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
5887         (wctomb_fallback): New function.
5888         (local_wctomb): New function.
5889         (local_wcrtomb): New function or macro.
5890         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
5891         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
5892         %lc.
5894 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
5896         fts: remove NOSTAT_LEAF_OPTIMIZATION
5897         It caused ‘find’ and ‘du’ to dump core, and it was useful
5898         only for obsolescent Linux filesystems anyway.  Problem reported in:
5899         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
5900         Quite possibly there is still a serious underlying fts bug with
5901         tight-loop-check and mutating file systems, but if so this patch
5902         should cause the bug to be triggered less often.
5903         * lib/fts.c (enum leaf_optimization): Remove
5904         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
5905         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
5906         (leaf_optimization): Remove special cases for ReiserFS and XFS.
5907         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
5908         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
5909         Remove.  All uses removed.
5911 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5913         explicit_bzero: Improve code style.
5914         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
5916 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5918         explicit_bzero: On native Windows, use SecureZeroMemory().
5919         * lib/explicit_bzero.c: Include <windows.h>.
5920         (explicit_bzero): On native Windows, use SecureZeroMemory.
5922 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5924         explicit_bzero: Use memset_s() when available.
5925         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
5926         (explicit_bzero): Use memset_s when available.
5927         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
5929 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5931         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
5932         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
5933         free() that overwrite the memory with canaries.
5935 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
5937         bootstrap: recommend git submodule update --init
5938         Reported by Bruno Haible.
5939         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
5940         * build-aux/bootstrap: recommand "git submodule update --init"
5941         rather than "git submodule init".
5943 2020-04-12  Bruno Haible  <bruno@clisp.org>
5945         explicit_bzero: Add tests.
5946         * tests/test-explicit_bzero.c: New file.
5947         * modules/explicit_bzero-tests: New file.
5949 2020-04-11  Bruno Haible  <bruno@clisp.org>
5951         explicit_bzero: Relicense under LGPLv2+.
5952         Approved by Paul Eggert.
5953         * modules/explicit_bzero (License): Change to LGPLv2+.
5955 2020-04-10  Bruno Haible  <bruno@clisp.org>
5957         findprog, relocatable-prog: Ignore directories during PATH search.
5958         Reported by Frederick Eaton via Dmitry Goncharov in
5959         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
5961         * lib/findprog.c (find_in_path): When the file found in a PATH element
5962         is a directory, continue searching.
5963         * modules/findprog (Depends-on): Add sys_stat, stat.
5964         * modules/findprog-lgpl (Depends-on): Likewise.
5966         * lib/progreloc.c (maybe_executable): When the file found in a PATH
5967         element is a directory, continue searching.
5968         * lib/relocwrapper.c: Update comments.
5969         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
5970         (configure.ac-early): New section.
5972 2020-04-10  Bruno Haible  <bruno@clisp.org>
5974         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
5975         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
5976         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
5977         * MODULES.html.sh: In a git-less tarball, use the date of the first
5978         ChangeLog entry.
5980 2020-04-04  Bruno Haible  <bruno@clisp.org>
5982         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
5983         * m4/gettext.m4: Fix comments regarding the gettext library.
5984         * m4/intl-thread-locale.m4: Likewise.
5985         * m4/intlmacosx.m4: Likewise.
5986         * m4/lcmessage.m4: Likewise.
5987         * m4/nls.m4: Likewise.
5988         * m4/po.m4: Likewise.
5989         * m4/progtest.m4: Likewise.
5991 2020-04-04  Jim Meyering  <meyering@fb.com>
5993         maint: remove a stray inter-word space in a 6x-repeated comment
5994         Induce the changes by running this:
5995           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
5996         * build-aux/announce-gen: Change "by  perl" to "by perl".
5997         * build-aux/gitlog-to-changelog: Likewise.
5998         * build-aux/prefix-gnulib-mk: Likewise.
5999         * build-aux/update-copyright: Likewise.
6000         * build-aux/useless-if-before-free: Likewise.
6001         * tests/test-update-copyright.sh: Likewise.
6003 2020-03-28  Bruno Haible  <bruno@clisp.org>
6005         Use module 'filename' instead of module 'dosname'.
6007         * lib/at-func.c: Include filename.h instead of dosname.h.
6008         * lib/unlinkat.c: Likewise.
6009         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
6010         * modules/areadlinkat-with-size (Depends-on): Likewise.
6011         * modules/faccessat (Depends-on): Likewise.
6012         * modules/fchmodat (Depends-on): Likewise.
6013         * modules/fchownat (Depends-on): Likewise.
6014         * modules/fstatat (Depends-on): Likewise.
6015         * modules/mkdirat (Depends-on): Likewise.
6016         * modules/mkfifoat (Depends-on): Likewise.
6017         * modules/readlinkat (Depends-on): Likewise.
6018         * modules/selinux-at (Depends-on): Likewise.
6019         * modules/symlinkat (Depends-on): Likewise.
6020         * modules/unlinkat (Depends-on): Likewise.
6021         * modules/utimensat (Depends-on): Likewise.
6023         * lib/at-func2.c: Include filename.h instead of dosname.h.
6024         * modules/linkat (Depends-on): Add filename. Remove dosname.
6025         * modules/renameatu (Depends-on): Likewise.
6027         * lib/canonicalize.c: Include filename.h instead of dosname.h.
6028         * lib/canonicalize-lgpl.c: Likewise.
6029         * modules/canonicalize (Depends-on): Add filename.
6030         * modules/canonicalize-lgpl (Depends-on): Likewise.
6032         * lib/dirname.h: Include filename.h instead of dosname.h.
6033         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
6035         * lib/fchdir.c: Include filename.h instead of dosname.h.
6036         * modules/fchdir (Depends-on): Add filename. Remove dosname.
6038         * lib/openat.c: Include filename.h instead of dosname.h.
6039         * modules/openat (Depends-on): Add filename. Remove dosname.
6041         * lib/rmdir.c: Include filename.h instead of dosname.h.
6042         * modules/rmdir (Depends-on): Add filename. Remove dosname.
6044         * lib/savewd.c: Include filename.h instead of dosname.h.
6045         * modules/savewd (Depends-on): Add filename. Remove dosname.
6047         * lib/unlink.c: Include filename.h instead of dosname.h.
6048         * modules/unlink (Depends-on): Add filename. Remove dosname.
6050         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
6051         * lib/relocwrapper.c: Update comments.
6053         * modules/lstat (Depends-on): Remove dosname.
6055 2020-03-28  Bruno Haible  <bruno@clisp.org>
6057         dosname: Redirect to 'filename'.
6058         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6059         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
6060         * lib/dosname.h: Remove all definitions. Just include filename.h.
6061         * modules/dosname (Status, Notice): Mark as deprecated.
6062         (Depends-on): Add 'filename'.
6064 2020-03-28  Bruno Haible  <bruno@clisp.org>
6066         dosname: Change IS_RELATIVE_FILE_NAME.
6067         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
6068         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
6069         * NEWS: Mention the change.
6071 2020-03-28  Bruno Haible  <bruno@clisp.org>
6073         filename: Copy some definitions from module 'dosname'.
6074         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
6075         (HAS_DEVICE): Document macro.
6076         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
6077         (IS_ABSOLUTE_FILE_NAME): Consider
6078         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
6079         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
6080         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
6081         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
6082         IS_PATH_WITH_DIR.
6083         (DllMain): Update.
6084         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
6085         IS_PATH_WITH_DIR.
6086         (find_executable): Update.
6087         * NEWS: Document the deprecations.
6089 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6091         getopt-posix: port __GETOPT_PREFIX to macOS
6092         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
6093         Define to work around a problem with asm on macOS (Bug#40205).
6095 2020-03-22  Bruno Haible  <bruno@clisp.org>
6097         MODULES.html.sh: Add support for reproducible builds.
6098         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6099         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
6100         * MODULES.html.sh: Print the date of the last gnulib commit, not the
6101         current date.
6103 2020-03-22  Bruno Haible  <bruno@clisp.org>
6105         Several modules: Depend on stat.
6106         * modules/acl-permissions (Depends-on): Add stat.
6107         * modules/canonicalize (Depends-on): Likewise.
6108         * modules/file-has-acl (Depends-on): Likewise.
6109         * modules/fstat (Depends-on): Likewise.
6110         * modules/fstatat (Depends-on): Likewise.
6111         * modules/glob (Depends-on): Likewise.
6112         * modules/javacomp (Depends-on): Likewise.
6113         * modules/linkat (Depends-on): Likewise.
6114         * modules/mkdir (Depends-on): Likewise.
6115         * modules/pt_chown (Depends-on): Likewise.
6116         * modules/ptsname_r (Depends-on): Likewise.
6117         * modules/readlinkat (Depends-on): Likewise.
6118         * modules/rename (Depends-on): Likewise.
6119         * modules/renameatu (Depends-on): Likewise.
6120         * modules/tmpdir (Depends-on): Likewise.
6121         * modules/utimens (Depends-on): Likewise.
6122         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
6123         * modules/same (Depends-on): Remove stat.
6125 2020-03-22  Bruno Haible  <bruno@clisp.org>
6127         acl-permissions: Improve autoconf macro.
6128         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
6129         more reliably.
6131 2020-03-22  Bruno Haible  <bruno@clisp.org>
6133         file-has-acl: Fix module description.
6134         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
6135         (Depends-on): Depend on acl-permissions unconditionally.
6137 2020-03-21  Bruno Haible  <bruno@clisp.org>
6139         unlink: Ensure errno also on native Windows.
6140         * modules/unlink (Depends-on): Add malloc-posix.
6142 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6144         unlink: fix malloc errno typo
6145         Problem reported by Tim Rühsen in:
6146         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
6147         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
6149 2020-03-16  Bruno Haible  <bruno@clisp.org>
6151         *printf-posix: Fix m4 error (regression from 2020-03-08).
6152         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
6153         brackets in AC_COMPILE_IFELSE invocation.
6155 2020-03-08  Bruno Haible  <bruno@clisp.org>
6157         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
6158         * modules/crypto/af_alg (Depends-on): Add fstat.
6159         * modules/renameatu (Depends-on): Likewise.
6160         * modules/same (Depends-on): Likewise.
6161         * modules/term-style-control (Depends-on): Likewise.
6163 2020-03-08  Bruno Haible  <bruno@clisp.org>
6165         *printf-posix: Document why it's overridden on some glibc systems.
6166         Reported by Adrian Bunk <bunk@stusta.de> in
6167         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
6168         * doc/posix-functions/*printf.texi: Document the problem with the %n
6169         directive on some glibc systems.
6170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
6171         the cross-compilation guesses accordingly.
6173 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6175         open, openat: port to (O_RDWR | O_RDONLY) != 0
6176         Potential portability problem reported by Dan Gohman in:
6177         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
6178         * lib/open.c (open):
6179         * lib/openat.c (rpl_openat):
6180         Don’t assume O_RDONLY is disjoint from O_RDWR.
6182 2020-03-07  Bruno Haible  <bruno@clisp.org>
6184         openat: Fix theoretically possible issue on GNU/Hurd.
6185         Reported by Dan Gohman <sunfish@mozilla.com> in
6186         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
6187         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
6188         ignore the bits that are also set in O_RDONLY.
6190 2020-02-24  Bruno Haible  <bruno@clisp.org>
6192         getloadavg: Don't use /usr/local when cross-compiling on AIX.
6193         Reported by Jens Rehsack <sno@netbsd.org> in
6194         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
6195         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
6196         cross-compiling.
6198 2020-02-24  Bruno Haible  <bruno@clisp.org>
6200         fcntl: Add witness of gnulib override.
6201         Reported by Jens Rehsack <sno@netbsd.org> in
6202         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
6203         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
6204         macros.
6206 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
6208         Update users.txt.
6209         * users.txt: Add datamash, time.
6211 2020-02-23  Bruno Haible  <bruno@clisp.org>
6213         uni*/base: Use 'restrict'.
6214         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
6215         from lib/regex.h.
6216         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
6217         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
6218         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
6219         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
6220         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
6221         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
6222         '_UC_RESTRICT'.
6223         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
6224         u32_conv_to_encoding): Use '_UC_RESTRICT'.
6225         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
6226         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
6227         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6228         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6229         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
6230         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
6231         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
6232         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
6233         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
6234         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
6235         '_UC_RESTRICT'.
6236         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
6237         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
6238         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
6239         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
6240         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
6241         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
6242         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
6243         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
6245 2020-02-23  Bruno Haible  <bruno@clisp.org>
6247         glob, spawn: Use improved '_Restrict_' definition.
6248         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
6249         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
6251 2020-02-23  Bruno Haible  <bruno@clisp.org>
6253         crypto/gc: Use 'restrict'.
6254         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
6255         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
6257         crypto/hmac-*: Use 'restrict'.
6258         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
6259         'restrict'.
6260         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
6261         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
6262         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
6263         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
6265         crypto/sm3: Use 'restrict'.
6266         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
6267         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
6269         crypto/*-buffer: Use 'restrict'.
6270         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
6271         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
6273         crypto/sha512-buffer: Use 'restrict'.
6274         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
6275         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
6276         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
6278         crypto/sha256-buffer: Use 'restrict'.
6279         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
6280         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
6281         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
6283         crypto/sha1-buffer: Use 'restrict'.
6284         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
6285         'restrict'.
6286         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
6288         crypto/md5-buffer: Use 'restrict'.
6289         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
6290         'restrict'.
6291         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
6293         crypto/md4: Use 'restrict'.
6294         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
6295         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
6297         crypto/md2: Use 'restrict'.
6298         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
6299         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
6301         crypto/rijndael: Use 'restrict'.
6302         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
6303         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
6304         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
6306         crypto/arctwo: Use 'restrict'.
6307         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
6308         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
6310         crypto/arcfour: Use 'restrict'.
6311         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
6312         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
6314         careadlinkat: Use 'restrict'.
6315         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
6316         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
6317         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
6319         regex-quote: Use 'restrict'.
6320         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
6321         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
6323         system-quote: Use 'restrict'.
6324         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
6325         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
6327         sh-quote: Use 'restrict'.
6328         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
6329         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
6331         quotearg: Use 'restrict'.
6332         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
6333         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
6335         parse-datetime: Use 'restrict'.
6336         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
6337         'restrict'.
6338         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
6340         nstrftime: Use 'restrict'.
6341         * lib/strftime.h (nstrftime): Use 'restrict'.
6342         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
6344         mbstok_r: Use 'restrict'.
6345         * lib/string.in.h (mbstok_r): Use 'restrict'.
6347         xmemcoll: Use 'restrict'.
6348         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
6349         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
6351         memcoll: Use 'restrict'.
6352         * lib/memcoll.h (memcoll): Use 'restrict'.
6353         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
6355         vasnprintf: Use 'restrict'.
6356         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
6357         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
6359         c-vasnprintf: Use 'restrict'.
6360         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
6361         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
6363         c-vsnprintf: Use 'restrict'.
6364         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
6365         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
6367         c-snprintf: Use 'restrict'.
6368         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
6369         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
6371         astrxfrm: Use 'restrict'.
6372         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
6373         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
6375         amemxfrm: Use 'restrict'.
6376         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
6377         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
6379 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6381         fchmodat, lchmod: simplify
6382         It appears that we may have overengineered lchmod and fchmodat,
6383         in that the code was prepared for some hypothetical platforms but
6384         was so complicated that it was hard to understand.  I attempted to
6385         improve the situation by simplifying the code when this
6386         simplification should not hurt on real platforms; we can re-add
6387         complexity later to port to platforms I didn’t know about.
6388         * lib/fchmodat.c (fchmodat):
6389         * lib/lchmod.c (lchmod):
6390         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
6391         around the /proc code that needs it.
6392         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
6393         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
6394         Do not include <config.h> twice.
6395         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
6396         lchmod on any known hosts.
6397         (lchmod): Do not defer to fchmodat, so that the lchmod module
6398         need not depend on the fchmodat module (which is a circular
6399         dependency).  Do not use openat, since ‘open’ suffices.
6400         Coalesce calls to lchmod/chmod.
6401         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
6402         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
6403         * modules/lchmod (Depends-on, configure.ac):
6404         * modules/sys_stat (Depends-on):
6405         Do not worry about replacing lchmod, since that shouldn’t happen.
6406         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
6407         Do not worry about whether lchmod works on non-symlinks,
6408         since every known lchmod works on non-symlinks.
6409         * modules/lchmod (Depends-on):
6410         Remove circular dependency on fchmodat.
6412 2020-02-22  Bruno Haible  <bruno@clisp.org>
6414         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
6415         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
6416         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
6418 2020-02-22  Bruno Haible  <bruno@clisp.org>
6420         Use 'restrict' in all POSIX function declarations.
6421         * lib/iconv.in.h (iconv): Use 'restrict'.
6422         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
6423         * lib/monetary.in.h (strfmon_l): Likewise.
6424         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
6425         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
6426         pthread_mutex_timedlock, pthread_rwlock_init,
6427         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
6428         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
6429         * lib/search.in.h (tdelete): Likewise.
6430         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
6431         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
6432         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
6433         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
6434         Likewise.
6435         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
6436         strtoull): Likewise.
6437         * lib/string.in.h (strncat): Likewise.
6438         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
6439         recvfrom): Likewise.
6440         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
6441         * lib/time.in.h (strftime): Likewise.
6442         * lib/unistd.in.h (readlink, readlinkat): Likewise.
6443         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
6444         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
6445         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
6446         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
6447         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
6448         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
6449         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6450         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6451         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6452         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6454         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6455         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6456         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6457         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
6458         other *_h.m4 files.
6459         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
6461 2020-02-22  Bruno Haible  <bruno@clisp.org>
6463         Update NEWS.
6464         * NEWS: Mention the last change.
6466 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6468         chmodat, chownat: new modules
6469         These are split from fchmodat, fchownat.  GNU Emacs needs the
6470         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
6471         lchmodat.  Split the latter two into a new module chmodat.
6472         Similarly for fchownat.  This the same basic idea for why statat
6473         was split from fstatat on 2013-01-23.
6474         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
6475         Rename from FCHMODAT_INLINE.  All uses changed.
6476         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
6477         Rename from FCHOWNAT_INLINE.  All uses changed.
6478         * lib/openat.h:
6479         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
6480         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
6481         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
6482         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
6483         (configure.ac): Remove fchmodat module indicator.
6484         (Makefile.am): Omit chmodat.c.
6485         (Maintainer): Add self.
6486         * modules/fchownat: Similarly, but for chown.
6487         * tests/test-fchownat.c (BASE): Don't define if already defined.
6488         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
6490 2020-02-22  Bruno Haible  <bruno@clisp.org>
6492         users.txt: Add groff.
6493         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
6494         * users.txt: Add groff.
6496 2020-02-22  Bruno Haible  <bruno@clisp.org>
6498         gnulib-tool: Ensure copied files are writable.
6499         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
6500         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
6501         * gnulib-tool (func_ensure_writable): New function.
6502         (func_ln_s, func_hardlink, func_lookup_file, func_import,
6503         func_create_testdir, copy-file): Invoke it after copying a file.
6505 2020-02-22  Bruno Haible  <bruno@clisp.org>
6507         users.txt: Update.
6508         * users.txt: Update URLs to projects that have moved or switched to git.
6509         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
6510         over the summary view. Add gawk.
6512 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
6514         largefile: remove _DARWIN_USE_64_BIT_INODE
6515         It’s not needed in currently-supported macOS versions, and was
6516         problematic anyway in MacOS X 10.5 which was the only version that
6517         could use it.  Problem reported by Peter Eisentraut in:
6518         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
6519         * m4/largefile.m4 (AC_SYS_LARGEFILE):
6520         Don’t define _DARWIN_USE_64_BIT_INODE.
6521         This syncs with Autoconf master.
6523         Add ‘extern "C"’ to count-one-bits.h etc.
6524         This ports these .h files to C++.
6525         Problem reported by Simon Marchi in:
6526         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
6527         * lib/count-leading-zeros.h, lib/count-one-bits.h:
6528         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
6530 2020-02-19  Bruno Haible  <bruno@clisp.org>
6532         uninorm/decompose-internal: Avoid "no previous prototype" warning.
6533         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6534         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
6535         * lib/array-mergesort.h: Accept an optional macro definition
6536         STATIC_FROMTO.
6537         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
6539 2020-02-16  Bruno Haible  <bruno@clisp.org>
6541         fchmodat: Make more future-proof.
6542         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
6543         NEED_FCHMODAT_NONSYMLINK_FIX.
6544         (gl_PREREQ_FCHMODAT): New macro.
6545         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
6546         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
6547         without lchmod function.
6548         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
6550 2020-02-16  Bruno Haible  <bruno@clisp.org>
6552         lchmod: Make more future-proof.
6553         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
6554         (gl_PREREQ_LCHMOD): New macro.
6555         * lib/lchmod.c (orig_lchmod): New function.
6556         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
6557         Return EOPNOTSUPP only on Linux and on platforms without lchmod
6558         function.
6559         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
6561         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
6562         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
6564 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6566         xnanosleep: prefer pause, and get remaining time
6567         Problem reported by Vladimir Panteleev in:
6568         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
6569         * lib/xnanosleep.c: Include intprops.h, unistd.h.
6570         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
6571         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
6572         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
6573         * modules/xnanosleep (Depends-on): Add intprops, unistd.
6575 2020-02-16  Bruno Haible  <bruno@clisp.org>
6577         lchmod: Improve cross-compilation guess.
6578         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
6579         cross-compiling, guess depending on the platform.
6581 2020-02-16  Bruno Haible  <bruno@clisp.org>
6583         fstrcmp: Add API to clean up resources.
6584         Reported by Akim Demaille <akim@lrde.epita.fr> in
6585         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
6586         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
6587         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
6589 2020-02-14  Bruno Haible  <bruno@clisp.org>
6591         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
6592         Reported by Christian Biesinger in
6593         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
6594         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
6595         corresponding module is not enabled.
6596         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
6597         prototype if the corresponding module is not enabled.
6599 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
6601         fchmodat, lchmod: port to buggy Linux filesystems
6602         Problem reported by Florian Weimer in:
6603         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
6604         * lib/fchmodat.c (fchmodat):
6605         * lib/lchmod.c (lchmod):
6606         Don’t assume that chmod on the O_PATH-opened fd will do
6607         the right thing on a symbolic link.
6608         * lib/fchmodat.c (fchmodat):
6609         Don’t attempt to special-case
6610         any flag value other than AT_SYMLINK_NOFOLLOW.
6612 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
6614         lchmod: pacify Coverity CID 1491216
6615         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
6616         not complain about unreachable code at the ‘struct stat st;’
6617         declaration.
6619 2020-02-10  Bruno Haible  <bruno@clisp.org>
6621         copysignf: Fix link error on HP-UX with cc.
6622         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
6623         HP-UX, set COPYSIGNF_LIBM to -lm.
6625 2020-02-10  Bruno Haible  <bruno@clisp.org>
6627         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
6628         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
6629         with $(LIB_SEMAPHORE).
6630         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
6631         with $(LIB_SEMAPHORE).
6633 2020-02-10  Bruno Haible  <bruno@clisp.org>
6635         ptsname_r-tests: Avoid unused function warning.
6636         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
6638 2020-02-08  Bruno Haible  <bruno@clisp.org>
6640         lchmod: Add tests.
6641         * tests/test-lchmod.c: New file.
6642         * modules/lchmod-tests: New file.
6644 2020-02-08  Bruno Haible  <bruno@clisp.org>
6646         lchmod: Ensure declaration on HP-UX.
6647         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
6648         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
6650 2020-02-08  Bruno Haible  <bruno@clisp.org>
6652         fchmodat: Strengthen tests.
6653         * tests/test-fchmodat.c (BASE): New macro.
6654         (main): Use it, to avoid conflicts with other unit tests. Verify that
6655         fchmodat changed the file permission bits.
6657 2020-02-08  Bruno Haible  <bruno@clisp.org>
6659         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
6660         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
6661         '#undef __need_system_sys_stat_h'.
6663 2020-02-08  Bruno Haible  <bruno@clisp.org>
6665         fchmodat: Improve cross-compilation guesses.
6666         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
6667         cross-compiling, guess depending on the platform.
6668         * doc/posix-functions/fchmodat.texi: Clarify.
6670 2020-02-08  Bruno Haible  <bruno@clisp.org>
6672         Fix compilation errors in a testdir created with --with-c++-tests.
6673         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
6674         since it does not work any more with g++ >= 4.4.
6676 2020-02-08  Bruno Haible  <bruno@clisp.org>
6678         doc: Update for glibc 2.31.
6679         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
6680         * doc/gnulib.texi: Include it.
6681         * doc/pastposix-functions/h_errno.texi: Update.
6682         * doc/posix-functions/*.texi: Likewise.
6684 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
6686         mountlist: consider smb3 file systems as remote
6687         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
6688         "smb3" as remote.
6690 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6692         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
6693         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
6694         they act like chmod on non-symlinks.
6695         * NEWS:
6696         * doc/glibc-functions/lchmod.texi (lchmod):
6697         * doc/posix-functions/fchmodat.texi (fchmodat):
6698         Mention this.
6699         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
6700         config.h, and undef it after including sys/stat.h the first time.
6701         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
6702         sys/stat.h a second time after defining orig_fchmodat.
6703         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
6704         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
6705         * lib/lchmod.c: New file.
6706         * lib/sys_stat.in.h (fchmodat, lchmod):
6707         Support replacing these functions.
6708         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
6709         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
6710         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
6711         Test that lchmod works on non-symlinks.
6712         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
6713         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
6714         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
6715         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
6716         * modules/lchmod (Files): Add lib/lchmod.c.
6717         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
6718         (configure.ac): Compile lchmod.c if needed.
6719         (lib_SOURCES): Add lchmod.c.
6720         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
6721         and REPLACE_LCHMOD.
6722         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
6723         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
6725 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
6727         mountlist: Consider AFS filesystems as remote
6728         df --local relies on the ME_REMOTE macro to determine if a given
6729         mount entry should be considered "local".  There is special logic
6730         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
6731         kernel's kafs module or AuriStorFS is treated as a local mount.
6732         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
6733         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
6735 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6737         Port _Noreturn to older Clang
6738         Problem reported by Jeffery Walton in:
6739         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
6740         * lib/_Noreturn.h (_Noreturn):
6741         * m4/gnulib-common.m4 (gl_COMMON_BODY):
6742         Assume _Noreturn works in Clang 3.5 and later.
6743         It is documented to work in Clang 3.5:
6744         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
6745         and is not documented in Clang 3.4:
6746         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
6747         Apple sets __clang_version__ to a different value, so use
6748         __apple_build_version__ there.  See:
6749         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
6751 2020-02-04  Pádraig Brady  <P@draigBrady.com>
6753         test-canonicalize: avoid unused function warning
6754         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
6755         with the same guard as that used to protect usage of the null_ptr
6756         function, so that one doesn't get a -Wunused warning.
6757         * tests/test-canonicalize-lgpl.c: Likewise.
6759 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
6761         libc-config: port to Apple’s Clang variant
6762         * lib/libc-config.h (__glibc_clang_prereq):
6763         Port to Apple’s Clang variant, which uses a different
6764         numbering scheme for __clang_major__.
6766 2020-02-02  Bruno Haible  <bruno@clisp.org>
6768         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
6769         * doc/containers.texi: Document these new modules.
6771 2020-02-02  Bruno Haible  <bruno@clisp.org>
6773         omap-c++: Add tests.
6774         * tests/test-omap-c++.cc: New file.
6775         * modules/omap-c++-tests: New file.
6777         omap-c++: New module.
6778         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
6779         * modules/omap-c++: New file.
6781 2020-02-02  Bruno Haible  <bruno@clisp.org>
6783         map-c++: Add tests.
6784         * tests/test-map-c++.cc: New file.
6785         * modules/map-c++-tests: New file.
6787         map-c++: New module.
6788         * lib/gl_map.hh: New file, based on lib/gl_map.h.
6789         * modules/map-c++: New file.
6791 2020-02-02  Bruno Haible  <bruno@clisp.org>
6793         oset-c++: Add tests.
6794         * tests/test-oset-c++.cc: New file.
6795         * modules/oset-c++-tests: New file.
6797         oset-c++: New module.
6798         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
6799         * modules/oset-c++: New file.
6801 2020-02-02  Bruno Haible  <bruno@clisp.org>
6803         set-c++: Add tests.
6804         * tests/test-set-c++.cc: New file.
6805         * modules/set-c++-tests: New file.
6807         set-c++: New module.
6808         * lib/gl_set.hh: New file, based on lib/gl_set.h.
6809         * modules/set-c++: New file.
6811 2020-02-02  Bruno Haible  <bruno@clisp.org>
6813         list-c++: Add tests.
6814         * tests/test-list-c++.cc: New file.
6815         * modules/list-c++-tests: New file.
6817         list-c++: New module.
6818         * lib/gl_list.hh: New file, based on lib/gl_list.h.
6819         * modules/list-c++: New file.
6821 2020-02-02  Bruno Haible  <bruno@clisp.org>
6823         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
6824         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
6825         '_Noreturn'.
6826         * lib/sigpipe-die.h (sigpipe_die): Likewise.
6828 2020-02-02  Pádraig Brady  <P@draigBrady.com>
6830         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
6831         On x86_64 with glibc-2.30, gcc 9.2 is giving:
6832           error: argument 2 value '18446744073709551615'
6833           exceeds maximum object size 9223372036854775807
6834           [-Werror=alloc-size-larger-than=]
6835         The details of this restriction are discussed at:
6836         https://stackoverflow.com/q/42574890/4421
6837         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
6839 2020-02-02  Pádraig Brady  <P@draigBrady.com>
6841         sysctl.h: avoid including on glibc
6842         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
6843         * lib/physmem.c: Likewise.
6845 2020-02-02  Bruno Haible  <bruno@clisp.org>
6847         list, set, oset, map, omap: Avoid imperative voice in documentation.
6848         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
6849         in the specification of functions.
6850         * lib/gl_set.h: Likewise.
6851         * lib/gl_oset.h: Likewise.
6852         * lib/gl_map.h: Likewise.
6853         * lib/gl_omap.h: Likewise.
6854         * lib/gl_*.h: Likewise.
6856 2020-02-01  Bruno Haible  <bruno@clisp.org>
6858         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
6859         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
6860         does.
6862 2020-01-29  Bruno Haible  <bruno@clisp.org>
6864         array-map, hash-map, linkedhash-map: Fix module description.
6865         * modules/array-map (Description): Fix description.
6866         * modules/hash-map (Description): Likewise.
6867         * modules/linkedhash-map (Description): Likewise.
6869 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6871         dfa: do not depend on isblank
6872         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
6873         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
6874         * modules/dfa (Depends-on): Remove isblank.
6875         * modules/isblank: Add a module indicator, for lib/dfa.c.
6877         dfa: do not assume 64-bit int
6878         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
6879         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
6880         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
6881         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
6882         Fall back to 32-bit words.
6883         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
6884         of 4 64-bit args.  All uses changed.
6886 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6888         regex: remove limits-h dependency
6889         * modules/regex (Depends-on): Remove limits-h, since the
6890         code no longer depends on ULONG_WIDTH already being defined.
6892         regex: port to non-GCC pre-IEC-60559
6893         Problem reported by Arnold Robbins in:
6894         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
6895         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
6897 2020-01-25  Bruno Haible  <bruno@clisp.org>
6899         c32isxdigit: Add tests.
6900         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
6901         * tests/test-c32isxdigit.sh: New file.
6902         * modules/c32isxdigit-tests: New file.
6904         c32isxdigit: New module.
6905         * lib/c32isxdigit.c: New file.
6906         * modules/c32isxdigit: New file.
6907         * doc/posix-functions/iswxdigit.texi: Mention the new module.
6909 2020-01-25  Bruno Haible  <bruno@clisp.org>
6911         c32isupper: Add tests.
6912         * tests/test-c32isupper.c: New file.
6913         * tests/test-c32isupper.sh: New file.
6914         * modules/c32isupper-tests: New file.
6916         c32isupper: New module.
6917         * lib/c32isupper.c: New file.
6918         * modules/c32isupper: New file.
6919         * doc/posix-functions/iswupper.texi: Mention the new module.
6921 2020-01-25  Bruno Haible  <bruno@clisp.org>
6923         c32isspace: Add tests.
6924         * tests/test-c32isspace.c: New file.
6925         * tests/test-c32isspace.sh: New file.
6926         * modules/c32isspace-tests: New file.
6928         c32isspace: New module.
6929         * lib/c32isspace.c: New file.
6930         * modules/c32isspace: New file.
6931         * doc/posix-functions/iswspace.texi: Mention the new module.
6933 2020-01-25  Bruno Haible  <bruno@clisp.org>
6935         c32ispunct: Add tests.
6936         * tests/test-c32ispunct.c: New file.
6937         * tests/test-c32ispunct.sh: New file.
6938         * modules/c32ispunct-tests: New file.
6940         c32ispunct: New module.
6941         * lib/c32ispunct.c: New file.
6942         * modules/c32ispunct: New file.
6943         * doc/posix-functions/iswpunct.texi: Mention the new module.
6945 2020-01-25  Bruno Haible  <bruno@clisp.org>
6947         c32isprint: Add tests.
6948         * tests/test-c32isprint.c: New file.
6949         * tests/test-c32isprint.sh: New file.
6950         * modules/c32isprint-tests: New file.
6952         c32isprint: New module.
6953         * lib/c32isprint.c: New file.
6954         * modules/c32isprint: New file.
6955         * doc/posix-functions/iswprint.texi: Mention the new module.
6957 2020-01-25  Bruno Haible  <bruno@clisp.org>
6959         c32islower: Add tests.
6960         * tests/test-c32islower.c: New file.
6961         * tests/test-c32islower.sh: New file.
6962         * modules/c32islower-tests: New file.
6964         c32islower: New module.
6965         * lib/c32islower.c: New file.
6966         * modules/c32islower: New file.
6967         * doc/posix-functions/iswlower.texi: Mention the new module.
6969 2020-01-25  Bruno Haible  <bruno@clisp.org>
6971         c32isgraph: Add tests.
6972         * tests/test-c32isgraph.c: New file.
6973         * tests/test-c32isgraph.sh: New file.
6974         * modules/c32isgraph-tests: New file.
6976         c32isgraph: New module.
6977         * lib/c32isgraph.c: New file.
6978         * modules/c32isgraph: New file.
6979         * doc/posix-functions/iswgraph.texi: Mention the new module.
6981 2020-01-25  Bruno Haible  <bruno@clisp.org>
6983         c32isdigit: Add tests.
6984         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
6985         * tests/test-c32isdigit.sh: New file.
6986         * modules/c32isdigit-tests: New file.
6988         c32isdigit: New module.
6989         * lib/c32isdigit.c: New file.
6990         * modules/c32isdigit: New file.
6991         * doc/posix-functions/iswdigit.texi: Mention the new module.
6993 2020-01-25  Bruno Haible  <bruno@clisp.org>
6995         c32iscntrl: Add tests.
6996         * tests/test-c32iscntrl.c: New file.
6997         * tests/test-c32iscntrl.sh: New file.
6998         * modules/c32iscntrl-tests: New file.
7000         c32iscntrl: New module.
7001         * lib/c32iscntrl.c: New file.
7002         * modules/c32iscntrl: New file.
7003         * doc/posix-functions/iswcntrl.texi: Mention the new module.
7005 2020-01-25  Bruno Haible  <bruno@clisp.org>
7007         c32isblank: Add tests.
7008         * tests/test-c32isblank.c: New file.
7009         * tests/test-c32isblank.sh: New file.
7010         * modules/c32isblank-tests: New file.
7012         c32isblank: New module.
7013         * lib/c32isblank.c: New file.
7014         * modules/c32isblank: New file.
7015         * doc/posix-functions/iswblank.texi: Mention the new module.
7017 2020-01-25  Bruno Haible  <bruno@clisp.org>
7019         c32isalpha: Add tests.
7020         * tests/test-c32isalpha.c: New file.
7021         * tests/test-c32isalpha.sh: New file.
7022         * modules/c32isalpha-tests: New file.
7024         c32isalpha: New module.
7025         * lib/c32isalpha.c: New file.
7026         * modules/c32isalpha: New file.
7027         * doc/posix-functions/iswalpha.texi: Mention the new module.
7029 2020-01-25  Bruno Haible  <bruno@clisp.org>
7031         c32isalnum: Add tests.
7032         * tests/test-c32isalnum.c: New file.
7033         * tests/test-c32isalnum.sh: New file.
7034         * modules/c32isalnum-tests: New file.
7036         c32isalnum: New module.
7037         * lib/c32isalnum.c: New file.
7038         * lib/c32is-impl.h: New file.
7039         * modules/c32isalnum: New file.
7040         * doc/posix-functions/iswalnum.texi: Mention the new module.
7042 2020-01-25  Bruno Haible  <bruno@clisp.org>
7044         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
7045         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
7046         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
7047         c32isupper, c32isxdigit): New declarations.
7048         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
7049         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7050         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7051         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7052         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7053         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
7054         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7055         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7056         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7057         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7058         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
7059         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
7060         c32ispunct, c32isspace, c32isupper, c32isxdigit.
7062 2020-01-25  Bruno Haible  <bruno@clisp.org>
7064         mbchar, wctype: Use the corrected iswxdigit function.
7065         * modules/mbchar (Depends-on): Add iswxdigit.
7066         * modules/wctype (Depends-on): Likewise.
7068         iswxdigit: Add tests.
7069         * tests/test-iswxdigit.c: New file.
7070         * tests/test-iswxdigit.sh: New file.
7071         * modules/iswxdigit-tests: New file.
7073         iswxdigit: New module.
7074         * m4/iswxdigit.m4: New file.
7075         * lib/wctype.in.h (iswxdigit): Potentially override.
7076         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
7077         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
7078         * lib/iswxdigit.c: New file.
7079         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
7080         REPLACE_ISWXDIGIT.
7081         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
7082         REPLACE_ISWXDIGIT.
7083         * modules/iswxdigit: New file.
7084         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
7086 2020-01-25  Bruno Haible  <bruno@clisp.org>
7088         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
7089         Reported by John Donoghue <john.david.donoghue@gmail.com> in
7090         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
7091         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
7092         off_t on mingw, invoke _lseeki64 instead of lseek.
7094 2020-01-25  Bruno Haible  <bruno@clisp.org>
7096         iswdigit tests: Avoid test failure on Cygwin.
7097         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
7098         byte sequence, return 0.
7100         iswdigit: Fix test failure on native Windows.
7101         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
7103         mbchar, wctype: Use the corrected iswdigit function.
7104         * modules/mbchar (Depends-on): Add iswdigit.
7105         * modules/wctype (Depends-on): Likewise.
7107         iswdigit: Add tests.
7108         * tests/test-iswdigit.c: New file.
7109         * tests/test-iswdigit.sh: New file.
7110         * modules/iswdigit-tests: New file.
7112         iswdigit: New module.
7113         * m4/iswdigit.m4: New file.
7114         * lib/wctype.in.h (iswdigit): Potentially override.
7115         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
7116         * lib/iswdigit.c: New file.
7117         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
7118         REPLACE_ISWDIGIT.
7119         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
7120         REPLACE_ISWDIGIT.
7121         * modules/iswdigit: New file.
7122         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
7124 2020-01-25  Bruno Haible  <bruno@clisp.org>
7126         hard-locale tests: Make it easy to reuse the musl test.
7127         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
7128         * modules/hard-locale-tests (Files): Add it.
7129         (configure.ac): Invoke gl_MUSL_LIBC.
7131 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7133         regex: port to Gawk on nonstandard platforms
7134         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
7135         This is useful for Gawk, which does not use the Gnulib stdlib-h
7136         module.  Problem reported by Arnold Robbins in:
7137         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
7139 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7141         regex: fix bug with >=16 subexpressions
7142         * lib/regex_internal.h (struct re_backref_cache_entry):
7143         Use bitset_word_t as the type of eps_reachable_subexps_map,
7144         instead of unsigned short int.  This fixes a bug I introduced
7145         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
7146         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
7147         Remove unused member 'unused'.
7149         regex: simplify definition of BITSET_WORD_BITS
7150         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
7151         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
7152         * lib/regex_internal.h (BITSET_WORD_BITS):
7153         * modules/regex (Depends-on): Add limits-h.
7154         Simplify now that we can use ULONG_WIDTH.
7156 2020-01-20  Bruno Haible  <bruno@clisp.org>
7158         mbrtoc32: Add note about FreeBSD 12.
7159         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
7160         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
7161         affected.
7163 2020-01-20  Bruno Haible  <bruno@clisp.org>
7165         unistr/u8-uctomb: Fix warning.
7166         Reported by Andreas Schwab <schwab@suse.de> in
7167         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
7168         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
7169         (u8_uctomb): Add FALLTHROUGH markers.
7171 2020-01-20  Bruno Haible  <bruno@clisp.org>
7173         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
7174         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
7175         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
7176         (glthread_once): Use it.
7178 2020-01-19  Bruno Haible  <bruno@clisp.org>
7180         threadlib: Disable use of weak symbols on FreeBSD 11.
7181         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7182         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
7183         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
7184         against a bug in FreeBSD 11.
7186 2020-01-19  Bruno Haible  <bruno@clisp.org>
7188         iconv_open: Improve z/OS support.
7189         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
7190         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
7191         Remove mapping for EUC-TW.
7193 2020-01-18  Bruno Haible  <bruno@clisp.org>
7195         Rename ~~gnulib.m4 to zzgnulib.m4.
7196         Suggested by Paul Eggert.
7197         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
7198         * gnulib-tool (func_get_filelist): Update.
7199         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7201 2020-01-18  Bruno Haible  <bruno@clisp.org>
7203         doc: Update license notices.
7204         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
7205         reference to a section or to a "file as part of this distribution".
7207 2020-01-18  Bruno Haible  <bruno@clisp.org>
7209         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
7210         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7211         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
7212         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
7213         AC_EGREP_CPP.
7215 2020-01-18  Bruno Haible  <bruno@clisp.org>
7217         Ensure Automake does not drop ~~gnulib.m4.
7218         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
7219         * m4/gnulib-common.m4 (gl_COMMON): Require it.
7221 2020-01-18  Bruno Haible  <bruno@clisp.org>
7223         Fix major regression from 2020-01-10.
7224         Reported by Paul Eggert in
7225         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
7226         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
7227         Don't AC_REQUIRE anything.
7228         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
7229         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
7230         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
7231         use ac_compile instead.
7232         (AC_CHECK_DECL): Remove override.
7233         * m4/~~gnulib.m4: New file.
7234         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
7235         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7237 2020-01-17  Bruno Haible  <bruno@clisp.org>
7238             Paul Eggert  <eggert@cs.ucla.edu>
7240         glob: Fix use-after-free bug.
7241         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7242         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
7243         * lib/glob.c (__glob): Delay freeing dirname until after the use of
7244         end_name.
7246 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7248         vcs-to-changelog: Fix parsing of fndecl without args.
7249         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
7250         for empty arguments.
7252 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7254         vcs-to-changelog: Add documentation.
7255         * doc/vcs-to-changelog.texi: New file.
7256         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
7257         section.
7259 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7261         vcs-to-changelog: Allow loading of custom quirks file.
7262         * build-aux/vcs_to_changelog.py: New commandline option -q.
7264 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7266         vcs-to-changelog: Fix formatting of ChangeLog output.
7267         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
7268         output.
7270 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7272         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
7273         Reported in
7274         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
7275         * build-aux/vcstocl/frontend_c.py: Remove shebang.
7277 2020-01-15  Simon Josefsson  <simon@josefsson.org>
7279         crypto/gc-pbkdf2: New module.
7280         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
7281         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
7282         * lib/gc-pbkdf2.c: New file.
7283         * lib/gc-pbkdf2-sha1.c: Use new interface.
7284         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
7285         * modules/crypto/gc-pbkdf2: New file.
7286         * modules/crypto/gc-pbkdf2-tests: New file.
7287         * tests/test-gc-pbkdf2.c: New file.
7289 2020-01-12  Bruno Haible  <bruno@clisp.org>
7291         c32stombs: Add tests.
7292         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
7293         * tests/test-c32stombs-1.sh: New file, based on
7294         tests/test-c32srtombs-1.sh.
7295         * tests/test-c32stombs-2.sh: New file, based on
7296         tests/test-c32srtombs-2.sh.
7297         * tests/test-c32stombs-3.sh: New file, based on
7298         tests/test-c32srtombs-3.sh.
7299         * tests/test-c32stombs-4.sh: New file, based on
7300         tests/test-c32srtombs-4.sh.
7301         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
7303         c32stombs: New module.
7304         * lib/uchar.in.h (c32stombs): New declaration.
7305         * lib/c32stombs.c: New file.
7306         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
7307         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
7308         * modules/c32stombs: New file.
7309         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
7310         * doc/posix-functions/wcstombs.texi: Mention the new module.
7312 2020-01-11  Jim Meyering  <meyering@fb.com>
7314         perl: require the "warnings" module
7315         * m4/perl.m4: Also "use warnings", so we reject the perl found
7316         on at least one IRIX 6.5 system. Reported by Bruno Haible in
7317         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
7319 2020-01-10  Bruno Haible  <bruno@clisp.org>
7321         Fix major regression from 2020-01-04.
7322         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7323         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
7324         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
7325         AC_DEFUN_ONCE.
7326         (AC_CHECK_DECL): Invoke, not require, it.
7328 2020-01-10  Bruno Haible  <bruno@clisp.org>
7330         c32snrtombs: Add tests.
7331         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
7332         * tests/test-c32snrtombs-1.sh: New file, based on
7333         tests/test-wcsnrtombs1.sh.
7334         * tests/test-c32snrtombs-2.sh: New file, based on
7335         tests/test-wcsnrtombs2.sh.
7336         * tests/test-c32snrtombs-3.sh: New file, based on
7337         tests/test-wcsnrtombs3.sh.
7338         * tests/test-c32snrtombs-4.sh: New file, based on
7339         tests/test-wcsnrtombs4.sh.
7340         * modules/c32snrtombs-tests: New file, based on
7341         modules/wcsnrtombs-tests.
7343         c32snrtombs: New module.
7344         * lib/uchar.in.h (c32snrtombs): New declaration.
7345         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
7346         INTERNAL_STATE, WCRTOMB.
7347         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
7348         * lib/c32snrtombs.c: New file.
7349         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
7350         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
7351         * modules/c32snrtombs: New file.
7352         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
7353         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7355 2020-01-09  Bruno Haible  <bruno@clisp.org>
7357         c32srtombs: Add tests.
7358         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
7359         * tests/test-c32srtombs-1.sh: New file, based on
7360         tests/test-wcsrtombs1.sh.
7361         * tests/test-c32srtombs-2.sh: New file, based on
7362         tests/test-wcsrtombs2.sh.
7363         * tests/test-c32srtombs-3.sh: New file, based on
7364         tests/test-wcsrtombs3.sh.
7365         * tests/test-c32srtombs-4.sh: New file, based on
7366         tests/test-wcsrtombs4.sh.
7367         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
7369         c32srtombs: New module.
7370         * lib/uchar.in.h (c32srtombs): New declaration.
7371         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
7372         INTERNAL_STATE, WCRTOMB.
7373         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
7374         * lib/c32srtombs.c: New file.
7375         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
7376         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
7377         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
7378         * modules/c32srtombs: New file.
7379         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
7380         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
7382 2020-01-08  Bruno Haible  <bruno@clisp.org>
7384         c32tob: Make consistent with mbrtoc32.
7385         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
7386         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
7387         use c32rtomb, not wctob.
7388         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
7389         (Depends-on): Add c32rtomb.
7390         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
7392 2020-01-08  Bruno Haible  <bruno@clisp.org>
7394         c32rtomb: Add tests.
7395         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
7396         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
7397         * tests/test-c32rtomb-w32.c: New file, based on
7398         tests/test-wcrtomb-w32.c.
7399         * tests/test-c32rtomb-w32-1.sh: New file, based on
7400         tests/test-wcrtomb-w32-1.sh.
7401         * tests/test-c32rtomb-w32-2.sh: New file, based on
7402         tests/test-wcrtomb-w32-2.sh.
7403         * tests/test-c32rtomb-w32-3.sh: New file, based on
7404         tests/test-wcrtomb-w32-3.sh.
7405         * tests/test-c32rtomb-w32-4.sh: New file, based on
7406         tests/test-wcrtomb-w32-4.sh.
7407         * tests/test-c32rtomb-w32-5.sh: New file, based on
7408         tests/test-wcrtomb-w32-5.sh.
7409         * tests/test-c32rtomb-w32-6.sh: New file, based on
7410         tests/test-wcrtomb-w32-6.sh.
7411         * tests/test-c32rtomb-w32-7.sh: New file, based on
7412         tests/test-wcrtomb-w32-7.sh.
7413         * modules/c32rtomb-tests: New file.
7415         c32rtomb: New module.
7416         * lib/uchar.in.h (c32rtomb): New declaration.
7417         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
7418         * m4/c32rtomb.m4: New file.
7419         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
7420         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
7421         REPLACE_C32RTOMB.
7422         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
7423         HAVE_C32RTOMB, REPLACE_C32RTOMB.
7424         * modules/c32rtomb: New file.
7425         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
7426         * doc/posix-functions/c32rtomb.texi: Document the new module.
7427         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7429 2020-01-08  Bruno Haible  <bruno@clisp.org>
7431         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
7432         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
7433         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
7434         but is not working.
7435         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
7436         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
7437         differ, use the system's mbrtoc32, adding workarounds.
7438         * modules/mbrtoc32 (Depends-on): Add hard-locale.
7439         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
7440         Windows problem.
7441         * lib/btoc32.c: Include <stdio.h>, <string.h>.
7442         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
7443         use mbrtoc32, not btowc.
7444         * modules/btoc32 (Depends-on): Add mbrtoc32.
7445         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
7446         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
7447         * modules/mbsrtoc32s (Depends-on): Update conditions.
7448         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
7449         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
7450         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
7451         * modules/mbsnrtoc32s (Depends-on): Update conditions.
7452         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
7454 2020-01-07  Bruno Haible  <bruno@clisp.org>
7456         wcrtomb: Make multithread-safe, except possibly on IRIX.
7457         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
7458         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
7459         WCRTOMB_RETVAL_BUG.
7460         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
7461         wctomb only on IRIX.
7463 2020-01-05  Jim Meyering  <meyering@fb.com>
7465         tests: skip thread-using tests when threading is disabled
7466         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
7467         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
7468         of those, so they are skipped in this case.
7469         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
7470         * tests/test-setlocale_null-mt-all.c (main): Likewise.
7471         * tests/test-setlocale_null-mt-one.c (main): Likewise.
7473 2020-01-05  Bruno Haible  <bruno@clisp.org>
7475         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
7476         Reported by Jim Meyering in
7477         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
7478         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
7479         (GNULIB_defined_ptsname_r): New macro.
7480         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
7481         (main): Disable the NULL argument test if canonicalize_file_name does
7482         not come from gnulib.
7483         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
7484         (main): Disable the NULL argument test if canonicalize_file_name does
7485         not come from gnulib.
7486         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
7487         (test_errors): Disable the NULL argument test if ptsname_r does not come
7488         from gnulib.
7490 2020-01-04  Jim Meyering  <meyering@fb.com>
7492         update-copyright: reenable its always-skipped test
7493         * tests/test-update-copyright.sh: Restore the "-pi" options removed
7494         on 2019-06-15. Without those, an internal preliminary test would
7495         fail, causing this test always to be skipped.
7496         Verify that the test is now run and passes via this:
7497           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
7499 2020-01-05  Bruno Haible  <bruno@clisp.org>
7501         mbstoc32s: Add tests.
7502         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
7503         * tests/test-mbstoc32s-1.sh: New file, based on
7504         tests/test-mbsrtoc32s-1.sh.
7505         * tests/test-mbstoc32s-2.sh: New file, based on
7506         tests/test-mbsrtoc32s-2.sh.
7507         * tests/test-mbstoc32s-3.sh: New file, based on
7508         tests/test-mbsrtoc32s-3.sh.
7509         * tests/test-mbstoc32s-4.sh: New file, based on
7510         tests/test-mbsrtoc32s-4.sh.
7511         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
7513         mbstoc32s: New module.
7514         * lib/uchar.in.h (mbstoc32s): New declaration.
7515         * lib/mbstoc32s.c: New file.
7516         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
7517         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
7518         * modules/mbstoc32s: New file.
7519         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
7520         * doc/posix-functions/mbstowcs.texi: Mention the new module.
7522 2020-01-05  Bruno Haible  <bruno@clisp.org>
7524         Tweak recently added tests.
7525         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
7526         * tests/test-mbsrtoc32s.c: Likewise.
7527         * tests/test-mbsnrtoc32s.c: Likewise.
7529 2020-01-04  Bruno Haible  <bruno@clisp.org>
7531         mbsnrtoc32s: Add tests.
7532         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
7533         * tests/test-mbsnrtoc32s-1.sh: New file, based on
7534         tests/test-mbsnrtowcs1.sh.
7535         * tests/test-mbsnrtoc32s-2.sh: New file, based on
7536         tests/test-mbsnrtowcs2.sh.
7537         * tests/test-mbsnrtoc32s-3.sh: New file, based on
7538         tests/test-mbsnrtowcs3.sh.
7539         * tests/test-mbsnrtoc32s-4.sh: New file, based on
7540         tests/test-mbsnrtowcs4.sh.
7541         * modules/mbsnrtoc32s-tests: New file, based on
7542         modules/mbsnrtowcs-tests.
7544         mbsnrtoc32s: New module.
7545         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
7546         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
7547         INTERNAL_STATE, MBRTOWC.
7548         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
7549         * lib/mbsnrtoc32s.c: New file.
7550         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
7551         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
7552         * modules/mbsnrtoc32s: New file.
7553         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
7554         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
7556 2020-01-04  Bruno Haible  <bruno@clisp.org>
7558         mbsrtoc32s tests: Enhance test.
7559         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
7560         test strings for UTF-8 and GB18030.
7562 2020-01-04  Bruno Haible  <bruno@clisp.org>
7564         mbsrtoc32s: Fix bug.
7565         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
7566         that SMALL_WCHAR_T is defined.
7568 2020-01-04  Bruno Haible  <bruno@clisp.org>
7570         mbsrtoc32s: Add tests.
7571         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
7572         * tests/test-mbsrtoc32s-1.sh: New file, based on
7573         tests/test-mbsrtowcs1.sh.
7574         * tests/test-mbsrtoc32s-2.sh: New file, based on
7575         tests/test-mbsrtowcs2.sh.
7576         * tests/test-mbsrtoc32s-3.sh: New file, based on
7577         tests/test-mbsrtowcs3.sh.
7578         * tests/test-mbsrtoc32s-4.sh: New file, based on
7579         tests/test-mbsrtowcs4.sh.
7580         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
7582         mbsrtoc32s: New module.
7583         * lib/uchar.in.h (mbsrtoc32s): New declaration.
7584         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
7585         INTERNAL_STATE, MBRTOWC.
7586         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
7587         * lib/mbsrtoc32s.c: New file.
7588         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
7589         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
7590         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
7591         * modules/mbsrtoc32s: New file.
7592         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
7593         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
7595 2020-01-04  Bruno Haible  <bruno@clisp.org>
7597         mbrtowc, mbrtoc32: Tighten dependendies.
7598         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
7599         REPLACE_MBSTATE_T is 1.
7600         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
7601         REPLACE_MBSTATE_T is 0.
7602         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
7603         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
7604         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
7605         REPLACE_MBSTATE_T is 0.
7607 2020-01-04  Bruno Haible  <bruno@clisp.org>
7609         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
7610         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
7611         * modules/uchar (Files): Add stdint.m4.
7612         (Makefile.am): Substitute SMALL_WCHAR_T.
7613         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
7615 2020-01-04  Bruno Haible  <bruno@clisp.org>
7617         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
7618         Reported by Martin Storsjö <martin@martin.st> in
7619         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
7620         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
7621         New macros.
7622         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
7624 2020-01-04  Bruno Haible  <bruno@clisp.org>
7626         btoc32: Add tests.
7627         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
7628         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
7629         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
7630         * modules/btoc32-tests: New file, based on modules/btowc-tests.
7632         btoc32: New module.
7633         * lib/uchar.in.h (btoc32): New declaration.
7634         * lib/btoc32.c: New file.
7635         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
7636         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
7637         * modules/btoc32: New file.
7638         * tests/test-uchar-c++.cc: Test the signature of btoc32.
7639         * doc/posix-functions/btowc.texi: Mention the new module.
7641 2020-01-03  Bruno Haible  <bruno@clisp.org>
7643         uchar tests: Avoid compilation error with HP cc.
7644         * tests/test-uchar.c: Disable a test when HP cc is in use.
7646 2020-01-03  Bruno Haible  <bruno@clisp.org>
7648         mbrtoc32: Add tests.
7649         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
7650         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
7651         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
7652         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
7653         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
7654         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
7655         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
7656         * tests/test-mbrtoc32-w32-1.sh: New file, based on
7657         tests/test-mbrtowc-w32-1.sh.
7658         * tests/test-mbrtoc32-w32-2.sh: New file, based on
7659         tests/test-mbrtowc-w32-2.sh.
7660         * tests/test-mbrtoc32-w32-3.sh: New file, based on
7661         tests/test-mbrtowc-w32-3.sh.
7662         * tests/test-mbrtoc32-w32-4.sh: New file, based on
7663         tests/test-mbrtowc-w32-4.sh.
7664         * tests/test-mbrtoc32-w32-5.sh: New file, based on
7665         tests/test-mbrtowc-w32-5.sh.
7666         * tests/test-mbrtoc32-w32-6.sh: New file, based on
7667         tests/test-mbrtowc-w32-6.sh.
7668         * tests/test-mbrtoc32-w32-7.sh: New file, based on
7669         tests/test-mbrtowc-w32-7.sh.
7670         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
7672         mbrtoc32: New module.
7673         * lib/uchar.in.h (mbrtoc32): New declaration.
7674         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
7675         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
7676         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
7677         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
7678         REPLACE_MBRTOC32.
7679         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
7680         HAVE_MBRTOC32, REPLACE_MBRTOC32.
7681         * modules/mbrtoc32: New file, based on modules/mbrtowc.
7682         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
7683         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
7684         $(LIB_MBRTOWC).
7685         * doc/posix-functions/mbrtoc32.texi: Document the new module.
7686         * doc/posix-functions/mbrtowc.texi: Mention the new module.
7688 2020-01-03  Bruno Haible  <bruno@clisp.org>
7690         mbrtowc: Refactor to share code with mbrtoc32.
7691         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
7692         * lib/mbrtowc-impl-utf8.h: Likewise.
7693         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
7694         mbrtowc-impl.h.
7695         * modules/mbrtowc (Files): Add the new files.
7697 2020-01-03  Jim Meyering  <meyering@fb.com>
7699         doc: fix time.texi wording
7700         * doc/posix-headers/time.texi (time.h): Typo.
7702 2020-01-03  Bruno Haible  <bruno@clisp.org>
7704         mbrtowc: Refactor locale charset dispatching.
7705         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
7706         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
7707         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
7708         localcharset.h, streq.h.
7709         (enc_t): Remove type.
7710         (locale_enc): Remove function.
7711         (cached_locale_enc): Remove variable.
7712         (locale_enc_cached): Remove function.
7713         (mbrtowc): Invoke locale_encoding_classification.
7714         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
7715         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
7716         lc-charset-dispatch.c.
7717         (configure.ac): Arrange to compile lc-charset-dispatch.c.
7719 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
7721         doc: mention 32-bit time_t issue
7722         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7723         * doc/posix-headers/time.texi (time.h): Mention 2038.
7725 2020-01-03  Bruno Haible  <bruno@clisp.org>
7727         mbrtowc: Ensure the mbtowc_lock is unique.
7728         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
7729         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
7730         lib/setlocale_null.c.
7731         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
7732         glthread/lock.h. Include mbtowc-lock.h.
7733         (mbtowc_lock): Remove declaration.
7734         (mbrtowc): Use mbtowc_with_lock.
7735         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
7736         threads.h. Set LIB_MBRTOWC.
7737         (gl_PREREQ_MBTOWC_LOCK): New macro.
7738         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
7739         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
7740         (Depends-on): Remove lock.
7741         (configure.ac): Arrange to compile mbtowc-lock.c.
7742         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
7743         * modules/acl (Link): Likewise.
7744         * modules/argmatch (Link): Likewise.
7745         * modules/backup-rename (Link): Likewise.
7746         * modules/backupfile (Link): Likewise.
7747         * modules/closein (Link): Likewise.
7748         * modules/closeout (Link): Likewise.
7749         * modules/copy-file (Link): Likewise.
7750         * modules/csharpcomp (Link): Likewise.
7751         * modules/csharpexec (Link): Likewise.
7752         * modules/dfa (Link): Likewise.
7753         * modules/exclude (Link): Likewise.
7754         * modules/fnmatch (Link): Likewise.
7755         * modules/fnmatch-gnu (Link): Likewise.
7756         * modules/fnmatch-posix (Link): Likewise.
7757         * modules/glob (Link): Likewise.
7758         * modules/human (Link): Likewise.
7759         * modules/javacomp (Link): Likewise.
7760         * modules/javaexec (Link): Likewise.
7761         * modules/javaversion (Link): Likewise.
7762         * modules/mbfile (Link): Likewise.
7763         * modules/mbiter (Link): Likewise.
7764         * modules/mbmemcasecmp (Link): Likewise.
7765         * modules/mbmemcasecoll (Link): Likewise.
7766         * modules/mbrlen (Link): Likewise.
7767         * modules/mbscasecmp (Link): Likewise.
7768         * modules/mbscasestr (Link): Likewise.
7769         * modules/mbschr (Link): Likewise.
7770         * modules/mbscspn (Link): Likewise.
7771         * modules/mbsinit (Link): Likewise.
7772         * modules/mbslen (Link): Likewise.
7773         * modules/mbsncasecmp (Link): Likewise.
7774         * modules/mbsnlen (Link): Likewise.
7775         * modules/mbsnrtowcs (Link): Likewise.
7776         * modules/mbspbrk (Link): Likewise.
7777         * modules/mbspcasecmp (Link): Likewise.
7778         * modules/mbsrchr (Link): Likewise.
7779         * modules/mbsrtowcs (Link): Likewise.
7780         * modules/mbssep (Link): Likewise.
7781         * modules/mbsspn (Link): Likewise.
7782         * modules/mbsstr (Link): Likewise.
7783         * modules/mbstok_r (Link): Likewise.
7784         * modules/mbswidth (Link): Likewise.
7785         * modules/mbuiter (Link): Likewise.
7786         * modules/mkdir-p (Link): Likewise.
7787         * modules/propername (Link): Likewise.
7788         * modules/quote (Link): Likewise.
7789         * modules/quotearg (Link): Likewise.
7790         * modules/quotearg-simple (Link): Likewise.
7791         * modules/regex-quote (Link): Likewise.
7792         * modules/rpmatch (Link): Likewise.
7793         * modules/sh-quote (Link): Likewise.
7794         * modules/system-quote (Link): Likewise.
7795         * modules/trim (Link): Likewise.
7796         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7797         * modules/unistdio/ulc-fprintf (Link): Likewise.
7798         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7799         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7800         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7801         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7802         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7803         * modules/xfreopen (Link): Likewise.
7804         * modules/xmemcoll (Link): Likewise.
7805         * modules/yesno (Link): Likewise.
7806         * modules/regex (Link): Add $(LIB_MBRTOWC).
7807         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
7808         instead of $(LIBTHREAD).
7809         * modules/argmatch-tests (Makefile.am): Likewise.
7810         * modules/closein-tests (Makefile.am): Likewise.
7811         * modules/copy-file-tests (Makefile.am): Likewise.
7812         * modules/dfa-tests (Makefile.am): Likewise.
7813         * modules/fnmatch-tests (Makefile.am): Likewise.
7814         * modules/glob-tests (Makefile.am): Likewise.
7815         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7816         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7817         * modules/mbrtowc-tests (Makefile.am): Likewise.
7818         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7819         * modules/mbscasestr-tests (Makefile.am): Likewise.
7820         * modules/mbschr-tests (Makefile.am): Likewise.
7821         * modules/mbscspn-tests (Makefile.am): Likewise.
7822         * modules/mbsinit-tests (Makefile.am): Likewise.
7823         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7824         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7825         * modules/mbspbrk-tests (Makefile.am): Likewise.
7826         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7827         * modules/mbsrchr-tests (Makefile.am): Likewise.
7828         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7829         * modules/mbsspn-tests (Makefile.am): Likewise.
7830         * modules/mbsstr-tests (Makefile.am): Likewise.
7831         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7832         * modules/quotearg-tests (Makefile.am): Likewise.
7833         * modules/readtokens-tests (Makefile.am): Likewise.
7834         * modules/sh-quote-tests (Makefile.am): Likewise.
7835         * modules/system-quote-tests (Makefile.am): Likewise.
7836         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7837         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7838         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7839         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7840         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7841         * modules/yesno-tests (Makefile.am): Likewise.
7842         * modules/exclude-tests (Makefile.am): Link the programs with
7843         $(LIB_MBRTOWC).
7844         * modules/regex-tests (Makefile.am): Likewise.
7845         * modules/regex-quote-tests (Makefile.am): Likewise.
7847 2020-01-03  Bruno Haible  <bruno@clisp.org>
7849         getopt-posix: Fix compilation failure in testdirs.
7850         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
7851         when the gnulib module 'getopt-posix' is enabled.
7852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
7853         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
7854         module indicator.
7855         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
7857 2020-01-03  Bruno Haible  <bruno@clisp.org>
7859         doc: Mention the 64-bit inode number problem.
7860         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
7861         64-bit inode number problem.
7862         * doc/posix-functions/stat.texi: Mention that this module fixes the
7863         64-bit inode number problem.
7864         * doc/posix-functions/lstat.texi: Likewise.
7865         * doc/posix-functions/fstat.texi: Likewise.
7866         * doc/posix-functions/readdir.texi: Add more details.
7867         * doc/posix-functions/readdir_r.texi: Likewise.
7869 2020-01-02  Bruno Haible  <bruno@clisp.org>
7871         wcrtomb: Add more tests.
7872         * tests/test-wcrtomb-w32.c: Include localcharset.h.
7873         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
7874         locale_charset() returns the expected value; otherwise, skip the test.
7875         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
7876         * tests/test-wcrtomb-w32-7.sh: Likewise.
7877         * modules/wcrtomb-tests (Files): Add these files.
7878         (Depends-on): Add localcharset.
7879         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
7881 2020-01-02  Bruno Haible  <bruno@clisp.org>
7883         mbrtowc: Add more tests.
7884         * tests/test-mbrtowc-w32.c: Include localcharset.h.
7885         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
7886         locale_charset() returns the expected value; otherwise, skip the test.
7887         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
7888         * tests/test-mbrtowc-w32-7.sh: Likewise.
7889         * modules/mbrtowc-tests (Files): Add these files.
7890         (Depends-on): Add localcharset.
7891         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
7893 2020-01-02  Bruno Haible  <bruno@clisp.org>
7895         mbrtowc: Fix test failures on MSVC (regression by previous commit).
7896         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
7897         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
7898         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
7899         MBRTOWC_STORES_INCOMPLETE_BUG.
7900         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
7902 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7904         doc: mention glibc bug 24269
7905         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
7906         Reformat slightly so that it looks nicer in the Grep manual.
7908 2020-01-02  Bruno Haible  <bruno@clisp.org>
7910         mbrtowc: Don't replace mbstate_t on MSVC.
7911         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
7912         a missing mbsinit function on native Windows.
7913         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
7914         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
7915         MSVC bug.
7916         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
7918 2020-01-02  Bruno Haible  <bruno@clisp.org>
7920         setlocale-null: Avoid crashing the MSVC linker.
7921         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
7922         MSVC.
7924 2020-01-02  Bruno Haible  <bruno@clisp.org>
7926         wchar: Make the HP-UX workaround work on HP-UX 11.31.
7927         * modules/wchar (Depends-on): Add inttypes-incomplete.
7928         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
7929         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
7930         of strtoimax.
7932 2020-01-02  Bruno Haible  <bruno@clisp.org>
7934         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
7935         * lib/mbrtowc.c: Include <stdint.h>.
7936         * modules/mbrtowc (Depends-on): Add stdint.
7938 2020-01-01  Pádraig Brady  <P@draigBrady.com>
7940         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
7941         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
7942         which will auto enable use of openssl, only for >= version 3,
7943         which is newly licensed under the Apache Software License.
7945 2020-01-01  Bruno Haible  <bruno@clisp.org>
7947         mbrtowc: Include function name in macro names.
7948         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
7949         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
7950         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
7951         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
7952         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
7953         C_LOCALE_MAYBE_EILSEQ.
7955 2020-01-01  Bruno Haible  <bruno@clisp.org>
7957         c32tob: New module.
7958         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
7959         (c32tob): New declaration.
7960         * lib/c32tob.c: New file.
7961         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
7962         macros.
7963         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
7964         * modules/uchar (Depends-on): Add snippet/c++defs.
7965         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
7966         uchar.h.
7967         * modules/c32tob: New file.
7968         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
7969         defined.
7970         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
7971         c32tob.
7972         * modules/uchar-c++-tests (Files): Add tests/signature.h.
7973         * doc/posix-functions/wctob.texi: Mention the new module.
7975 2020-01-01  Bruno Haible  <bruno@clisp.org>
7977         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
7978         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
7979         $(LIB_SETLOCALE).
7981 2020-01-01  Bruno Haible  <bruno@clisp.org>
7983         hard-locale tests: Fix a conflict with the C++ tests.
7984         * modules/hard-locale-tests (Makefile.am): Build a program named
7985         'current-locale', not 'locale'.
7987 2020-01-01  Bruno Haible  <bruno@clisp.org>
7989         doc: Update documentation about wchar_t.
7990         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
7991         wchar_t type.
7993 2020-01-01  Bruno Haible  <bruno@clisp.org>
7995         mbrtowc tests: Fix typos.
7996         * tests/test-mbrtowc.c (main): Fix typo.
7997         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
7999 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8001         maint: update copyright notices
8002         Before doing the following changes done by hand, I also ran ‘make
8003         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
8004         to do most of the copyright years automatically.  A few upstream
8005         sources are still in 2019 but these should eventually be changed
8006         automatically too.
8007         * build-aux/declared.sh (func_version):
8008         * build-aux/libtool-next-version (func_version):
8009         * build-aux/run-test (func_version):
8010         Update these notices by hand.  Put just the last year
8011         in output of programs, as per GNU coding standards.
8013 2019-12-31  Bruno Haible  <bruno@clisp.org>
8015         uchar: Add C++ tests.
8016         * tests/test-uchar-c++.cc: New file.
8017         * tests/test-uchar-c++2.cc: New file.
8018         * modules/uchar-c++-tests: New file.
8020         uchar: Add tests.
8021         * tests/test-uchar.c: New file.
8022         * modules/uchar-tests: New file.
8024         uchar: New module.
8025         * lib/uchar.in.h: New file.
8026         * m4/uchar.m4: New file.
8027         * modules/uchar: New file.
8028         * doc/posix-headers/uchar.texi: Mention the new module.
8030 2019-12-30  Jim Meyering  <meyering@fb.com>
8032         localeinfo: ->simple would be wrong for LC_ALL=C
8033         That would lead to using unnecessary and expensive code paths in dfa.c.
8034         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
8035         error that would have made grep many times slower in the C locale.
8036         With this change, and a file created like this:
8037           yes 00 | head -10000000 > in
8038         Running grep as follows becomes more than 40 times faster:
8039           LC_ALL=C grep -Fw 0 in
8041 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8043         doc: document trouble with back-references
8044         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
8046 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8048         doc: use “back-reference” for \1 etc.
8049         * doc/regex.texi: Consistently spell “back-reference” with
8050         a hyphen, since that’s how POSIX does it.
8052 2019-12-26  Jim Meyering  <meyering@fb.com>
8054         test-framework-sh: tighten an internal grep regexp
8055         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
8056         that helps test for a working printf.
8058 2019-12-26  Bruno Haible  <bruno@clisp.org>
8060         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
8061         Reported by Paul Eggert in
8062         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
8063         Simplification by Jim Meyering.
8064         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
8065         octal escape sequence in a UTF-8 locale.
8067 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
8069         mbrtowc: port better to narrow-wchar_t platforms
8070         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
8071         wchar_t is too narrow to represent all the Unicode characters,
8072         consider a byte sequence for an out-of-wchar_t-range character to
8073         be an encoding error.  This fixes grep’s surrogate-pair test
8074         failure on AIX 7.2.
8076 2019-12-24  Bruno Haible  <bruno@clisp.org>
8078         localcharset: Avoid referencing rpl_setlocale on native Windows.
8079         * lib/localcharset.c (setlocale): Undefine.
8081 2019-12-24  Bruno Haible  <bruno@clisp.org>
8083         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
8084         * m4/semaphore.m4: New file.
8085         * modules/lock-tests (Files): Add it.
8086         (configure.ac): Require gl_SEMAPHORE.
8087         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
8089 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
8091         strptime: fix typo in previous patch
8092         Problem and fix reported by Bruno Haible in:
8093         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
8094         * lib/strptime.c (day_of_the_week): Fix paren bug.
8096 2019-12-24  Bruno Haible  <bruno@clisp.org>
8098         setlocale-null: Make it easy to rely on the lock in another library.
8099         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
8100         defined.
8102 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8104         gethrxtime, mktime, nstrftime, strptime: tweak division performance
8105         Performanced analyzed by Bruno Haible in:
8106         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
8107         * config/srclist.txt: Do not sync mktime.c for now.
8108         * lib/mktime.c (shr, ydhms_diff):
8109         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
8110         * lib/strptime.c (day_of_the_week):
8111         * lib/xtime.h (xtime_sec):
8112         Redo with neither ‘%’ nor conditional branches.
8114 2019-12-23  Bruno Haible  <bruno@clisp.org>
8116         setlocale-null: Export the lock function also on non-Windows platforms.
8117         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
8118         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
8119         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
8120         * modules/setlocale-null (configure.ac): Invoke it.
8121         (Files): Add m4/visibility.m4.
8123 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8125         gethrxtime: fix rounding bug with negative args
8126         Problem reported by Bruno Haible in:
8127         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
8128         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
8129         with negative rounding.  Common platforms can compute / and % with
8130         a single instruction, so the simplified code should be shorter and
8131         faster on these platforms anyway.
8133 2019-12-22  Bruno Haible  <bruno@clisp.org>
8135         gethrxtime: remove incorrect overflow detection
8136         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
8137         integer overflow, as it didn’t suffice.  This reverts the xtime.h
8138         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
8139         cannot now see the need for anyway (even in cases where it works),
8140         as the patch is helpful only when the signs of S and NS disagree,
8141         and all callers pass nonnegative values for S and NS.
8143 2019-12-22  Bruno Haible  <bruno@clisp.org>
8145         setlocale-null: Add standalone include file.
8146         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
8147         * lib/locale.in.h: Include setlocale_null.h.
8148         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
8149         setlocale_null): Remove declarations.
8150         * lib/setlocale_null.c: Include setlocale_null.h.
8151         * lib/localename.c: Likewise.
8152         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
8153         (Depends-on): Add snippet/arg-nonnull.
8154         (Include): Allow either "setlocale_null.h" or <locale.h>.
8156 2019-12-22  Bruno Haible  <bruno@clisp.org>
8158         strfmon_l: Fix test failures on FreeBSD and Cygwin.
8159         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
8160         AC_RUN_IFELSE test.
8161         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
8162         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
8163         problem.
8165 2019-12-22  Bruno Haible  <bruno@clisp.org>
8167         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
8168         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
8169         unconditional AC_LIBOBJ.
8170         * modules/selinux-at: Likewise.
8171         * modules/xmemdup0: Likewise.
8172         * modules/xstrtoll: Likewise.
8174 2019-12-22  Bruno Haible  <bruno@clisp.org>
8176         longlong: Mark module obsolete.
8177         * modules/longlong (Status, Notice): New sections.
8179         stdint: Assume that the compiler supports 'long long'.
8180         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
8181         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
8182         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8183         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
8184         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8185         * modules/stdint (Files): Remove longlong.m4.
8186         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
8187         HAVE_UNSIGNED_LONG_LONG_INT.
8189         inttypes-incomplete: Assume that the compiler supports 'long long'.
8190         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8191         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
8192         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8193         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
8194         HAVE_LONG_LONG_INT to be 1.
8195         * modules/inttypes-incomplete (Makefile.am): Don't substitute
8196         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
8198         malloca: Assume that the compiler supports 'long long'.
8199         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
8200         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
8201         * modules/malloca (Files): Remove longlong.m4.
8202         * modules/relocatable-prog-wrapper (Files): Likewise.
8204         atoll: Assume that the compiler supports 'long long'.
8205         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
8206         * modules/atoll (Files): Remove longlong.m4.
8208         strtoll: Assume that the compiler supports 'long long'.
8209         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
8210         * modules/strtoll (Files): Remove longlong.m4.
8212         strtoull: Assume that the compiler supports 'long long'.
8213         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
8214         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8215         * modules/strtoull (Files): Remove longlong.m4.
8217         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
8218         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
8219         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8220         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
8221         AC_TYPE_LONG_LONG_INT.
8222         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
8223         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8224         * modules/strtoimax (Files): Remove longlong.m4.
8225         * modules/strtoumax (Files): Likewise.
8227         xstrtoll: Assume that the compiler supports 'long long'.
8228         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
8229         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
8231         vasnprintf: Assume that the compiler supports 'long long'.
8232         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
8233         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
8234         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8235         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
8236         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
8237         require AC_TYPE_LONG_LONG_INT.
8238         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8239         gl_PREREQ_VASNPRINTF): Likewise.
8240         * modules/vasnprintf (Files): Remove longlong.m4.
8241         * modules/c-vasnprintf (Files): Likewise.
8242         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8243         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8244         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8245         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8246         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8247         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8248         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8250         gethrxtime: Assume that the compiler supports 'long long'.
8251         * lib/xtime.h (xtime_t): Define to 'long long int' always.
8252         (XTIME_PRECISION): Define to 1000000000 always.
8253         (xtime_make, xtime_sec): Optimize accordingly.
8254         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
8255         * modules/gethrxtime (Files): Remove longlong.m4.
8257         integer_length*: Assume that the compiler supports 'long long'.
8258         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
8259         * modules/integer_length (Files): Remove longlong.m4.
8260         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8261         * modules/integer_length_l (Files): Remove longlong.m4.
8262         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8263         * modules/integer_length_ll (Files): Remove longlong.m4.
8264         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8266         count-one-bits: Assume that the compiler supports 'long long'.
8267         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
8268         * m4/count-one-bits.m4: Remove file.
8269         * modules/count-one-bits (Files): Remove it.
8270         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
8271         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
8272         unconditionally.
8274         count-trailing-zeros: Assume that the compiler supports 'long long'.
8275         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
8276         unconditionally.
8277         * m4/count-trailing-zeros.m4: Remove file.
8278         * modules/count-trailing-zeros (Files): Remove it.
8279         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
8280         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
8281         unconditionally.
8283         count-leading-zeros: Assume that the compiler supports 'long long'.
8284         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
8285         unconditionally.
8286         * m4/count-leading-zeros.m4: Remove file.
8287         * modules/count-leading-zeros (Files): Remove it.
8288         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
8289         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
8290         unconditionally.
8292 2019-12-22  Bruno Haible  <bruno@clisp.org>
8294         localcharset: Update support for OpenBSD.
8295         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
8297 2019-12-21  Bruno Haible  <bruno@clisp.org>
8299         pthread_sigmask: Avoid test failure on NetBSD 8.0.
8300         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
8301         NetBSD.
8302         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
8304 2019-12-21  Bruno Haible  <bruno@clisp.org>
8306         threadlib: Improve code structure.
8307         * m4/threadlib.m4: Reorder macros. Add comments.
8309 2019-12-21  Bruno Haible  <bruno@clisp.org>
8311         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
8312         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
8313         here from m4/threads.m4).
8314         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
8315         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
8316         (gl_STDTHREADLIB): New macro.
8317         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
8318         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
8320 2019-12-21  Bruno Haible  <bruno@clisp.org>
8322         sched_yield: Don't depend on threadlib and yield.
8323         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
8324         LIB_SCHED_YIELD.
8325         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
8326         m4/yield.m4).
8327         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
8328         gl_THREADLIB and gl_YIELD.
8329         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
8330         based on $(LIB_SCHED_YIELD).
8331         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
8332         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8333         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
8334         (Depends-on): Remove threadlib.
8335         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8336         * modules/threads-h (Files): Remove m4/yield.m4.
8337         * modules/pthread-cond-tests (Makefile.am): Link the programs against
8338         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8339         * modules/pthread-mutex-tests (Makefile.am): Likewise.
8340         * modules/pthread-once-tests (Makefile.am): Likewise.
8341         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
8342         * modules/pthread-tss-tests (Makefile.am): Likewise.
8344 2019-12-21  Bruno Haible  <bruno@clisp.org>
8346         threads-h: Don't depend on threadlib.
8347         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
8348         not gl_THREADLIB_EARLY.
8350 2019-12-21  Bruno Haible  <bruno@clisp.org>
8352         nl_langinfo tests: Fix link error (regression from 2019-12-18).
8353         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
8354         with $(LIB_SETLOCALE).
8356 2019-12-21  Bruno Haible  <bruno@clisp.org>
8358         threadlib: Remove unused dependency (left over from 2019-07-06).
8359         * modules/threadlib (Depends-on): Remove havelib.
8361 2019-12-21  Bruno Haible  <bruno@clisp.org>
8363         New convention for multithread-safety tests.
8364         * tests/test-setlocale_null-mt-one.c: Renamed from
8365         tests/test-setlocale_null-one.c.
8366         * tests/test-setlocale_null-mt-all.c: Renamed from
8367         tests/test-setlocale_null-all.c.
8368         * modules/setlocale-null-tests (Files, Makefile.am): Update.
8370 2019-12-21  Bruno Haible  <bruno@clisp.org>
8372         quotearg tests: Fix conflict with hard-locale tests.
8373         * tests/testlocale: Renamed from tests/locale.
8374         * modules/quotearg-tests (Files): Update.
8375         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
8377 2019-12-21  Bruno Haible  <bruno@clisp.org>
8379         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
8380         Reported by Daniel Richard G. in
8381         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
8382         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
8383         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
8384         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
8385         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
8386         alternative to PTHREAD_RWLOCK_INITIALIZER.
8387         * lib/glthread/lock.c: Likewise.
8389 2019-12-21  Bruno Haible  <bruno@clisp.org>
8391         memcmp tests: Work around the clang bug.
8392         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
8393         the clang optimization.
8395 2019-12-20  Bruno Haible  <bruno@clisp.org>
8397         localcharset: Add support for z/OS encoding names.
8398         * lib/localcharset.h: Mention which encodings are used as locale
8399         encodings on z/OS.
8401 2019-12-20  Bruno Haible  <bruno@clisp.org>
8403         iconv_open: Add support for z/OS encoding names.
8404         Reported by Daniel Richard G. in
8405         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
8406         * lib/iconv_open-zos.gperf: New file.
8407         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
8408         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
8409         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
8410         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
8411         * doc/posix-functions/iconv_open.texi: Mention z/OS.
8413 2019-12-20  Bruno Haible  <bruno@clisp.org>
8415         doc: Document the problem of the per-thread locale functions on z/OS.
8416         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
8417         * doc/posix-functions/newlocale.texi: Likewise.
8418         * doc/posix-functions/duplocale.texi: Likewise.
8419         * doc/posix-functions/freelocale.texi: Likewise.
8421 2019-12-20  Bruno Haible  <bruno@clisp.org>
8423         localename, gettext: Fix host_os value for z/OS.
8424         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
8425         cross-configuration code.
8427 2019-12-19  Jim Meyering  <meyering@fb.com>
8429         nstrftime: avoid a shadowing warning
8430         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
8431         to avoid shadowing an "i" declared hundreds of lines above.
8433 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8435         dfa: struct dfamust now uses flexible array
8436         * lib/dfa.c: Include flexmember.h.
8437         (dfamust, dfamustfree): Adjust to struct dfamust change.
8438         This saves a call to malloc+free.
8439         * lib/dfa.h (struct dfamust): Make the final member a
8440         flexible array member.
8441         * modules/dfa (Depends-on): Add flexmember.
8443         dfa: fast->small for array elements
8444         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
8445         since this type is used in arrays.  This change is more for
8446         documentation than for any practical effect, since the two types
8447         are the same on all known platforms.
8449 2019-12-19  Bruno Haible  <bruno@clisp.org>
8451         iconv tests: Test canonicalized, not system-dependent, encoding names.
8452         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
8453         * modules/iconv-tests (Depends-on): Add iconv_open.
8455 2019-12-18  Bruno Haible  <bruno@clisp.org>
8457         localename: Fix test failure on AIX 7.2.
8458         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
8459         locales on AIX.
8460         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
8461         locales on AIX.
8463 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8465         Improve port of AC_C_RESTRICT to Oracle C++
8466         Problem reported by Christian Biesinger in:
8467         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
8468         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
8469         Oracle Developer Studio C++ 12.5 or later.
8471 2019-12-18  Bruno Haible  <bruno@clisp.org>
8473         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
8474         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
8476 2019-12-18  Bruno Haible  <bruno@clisp.org>
8478         localename: Ensure multithread-safety in future changes.
8479         * lib/localename.c (setlocale): Reference the system's setlocale().
8480         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
8481         (gl_locale_name_posix): Likewise.
8482         * modules/localename (Depends-on): Add setlocale-null.
8484 2019-12-18  Bruno Haible  <bruno@clisp.org>
8486         setlocale-null: Make API more useful.
8487         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
8488         callers changed.
8489         (setlocale_null): New declaration.
8490         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
8491         extracted from setlocale_null_unlocked.
8492         (setlocale_null_unlocked): Invoke it.
8493         (setlocale_null_r): Renamed from setlocale_null.
8494         (setlocale_null): New function, extracted from setlocale_mtsafe in
8495         setlocale.c.
8496         * lib/setlocale.c: Don't include <errno.h>.
8497         (setlocale_mtsafe): Invoke setlocale_null.
8498         * lib/setlocale-lock.c: Update comments.
8499         * doc/posix-functions/setlocale.texi: Mention both functions.
8501 2019-12-18  Bruno Haible  <bruno@clisp.org>
8503         localename: Optimize code for native Windows.
8504         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
8505         category (not allowed here).
8507 2019-12-18  Bruno Haible  <bruno@clisp.org>
8509         setlocale: Make calls with NULL argument multithread-safe.
8510         * lib/setlocale.c: Include <errno.h>.
8511         (setlocale_mtsafe): New function.
8512         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
8513         (setlocale_improved): Renamed from rpl_setlocale.
8514         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
8515         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
8516         LIB_SETLOCALE.
8517         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
8518         (Link): New section.
8519         * tests/locale.c: Undefine setlocale.
8520         * tests/test-setlocale_null-one.c: Likewise.
8521         * tests/test-setlocale_null-all.c: Likewise.
8522         * modules/setlocale-tests (Makefile.am): Link the test programs with
8523         $(LIB_SETLOCALE).
8524         * modules/astrxfrm-tests (Makefile.am): Likewise.
8525         * modules/btowc-tests (Makefile.am): Likewise.
8526         * modules/c-ctype-tests (Makefile.am): Likewise.
8527         * modules/c-snprintf-tests (Makefile.am): Likewise.
8528         * modules/c-strcase-tests (Makefile.am): Likewise.
8529         * modules/c-vasprintf-tests (Makefile.am): Likewise.
8530         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
8531         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
8532         * modules/dfa-tests (Makefile.am): Likewise.
8533         * modules/duplocale-tests (Makefile.am): Likewise.
8534         * modules/hard-locale-tests (Makefile.am): Likewise.
8535         * modules/localcharset-tests (Makefile.am): Likewise.
8536         * modules/localename-tests (Makefile.am): Likewise.
8537         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8538         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8539         * modules/mbrtowc-tests (Makefile.am): Likewise.
8540         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8541         * modules/mbscasestr-tests (Makefile.am): Likewise.
8542         * modules/mbschr-tests (Makefile.am): Likewise.
8543         * modules/mbscspn-tests (Makefile.am): Likewise.
8544         * modules/mbsinit-tests (Makefile.am): Likewise.
8545         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8546         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8547         * modules/mbspbrk-tests (Makefile.am): Likewise.
8548         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8549         * modules/mbsrchr-tests (Makefile.am): Likewise.
8550         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8551         * modules/mbsspn-tests (Makefile.am): Likewise.
8552         * modules/mbsstr-tests (Makefile.am): Likewise.
8553         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8554         * modules/quotearg-tests (Makefile.am): Likewise.
8555         * modules/regex-tests (Makefile.am): Likewise.
8556         * modules/strfmon_l-tests (Makefile.am): Likewise.
8557         * modules/strtod-tests (Makefile.am): Likewise.
8558         * modules/strtold-tests (Makefile.am): Likewise.
8559         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8560         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8561         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8562         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
8563         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8564         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8565         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8566         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8567         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8568         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8569         * modules/wcrtomb-tests (Makefile.am): Likewise.
8570         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8571         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8572         * modules/wcwidth-tests (Makefile.am): Likewise.
8573         * doc/posix-functions/setlocale.texi: Mention that the multithread-
8574         safety fix is also available in module 'setlocale'.
8576 2019-12-18  Bruno Haible  <bruno@clisp.org>
8578         hard-locale: Make multithread-safe.
8579         * lib/hard-locale.h (hard_locale): Move documentation to here.
8580         * lib/hard-locale.c: Don't include <stdlib.h>.
8581         (GLIBC_VERSION): Remove macro.
8582         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
8583         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
8584         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
8585         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
8586         (Link): New section.
8587         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
8588         $(LIB_HARD_LOCALE).
8590 2019-12-18  Bruno Haible  <bruno@clisp.org>
8592         hard-locale: Avoid test failure on Haiku.
8593         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
8595 2019-12-18  Bruno Haible  <bruno@clisp.org>
8597         setlocale-null: Handle NULL result from setlocale.
8598         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
8599         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
8600         from setlocale or _wsetlocale.
8602 2019-12-18  Bruno Haible  <bruno@clisp.org>
8604         hard-locale: Add test.
8605         * tests/test-hard-locale.c: New file.
8606         * tests/locale.c: New file.
8607         * modules/hard-locale-tests: New file.
8609 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8611         dfa: do not match invalid UTF-8
8612         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
8613         from 5 to 9 tokens; this is needed due to the changes to
8614         add_utf8_anychar.
8615         (charclass_index): 2nd arg is now pointer-to-const.
8616         (add_utf8_anychar): Match only valid UTF-8 byte sequences
8617         instead of allowing overlong encodings or surrogate halves.
8619         dfa: simplify charclass by assuming C99
8620         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
8621         (charclass_word): Now always uint_fast64_t.
8622         (CHARCLASS_PAIR): Remove.
8623         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
8625         fts: tune via calloc
8626         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
8628         dfa: tune via xzalloc
8629         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
8631 2019-12-17  Bruno Haible  <bruno@clisp.org>
8633         localcharset: Fix multithread-safety bug on Windows and OS/2.
8634         * lib/localcharset.h (locale_charset): Clarify when the result becomes
8635         invalid.
8636         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
8637         assemble the result.
8639 2019-12-17  Bruno Haible  <bruno@clisp.org>
8641         localcharset: Optimize code for native Windows.
8642         * lib/localcharset.c (locale_charset): Don't bother calling
8643         setlocale (LC_ALL, NULL) since we're not interested in its result.
8645 2019-12-17  Bruno Haible  <bruno@clisp.org>
8647         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
8648         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
8649         setlocale.
8650         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
8651         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
8652         * modules/nl_langinfo (Depends-on): Add setlocale-null.
8654 2019-12-17  Bruno Haible  <bruno@clisp.org>
8656         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
8657         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
8658         stack-allocated buffer to assemble each result and different static
8659         buffers to return it.
8660         * tests/test-nl_langinfo-mt.c: New file.
8661         * modules/nl_langinfo-tests (Files): Add it.
8662         (Depends-on): Add thread, nanosleep.
8663         (Makefile.am): Build test-nl_langinfo-mt test.
8665 2019-12-17  Bruno Haible  <bruno@clisp.org>
8667         langinfo: Document more details.
8668         * doc/posix-headers/langinfo.texi: List platform details.
8669         * doc/posix-functions/nl_langinfo.texi: Likewise.
8671 2019-12-17  Bruno Haible  <bruno@clisp.org>
8673         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
8674         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
8675         and Martin Storsjö <martin@martin.st>
8676         in <https://savannah.gnu.org/bugs/?57406>.
8677         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
8678         mingw.
8680 2019-12-17  Bruno Haible  <bruno@clisp.org>
8682         glob: Avoid warning on mingw.
8683         Reported by Christian Biesinger <cbiesinger@google.com> in
8684         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
8685         * lib/glob.c (__stat64): Undefine first.
8687 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8689         xalloc: tune xzalloc for fresh allocations
8690         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
8691         because when the memory is freshly allocated from the OS via sbrk
8692         or mmap, calloc can avoid doing the memset.
8694         dfa: new function dfacopysyntax
8695         * lib/dfa.c (struct dfa): Move syntax member later so
8696         that dfacopysyntax can easily clear earlier members.
8697         (dfacopysyntax): New function, used by Gawk.
8699 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8701         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
8702         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
8703         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
8704         if not already defined.
8706         dfa: remove one dependency on MB_CUR_MAX
8707         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
8709         dfa: remove struct lexer_state.cur_mb_len
8710         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
8711         as it’s not needed and the code is simpler without it.
8712         All uses removed.
8714 2019-12-16  Bruno Haible  <bruno@clisp.org>
8716         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
8717         Reported by Arnold Robbins <arnold@skeeve.com>.
8718         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
8719         copied from lib/glthread/lock.h.
8720         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
8721         (setlocale_null_with_lock): If pthread_in_use() is false, use
8722         setlocale_null_unlocked directly.
8723         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
8724         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
8725         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
8726         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
8727         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
8728         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
8730 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8732         dfa: make dfasyntax thread-safe
8733         Problem reported by Bruno Haible in:
8734         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
8735         * lib/dfa.c: Do not include locale.h.
8736         (struct dfa): Remove simple_locale member.
8737         All uses replaced by localeinfo.simple.
8738         (using_simple_locale): Remove; now present (with some
8739         changes) in localeinfo.c.
8740         (dfasyntax): No need to initialize removed member.
8742         localeinfo: record whether locale is simple
8743         * lib/localeinfo.c (using_simple_locale): New function,
8744         copied here from lib/dfa.c but with a change: it uses
8745         strcoll for its heuristic, instead of using setlocale.
8746         This lets it be thread-safe.
8747         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
8749 2019-12-15  Bruno Haible  <bruno@clisp.org>
8751         duplocale: Fix multithread-safety bug on AIX.
8752         * lib/duplocale.c: Don't include <stdlib.h>.
8753         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
8754         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
8755         Set LIB_DUPLOCALE.
8756         * modules/duplocale (Depends-on): Add setlocale-null.
8757         (Link): New section.
8758         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
8759         $(LIB_DUPLOCALE).
8761 2019-12-15  Bruno Haible  <bruno@clisp.org>
8763         setlocale-null: Add tests.
8764         * tests/test-setlocale_null.c: New file.
8765         * tests/test-setlocale_null-one.c: New file.
8766         * tests/test-setlocale_null-all.c: New file.
8767         * modules/setlocale-null-tests: New file.
8769         setlocale-null: New module.
8770         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
8771         setlocale_null): New declarations.
8772         * lib/setlocale_null.c: New file.
8773         * lib/setlocale-lock.c: New file.
8774         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
8775         * m4/setlocale_null.m4: New file.
8776         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
8777         GNULIB_SETLOCALE_NULL.
8778         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
8779         * modules/setlocale-null: New file.
8780         * doc/posix-functions/setlocale.texi: Mention the new module.
8782 2019-12-15  Bruno Haible  <bruno@clisp.org>
8784         lock tests: Skip test when no multithreading is enabled.
8785         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
8787 2019-12-14  Bruno Haible  <bruno@clisp.org>
8789         locale, duplocale, localename: Fix last patch.
8790         Reported by Daniel Richard G. in
8791         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
8792         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
8793         Don't define if locale_t does not exist.
8795 2019-12-13  Bruno Haible  <bruno@clisp.org>
8797         locale, duplocale, localename: Fix errors if locale_t does not exist.
8798         Reported by Daniel Richard G. in
8799         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
8800         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
8801         macros.
8802         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
8803         HAVE_NEWLOCALE.
8804         * tests/test-localename.c: Likewise.
8805         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
8806         HAVE_DUPLOCALE.
8807         * tests/test-locale-c++.cc: Likewise.
8809 2019-12-13  Bruno Haible  <bruno@clisp.org>
8811         wcstok: Fix test failure on HP-UX.
8812         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
8813         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
8815 2019-12-12  Bruno Haible  <bruno@clisp.org>
8817         strtod, strtold tests: Avoid test failure on AIX 7.2.
8818         * tests/test-strtod1.c (main): Allow implementations in which ',' and
8819         '.' both are radix characters.
8820         * tests/test-strtold1.c (main): Likewise.
8822 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8824         dfa: prefer ptrdiff_t for API, too
8825         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
8826         but do this only for internal use for now.
8827         * NEWS: Mention the API change.
8828         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
8829         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
8830         values known to be nonnegative.
8831         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
8832         Prefer idx_t or ptrdiff_t to size_t for API.
8833         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
8834         Prefer ptrdiff_t to size_t for API.
8836         stdalign: port to xlclang 16.01
8837         Problem reportd by Bruno Haible in:
8838         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
8839         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
8840         ((__aligned__ (...))) with xlclang, as a top-level
8841         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
8842         xlclang version 16.01.0000.0001; the alignment directive is ignored.
8844 2019-12-12  Bruno Haible  <bruno@clisp.org>
8846         duplocale: Fix test failure on AIX 7.2 with xlclang.
8847         * lib/duplocale.c: Include <stdlib.h>.
8848         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
8849         value.
8851 2019-12-12  Bruno Haible  <bruno@clisp.org>
8853         stddef: Document the AIX xlc issue.
8854         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
8856 2019-12-12  Bruno Haible  <bruno@clisp.org>
8858         duplocale: Don't attempt to override if locale_t does not exist.
8859         Reported by Daniel Richard G. in
8860         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
8861         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
8862         HAVE_DUPLOCALE to 0.
8864 2019-12-12  Bruno Haible  <bruno@clisp.org>
8866         wcwidth: Avoid test failure on AIX 7.2.
8867         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
8868         negative.
8869         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
8871 2019-12-12  Bruno Haible  <bruno@clisp.org>
8873         ilogbl: Work around Cygwin bug.
8874         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
8875         correct.
8876         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
8878 2019-12-12  Bruno Haible  <bruno@clisp.org>
8880         strtold: Work around Cygwin bug.
8881         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
8882         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
8883         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
8884         STRTOLD_HAS_UNDERFLOW_BUG is defined.
8885         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
8887 2019-12-12  Bruno Haible  <bruno@clisp.org>
8889         strtold: Fix autoconf test.
8890         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
8892 2019-12-11  Bruno Haible  <bruno@clisp.org>
8894         fsync tests: Skip test that is known to fail.
8895         * doc/posix-functions/fsync.texi: Update list of platforms.
8896         * tests/test-fsync.c (main): Skip test with read-only file descriptors
8897         that is known to fail on AIX and Cygwin.
8899 2019-12-11  Bruno Haible  <bruno@clisp.org>
8901         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
8902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
8903         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
8904         HAVE_GETADDRINFO as a C macro.
8905         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
8906         declare as replacement functions.
8907         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
8908         define as no-op overrides.
8909         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
8910         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
8911         * modules/getaddrinfo (Depends-on, configure.ac): Test
8912         REPLACE_GETADDRINFO.
8913         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
8914         problem.
8915         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
8916         convention problems.
8918 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
8920         dfa: prefer signed integers for internals
8921         Signed integers can be checked more easily for integer overflow.
8922         * lib/dfa.c (position, struct lexer_state, struct parser_state)
8923         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
8924         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
8925         (nsubtoks, copytoks, closure, alloc_position_set, delete)
8926         (replace, state_index, epsclosure, charclass_context)
8927         (state_separate_contexts, merge_nfa_state, dfaoptimize)
8928         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
8929         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
8930         (comsubs, inboth, allocmust):
8931         Prefer a signed to an unsigned integer when calculating indexes,
8932         unless the integer is part of the external API (a bigger deal,
8933         and to be done later).
8935         dfa: fix index overflow
8936         * lib/dfa.c (compare): Avoid integer overflow when analyzing
8937         very large regular expressions.
8939         dfa: update commentary for previous change
8940         * NEWS: Mention the change.
8941         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
8943 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8945         dfa: separate parse and compile phase
8946         ‘dfamust’ must be called after parsing and before tokens are
8947         reordered, but both are executed in the compilation phase.
8948         Token reordering was introduced in Gnulib commit
8949         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
8950         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
8951         * lib/dfa.c (dfaparse): Change it to global function.
8952         (dfacomp): If first argument is NULL, skip parse.
8953         * lib/dfa.h: (dfaparse): Add a prototype.
8955 2019-12-11  Bruno Haible  <bruno@clisp.org>
8957         unistd tests: Fix link error on MSVC.
8958         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
8959         $(LIB_GETLOGIN).
8961 2019-12-11  Bruno Haible  <bruno@clisp.org>
8963         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
8964         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
8965         and POSIX substitutes are supported in C++ mode.
8966         * NEWS: Likewise.
8968 2019-12-11  Bruno Haible  <bruno@clisp.org>
8970         stddef: Fix compilation error in C++ mode on MSVC.
8971         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
8972         instead, include <cstddef>.
8974 2019-12-11  Bruno Haible  <bruno@clisp.org>
8976         unistd: Fix compilation error in C++ mode on MSVC.
8977         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
8978         does not have <unistd.h>.
8980 2019-12-11  Bruno Haible  <bruno@clisp.org>
8982         locale: Fix compilation error in C++ mode on MSVC.
8983         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
8984         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
8985         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
8986         int_n_sep_by_space): Define as macros on MSVC.
8988 2019-12-11  Bruno Haible  <bruno@clisp.org>
8990         wchar: Fix compilation error in C++ mode on MSVC.
8991         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
8993 2019-12-11  Bruno Haible  <bruno@clisp.org>
8995         pthread-thread: Fix compilation error in C++ mode on MSVC.
8996         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
8997         _GL_CXXALIAS_RPL invocation.
8999 2019-12-08  Bruno Haible  <bruno@clisp.org>
9001         Fix compilation errors in C++ mode on Haiku.
9002         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
9003         non-glibc systems.
9004         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
9005         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9006         posix_spawnattr_setschedparam): Likewise.
9007         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
9008         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9009         * lib/unistd.in.h (usleep): Likewise.
9011 2019-12-08  Bruno Haible  <bruno@clisp.org>
9013         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
9014         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
9015         * modules/fseeko (configure.ac-early): Require it instead of
9016         AC_FUNC_FSEEKO.
9017         * modules/ftello (configure.ac-early): Likewise.
9018         * modules/fflush (configure.ac-early): Likewise.
9020 2019-12-08  Bruno Haible  <bruno@clisp.org>
9022         Fix compilation error in C++ mode on HP-UX 11.
9023         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
9024         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
9026 2019-12-08  Bruno Haible  <bruno@clisp.org>
9028         Fix compilation errors on HP-UX 11/ia64.
9029         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
9030         _GL_FUNCDECL_SYS.
9032 2019-12-08  Bruno Haible  <bruno@clisp.org>
9034         Fix compilation error in C++ mode on OpenBSD.
9035         * lib/signal.in.h (signal): Declare on OpenBSD.
9037 2019-12-08  Bruno Haible  <bruno@clisp.org>
9039         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
9040         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
9041         instead of #error.
9043 2019-12-08  Bruno Haible  <bruno@clisp.org>
9045         Fix compilation errors in C++ mode on FreeBSD.
9046         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
9047         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
9048         * lib/threads.in.h (thrd_exit): Likewise.
9049         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
9051 2019-12-08  Bruno Haible  <bruno@clisp.org>
9053         Fix compilation errors in C++ mode on macOS and FreeBSD.
9054         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
9055         or FreeBSD with clang, use the approach without C preprocessor macro.
9057 2019-12-07  Bruno Haible  <bruno@clisp.org>
9059         Fix compilation errors in C++ mode on AIX with xlclang++.
9060         Reported by Christian Biesinger <cbiesinger@google.com> in
9061         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9062         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
9064 2019-12-07  Bruno Haible  <bruno@clisp.org>
9066         Document compilation error in C++ mode on NetBSD 8.0.
9067         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
9069 2019-12-07  Bruno Haible  <bruno@clisp.org>
9071         Fix compilation errors in C++ mode on Solaris 10.
9072         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
9073         to non-empty on Solaris with a non-GCC compiler.
9074         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
9076 2019-12-07  Bruno Haible  <bruno@clisp.org>
9078         Reword NEWS entry.
9079         * NEWS: Reword the latest NEWS entry.
9081 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
9083         Move xstrtol_fatal to a new xstrtol-error module.
9084         * lib/xstrtol.h: Stop including <getopt.h>.
9085         (xstrtol_fatal): Move ...
9086         * lib/xstrtol-error.h: ... here.  New file.
9087         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
9088         * tests/test-xstrtol.c: Likewise.
9089         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
9090         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
9091         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
9092         * modules/xstrtol-error: New file.
9093         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
9094         * MODULES.html.sh: Add xstrtol-error.
9095         * NEWS: Document the change.
9097 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9099         nstrftime: better width support for %N, %z
9100         * lib/nstrftime.c (width_add, width_add1, width_cpy):
9101         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
9102         a new WIDTH parameter.
9103         (add, add1, cpy): Use these macros.
9104         (width_add): Do not treat digits == 0 as a special case,
9105         do not pad if padding is ‘-’, and do not use a negative width.
9106         (__strftime_internal): Redo formatting of nanoseconds and numeric
9107         timezones to avoid buffer misuse in unusual cases, and so that
9108         widths make more sense.  Add support for widths greater than 9 to
9109         the %N format; they are zero filled on the right.
9110         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
9112 2019-12-05  Bruno Haible  <bruno@clisp.org>
9114         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
9115         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
9116         set REPLACE_ISFINITE to 1.
9117         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
9118         REPLACE_ISINF to 1.
9119         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
9120         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
9121         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9122         * lib/threads.in.h (call_once): Likewise.
9123         * lib/iconv.in.h (iconv): Likewise.
9125 2019-12-05  Bruno Haible  <bruno@clisp.org>
9127         wchar: Add more C++ tests.
9128         Reported by Christian Biesinger <cbiesinger@google.com> in
9129         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9130         * tests/test-wchar-c++3.cc: New file.
9131         * modules/wchar-c++-tests (Files): Add it.
9132         (Makefile.am): Compile it.
9134 2019-12-05  Bruno Haible  <bruno@clisp.org>
9136         Add more C++ tests.
9138         assert-h: Add C++ tests.
9139         * tests/test-assert-h-c++.cc: New file.
9140         * tests/test-assert-h-c++2.cc: New file.
9141         * modules/assert-h-c++-tests: New file.
9142         * modules/assert-h-tests: New file.
9144         ctype: Add C++ tests.
9145         * tests/test-ctype-c++.cc: New file.
9146         * tests/test-ctype-c++2.cc: New file.
9147         * modules/ctype-c++-tests: New file.
9148         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
9150         errno: Add C++ tests.
9151         * tests/test-errno-c++.cc: New file.
9152         * tests/test-errno-c++2.cc: New file.
9153         * modules/errno-c++-tests: New file.
9154         * modules/errno-tests (Depends-on): Add errno-c++-tests.
9156         float: Add C++ tests.
9157         * tests/test-float-c++.cc: New file.
9158         * tests/test-float-c++2.cc: New file.
9159         * modules/float-c++-tests: New file.
9160         * modules/float-tests (Depends-on): Add float-c++-tests.
9162         inttypes: Add more C++ tests.
9163         * tests/test-inttypes-c++2.cc: New file.
9164         * modules/inttypes-c++-tests (Files): Add it.
9165         (Makefile.am): Compile it.
9167         limits-h: Add C++ tests.
9168         * tests/test-limits-h-c++.cc: New file.
9169         * tests/test-limits-h-c++2.cc: New file.
9170         * modules/limits-h-c++-tests: New file.
9171         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
9173         stdarg: Add C++ tests.
9174         * tests/test-stdarg-c++.cc: New file.
9175         * tests/test-stdarg-c++2.cc: New file.
9176         * modules/stdarg-c++-tests: New file.
9177         * modules/stdarg-tests: New file.
9179         stdbool: Add C++ tests.
9180         * tests/test-stdbool-c++.cc: New file.
9181         * tests/test-stdbool-c++2.cc: New file.
9182         * modules/stdbool-c++-tests: New file.
9183         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
9185         stddef: Add C++ tests.
9186         * tests/test-stddef-c++.cc: New file.
9187         * tests/test-stddef-c++2.cc: New file.
9188         * modules/stddef-c++-tests: New file.
9189         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
9191         stdint: Add C++ tests.
9192         * tests/test-stdint-c++.cc: New file.
9193         * tests/test-stdint-c++2.cc: New file.
9194         * modules/stdint-c++-tests: New file.
9195         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
9197         wchar: Add more C++ tests.
9198         * tests/test-wchar-c++2.cc: New file.
9199         * modules/wchar-c++-tests (Files): Add it.
9200         (Makefile.am): Compile it.
9202         wctype-h: Add more C++ tests.
9203         * tests/test-wctype-h-c++2.cc: New file.
9204         * modules/wctype-h-c++-tests (Files): Add it.
9205         (Makefile.am): Compile it.
9207 2019-12-04  Bruno Haible  <bruno@clisp.org>
9209         Fix compilation errors in C++ mode with xlclang++ on AIX.
9210         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
9211         C++ mode on AIX.
9212         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
9213         without C preprocessor macro.
9214         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
9215         _GL_CXXALIAS_SYS.
9216         * lib/threads.in.h (thrd_exit): Likewise.
9218 2019-12-04  Bruno Haible  <bruno@clisp.org>
9220         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
9221         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
9222         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
9224 2019-12-04  Bruno Haible  <bruno@clisp.org>
9226         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
9227         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
9228         _GL_CXXALIASWARN invocation on non-glibc systems.
9229         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
9230         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
9231         iswctype, towlower, towupper): Likewise.
9233 2019-12-03  Bruno Haible  <bruno@clisp.org>
9235         Avoid hassles caused by [[noreturn]] in C++.
9236         Reported by Christian Biesinger <cbiesinger@google.com> in
9237         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
9238         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
9239         * lib/_Noreturn.h: Likewise.
9241 2019-12-02  Bruno Haible  <bruno@clisp.org>
9243         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
9244         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
9245         LIBMULTITHREAD.
9246         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
9247         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
9248         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
9249         gl_THREADLIB.
9250         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
9252 2019-12-02  Bruno Haible  <bruno@clisp.org>
9254         Fix some more link errors with --enable-threads=isoc.
9255         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
9256         * modules/pthread-rwlock (Depends-on): Likewise.
9258 2019-12-02  Bruno Haible  <bruno@clisp.org>
9260         Fix link errors with --enable-threads=posix on AIX.
9261         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
9262         program with $(LIBTHREAD).
9263         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
9264         program with $(LIBTHREAD).
9266 2019-12-02  Bruno Haible  <bruno@clisp.org>
9268         Fix link errors with --enable-threads=posix on AIX.
9269         * modules/mbrtowc (Link): New section.
9270         * modules/acl (Link): Likewise.
9271         * modules/argmatch (Link): Likewise.
9272         * modules/backup-rename (Link): Likewise.
9273         * modules/backupfile (Link): Likewise.
9274         * modules/closein (Link): Likewise.
9275         * modules/closeout (Link): Likewise.
9276         * modules/copy-file (Link): Likewise.
9277         * modules/csharpcomp (Link): Likewise.
9278         * modules/csharpexec (Link): Likewise.
9279         * modules/dfa (Link): Likewise.
9280         * modules/exclude (Link): Likewise.
9281         * modules/fnmatch (Link): Likewise.
9282         * modules/fnmatch-gnu (Link): Likewise.
9283         * modules/fnmatch-posix (Link): Likewise.
9284         * modules/glob (Link): Likewise.
9285         * modules/human (Link): Likewise.
9286         * modules/javacomp (Link): Likewise.
9287         * modules/javaexec (Link): Likewise.
9288         * modules/javaversion (Link): Likewise.
9289         * modules/mbfile (Link): Likewise.
9290         * modules/mbiter (Link): Likewise.
9291         * modules/mbmemcasecmp (Link): Likewise.
9292         * modules/mbmemcasecoll (Link): Likewise.
9293         * modules/mbrlen (Link): Likewise.
9294         * modules/mbscasecmp (Link): Likewise.
9295         * modules/mbscasestr (Link): Likewise.
9296         * modules/mbschr (Link): Likewise.
9297         * modules/mbscspn (Link): Likewise.
9298         * modules/mbsinit (Link): Likewise.
9299         * modules/mbslen (Link): Likewise.
9300         * modules/mbsncasecmp (Link): Likewise.
9301         * modules/mbsnlen (Link): Likewise.
9302         * modules/mbsnrtowcs (Link): Likewise.
9303         * modules/mbspbrk (Link): Likewise.
9304         * modules/mbspcasecmp (Link): Likewise.
9305         * modules/mbsrchr (Link): Likewise.
9306         * modules/mbsrtowcs (Link): Likewise.
9307         * modules/mbssep (Link): Likewise.
9308         * modules/mbsspn (Link): Likewise.
9309         * modules/mbsstr (Link): Likewise.
9310         * modules/mbstok_r (Link): Likewise.
9311         * modules/mbswidth (Link): Likewise.
9312         * modules/mbuiter (Link): Likewise.
9313         * modules/mkdir-p (Link): Likewise.
9314         * modules/propername (Link): Likewise.
9315         * modules/quote (Link): Likewise.
9316         * modules/quotearg (Link): Likewise.
9317         * modules/quotearg-simple (Link): Likewise.
9318         * modules/regex-quote (Link): Likewise.
9319         * modules/rpmatch (Link): Likewise.
9320         * modules/sh-quote (Link): Likewise.
9321         * modules/system-quote (Link): Likewise.
9322         * modules/trim (Link): Likewise.
9323         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9324         * modules/unistdio/ulc-fprintf (Link): Likewise.
9325         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9326         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9327         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9328         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9329         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9330         * modules/xfreopen (Link): Likewise.
9331         * modules/xmemcoll (Link): Likewise.
9332         * modules/yesno (Link): Likewise.
9333         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
9334         * modules/argmatch-tests (Makefile.am): Likewise.
9335         * modules/closein-tests (Makefile.am): Likewise.
9336         * modules/copy-file-tests (Makefile.am): Likewise.
9337         * modules/dfa-tests (Makefile.am): Likewise.
9338         * modules/fnmatch-tests (Makefile.am): Likewise.
9339         * modules/glob-tests (Makefile.am): Likewise.
9340         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9341         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9342         * modules/mbrtowc-tests (Makefile.am): Likewise.
9343         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9344         * modules/mbscasestr-tests (Makefile.am): Likewise.
9345         * modules/mbschr-tests (Makefile.am): Likewise.
9346         * modules/mbscspn-tests (Makefile.am): Likewise.
9347         * modules/mbsinit-tests (Makefile.am): Likewise.
9348         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9349         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9350         * modules/mbspbrk-tests (Makefile.am): Likewise.
9351         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9352         * modules/mbsrchr-tests (Makefile.am): Likewise.
9353         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9354         * modules/mbsspn-tests (Makefile.am): Likewise.
9355         * modules/mbsstr-tests (Makefile.am): Likewise.
9356         * modules/quotearg-tests (Makefile.am): Likewise.
9357         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9358         * modules/readtokens-tests (Makefile.am): Likewise.
9359         * modules/regex-quote-tests (Makefile.am): Likewise.
9360         * modules/sh-quote-tests (Makefile.am): Likewise.
9361         * modules/system-quote-tests (Makefile.am): Likewise.
9362         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9363         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9364         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9365         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9366         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9367         * modules/yesno-tests (Makefile.am): Likewise.
9369 2019-12-02  Bruno Haible  <bruno@clisp.org>
9371         Simplify link sections.
9372         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
9373         * modules/lock (Link): Likewise.
9374         * modules/cond (Link): Likewise.
9375         * modules/tls (Link): Likewise.
9376         * modules/yield (Link): Likewise.
9377         * modules/regex (Link): Likewise.
9378         * modules/localename (Link): Likewise.
9379         * modules/unicase/locale-language (Link): Likewise.
9380         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
9382 2019-12-02  Bruno Haible  <bruno@clisp.org>
9384         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
9385         * tests/test-thread_self.c (main): Disable test on AIX.
9387 2019-12-01  Bruno Haible  <bruno@clisp.org>
9389         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
9390         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
9391         gl_THREADLIB_EARLY_BODY.
9392         (gl_THREADLIB_EARLY_BODY): Invoke it.
9393         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
9394         (gl_THREADLIB_BODY): Invoke it.
9395         (gl_PTHREADLIB): New macro.
9396         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
9397         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
9398         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
9399         * modules/pthread-h (Files): Add threadlib.m4.
9400         (Depends-on): Remove threadlib.
9401         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
9402         and _THREAD_SAFE here.
9403         (Link): Use LIBPTHREAD, not LIBTHREAD.
9404         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
9405         LIBMULTITHREAD.
9406         * modules/pthread-once (Link): Likewise.
9407         * modules/pthread-mutex (Link): Likewise.
9408         * modules/pthread-rwlock (Link): Likewise.
9409         * modules/pthread-cond (Link): Likewise.
9410         * modules/pthread-tss (Link): Likewise.
9411         * modules/pthread-spin (Link): Likewise.
9412         * modules/pthread (Link): Likewise.
9413         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
9414         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
9415         * modules/pthread-once-tests (test_pthread_once1_LDADD,
9416         test_pthread_once2_LDADD): Likewise.
9417         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
9418         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
9419         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
9420         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
9422 2019-12-01  Bruno Haible  <bruno@clisp.org>
9424         cond: State linking requirements.
9425         * modules/cond (Link): New section.
9427 2019-12-01  Bruno Haible  <bruno@clisp.org>
9429         threadlib: Remove unnecessary file (left over from 2019-07-06).
9430         * modules/threadlib (Files): Remove config.rpath.
9432 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
9434         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
9435         Reported by Dagobert Michelsen <dam@opencsw.org> in
9436         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
9437         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
9438         list of strings instead of one string.
9439         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
9440         * pygnulib/GLImport.py (execute): Likewise.
9442 2019-11-27  Bruno Haible  <bruno@clisp.org>
9444         openpty, forkpty: Fix build error on Solaris 11.4.
9445         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
9446         also in <termios.h>.
9447         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
9448         of the function also in <termios.h>.
9449         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
9450         * doc/glibc-functions/forkpty.texi: Likewise.
9452 2019-11-27  Bruno Haible  <bruno@clisp.org>
9454         New options --enable-threads=isoc and --enable-threads=isoc+posix.
9455         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
9456         --enable-threads=isoc and --enable-threads=isoc+posix.
9457         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
9458         When both the ISO C and the POSIX threads API are available, choose
9459         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
9460         --enable-threads=isoc+posix was specified. When only the ISO C threads
9461         API is available and --enable-threads=iso was specified, choose
9462         USE_ISOC_THREADS.
9463         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
9464         USE_ISOC_AND_POSIX_THREADS.
9465         * lib/glthread/lock.c: Likewise.
9466         * lib/glthread/cond.h: Likewise.
9467         * lib/glthread/cond.c: Likewise.
9468         * lib/glthread/tls.h: Likewise.
9469         * lib/glthread/tls.c: Likewise.
9470         * lib/glthread/yield.h: Likewise.
9471         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
9472         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
9473         * lib/glthread/thread.c: Likewise.
9474         * lib/glthread/threadlib.c: Likewise.
9475         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
9476         USE_ISOC_AND_POSIX_THREADS.
9477         * tests/test-cond.c: Consider USE_ISOC_THREADS and
9478         USE_ISOC_AND_POSIX_THREADS.
9479         * tests/test-tls.c: Likewise.
9480         * tests/test-thread_create.c (main): Likewise.
9481         * tests/test-pthread-cond.c: Likewise.
9482         * tests/test-pthread-mutex.c: Likewise.
9483         * tests/test-pthread-once2.c: Likewise.
9484         * tests/test-pthread-rwlock.c: Likewise.
9485         * tests/test-pthread-tss.c: Likewise.
9486         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
9487         USE_POSIX_THREADS.
9489 2019-11-24  Bruno Haible  <bruno@clisp.org>
9491         mbrtowc: Modernize autoconf test.
9492         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
9493         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
9494         try a UTF-8 locale.
9495         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
9497 2019-11-24  Bruno Haible  <bruno@clisp.org>
9499         Fix errors in C++ mode on mingw.
9500         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
9501         instead of _GL_CXXALIAS_SYS.
9502         * lib/signal.in.h (pthread_sigmask): Likewise.
9503         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
9504         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9505         Likewise.
9506         * lib/wchar.in.h (btowc): Likewise.
9508 2019-11-24  Bruno Haible  <bruno@clisp.org>
9510         sys_time: Fix errors in C++ mode on mingw.
9511         * lib/sys_time.in.h (timeval): Restore the redirection
9512         '#define timeval rpl_timeval', for when the symbol timeval is being used
9513         outside the 'gnulib' namespace.
9514         * lib/sys_select.in.h (select): In C++, write 'timeval', not
9515         'struct timeval'.
9517 2019-11-24  Bruno Haible  <bruno@clisp.org>
9519         iswctype: Fix errors in C++ mode on mingw.
9520         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
9521         is 1.
9522         * lib/iswctype.c (iswctype): Add another implementation, for the
9523         GNULIB_defined_wint_t case.
9524         * modules/iswctype (configure.ac): Compile iswctype.c also if
9525         GNULIB_OVERRIDES_WINT_T is 1.
9527 2019-11-24  Bruno Haible  <bruno@clisp.org>
9529         windows-timedmutex: Fix errors in C++ mode on mingw.
9530         * lib/windows-timedmutex.h: Add closing brace.
9532 2019-11-24  Bruno Haible  <bruno@clisp.org>
9534         Fix errors in C++ mode on Cygwin.
9535         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
9536         _GL_CXXALIAS_SYS.
9538 2019-11-24  Bruno Haible  <bruno@clisp.org>
9540         time_r: Fix for mingw (regression from 2019-11-16).
9541         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
9542         AC_LINK_IFELSE test only if the function does not appear to exist.
9544 2019-11-24  Bruno Haible  <bruno@clisp.org>
9546         wcstok: Add tests.
9547         * tests/test-wcstok.c: New file.
9548         * modules/wcstok-tests: New file.
9550 2019-11-24  Bruno Haible  <bruno@clisp.org>
9552         wcstok: Work around wrong signature on native Windows.
9553         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
9554         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
9555         REPLACE_WCSTOK.
9556         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
9557         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
9558         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
9559         * doc/posix-functions/wcstok.texi: Mention the problem.
9561 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
9563         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
9564         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
9565         remove workaround for GCC bug 91450 as the bug should be fixed
9566         there too.
9568 2019-11-21  Bruno Haible  <bruno@clisp.org>
9570         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
9571         Reported by Christian Biesinger <cbiesinger@google.com> in
9572         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
9573         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
9574         non-glibc systems.
9575         * lib/locale.in.h (localeconv, setlocale): Likewise.
9576         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
9577         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
9578         rint, round, trunc): Likewise.
9579         * lib/monetary.in.h (strfmon_l): Likewise.
9580         * lib/pthread.in.h (pthread_mutexattr_getrobust,
9581         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
9582         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
9583         pthread_spin_destroy): Likewise.
9584         * lib/signal.in.h (raise, signal): Likewise.
9585         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
9586         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
9587         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
9588         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
9589         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
9590         Likewise.
9591         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
9592         Likewise.
9593         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
9594         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
9595         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
9596         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
9597         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
9598         wcsftime): Likewise.
9599         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
9601 2019-11-21  Bruno Haible  <bruno@clisp.org>
9603         Fix various errors in _GL_CXXALIAS_SYS invocations.
9604         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
9605         _GL_CXXALIAS_SYS.
9606         * lib/pthread.in.h (pthread_mutexattr_gettype,
9607         pthread_mutexattr_getrobust): Likewise.
9608         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
9609         * lib/sys_socket.in.h (recv, send): Likewise.
9610         * lib/unistd.in.h (getdtablesize): Likewise.
9611         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
9612         'struct timeval'.
9614 2019-11-21  Bruno Haible  <bruno@clisp.org>
9616         math tests: Update after 2019-08-28 change.
9617         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
9618         return type of 'bool', not 'int'.
9620 2019-11-21  Bruno Haible  <bruno@clisp.org>
9622         pthread-spin: Fix errors in C++ mode.
9623         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
9624         functions as nonexistent when <pthread.h> exists but does not define
9625         the pthread_spinlock_t type.
9627 2019-11-21  Bruno Haible  <bruno@clisp.org>
9629         pthread-mutex: Fix errors in C++ mode.
9630         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
9631         pthread_mutexattr_getrobust exists. If not, define
9632         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
9633         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
9634         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
9635         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
9636         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
9637         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
9638         definition.
9640 2019-11-19  Bruno Haible  <bruno@clisp.org>
9642         threads-h tests: Fix typo.
9643         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
9645 2019-11-19  Bruno Haible  <bruno@clisp.org>
9647         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
9648         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
9649         to 'const pthread_attr_t *'.
9650         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
9651         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
9653 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9655         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
9656         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
9657         work around GCC bug 91450 as the bug should be fixed there.
9659 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9661         glob: get closer to glibc glob.c
9662         Omit differences from glibc when the differences don’t matter.
9663         * lib/glob.c [_LIBC]: Include shlib-compat.h.
9664         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
9665         (glob_lstat): New function.
9666         (glob_in_dir): Use it.
9667         (GLOB_ATTRIBUTE): Define to empty if not already defined.
9668         Use changed.
9670 2019-11-18  Bruno Haible  <bruno@clisp.org>
9672         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
9673         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
9674         UINTPTR_MAX): Consider _WIN64.
9675         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
9676         a pointer.
9678 2019-11-18  Bruno Haible  <bruno@clisp.org>
9680         stdint: Fix value of WINT_MAX when we override wint_t.
9681         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
9682         when GNULIB_OVERRIDES_WINT_T is 1.
9684 2019-11-18  Bruno Haible  <bruno@clisp.org>
9686         vcs-to-changelog: New module.
9687         * modules/vcs-to-changelog: New file.
9688         * MODULES.html.sh (func_all_modules): Add it.
9690 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9692         vcs-to-changelog: New script to generate ChangeLog-like output.
9693         Discussion:
9694         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
9695         * build-aux/vcs_to_changelog.py: New file.
9696         * build-aux/vcstocl/frontend_c.py: New file.
9697         * build-aux/vcstocl/misc_util.py: New file.
9698         * build-aux/vcstocl/vcs_git.py: New file.
9700 2019-11-18  Bruno Haible  <bruno@clisp.org>
9702         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
9703         Reported by Keith Marshall <keith@users.osdn.me> in
9704         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
9705         and <https://osdn.net/projects/mingw/ticket/39677>.
9706         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
9707         already been defined by mingw's <crtdefs.h>.
9709 2019-11-18  Bruno Haible  <bruno@clisp.org>
9711         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
9712         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
9713         conditionally enabled.
9715 2019-11-18  Bruno Haible  <bruno@clisp.org>
9717         gc: Mirror libgcrypt.m4 from libgcrypt.
9718         * config/srclistvars.sh (LIBGCRYPT): New variable.
9719         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
9721 2019-11-17  Bruno Haible  <bruno@clisp.org>
9723         locale, localename: Improve z/OS support.
9724         Reported by Daniel Richard G. in
9725         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
9726         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
9727         gl_LOCALE_H.
9728         (gl_LOCALE_H): Require it.
9729         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
9730         defined, don't even check for newlocale, duplocale, freelocale.
9731         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
9732         locale_t is not defined.
9734 2019-11-17  Bruno Haible  <bruno@clisp.org>
9736         havelib: Make libdirstems processing more flexible.
9737         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
9738         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
9739         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
9740         patch from 2017-02-19).
9741         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
9742         libdirs, even when the first one exists as a directory.
9744 2019-11-17  Bruno Haible  <bruno@clisp.org>
9746         havelib: Match the bitness when searching for libraries.
9747         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
9748         acl_is_expected_elfclass.
9749         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
9750         file exists, in ELF, also test whether it has the ELF class that
9751         corresponds to the host's bitness.
9753 2019-11-17  Bruno Haible  <bruno@clisp.org>
9755         host-cpu-c-abi: Add support for unknown CPUs.
9756         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
9757         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
9758         32-bit or 64-bit.
9760 2019-11-17  Bruno Haible  <bruno@clisp.org>
9762         havelib: Remove redundant code.
9763         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
9764         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
9766 2019-11-17  Bruno Haible  <bruno@clisp.org>
9768         havelib: Fix a bug in dependency processing.
9769         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
9770         of .la files, don't overwrite the value of additional_libdir for the
9771         next rounds.
9773 2019-11-16  Bruno Haible  <bruno@clisp.org>
9775         wctype-h: When overriding wint_t, override also the related functions.
9776         Reported by Christian Biesinger <cbiesinger@google.com> in
9777         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
9778         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
9779         REPLACE_ISWCNTRL to 1.
9780         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
9781         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
9782         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
9783         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
9784         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
9785         on mingw.
9786         * doc/posix-headers/wctype.texi: Likewise.
9788 2019-11-16  Bruno Haible  <bruno@clisp.org>
9790         time_r: Fix for mingw.
9791         Reported by Christian Biesinger <cbiesinger@google.com> in
9792         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
9793         * lib/time.in.h: On mingw, include <unistd.h>.
9794         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
9795         <time.h>. Test for localtime_r in a way that works when it is defined
9796         as an inline function.
9798 2019-11-13  Bruno Haible  <bruno@clisp.org>
9800         havelib: Revert last change.
9801         * build-aux/config.rpath: Revert last change. We can add msys2 support
9802         when it has been added to libtool.m4 upstream.
9804 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9806         config: add msys support
9807         Requested by Arnold Robbins in:
9808         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
9809         He also requested a change to config.guess, which I’ll forward
9810         upstream.
9811         * build-aux/ar-lib (func_file_conv):
9812         * build-aux/compile (func_file_conv):
9813         * build-aux/config.rpath (wl, with_gnu_ld)
9814         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
9815         Treat msys like cygwin.
9817 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9819         regex: now back in sync with glibc
9820         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
9821         regexec.c got merged into glibc and are now copies again.
9823 2019-10-27  Bruno Haible  <bruno@clisp.org>
9825         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
9826         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
9827         statement.
9828         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
9829         32-bit CPUs.
9831 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9833         timespec-add, timespec-sub: simplify
9834         * lib/timespec-add.c (timespec_add):
9835         * lib/timespec-sub.c (timespec_sub):
9836         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
9837         work on unsigned integers.
9839 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9841         nstrftime: speed up integer overflow checking
9842         * lib/nstrftime.c: Include intprops.h.
9843         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
9844         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
9845         instead of doing it by hand.
9846         * modules/nstrftime (Depends-on): Add intprops.
9848         Port better to GCC under macOS
9849         Work around macOS header that has ‘#define __has_builtin(x) 0’
9850         when compiled by GCC.  Apple really, really doesn’t want you to
9851         use GCC, apparently.  Rroblem reported by Akim Demaille in:
9852         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
9853         The fix is to not trust __has_builtin when being compiled by
9854         recent-enough GCC.
9855         * lib/intprops.h (__has_builtin)
9856         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
9857         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
9858         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
9859         Remove.  All uses removed.
9860         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
9861         directly, if defined and if not newer GCC.
9862         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
9863         New macro, that use __has_builtin directly, if defined and if
9864         not newer GCC.
9865         (assume): Use them.
9867 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
9869         maintainer-makefile: update rule for argmatch.
9870         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
9872 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
9874         bitset: let freeing functions accept NULL.
9875         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
9876         given NULL.
9877         * lib/bitset.h: Document that.
9878         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
9880 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
9882         inttypes: use more-robust test for int range
9883         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
9884         Problem reported by Dagobert Michelsen in:
9885         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
9886         * lib/inttypes.in.h: Rely only on limits.h when checking
9887         int range.
9889 2019-10-15  Bruno Haible  <bruno@clisp.org>
9891         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
9892         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
9893         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
9894         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
9895         term_ostream_set_hyperlink): New functions.
9896         (term_styled_ostream_get_hyperlink_ref,
9897         term_styled_ostream_get_hyperlink_id,
9898         term_styled_ostream_set_hyperlink): New function aliases.
9900 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9902         update-copyright: use en dashes in .texi ranges
9903         * build-aux/update-copyright: Match year ranges like "1998--2019",
9904         which are used in the Autoconf manual.  Also, update ranges in
9905         .tex, .texi, and .texinfo files to use en dashes instead of
9906         hyphens.
9908 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9910         * config/srclist.txt: Remove posix/regex_internal.c for now.
9912 2019-10-13  Bruno Haible  <bruno@clisp.org>
9914         git-version-gen: Allow 'snapshot' as .tarball-version contents.
9915         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
9916         contents to the empty string.
9918 2019-10-12  Bruno Haible  <bruno@clisp.org>
9920         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
9921         * tests/test-intprops.c (main): Disable two more tests when using
9922         HP-UX cc.
9924 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9926         Simplify and regularize regex use of ‘assert’
9927         Also, tell GCC about the asserts even when compiling without
9928         debugging, to give it further optimization opportunities.
9929         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
9930         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
9931         (parse_expression, parse_bracket_exp):
9932         * lib/regex_internal.c (build_wcs_buffer)
9933         (build_wcs_upper_buffer, re_string_reconstruct)
9934         (re_string_context_at):
9935         * lib/regexec.c (re_search_stub, re_copy_regs)
9936         (re_search_internal, prune_impossible_nodes, check_matching)
9937         (check_halt_state_context, set_regs, sift_states_backward)
9938         (build_sifted_states, transit_state_mb, transit_state_bkref)
9939         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
9940         (match_ctx_add_subtop):
9941         Use it instead of plain ‘assert’.
9943 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9945         regex: omit debug assignment when not debugging
9946         * lib/regexec.c (re_search_internal) [!DEBUG]:
9947         Remove unnecessary assignment.
9949         regex: tell compiler there’s at most 256 arcs out
9950         Partly this is to help the reader (and maybe help GCC);
9951         partly this is to pacify Coverity.
9952         * lib/regex_internal.h: Include verify.h.
9953         * lib/regexec.c (group_nodes_into_DFAstates):
9954         Tell the compiler that ndests cannot exceed SBC_MAX.
9955         * modules/regex (Depends-on): Add ‘verify’.
9957         regex: simplify by assuming C99
9958         * config/srclist.txt: Comment out regex_internal.h and regexec.c
9959         temporarily.
9960         * lib/regex_internal.h (lock_define, re_match_context_t):
9961         Simplify by assuming C99 macros and const.
9962         * lib/regexec.c (re_search_internal): Simplify by assuming C99
9963         initializers.  Remove unnecessary assignment, as mctx is now
9964         safely initialized earlier.
9966         regex: avoid copying of uninitialized storage
9967         * config/srclist.txt: Comment out regcomp.c temporarily.
9968         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
9969         Initialize even when not checking for lint, as the behavior is
9970         arguably undefined otherwise and Coverity warns about it.
9972 2019-10-06  Bruno Haible  <bruno@clisp.org>
9974         access tests: Fix test failure when run as root.
9975         * tests/test-access.c: Include root-uid.h.
9976         (geteuid): Define fallback.
9977         (main): Don't expect that writing to a read-only file would fail when
9978         running as root. Also, remove the created files at the end.
9979         * modules/access-tests (Depends-on): Add root-uid.
9980         (configure.ac): Test whether geteuid exists.
9982 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
9984         users.txt: add GNU nano
9985         Nano has been making use of gnulib since March 2017, version 2.8.0.
9987 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9989         bootstrap: simplify debugging of wget failures
9990         Problem reported by Tim Rühsen in:
9991         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
9992         * build-aux/bootstrap (po_download_command_format):
9993         Invoke wget with -nv instead of -q, to make debugging easier.
9995 2019-09-29  Bruno Haible  <bruno@clisp.org>
9997         avltree-list: Fix compilation warning (introduced on 2014-09-16).
9998         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
9999         'const' attribute.
10001 2019-09-29  Bruno Haible  <bruno@clisp.org>
10003         fbufmode: Fix compilation error on glibc >= 2.28 systems.
10004         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
10006 2019-09-28  Bruno Haible  <bruno@clisp.org>
10008         Update comments that refer to POSIX.
10009         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
10010         sentence about trailing slashes.
10011         * lib/fflush.c: Clarify the reasoning.
10012         * tests/test-fflush2.c: Cite the relevant sentence.
10014 2019-09-28  Bruno Haible  <bruno@clisp.org>
10016         access: Document limitations on Windows.
10017         Suggested by Zaretskii <eliz@gnu.org>.
10018         * doc/posix-functions/access.texi: Mention two limitations on Windows.
10020 2019-09-28  Bruno Haible  <bruno@clisp.org>
10022         findprog-in: Fix comment.
10023         Reported by Eli Zaretskii <eliz@gnu.org>.
10024         * lib/findprog.h (find_in_given_path): Extend description of EACCES
10025         condition.
10026         * lib/stat.c (rpl_stat): Fix typo in comment.
10027         * lib/utime.c (_gl_utimens_windows): Likewise.
10029 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10031         Update URLs and associated text
10032         (Thanks to Bruno Haible for proofreading this patch.)
10033         Prefer https: to http: in URLs where either will do, for the usual
10034         security reasons.  I also updated broken and/or moved URLs
10035         discovered during the process. In a few places I had to resort to
10036         archive.org, since I didn't find the originals elsewhere.
10038 2019-09-15  Paul Smith  <psmith@gnu.org>
10039             Bruno Haible  <bruno@clisp.org>
10041         findprog-in: Set errno when the search fails.
10042         * lib/findprog-in.c: Include <errno.h>.
10043         (find_in_given_path): Set errno before returning NULL.
10044         * lib/findprog.h (find_in_given_path): Update comment accordingly.
10045         Define the term "slash".
10047 2019-09-15  Bruno Haible  <bruno@clisp.org>
10049         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
10050         * modules/findprog (Depends-on): Add access.
10051         * modules/findprog-lgpl (Depends-on): Likewise.
10052         * modules/findprog-in (Depends-on): Likewise.
10054 2019-09-15  Bruno Haible  <bruno@clisp.org>
10056         access: Add tests.
10057         * tests/test-access.c: New file.
10058         * modules/access-tests: New file.
10060         access: New module.
10061         * lib/unistd.in.h (access): New declaration.
10062         * lib/access.c: New file.
10063         * m4/access.m4: New file.
10064         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
10065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
10066         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
10067         REPLACE_ACCESS.
10068         * modules/access: New file.
10069         * tests/test-unistd-c++.cc (access): Check signature.
10070         * doc/posix-functions/access.texi: Mention the new module.
10072 2019-09-15  Bruno Haible  <bruno@clisp.org>
10074         fcntl-h: Fix compilation error of creat.c on MSVC.
10075         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
10076         defined.
10078 2019-09-15  Bruno Haible  <bruno@clisp.org>
10080         creat: Add tests.
10081         * tests/test-creat.c: New file, based on tests/test-open.h.
10082         * modules/creat-tests: New file.
10084         creat: New module.
10085         * lib/fcntl.in.h (creat): New declaration.
10086         * lib/creat.c: New file, based on lib/open.c.
10087         * m4/creat.m4: New file.
10088         * m4/open-slash.m4: New file, extracted from m4/open.m4.
10089         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
10090         Invoke gl_OPEN_TRAILING_SLASH_BUG.
10091         * modules/open (Files): Add m4/open-slash.m4.
10092         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
10093         REPLACE_CREAT.
10094         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
10095         * modules/creat: New file.
10096         * tests/test-fcntl-h-c++.cc (creat): Check signature.
10097         * doc/posix-functions/creat.texi: Mention the new module.
10099 2019-09-15  Bruno Haible  <bruno@clisp.org>
10101         open tests: Enhance test.
10102         * tests/test-open.h (test_open): Test the creation of an executable
10103         regular file. Also improve initial cleanup.
10105 2019-09-15  Bruno Haible  <bruno@clisp.org>
10107         intprops tests: Avoid build failure with HP-UX cc.
10108         * tests/test-intprops.c: Disable a check that makes HP cc choke with
10109         "error 4018: Macro param too large after substitution - use -H option.".
10111 2019-09-14  Bruno Haible  <bruno@clisp.org>
10113         Make autoconf tests work with -Werror=implicit-function-declaration.
10114         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
10115         towupper() declaration.
10116         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
10117         declaration.
10119 2019-09-14  Bruno Haible  <bruno@clisp.org>
10121         findprog-in: Better mimic the system on native Windows.
10122         Reported by Paul Smith <psmith@gnu.org>.
10123         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
10124         non-empty suffixes when the file name already contains a '.'.
10126 2019-09-10  Bruno Haible  <bruno@clisp.org>
10128         wctob: Fix autoconf test.
10129         Based on patch by Florian Weimer <fweimer@redhat.com>.
10130         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
10132 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
10134         xhash: provide hash_xinitialize.
10135         Suggested by Egor Pugin <egor.pugin@gmail.com>
10136         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
10137         * modules/xhash, lib/xhash.c: New.
10138         * lib/hash.h (hash_xinitialize): New.
10140 2019-09-09  Bruno Haible  <bruno@clisp.org>
10142         findprog-in: Make exec optimization optional.
10143         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
10144         (find_in_given_path): Add optimize_for_exec parameter.
10145         * lib/findprog-in.c (find_in_given_path): Likewise.
10147 2019-09-08  Bruno Haible  <bruno@clisp.org>
10149         Add option to assume the best, not the worst, when cross-compiling.
10150         Suggested by Jonas Termansen <sortie@maxsi.org>.
10151         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
10152         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
10153         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
10154         lt_cv_sys_argz_works.
10155         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
10156         ac_cv_func_calloc_0_nonnull.
10157         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
10158         --enable-cross-guesses for gl_cv_func_realpath_works.
10159         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
10160         gl_cv_func_cbrtl_ieee.
10161         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
10162         gl_cv_func_ceil_ieee.
10163         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
10164         gl_cv_func_ceilf_ieee.
10165         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
10166         gl_cv_func_ceill_ieee.
10167         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
10168         ac_cv_func_chown_works.
10169         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
10170         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
10171         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
10172         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
10173         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
10174         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
10175         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
10176         gl_cv_func_expl_works.
10177         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
10178         gl_cv_func_expm1_ieee.
10179         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
10180         gl_cv_func_expm1l_works.
10181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
10182         gl_cv_func_open_directory_works.
10183         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
10184         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
10185         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
10186         gl_cv_func_fchownat_empty_filename_works.
10187         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
10188         gl_cv_func_fdopendir_works.
10189         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
10190         gl_cv_func_floor_ieee.
10191         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
10192         gl_cv_func_floorf_ieee.
10193         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
10194         gl_cv_func_fma_works.
10195         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
10196         gl_cv_func_fmaf_works.
10197         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
10198         gl_cv_func_fmal_works.
10199         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
10200         gl_cv_func_fmod_ieee.
10201         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
10202         gl_cv_func_fmodf_ieee.
10203         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
10204         gl_cv_func_fmodl_ieee.
10205         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
10206         gl_cv_func_fpurge_works.
10207         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
10208         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
10209         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
10210         gl_cv_func_getcwd_null.
10211         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
10212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
10213         gl_cv_func_working_getdelim.
10214         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10215         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
10216         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10217         gl_cv_func_getgroups_works.
10218         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
10219         am_cv_func_working_getline.
10220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
10221         for gl_cv_func_getopt_gnu.
10222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
10223         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
10224         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
10225         gl_cv_func_hypot_ieee.
10226         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
10227         gl_cv_func_hypotf_ieee.
10228         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
10229         gl_cv_func_hypotl_ieee.
10230         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
10231         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
10232         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
10233         gl_cv_func_link_works.
10234         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
10235         gl_cv_func_linkat_slash.
10236         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
10237         gl_cv_func_log_ieee.
10238         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
10239         gl_cv_func_logf_ieee.
10240         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
10241         gl_cv_func_logl_works.
10242         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
10243         gl_cv_func_log10_ieee.
10244         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
10245         gl_cv_func_log10f_ieee.
10246         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
10247         gl_cv_func_log10l_works.
10248         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
10249         gl_cv_func_log1p_ieee.
10250         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
10251         gl_cv_func_log1pf_ieee.
10252         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
10253         gl_cv_func_log1pl_ieee.
10254         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
10255         gl_cv_func_log2_ieee.
10256         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
10257         gl_cv_func_log2f_ieee.
10258         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
10259         --enable-cross-guesses for
10260         gl_cv_func_lstat_dereferences_slashed_symlink.
10261         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
10262         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10263         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
10264         gl_cv_C_locale_sans_EILSEQ.
10265         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
10266         gl_cv_func_memchr_works.
10267         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
10268         gl_cv_func_memmem_works_always.
10269         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
10270         gl_cv_func_memmem_works_fast.
10271         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
10272         gl_cv_func_mkdir_trailing_slash_works,
10273         gl_cv_func_mkdir_trailing_dot_works.
10274         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
10275         gl_cv_func_mkfifo_works.
10276         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
10277         gl_cv_func_mknod_works.
10278         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
10279         gl_cv_func_working_mkstemp.
10280         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
10281         gl_cv_func_working_mktime.
10282         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
10283         gl_cv_func_modf_ieee.
10284         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
10285         gl_cv_func_modff_ieee.
10286         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
10287         gl_cv_func_modfl_ieee.
10288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
10289         gl_cv_func_nanosleep.
10290         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
10291         gl_cv_func_perror_works.
10292         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
10293         gl_cv_func_printf_sizes_c99.
10294         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
10295         gl_cv_func_printf_infinite.
10296         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
10297         gl_cv_func_printf_infinite_long_double.
10298         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
10299         gl_cv_func_printf_directive_a.
10300         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
10301         gl_cv_func_printf_directive_f.
10302         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
10303         gl_cv_func_printf_flag_zero.
10304         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
10305         gl_cv_func_printf_enomem.
10306         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
10307         gl_cv_func_snprintf_truncation_c99.
10308         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
10309         gl_cv_func_snprintf_retval_c99.
10310         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
10311         gl_cv_func_snprintf_directive_n.
10312         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
10313         gl_cv_func_vsnprintf_zerosize_c99.
10314         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
10315         gl_cv_func_pselect_detects_ebadf.
10316         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
10317         Obey --enable-cross-guesses for
10318         gl_cv_pthread_rwlock_rdlock_prefer_writer.
10319         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
10320         gl_cv_func_ptsname_sets_errno.
10321         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
10322         gl_cv_func_svid_putenv.
10323         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
10324         gl_cv_func_readlink_works.
10325         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
10326         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10327         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
10328         gl_cv_func_re_compile_pattern_working.
10329         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
10330         gl_cv_func_remainder_ieee.
10331         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
10332         gl_cv_func_remainderf_ieee.
10333         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
10334         gl_cv_func_remainderl_ieee.
10335         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
10336         gl_cv_func_rintl_works.
10337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
10338         gl_cv_func_rmdir_works.
10339         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
10340         gl_cv_func_round_ieee.
10341         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
10342         gl_cv_func_roundf_ieee.
10343         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
10344         gl_cv_func_roundl_ieee.
10345         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
10346         gl_cv_func_select_detects_ebadf.
10347         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
10348         gl_cv_func_setenv_works.
10349         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
10350         gl_cv_func_unsetenv_works.
10351         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
10352         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
10353         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
10354         gl_cv_func_sleep_works.
10355         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
10356         gl_cv_func_stat_file_slash.
10357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
10358         gl_cv_func_stpncpy.
10359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
10360         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
10361         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
10362         gl_cv_func_strcasestr_linear.
10363         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
10364         gl_cv_func_working_strerror.
10365         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
10366         gl_cv_func_strerror_0_works.
10367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
10368         --enable-cross-guesses for gl_cv_func_strerror_r_works.
10369         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
10370         gl_cv_func_strstr_works_always.
10371         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
10372         gl_cv_func_strstr_linear.
10373         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
10374         gl_cv_func_strtod_works.
10375         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
10376         gl_cv_func_strtold_works.
10377         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
10378         gl_cv_func_symlink_works.
10379         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
10380         gl_cv_func_symlinkat_works.
10381         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
10382         gl_cv_func_trunc_ieee.
10383         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
10384         gl_cv_func_truncf_ieee.
10385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
10386         gl_cv_func_truncl_ieee.
10387         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
10388         gl_cv_func_tzset_clobber.
10389         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
10390         gl_cv_func_ungetc_works.
10391         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
10392         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
10393         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
10394         gl_cv_func_usleep_works.
10395         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
10396         gl_cv_func_futimesat_works.
10397         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
10398         gl_cv_func_working_utimes.
10399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
10400         gl_cv_func_wcwidth_works.
10401         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
10402         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
10403         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
10404         links for testing. Obey --enable-cross-guesses for
10405         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
10406         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
10408 2019-09-08  Bruno Haible  <bruno@clisp.org>
10410         Clarify that cross-compilation guesses are guesses.
10411         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
10412         cross-compiling.
10414 2019-09-08  Bruno Haible  <bruno@clisp.org>
10416         chown: Fix configure output (regression from 2019-03-23).
10417         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
10418         gl_cv_func_chown_follows_symlink variable.
10420 2019-09-08  Bruno Haible  <bruno@clisp.org>
10422         findprog-in: New module.
10423         Suggested by Paul Smith <psmith@gnu.org>.
10424         * lib/findprog.h (find_in_given_path): New declaration.
10425         * lib/findprog-in.c: New file, based on lib/findprog.c.
10426         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
10427         * modules/findprog-in: New file.
10429 2019-09-08  Bruno Haible  <bruno@clisp.org>
10431         findprog: Remove unused dependency.
10432         * modules/findprog (Depends-on): Remove strdup.
10434 2019-09-08  Bruno Haible  <bruno@clisp.org>
10436         findprog: Remove test that is obsolete since 2006-04-24.
10437         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
10439 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
10441         bitset: style changes
10442         * lib/bitset/vector.c (vbitset_resize): Factor computation.
10443         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
10444         xzalloc to xcalloc.
10445         Suggested by Paul Eggert.
10447 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
10449         bitset: check memory allocation
10450         Reported by 江 祖铭 (Zu-Ming Jiang).
10451         With help from Paul Eggert.
10452         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
10453         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
10454         instead of realloc.
10455         When shrinking, accept failures.
10456         * lib/bitset/vector.c (vbitset_resize): Likewise.
10458 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
10460         scratch_buffer: sync from glibc
10461         * config/srclist.txt: Add the scratch_buffer source
10462         code from glibc, since these should be in sync.
10463         Autoupdate.
10465 2019-09-07  Bruno Haible  <bruno@clisp.org>
10467         doc: Update for glibc 2.30.
10468         * doc/glibc-functions/gettid.texi: New file.
10469         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
10470         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
10471         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
10472         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
10473         * doc/glibc-functions/sem_clockwait.texi: New file.
10474         * doc/glibc-functions/tgkill.texi: New file.
10475         * doc/glibc-functions/twalk_r.texi: New file.
10476         * doc/gnulib.texi: Include them.
10477         (Glibc semaphore.h): New section.
10478         * doc/pastposix-functions/h_errno.texi: Update.
10479         * doc/posix-functions/*.texi: Likewise.
10481 2019-09-06  Bruno Haible  <bruno@clisp.org>
10483         symlink tests: Avoid test failure on Linux with Lustre file system.
10484         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
10485         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
10486         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
10488 2019-09-01  Bruno Haible  <bruno@clisp.org>
10490         gitsub.sh: Add support for shallow-cloning of subdirectories.
10491         * top/gitsub.sh (func_usage): Document allowed git options with
10492         'git pull'.
10493         (func_pull): Accept GIT_OPTIONS argument.
10494         (pull): Parse git options before complaining about too many arguments.
10495         Pass the git options to func_pull.
10497 2019-08-29  Bruno Haible  <bruno@clisp.org>
10499         lock: Fix cross-compilation guesses.
10500         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
10501         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
10502         platforms.
10504 2019-08-28  Bruno Haible  <bruno@clisp.org>
10506         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
10507         Reported by Martin Storsjö <martin@martin.st> in
10508         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
10509         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
10510         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
10511         files from GCC 6 or newer, use an override through '#define', because
10512         the inline definitions in the platform's <cmath> cannot be overridden
10513         in another way.
10515 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
10517         Revert macOS INT_MULTIPLY_WRAPV patch
10518         Problem reported by Bruno Haible in:
10519         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
10520         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
10521         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
10522         Go back to working around the Clang bug on macOS.
10524 2019-08-27  Bruno Haible  <bruno@clisp.org>
10526         libtool-next-version: Fix error output.
10527         * build-aux/libtool-next-version (func_fatal_error): Fix the program
10528         name.
10530 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
10532         Speed up INT_MULTIPLY_WRAPV on macOS
10533         Assume that __builtin_mul_overflow works OK with Clang on macOS.
10534         Mattias Engdegård says it’s safe to assume the relevant library
10535         is always available there.
10536         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
10537         New temporary internal macro.
10538         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
10539         No need to work around the Clang bug on macOS.
10541 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10543         intprops.h, verify.h: port better to clang
10544         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10545         with Clang.  Problem reported privately by Mattias Engdegård.
10546         Also, insulate intprops.h and verify.h better against each other’s
10547         definitions of __has_builtin on non-Clang hosts.
10548         * lib/intprops.h (__has_builtin): Define a temporary substitute
10549         if __has_builtin is not already defined.
10550         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10551         New temporary internal macros.
10552         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
10553         Now two separate macros, replacing the old
10554         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
10555         __builtin_mul_overflow is like the rest.  All uses changed.
10556         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
10557         Adjust to above changes.
10558         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
10559         longer relevant.  All uses changed.
10560         * lib/verify.h (__has_builtin): Treat like intprops.h,
10561         so that the two .h files do not collide with each other.
10562         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
10563         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
10565 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10567         intprops: say why not Clang __builtin_add_overflow
10568         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
10569         Mention Clang in comment, responding to a query from
10570         Mattias Engdegård.
10572 2019-08-24  Bruno Haible  <bruno@clisp.org>
10574         doc: Document most of the files outside of modules.
10575         * doc/gnulib.texi (Build Infrastructure Files,
10576         Release Management Files): New chapters.
10578 2019-08-24  Bruno Haible  <bruno@clisp.org>
10580         bootstrap: Keep in sync with the 'gettext' module.
10581         Reported by Assaf Gordon in
10582         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
10583         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
10584         * build-aux/po/remove-potcdate.sin: Likewise.
10586 2019-08-24  Bruno Haible  <bruno@clisp.org>
10588         crypto/gc-sha512: Add tests.
10589         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
10590         * modules/crypto/gc-sha512-tests: New file.
10592         crypto/gc-sha256: Add tests.
10593         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
10594         * modules/crypto/gc-sha256-tests: New file.
10596         crypto/gc-sha256, crypto/gc-sha512: New modules.
10597         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
10598         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
10599         (MAX_DIGEST_SIZE): Set to 64.
10600         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
10601         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
10602         (gc_sha256, gc_sha512): New functions.
10603         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
10604         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
10605         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
10607 2019-08-24  Bruno Haible  <bruno@clisp.org>
10609         crypto/gc-sha1 tests: Improve output when the test fails.
10610         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
10611         output.
10613 2019-08-24  Bruno Haible  <bruno@clisp.org>
10615         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
10616         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
10617         LIBGCRYPT_HAS_MD_SM3.
10618         * lib/gc-libgcrypt.c: Include sm3.h.
10619         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
10620         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
10621         implementation if libgcrypt does not support SM3.
10623 2019-08-24  Bruno Haible  <bruno@clisp.org>
10625         crypto/gc-md2: Optimize and clarify code.
10626         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
10627         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
10628         is not needed.
10630 2019-08-24  Bruno Haible  <bruno@clisp.org>
10632         crypto/gc-md2: Add comment.
10633         * lib/gc-libgcrypt.c: Add comment.
10635 2019-08-24  Bruno Haible  <bruno@clisp.org>
10637         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
10638         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
10639         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
10640         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
10641         variable.
10643 2019-08-24  Bruno Haible  <bruno@clisp.org>
10645         crypto/gc: Fix link error with --with-libgcrypt.
10646         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
10647         AC_LIB_HAVE_LINKFLAGS invocation.
10649 2019-08-24  Bruno Haible  <bruno@clisp.org>
10651         crypto/gc: Access the module indicators correctly.
10652         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
10653         * lib/gc-libgcrypt.c: Likewise.
10655 2019-08-24  Bruno Haible  <bruno@clisp.org>
10657         crypto/gc: Fix configuration with --with-libgcrypt.
10658         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
10659         * modules/crypto/gc (Files): Add it.
10660         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
10662 2019-08-24  Bruno Haible  <bruno@clisp.org>
10664         Remove unused file.
10665         * m4/stat-macros.m4: Remove file.
10667 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10669         New strip-trailing-space option for srclist-update
10670         * config/srclist-update (fixfile): Support new option.
10671         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
10672         Use it.
10674 2019-08-20  Eric Blake  <eblake@redhat.com>
10676         accept4: Support SOCK_NONBLOCK, if defined
10677         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
10679         accept4: Fix compilation when native accept4() exists.
10680         Reported by Richard W.M. Jones <rjones@redhat.com> in
10681         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
10682         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
10684 2019-08-18  Bruno Haible  <bruno@clisp.org>
10686         Defeat -flto GCC optimization in math autoconf tests.
10687         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
10688         at <https://savannah.gnu.org/bugs/?56109>.
10689         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
10690         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
10691         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10692         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10693         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10694         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
10695         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10696         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10697         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10698         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10699         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10700         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10702 2019-08-17  Bruno Haible  <bruno@clisp.org>
10704         windows-spin: Implement declared functions.
10705         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
10706         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
10707         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
10708         name.
10710 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10712         intprops: port to Oracle Developer Studio 12.6
10713         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
10714         typos that were in a section not compiled by GCC.
10716 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10718         intprops: support uchar, ushort _WRAPV dests
10719         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
10720         when __builtin_add_overflow etc. and _Generic are not used.
10721         (_GL_INT_OP_WRAPV): Use it to support destinations that
10722         are unsigned char or unsigned short, even in compilers
10723         that lack __typeof__ and are not C11-compatible.
10725         intprops: pacify picky GCC
10726         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
10727         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
10728         possibly-incorrect result.
10729         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
10730         about (A) used as a boolean, when A is an expression like 3 * 4.
10732         intprops: support unsigned *_WRAPV results
10733         Add support for unsigned, unsigned long, and unsigned long long
10734         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
10735         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
10736         bug with unsigned inputs reported by Eli Zaretskii in:
10737         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
10738         * config/srclist.txt: Break the glibc connection for intprops.h
10739         temporarily, while more testing is done in Gnulib-using apps.
10740         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
10741         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
10742         Support unsigned results no narrower than unsigned int.  Report
10743         overflow correctly if some arguments are unsigned.
10744         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
10745         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
10746         the right thing with narrow args.
10747         (_GL_INT_OP_CALC1): Remove.  All callers removed.
10748         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
10749         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
10750         * tests/test-intprops.c: Check for bugs and test new behavior.
10752 2019-08-14  Bruno Haible  <bruno@clisp.org>
10754         get_progname_of: New module.
10755         * lib/get_progname_of.h: New file.
10756         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
10757         * lib/getprogname.c (getprogname): Tweak coding style.
10758         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
10759         * modules/get_progname_of: New file.
10761 2019-08-14  Bruno Haible  <bruno@clisp.org>
10763         get_ppid_of: New module.
10764         * lib/get_ppid_of.h: New file.
10765         * lib/get_ppid_of.c: New file.
10766         * modules/get_ppid_of: New file.
10768 2019-08-13  Bruno Haible  <bruno@clisp.org>
10770         libtextstyle-optional tests: Support the NO_COLOR environment variable.
10771         * tests/test-libtextstyle.c (main): Do not emit styling when the
10772         environment variable NO_COLOR is set.
10774 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10776         verify: improve diagnostic quality in recent GCC
10777         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
10778         useful line number containing the top-level caller of the macro.
10779         So, bring back the older way of issuing a diagnostic containing
10780         the top-level call’s arg, so that it is easier to diagnose
10781         ‘verify’ failures with recent GCC.
10782         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
10783         Bring back DIAGNOSTIC arg.  All callers changed.
10784         (verify): Just use _GL_VERIFY.
10786 2019-08-11  Bruno Haible  <bruno@clisp.org>
10788         localcharset: Add more aliases for OS/2.
10789         Based on patch by KO Myung-Hun <komh78@gmail.com> in
10790         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
10791         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
10793 2019-08-10  Eric Blake  <eblake@redhat.com>
10795         configmake: Update advice on usage.
10796         * modules/configmake (Include): No longer necessary to include
10797         last, since configmake.h itself worries about collision avoidance.
10799 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
10801         parse-datetime: fix 'T' military timezone handling
10802         * lib/parse-datetime.y (zone):
10803         follow-up to the previous commit: the 'T' case is handled outside the
10804         conversion table (used as either military timezone UTC-7 or ISO8601
10805         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
10806         timezone letters.
10808 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
10810         parse-datetime: fix military timezone letters
10811         Problem and trivial fix reported by Neil Hoggarth in:
10812         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
10813         * lib/parse-datetime.y (military_table):
10814         Do it the right way, not the RFC 822 way.
10816 2019-08-08  Eric Blake  <eblake@redhat.com>
10818         configmake: Avoid namespace pollution issue on mingw.
10819         * modules/configmake (Makefile.am): If the project uses
10820         <winsock2.h>, include that header before defining DATADIR.
10822 2019-07-28  Bruno Haible  <bruno@clisp.org>
10824         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
10825         * tests/test-mbrtowc.c (main): Fix expected value of wc.
10827 2019-07-24  Bruno Haible  <bruno@clisp.org>
10829         pthread-h: Fix definitions of types and macros on mingw.
10830         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
10831         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
10832         not in use.
10833         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
10834         'pthread-once' is not in use.
10835         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
10836         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
10837         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
10838         in use.
10839         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
10840         Define also when module 'pthread-rwlock' is not in use.
10841         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
10842         also when module 'pthread-cond' is not in use.
10843         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
10844         'pthread-tss' is not in use.
10845         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
10846         use.
10848 2019-07-24  Simon Josefsson  <simon@josefsson.org>
10850         crypto/gc: Cope with libgcrypt without SM3.
10851         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
10853 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
10855         backupfile: fix resource leak on memory failure
10856         Problem found by Coverity (CID 1484214).
10857         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
10859 2019-07-22  Bruno Haible  <bruno@clisp.org>
10861         Avoid missing-declarations warning in various tests.
10862         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
10863         test6, test_optional, test7, test8, test9, test10, test11, test12,
10864         test13, test14, test15, test_fun): Declare static.
10865         * tests/test-cnd.c (test_cnd_wait): Likewise.
10866         * tests/test-cond.c (test_cond): Likewise.
10868 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
10870         pthread tests: Avoid missing-declarations warning.
10871         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
10873 2019-07-19  Bruno Haible  <bruno@clisp.org>
10875         parse-datetime: Avoid warnings from bison versions >= 3.3.
10876         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
10877         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
10879 2019-07-19  Bruno Haible  <bruno@clisp.org>
10881         parse-datetime: Require Bison 2.4 or newer.
10882         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
10883         Code taken from gettext's intl.m4.
10884         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
10885         of YACC.
10887 2019-07-19  Bruno Haible  <bruno@clisp.org>
10889         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
10890         * lib/areadlink-with-size.c: Include <string.h>.
10891         * lib/areadlinkat-with-size.c: Likewise.
10892         * lib/xgethostname.c: Likewise.
10893         * lib/xgetdomainname.c: Likewise.
10895 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
10897         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
10898         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
10899         "%pure-parser".  The former is available since Bison 2.3b (2008),
10900         while the latter is marked as obsolete since version 3.4 (May 2019).
10902 2019-07-16  Bruno Haible  <bruno@clisp.org>
10904         update-copyright: Make it work again (regression from 2019-06-15).
10905         Reported by Brian C. Lane <bcl@redhat.com>.
10906         * build-aux/update-copyright: Add back the -0777, -p, -i options.
10908 2019-07-14  Bruno Haible  <bruno@clisp.org>
10910         doc: Update info about <pthread.h>.
10911         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
10912         of 'pthread'.
10914 2019-07-14  Bruno Haible  <bruno@clisp.org>
10916         pthread_sigmask tests: Use new multithread modules.
10917         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
10918         glthread/thread.h.
10919         (main_thread, killer_thread): Change type to pthread_t.
10920         (main): Update accordingly.
10921         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
10922         thread.
10924 2019-07-14  Bruno Haible  <bruno@clisp.org>
10926         pthread-tss: Add tests.
10927         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
10928         tests/test-tss.c.
10929         * modules/pthread-tss-tests: New file.
10931 2019-07-14  Bruno Haible  <bruno@clisp.org>
10933         pthread-cond: Add tests.
10934         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
10935         tests/test-cnd.c.
10936         * modules/pthread-cond-tests: New file.
10938 2019-07-14  Bruno Haible  <bruno@clisp.org>
10940         pthread-rwlock: Add tests.
10941         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
10942         * modules/pthread-rwlock-tests: New file.
10944 2019-07-14  Bruno Haible  <bruno@clisp.org>
10946         pthread-mutex: Add tests.
10947         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
10948         tests/test-mtx.c.
10949         * modules/pthread-mutex-tests: New file.
10951 2019-07-14  Bruno Haible  <bruno@clisp.org>
10953         pthread-once: Add tests.
10954         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
10955         tests/test-call_once.c.
10956         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
10957         tests/test-mtx.c.
10958         * modules/pthread-once-tests: New file.
10960 2019-07-14  Bruno Haible  <bruno@clisp.org>
10962         pthread-thread: Add tests.
10963         * tests/test-pthread-thread.c: New file, based on
10964         tests/test-thread_create.c and tests/test-thrd_create.c.
10965         * modules/pthread-thread-tests: New file.
10967 2019-07-14  Bruno Haible  <bruno@clisp.org>
10969         pthread: Turn into a convenience module.
10970         * lib/pthread.in.h: Remove declarations for extern inline functions.
10971         * lib/pthread.c: Remove file.
10972         * modules/pthread (Files): Remove it.
10973         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
10974         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
10975         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
10976         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
10977         GNULIB_PTHREAD.
10978         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
10980 2019-07-14  Bruno Haible  <bruno@clisp.org>
10982         pthread-spin: New module.
10983         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
10984         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
10985         inline definitions.
10986         * lib/pthread-spin.c: New file.
10987         * m4/pthread-spin.m4: New file.
10988         * modules/pthread-spin: New file.
10989         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
10990         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
10991         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
10992         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
10993         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
10995 2019-07-14  Bruno Haible  <bruno@clisp.org>
10997         pthread-tss: New module.
10998         * lib/pthread-tss.c: New file.
10999         * m4/pthread-tss.m4: New file.
11000         * modules/pthread-tss: New file.
11001         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
11002         * doc/posix-functions/pthread_setspecific.texi: Likewise.
11003         * doc/posix-functions/pthread_getspecific.texi: Likewise.
11004         * doc/posix-functions/pthread_key_delete.texi: Likewise.
11006 2019-07-14  Bruno Haible  <bruno@clisp.org>
11008         pthread-cond: New module.
11009         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
11010         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
11011         * lib/pthread-cond.c: New file.
11012         * m4/pthread-cond.m4: New file.
11013         * modules/pthread-cond: New file.
11014         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
11015         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
11016         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
11017         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
11018         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
11019         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
11020         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
11021         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
11023 2019-07-14  Bruno Haible  <bruno@clisp.org>
11025         pthread-rwlock: New module.
11026         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
11027         * m4/pthread-rwlock.m4: New file.
11028         * modules/pthread-rwlock: New file.
11029         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
11030         and the Android problem.
11031         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
11032         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
11033         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
11034         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
11035         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
11036         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
11037         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
11038         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
11039         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
11040         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
11042 2019-07-14  Bruno Haible  <bruno@clisp.org>
11044         pthread-mutex: New module.
11045         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
11046         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
11047         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
11048         pthread_mutex_unlock): Remove inline definitions.
11049         * lib/pthread-mutex.c: New file.
11050         * m4/pthread-mutex.m4: New file.
11051         * modules/pthread-mutex: New file.
11052         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
11053         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
11054         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
11055         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
11056         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11057         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11058         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
11059         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
11060         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
11061         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
11062         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
11063         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
11065 2019-07-14  Bruno Haible  <bruno@clisp.org>
11067         pthread-once: New module.
11068         * lib/pthread-once.c: New file.
11069         * m4/pthread-once.m4: New file.
11070         * modules/pthread-once: New file.
11071         * doc/posix-functions/pthread_once.texi: Mention the new module.
11073 2019-07-14  Bruno Haible  <bruno@clisp.org>
11075         pthread-thread: New module.
11076         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
11077         inline definitions.
11078         * lib/pthread-thread.c: New file.
11079         * m4/pthread-thread.m4: New file.
11080         * modules/pthread-thread: New file.
11081         * doc/posix-functions/pthread_create.texi: Mention the new module.
11082         * doc/posix-functions/pthread_attr_init.texi: Likewise.
11083         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
11084         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
11085         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
11086         * doc/posix-functions/pthread_self.texi: Likewise.
11087         * doc/posix-functions/pthread_equal.texi: Likewise.
11088         * doc/posix-functions/pthread_detach.texi: Likewise.
11089         * doc/posix-functions/pthread_join.texi: Likewise.
11090         * doc/posix-functions/pthread_exit.texi: Likewise.
11092 2019-07-14  Bruno Haible  <bruno@clisp.org>
11094         pthread-h: Prepare for adding new modules.
11095         * lib/pthread.in.h: Define the types and macros for each of the
11096         facilities separately.
11097         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
11098         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11099         HAVE_PTHREAD_PROCESS_SHARED.
11100         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
11101         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11102         HAVE_PTHREAD_PROCESS_SHARED.
11103         * modules/pthread-h (Makefile.am): Substitute
11104         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
11105         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
11107 2019-07-14  Bruno Haible  <bruno@clisp.org>
11109         pthread-h: Add declarations of essential pthread functions.
11110         * lib/pthread.in.h: Include snippets.
11111         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
11112         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
11113         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
11114         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
11115         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
11116         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
11117         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
11118         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
11119         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
11120         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
11121         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
11122         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
11123         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
11124         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
11125         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
11126         pthread_key_create, pthread_setspecific, pthread_getspecific,
11127         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
11128         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
11129         declarations.
11130         (pthread_mutex_timedlock): Move declaration.
11131         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
11132         declared.
11133         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
11134         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
11135         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
11136         HAVE_* and REPLACE_* variables for the new functions.
11137         * modules/pthread-h (Depends-on): Add snippet/c++defs,
11138         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
11139         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
11140         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
11141         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
11142         variables for the new functions. Split the sed script, to avoid the
11143         limit of 99 commands of HP-UX sed.
11144         * tests/test-pthread-c++.cc: Check the signature of the new functions.
11146 2019-07-14  Bruno Haible  <bruno@clisp.org>
11148         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
11149         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
11150         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
11151         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
11152         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
11153         * modules/pthread-h (Depends-on): Add threadlib.
11154         (Link): Change to $(LIBTHREAD).
11155         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
11156         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
11158 2019-07-14  Bruno Haible  <bruno@clisp.org>
11160         pthread-h: Add C++ tests.
11161         * tests/test-pthread-c++.cc: New file.
11162         * modules/pthread-h-c++-tests: New file.
11164 2019-07-14  Bruno Haible  <bruno@clisp.org>
11166         pthread-h: Add tests.
11167         * tests/test-pthread.c: New file.
11168         * modules/pthread-h-tests: New file.
11170 2019-07-14  Bruno Haible  <bruno@clisp.org>
11172         pthread-h: New module.
11173         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
11174         is 1.
11175         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
11176         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
11177         <pthread.h> pollutes the namespace; instead, prepare for generating a
11178         pthread.h always. Substitute HAVE_PTHREAD_H here.
11179         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
11180         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
11181         * modules/pthread-h: New file, based on modules/pthread.
11182         * modules/pthread: Rely on 'pthread-h'.
11183         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
11184         Update.
11185         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
11186         pthread.
11188 2019-07-14  Bruno Haible  <bruno@clisp.org>
11190         sched_yield: New module.
11191         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
11192         (sched_yield): New declaration.
11193         * lib/sched_yield.c: New file.
11194         * m4/sched_yield.m4: New file.
11195         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
11196         provide a replacement sched.h always. Test whether sched_yield is
11197         declared.
11198         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
11199         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
11200         (Makefile.am): Provide a replacement sched.h always. Substitute
11201         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
11202         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
11203         * modules/sched_yield: New file.
11204         * doc/posix-functions/sched_yield.texi: Mention the new module.
11206 2019-07-14  Bruno Haible  <bruno@clisp.org>
11208         windows-spin: New module.
11209         * lib/windows-spin.h: New file.
11210         * lib/windows-spin.c: New file.
11211         * modules/windows-spin: New file.
11213 2019-07-14  Bruno Haible  <bruno@clisp.org>
11215         windows-timedrwlock: New module.
11216         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
11217         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
11218         windows-cond.c.
11219         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
11220         redefinition conflict with windows-timedrwlock.h.
11221         * modules/windows-timedrwlock: New file.
11223 2019-07-14  Bruno Haible  <bruno@clisp.org>
11225         windows-rwlock: New module.
11226         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
11227         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
11228         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
11229         windows-initguard.h.
11230         (gl_rwlock_t): Define using glwthread_rwlock_t.
11231         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
11232         (glthread_rwlock_init): Define using glwthread_rwlock_init.
11233         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
11234         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
11235         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
11236         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
11237         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
11238         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
11239         glthread_rwlock_destroy_func): Remove declarations.
11240         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
11241         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
11242         gl_waitqueue_notify_all, glthread_rwlock_init_func,
11243         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
11244         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
11245         functions.
11246         * modules/windows-rwlock: New file.
11247         * modules/lock (Depends-on): Add windows-rwlock.
11249 2019-07-14  Bruno Haible  <bruno@clisp.org>
11251         windows-thread: Add support for creating a thread in detached state.
11252         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
11253         (glwthread_thread_create): Add attr argument.
11254         * lib/windows-thread.c (glwthread_thread_create): Likewise.
11255         * lib/glthread/thread.h (glthread_create): Update.
11256         * lib/thrd.c (thrd_create): Update.
11258 2019-07-14  Bruno Haible  <bruno@clisp.org>
11260         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
11261         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
11262         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
11263         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
11264         * lib/windows-mutex.h: Update.
11265         * lib/windows-recmutex.h: Likewise.
11266         * lib/windows-timedmutex.h: Likewise.
11267         * lib/windows-timedrecmutex.h: Likewise.
11268         * lib/windows-cond.h: Likewise.
11269         * lib/glthread/lock.h: Likewise.
11270         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
11271         lib/windows-spinlock.h.
11272         * modules/windows-recmutex (Files): Likewise.
11273         * modules/windows-timedmutex (Files): Likewise.
11274         * modules/windows-timedrecmutex (Files): Likewise.
11275         * modules/windows-cond (Files): Likewise.
11276         * modules/threads-h (Files): Likewise.
11278 2019-07-14  Bruno Haible  <bruno@clisp.org>
11280         doc: Fix info about pthread API in HP-UX.
11281         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
11283 2019-07-14  Bruno Haible  <bruno@clisp.org>
11285         threads-h: Fix generation of threads.h.
11286         * modules/threads-h (Makefile.am): Insert the required header file
11287         snippets.
11289 2019-07-09  Bruno Haible  <bruno@clisp.org>
11291         striconveh test: Fix a compilation failure when iconv is not available.
11292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11293         * tests/test-striconveh.c (main): Move iconv_close invocations inside
11294         HAVE_ICONV.
11296 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
11298         argmatch: adjust columns for help2man.
11299         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
11300         requires column 20 or more, return 20.
11302 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11304         areadlink-with-size: avoid realloc when size==0
11305         * lib/areadlink-with-size.c (areadlink_with_size):
11306         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
11307         Reallocate at the end to the actual size, to avoid memory waste,
11308         as suggested by Bruno Haible.  But when the guessed size is zero -
11309         useful when the size is unknown - do the initial small readlink
11310         into the stack, to avoid that realloc in the usual case.
11312 2019-07-06  Pádraig Brady  <P@draigBrady.com>
11314         areadlink-with-size: guess a buffer size with 0 size
11315         The size is usually taken from st_size, which can be zero,
11316         resulting in inefficient operation.
11317         Instead let zero select an initial memory allocation
11318         of 128 bytes, which most symlinks fit within.
11319         * lib/areadlink-with-size.c (areadlink_with_size):
11320         Start with a 128 byte buffer, for SIZE == 0.
11321         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
11323 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
11325         Replace manually crafted hex regexes with [:xdigit:]
11326         * build-aux/gitlog-to-changelog (parse_amend_file)
11327         (git_dir_option):
11328         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
11329         This patch is backported from Emacs (Bug#36167).
11331 2019-07-06  Bruno Haible  <bruno@clisp.org>
11333         error: Fix documentation.
11334         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
11335         module provides.
11336         * doc/glibc-functions/error_message_count.texi: Likewise.
11337         * doc/glibc-functions/error_one_per_line.texi: Likewise.
11338         * doc/glibc-functions/error_print_progname.texi: Likewise.
11340 2019-07-06  Bruno Haible  <bruno@clisp.org>
11342         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
11343         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
11344         and older is unsupported.
11345         * doc/**/*.texi: Update.
11347 2019-07-06  Bruno Haible  <bruno@clisp.org>
11349         doc: Remove documentation of Linux libc5 as a supported platform.
11350         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
11351         to Linux libc5.
11352         * doc/posix-functions/iswalpha.texi: Likewise.
11353         * doc/posix-functions/iswblank.texi: Likewise.
11354         * doc/posix-functions/iswcntrl.texi: Likewise.
11355         * doc/posix-functions/iswdigit.texi: Likewise.
11356         * doc/posix-functions/iswgraph.texi: Likewise.
11357         * doc/posix-functions/iswlower.texi: Likewise.
11358         * doc/posix-functions/iswprint.texi: Likewise.
11359         * doc/posix-functions/iswpunct.texi: Likewise.
11360         * doc/posix-functions/iswspace.texi: Likewise.
11361         * doc/posix-functions/iswupper.texi: Likewise.
11362         * doc/posix-functions/iswxdigit.texi: Likewise.
11363         * doc/posix-functions/snprintf.texi: Likewise.
11364         * doc/posix-functions/vsnprintf.texi: Likewise.
11366 2019-07-06  Bruno Haible  <bruno@clisp.org>
11368         doc: Remove documentation of Tandem/NSK as a supported platform.
11369         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
11370         Tandem/NSK.
11371         * doc/**/*.texi: Update.
11373 2019-07-06  Bruno Haible  <bruno@clisp.org>
11375         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
11376         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
11377         and older is unsupported.
11378         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
11379         Mac OS X 10.4 and older.
11380         * doc/posix-functions/asinl.texi: Likewise.
11381         * doc/posix-functions/atanl.texi: Likewise.
11382         * doc/posix-functions/cosl.texi: Likewise.
11383         * doc/posix-functions/expl.texi: Likewise.
11384         * doc/posix-functions/frexpl.texi: Likewise.
11385         * doc/posix-functions/gettimeofday.texi: Likewise.
11386         * doc/posix-functions/logl.texi: Likewise.
11387         * doc/posix-functions/mkstemp.texi: Likewise.
11388         * doc/posix-functions/sinl.texi: Likewise.
11389         * doc/posix-functions/sqrtl.texi: Likewise.
11390         * doc/posix-functions/tanl.texi: Likewise.
11391         * doc/posix-functions/wcswidth.texi: Likewise.
11392         * doc/**/*.texi: Update.
11394 2019-07-06  Bruno Haible  <bruno@clisp.org>
11396         doc: Remove documentation of AIX 4 as a supported platform.
11397         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
11398         unsupported.
11399         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
11400         workarounds.
11401         * doc/posix-functions/strnlen.texi: Likewise.
11402         * doc/posix-headers/inttypes.texi: Likewise.
11403         * doc/**/*.texi: Update.
11405 2019-07-06  Bruno Haible  <bruno@clisp.org>
11407         doc: Remove documentation of HP-UX 10 as a supported platform.
11408         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
11409         unsupported.
11410         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
11411         workarounds.
11412         * doc/posix-functions/gmtime_r.texi: Likewise.
11413         * doc/posix-functions/localtime_r.texi: Likewise.
11414         * doc/posix-functions/mkstemp.texi: Likewise.
11415         * doc/**/*.texi: Update.
11417 2019-07-06  Bruno Haible  <bruno@clisp.org>
11419         doc: Remove documentation of Interix 3.5 as a supported platform.
11420         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
11421         unsupported.
11422         * doc/posix-functions/select.texi: Don't mention Interix specific
11423         workarounds.
11424         * doc/posix-headers/signal.texi: Likewise.
11425         * doc/**/*.texi: Update.
11427 2019-07-06  Bruno Haible  <bruno@clisp.org>
11429         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
11430         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
11431         unsupported.
11432         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
11433         workarounds.
11434         * doc/posix-functions/nl_langinfo.texi: Likewise.
11435         * doc/posix-functions/remainder.texi: Likewise.
11436         * doc/posix-functions/towlower.texi: Likewise.
11437         * doc/posix-functions/towupper.texi: Likewise.
11438         * doc/posix-functions/vsnprintf.texi: Likewise.
11439         * doc/posix-functions/wcscat.texi: Likewise.
11440         * doc/posix-functions/wcschr.texi: Likewise.
11441         * doc/posix-functions/wcscmp.texi: Likewise.
11442         * doc/posix-functions/wcscpy.texi: Likewise.
11443         * doc/posix-functions/wcscspn.texi: Likewise.
11444         * doc/posix-functions/wcslen.texi: Likewise.
11445         * doc/posix-functions/wcsncat.texi: Likewise.
11446         * doc/posix-functions/wcsncmp.texi: Likewise.
11447         * doc/posix-functions/wcsncpy.texi: Likewise.
11448         * doc/posix-functions/wcspbrk.texi: Likewise.
11449         * doc/posix-functions/wcsrchr.texi: Likewise.
11450         * doc/posix-functions/wcsspn.texi: Likewise.
11451         * doc/posix-headers/langinfo.texi: Likewise.
11452         * doc/posix-headers/signal.texi: Likewise.
11453         * doc/posix-headers/wchar.texi: Likewise.
11454         * doc/posix-headers/wctype.texi: Likewise.
11455         * doc/**/*.texi: Update.
11457 2019-07-05  Bruno Haible  <bruno@clisp.org>
11459         doc: Remove documentation of OSF/1 as supported platform.
11460         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
11461         unsupported.
11462         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
11463         workarounds.
11464         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
11465         * doc/glibc-functions/ptsname_r.texi: Likewise.
11466         * doc/posix-functions/ceil.texi: Likewise.
11467         * doc/posix-functions/ceilf.texi: Likewise.
11468         * doc/posix-functions/ceill.texi: Likewise.
11469         * doc/posix-functions/fchdir.texi: Likewise.
11470         * doc/posix-functions/floor.texi: Likewise.
11471         * doc/posix-functions/floorf.texi: Likewise.
11472         * doc/posix-functions/fmod.texi: Likewise.
11473         * doc/posix-functions/fmodf.texi: Likewise.
11474         * doc/posix-functions/fmodl.texi: Likewise.
11475         * doc/posix-functions/log.texi: Likewise.
11476         * doc/posix-functions/logf.texi: Likewise.
11477         * doc/posix-functions/logl.texi: Likewise.
11478         * doc/posix-functions/log10.texi: Likewise.
11479         * doc/posix-functions/log10f.texi: Likewise.
11480         * doc/posix-functions/log10l.texi: Likewise.
11481         * doc/posix-functions/log2.texi: Likewise.
11482         * doc/posix-functions/log2f.texi: Likewise.
11483         * doc/posix-functions/log2l.texi: Likewise.
11484         * doc/posix-functions/mbrtowc.texi: Likewise.
11485         * doc/posix-functions/recv.texi: Likewise.
11486         * doc/posix-functions/recvfrom.texi: Likewise.
11487         * doc/posix-functions/remainder.texi: Likewise.
11488         * doc/posix-functions/remainderf.texi: Likewise.
11489         * doc/posix-functions/remainderl.texi: Likewise.
11490         * doc/posix-functions/round.texi: Likewise.
11491         * doc/posix-functions/roundf.texi: Likewise.
11492         * doc/posix-functions/roundl.texi: Likewise.
11493         * doc/posix-functions/send.texi: Likewise.
11494         * doc/posix-functions/sendto.texi: Likewise.
11495         * doc/posix-functions/setenv.texi: Likewise.
11496         * doc/posix-functions/snprintf.texi: Likewise.
11497         * doc/posix-functions/tcgetsid.texi: Likewise.
11498         * doc/posix-functions/trunc.texi: Likewise.
11499         * doc/posix-functions/truncf.texi: Likewise.
11500         * doc/posix-functions/truncl.texi: Likewise.
11501         * doc/posix-functions/ttyname_r.texi: Likewise.
11502         * doc/posix-functions/unsetenv.texi: Likewise.
11503         * doc/posix-functions/wcsrtombs.texi: Likewise.
11504         * doc/posix-headers/sys_select.texi: Likewise.
11505         * doc/posix-headers/wchar.texi: Likewise.
11506         * doc/posix-headers/wctype.texi: Likewise.
11507         * doc/**/*.texi: Update.
11509 2019-07-05  Bruno Haible  <bruno@clisp.org>
11511         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
11512         * doc/**/*.texi: Update.
11514 2019-07-05  Bruno Haible  <bruno@clisp.org>
11516         doc: Remove documentation of Solaris 8 and older as supported platforms.
11517         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
11518         unsupported.
11519         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
11520         workarounds.
11521         * doc/posix-functions/memcmp.texi: Likewise.
11522         * doc/posix-functions/rename.texi: Likewise.
11523         * doc/posix-functions/tzset.texi: Likewise.
11524         * doc/posix-headers/wctype.texi: Likewise.
11525         * doc/**/*.texi: Update.
11527 2019-07-05  Bruno Haible  <bruno@clisp.org>
11529         doc: Remove documentation of Interix 3.5 as a supported platform.
11530         * doc/**/*.texi: Update.
11532 2019-07-05  Bruno Haible  <bruno@clisp.org>
11534         doc: Remove documentation of BeOS as a supported platform.
11535         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
11536         unsupported.
11537         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
11538         * doc/posix-functions/getdelim.texi: Likewise.
11539         * doc/**/*.texi: Update.
11541 2019-07-05  Bruno Haible  <bruno@clisp.org>
11543         thread, lock, cond, tls: Remove support for Pth threads.
11544         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
11545         --enable-threads=pth any more.
11546         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
11547         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
11548         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
11549         threads and ISO C11 threads.
11550         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
11551         * lib/glthread/lock.h: Likewise.
11552         * lib/glthread/lock.c: Likewise.
11553         * lib/glthread/cond.h: Likewise.
11554         * lib/glthread/cond.c: Likewise.
11555         * lib/glthread/tls.h: Likewise.
11556         * lib/glthread/tls.c: Likewise.
11557         * lib/glthread/yield.h: Likewise.
11558         * lib/regex_internal.h: Likewise.
11559         * tests/test-thread_create.c: Likewise.
11560         * tests/test-lock.c: Likewise.
11561         * tests/test-cond.c: Likewise.
11562         * tests/test-tls.c: Likewise.
11563         * tests/test-rwlock1.c: Don't include glthread/yield.h.
11564         (main): Sleep without calling gl_thread_yield.
11566 2019-07-05  Bruno Haible  <bruno@clisp.org>
11568         thread, lock, cond, tls: Remove support for old Solaris threads.
11569         Solaris >= 2.5.1 has POSIX threads.
11570         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
11571         --enable-threads=solaris any more.
11572         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
11573         * lib/glthread/thread.c: Update comment.
11574         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
11575         * lib/glthread/lock.h: Likewise.
11576         * lib/glthread/lock.c: Likewise.
11577         * lib/glthread/cond.h: Likewise.
11578         * lib/glthread/cond.c: Likewise.
11579         * lib/glthread/tls.h: Likewise.
11580         * lib/glthread/tls.c: Likewise.
11581         * lib/glthread/yield.h: Likewise.
11582         * lib/regex_internal.h: Likewise.
11583         * tests/test-thread_create.c: Likewise.
11584         * tests/test-lock.c: Likewise.
11585         * tests/test-cond.c: Likewise.
11586         * tests/test-tls.c: Likewise.
11588 2019-07-05  Bruno Haible  <bruno@clisp.org>
11590         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
11591         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
11592         needed size is equal to the allocated size.
11593         * lib/getcwd.c (__getcwd): Likewise.
11595 2019-07-05  Bruno Haible  <bruno@clisp.org>
11597         xgetdomainname: Don't return an excessive memory allocation.
11598         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
11599         before returning it.
11601 2019-07-05  Bruno Haible  <bruno@clisp.org>
11603         xgethostname: Don't return an excessive memory allocation.
11604         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
11605         returning it.
11607 2019-07-05  Bruno Haible  <bruno@clisp.org>
11609         areadlinkat-with-size: Don't return an excessive memory allocation.
11610         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
11611         before returning it.
11613 2019-07-05  Bruno Haible  <bruno@clisp.org>
11615         areadlink-with-size: Don't return an excessive memory allocation.
11616         Reported by Andreas Dilger <adilger@whamcloud.com>.
11617         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
11618         before returning it.
11620 2019-07-03  Bruno Haible  <bruno@clisp.org>
11622         renameatu: Fix test failure on MSVC.
11623         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
11624         empty string.
11626 2019-07-03  Bruno Haible  <bruno@clisp.org>
11628         mbrtowc: Fix invalid use of mbtowc() on MSVC.
11629         * lib/mbrtowc.c: Include glthread/lock.h.
11630         (mbtowc_lock): New variable.
11631         (mbrtowc): Treat UTF-8 encoding without locking. For the other
11632         encodings, explicitly reset the internal state of mbtowc, and protect
11633         this through a lock.
11634         * modules/mbrtowc (Depends-on): Add lock.
11636 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
11638         argmatch: don't define _ in the header.
11639         Reported by Jim Meyering.
11640         * lib/argmatch.h (N_, _): Don't define.
11641         Use gettext instead.
11642         * lib/argmatch.h (_): Define.
11643         * tests/test-argmatch.c (N_): Define.
11645 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11647         verify: document ‘assume’ better
11648         * lib/verify.h: Reword doc (Bug#36370).
11650 2019-07-02  Bruno Haible  <bruno@clisp.org>
11652         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
11653         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
11654         "CPutf8".
11655         * lib/nl_langinfo.c (ctype_codeset): Likewise.
11657 2019-07-02  Bruno Haible  <bruno@clisp.org>
11659         getcwd: Fix crash when invoked with size = 0 on MSVC.
11660         * lib/getcwd.c: Include msvc-inval.h.
11661         (getcwd_nothrow): New function/macro.
11662         (getcwd_system): New macro.
11663         (__getcwd): Use it instead of getcwd.
11664         * modules/getcwd (Depends-on): Add msvc-inval.
11665         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
11667 2019-07-02  Bruno Haible  <bruno@clisp.org>
11669         nonblocking-pipe tests: Fix test failure on MSVC.
11670         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
11671         native Windows.
11673 2019-07-02  Bruno Haible  <bruno@clisp.org>
11675         usleep: Implement with millisecond resolution on native Windows.
11676         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
11677         * doc/pastposix-functions/usleep.texi: Update accordingly.
11679 2019-07-02  Bruno Haible  <bruno@clisp.org>
11681         lstat tests: Fix test failure on MSVC.
11682         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
11683         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
11685 2019-07-02  Bruno Haible  <bruno@clisp.org>
11687         stat tests: Fix test failure on MSVC.
11688         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
11689         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
11691 2019-07-02  Bruno Haible  <bruno@clisp.org>
11693         getaddrinfo tests: Fix test failure on MSVC.
11694         * tests/test-getaddrinfo.c: Include sockets.h.
11695         (main): Invoke gl_sockets_startup.
11696         * modules/getaddrinfo-tests (Depends-on): Add sockets.
11698 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
11700         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
11701         * lib/poll.c: Call Windows native select() with Windows native timeval.
11703 2019-06-30  Bruno Haible  <bruno@clisp.org>
11705         argmatch: Fix compilation errors.
11706         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
11707         * tests/test-argmatch.c (main): Update after last-minute function names
11708         change.
11710 2019-06-30  Bruno Haible  <bruno@clisp.org>
11712         Include <stdlib.h> when needed.
11713         * lib/cnd.c: Include <stdlib.h>, needed for abort().
11714         * lib/fcntl.c: Likewise.
11715         * lib/mbscasestr.c: Likewise.
11716         * lib/mbssep.c: Likewise.
11717         * lib/mbsstr.c: Likewise.
11718         * lib/openat.c: Include <stdlib.h>, needed for free().
11719         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
11720         abort().
11722 2019-06-30  Bruno Haible  <bruno@clisp.org>
11724         Include <stdlib.h> when needed.
11725         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
11726         * lib/faccessat.c: Likewise.
11727         * lib/fchmodat.c: Likewise.
11728         * lib/fchownat.c: Likewise.
11729         * lib/fstatat.c: Likewise.
11730         * lib/mkfifoat.c: Likewise.
11731         * lib/mknodat.c: Likewise.
11732         * lib/readlinkat.c: Likewise.
11733         * lib/symlinkat.c: Likewise.
11734         * lib/utimensat.c: Likewise.
11735         * lib/mkdirat.c: Likewise. Include also the specification header.
11737 2019-06-30  Bruno Haible  <bruno@clisp.org>
11739         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
11740         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
11741         from gl_PREREQ_SYS_H_SOCKET.
11742         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
11743         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
11744         gl_PREREQ_SYS_H_WS2TCPIP.
11745         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
11746         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
11747         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
11749 2019-06-30  Bruno Haible  <bruno@clisp.org>
11751         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
11752         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
11753         REPLACE_INET_NTOP to 1 always.
11754         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
11755         REPLACE_INET_PTON to 1 always.
11757 2019-06-30  Bruno Haible  <bruno@clisp.org>
11759         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
11760         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
11761         not REPLACE_INET_NTOP.
11763 2019-06-30  Bruno Haible  <bruno@clisp.org>
11765         poll: Add comment.
11766         * lib/poll.c: Add comment about WSAPoll.
11768 2019-06-30  Bruno Haible  <bruno@clisp.org>
11770         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
11771         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
11772         * lib/poll.in.h: Include <winsock2.h>.
11773         (POLL*, pollfd): Override on native Windows.
11774         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11775         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
11776         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11778 2019-06-28  Bruno Haible  <bruno@clisp.org>
11780         accept4: Fix compilation error on OpenIndiana.
11781         Reported by Michal Nowak <mnowak@startmail.com>
11782         via Mark H Weaver <mhw@netris.org>.
11783         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
11784         whether it exists as a function.
11786 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
11788         strverscmp: sync from glibc
11789         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
11790         comments, include libc-config.h, define __strverscmp to be
11791         strverscmp, and don’t assume types line uint8_t and int8_t that
11792         that C99 doesn’t guarantee.
11793         [!_LIBC]: Include libc-config.h; define __strverscmp.
11794         Include stdint.h.
11795         (__strverscmp): Assume C99.  Use uint_least8_t
11796         and int_least8_t instead of unsigned char and signed char.
11797         * modules/strverscmp (Depends-on): Add libc-config, stdint.
11799 2019-06-25  Bruno Haible  <bruno@clisp.org>
11801         tss tests: Add tests for destructors and races.
11802         * tests/test-tss.c (worker_thread): Fix typo in debug message.
11803         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
11804         functions.
11805         (main): Invoke them.
11806         * modules/tls-tests (Depends-on): Add mtx.
11808 2019-06-25  Bruno Haible  <bruno@clisp.org>
11810         tls tests: Add tests for destructors and races.
11811         * tests/test-tls.c: Include glthread/lock.h.
11812         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
11813         functions.
11814         (main): Invoke them.
11815         * modules/tls-tests (Depends-on): Add lock.
11817 2019-06-25  Bruno Haible  <bruno@clisp.org>
11819         windows-tls: Implement TLS key destructors for native Windows.
11820         * lib/windows-tls.h (glwthread_tls_process_destructors): New
11821         declaration.
11822         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
11823         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
11824         (dtor_table_init_once, dtor_table_lock: New variables.
11825         (struct dtor): New type.
11826         (dtor_table, dtors_count, dtors_used, dtors_allocated,
11827         dtor_processing_threads): New variables.
11828         (dtor_table_initialize, dtor_table_ensure_initialized,
11829         dtor_table_shrink_used, glwthread_tls_process_destructors): New
11830         functions.
11831         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
11832         handle non-NULL destructors.
11833         * modules/windows-tls (Depends-on): Add windows-once.
11834         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
11835         Use the functions declared in windows-tls.h.
11836         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
11837         GLWTHREAD_DESTRUCTOR_ITERATIONS.
11838         * lib/windows-thread.c: Include windows-tls.h.
11839         (wrapper_func, glwthread_thread_exit): Invoke
11840         glwthread_tls_process_destructors.
11841         * modules/windows-thread (Depends-on): Add windows-tls.
11843 2019-06-25  Bruno Haible  <bruno@clisp.org>
11845         threadlib: Avoid autoconf warning "was expanded before it was required".
11846         * modules/threadlib (configure.ac): Require gl_THREADLIB.
11848 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
11850         argmatch: remove duplicate const qualifier
11851         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
11853 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11855         unistd: stddef.h and sys/types.h namespace cleanup
11856         * lib/unistd.in.h [__GLIBC__]:
11857         Do not include stddef.h or sys/types.h.
11858         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
11859         supposed to declare off_t and ssize_t.  Problem found when looking
11860         at why @GNULIB_PWRITE@ was different from the newly-added
11861         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
11863 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
11865         maintainer-makefile: restore portability to non-GNU awks
11866         Reported by Tim Rühsen.
11867         * top/maint.mk (AWK): New variable.  Use it.
11868         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
11870 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11872         Document setvbuf _IOLBF problem
11873         * doc/posix-functions/setvbuf.texi (setvbuf):
11874         Document MS-Windows portability problem with _IOLBF.
11876         Document lseek SEEK_DATA/SEEK_HOLE
11877         * doc/posix-functions/lseek.texi (lseek):
11878         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
11880 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
11882         argmatch: put all the docs member last.
11883         Reported by Bruno Haible.
11884         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
11885         member before the docs done.
11886         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
11888 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
11890         argmatch: add support to generate the usage message.
11891         * lib/argmatch.c: Move some #includes and gettext support to...
11892         * lib/argmatch.h: here.
11893         (ARGMATCH_DEFINE_GROUP): New macro.
11894         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
11895         (argmatch_backup_group): New.
11896         (CHECK): New.
11897         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
11898         argmatch_backup_argument and argmatch_backup_usage.
11899         * modules/argmatch: We depend on c99.
11900         * doc/argmatch.texi (Recognizing Option Arguments): New.
11901         * doc/gnulib.texi: Use it.
11903 2019-06-21  Bruno Haible  <bruno@clisp.org>
11905         thrd: Add comment.
11906         * lib/thrd.c (pthread_main_func): Add comment.
11908 2019-06-21  Bruno Haible  <bruno@clisp.org>
11910         threads-h: Define 'thread_local' if and only if it actually works.
11911         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
11912         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
11913         Oracle Solaris Studio C. Compile a simple program, to see whether
11914         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
11915         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
11916         * lib/threads.in.h (thread_local): Undefine if it does not work.
11917         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
11918         (Link): Mention LIBTHREADLOCAL.
11919         * tests/test-threads.c: Don't check that thread_local is defined.
11920         * tests/test-thread_local.c: New file.
11921         * modules/threads-h-tests (Files): Add it and macros.h.
11922         (Depends-on): Add thrd and stdint.
11923         (configure.ac): Test whether 'alarm' is declared.
11924         (Makefile.am): Arrange to build and link test-thread_local.
11925         * doc/posix-headers/threads.texi: Mention the platforms that don't
11926         support 'thread_local'.
11928 2019-06-20  Bruno Haible  <bruno@clisp.org>
11930         threads-h: Simplify link dependencies.
11931         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
11932         Don't set LTLIBSTDTHREAD.
11933         * modules/thrd (Link): Simplify accordingly.
11934         * modules/mtx (Link): Likewise.
11935         * modules/cnd (Link): Likewise.
11936         * modules/tss (Link): Likewise.
11937         * modules/threads (Link): Likewise.
11939 2019-06-20  Bruno Haible  <bruno@clisp.org>
11941         threads-h: Fix link error on FreeBSD 11.
11942         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
11943         also with -lpthread.
11945 2019-06-20  Bruno Haible  <bruno@clisp.org>
11947         threadlib: Fix typo (regression from today).
11948         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
11950 2019-06-20  Bruno Haible  <bruno@clisp.org>
11952         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
11953         * lib/windows-thread.c: Include <errno.h>.
11954         * lib/windows-tls.c: Likewise.
11956 2019-06-20  Bruno Haible  <bruno@clisp.org>
11958         tss tests: Small improvement.
11959         * tests/test-tss.c (test_tss): Pass a different id to each thread.
11961 2019-06-20  Bruno Haible  <bruno@clisp.org>
11963         threads: New module.
11964         * modules/threads: New file.
11966 2019-06-20  Bruno Haible  <bruno@clisp.org>
11968         tss: Add tests.
11969         * tests/test-tss.c: New file, based on tests/test-tls.c.
11970         * modules/tss-tests: New file.
11972 2019-06-20  Bruno Haible  <bruno@clisp.org>
11974         cnd: Add tests.
11975         * tests/test-cnd.c: New file, based on tests/test-cond.c.
11976         * modules/cnd-tests: New file.
11978 2019-06-20  Bruno Haible  <bruno@clisp.org>
11980         mtx: Add tests.
11981         * tests/test-mtx.c: New file, based on tests/test-lock.c.
11982         * tests/test-call_once.c: New file, based on tests/test-once.c.
11983         * modules/mtx-tests: New file.
11985 2019-06-20  Bruno Haible  <bruno@clisp.org>
11987         thrd: Add tests.
11988         * tests/test-thrd_create.c: New file, based on
11989         tests/test-thread_create.c.
11990         * tests/test-thrd_current.c: New file, based on
11991         tests/test-thread_self.c.
11992         * modules/thrd-tests: New file.
11994 2019-06-20  Bruno Haible  <bruno@clisp.org>
11996         tss: New module.
11997         * lib/tss.c: New file.
11998         * modules/tss: New file.
11999         * doc/posix-functions/tss_create.texi: Mention the new module.
12000         * doc/posix-functions/tss_set.texi: Likewise.
12001         * doc/posix-functions/tss_get.texi: Likewise.
12002         * doc/posix-functions/tss_delete.texi: Likewise.
12004 2019-06-20  Bruno Haible  <bruno@clisp.org>
12006         cnd: New module.
12007         * lib/cnd.c: New file.
12008         * modules/cnd: New file.
12009         * doc/posix-functions/cnd_init.texi: Mention the new module.
12010         * doc/posix-functions/cnd_wait.texi: Likewise.
12011         * doc/posix-functions/cnd_timedwait.texi: Likewise.
12012         * doc/posix-functions/cnd_signal.texi: Likewise.
12013         * doc/posix-functions/cnd_broadcast.texi: Likewise.
12014         * doc/posix-functions/cnd_destroy.texi: Likewise.
12016 2019-06-20  Bruno Haible  <bruno@clisp.org>
12018         mtx: New module.
12019         * lib/mtx.c: New file.
12020         * modules/mtx: New file.
12021         * doc/posix-functions/call_once.texi: Mention the new module.
12022         * doc/posix-functions/mtx_init.texi: Likewise.
12023         * doc/posix-functions/mtx_lock.texi: Likewise.
12024         * doc/posix-functions/mtx_trylock.texi: Likewise.
12025         * doc/posix-functions/mtx_timedlock.texi: Likewise.
12026         * doc/posix-functions/mtx_unlock.texi: Likewise.
12027         * doc/posix-functions/mtx_destroy.texi: Likewise.
12029 2019-06-20  Bruno Haible  <bruno@clisp.org>
12031         thrd: New module.
12032         * lib/thrd.c: New file.
12033         * m4/thrd.m4: New file.
12034         * modules/thrd: New file.
12035         * doc/posix-functions/thrd_current.texi: Mention the new module.
12036         * doc/posix-functions/thrd_detach.texi: Likewise.
12037         * doc/posix-functions/thrd_equal.texi: Likewise.
12038         * doc/posix-functions/thrd_exit.texi: Likewise.
12039         * doc/posix-functions/thrd_sleep.texi: Likewise.
12040         * doc/posix-functions/thrd_yield.texi: Likewise.
12041         * doc/posix-functions/thrd_create.texi: Mention the new module and the
12042         AIX bug.
12043         * doc/posix-functions/thrd_join.texi: Mention the new module and the
12044         AIX and Solaris bugs.
12046 2019-06-20  Bruno Haible  <bruno@clisp.org>
12048         threads-h: Add tests.
12049         * tests/test-threads.c: New file.
12050         * modules/threads-h-tests: New file.
12051         * tests/test-threads-c++.cc: New file.
12052         * modules/threads-h-c++-tests: New file.
12054 2019-06-20  Bruno Haible  <bruno@clisp.org>
12056         threads-h: New module.
12057         * lib/threads.in.h: New file.
12058         * m4/threads.m4: New file.
12059         * m4/yield.m4 (gl_YIELD): Update comment.
12060         * modules/threads-h: New file.
12061         * modules/yields (configure.ac): Use AC_REQUIRE.
12062         * doc/posix-headers/threads.texi: Mention the new module and the AIX
12063         bugs.
12065 2019-06-20  Bruno Haible  <bruno@clisp.org>
12067         windows-thread: New module.
12068         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
12069         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
12070         * lib/glthread/thread.h: Include windows-thread.h.
12071         (gl_thread_t): Define using glwthread_thread_t.
12072         (glthread_create): Define using glwthread_thread_create.
12073         (glthread_join): Define using glwthread_thread_join.
12074         (gl_thread_self): Define using glwthread_thread_self.
12075         (gl_thread_exit): Define using glwthread_thread_exit.
12076         (glthread_create_func, glthread_join_func, gl_thread_self_func,
12077         gl_thread_exit_func): Remove declarations.
12078         * lib/glthread/thread.c (self_key): Remove variable.
12079         (do_init_self_key, init_self_key): Remove functions.
12080         (struct gl_thread_struct): Remove type.
12081         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
12082         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
12083         functions.
12084         * modules/windows-thread: New file.
12085         * modules/thread (Depends-on): Add windows-thread.
12087 2019-06-20  Bruno Haible  <bruno@clisp.org>
12089         windows-tls: New module.
12090         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
12091         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
12092         * lib/glthread/tls.h: Include windows-tls.h.
12093         (gl_tls_key_t): Define using glwthread_tls_key_t.
12094         * modules/windows-tls: New file.
12095         * modules/tls (Depends-on): Add windows-tls.
12097 2019-06-20  Bruno Haible  <bruno@clisp.org>
12099         windows-cond: New module.
12100         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
12101         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
12102         * lib/glthread/cond.h: Include windows-cond.h.
12103         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
12104         (gl_cond_t): Define using glwthread_cond_t.
12105         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
12106         (glthread_cond_init): Define using glwthread_cond_init.
12107         (glthread_cond_wait): Define using glwthread_cond_wait.
12108         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
12109         (glthread_cond_signal): Define using glwthread_cond_signal.
12110         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
12111         (glthread_cond_destroy): Define using glwthread_cond_destroy.
12112         (glthread_cond_init_func, glthread_cond_wait_func,
12113         glthread_cond_timedwait_func, glthread_cond_signal_func,
12114         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12115         declarations.
12116         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
12117         types.
12118         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
12119         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
12120         glthread_cond_init_func, glthread_cond_wait_func,
12121         glthread_cond_timedwait_func, glthread_cond_signal_func,
12122         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12123         functions.
12124         * modules/windows-cond: New file.
12125         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
12127 2019-06-20  Bruno Haible  <bruno@clisp.org>
12129         windows-timedrecmutex: New module.
12130         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
12131         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
12132         * modules/windows-timedrecmutex: New file.
12134 2019-06-20  Bruno Haible  <bruno@clisp.org>
12136         windows-timedmutex: New module.
12137         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
12138         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
12139         * modules/windows-timedmutex: New file.
12141 2019-06-20  Bruno Haible  <bruno@clisp.org>
12143         windows-recmutex: New module.
12144         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
12145         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
12146         * lib/glthread/lock.h: Include windows-recmutex.h.
12147         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
12148         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
12149         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
12150         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
12151         (glthread_recursive_lock_unlock): Define using
12152         glwthread_recmutex_unlock.
12153         (glthread_recursive_lock_destroy): Define using
12154         glwthread_recmutex_destroy.
12155         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
12156         glthread_recursive_lock_unlock_func,
12157         glthread_recursive_lock_destroy_func): Remove declarations.
12158         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
12159         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
12160         glthread_recursive_lock_destroy_func): Remove functions.
12161         * modules/windows-recmutex: New file.
12162         * modules/lock (Depends-on): Add windows-recmutex.
12164 2019-06-20  Bruno Haible  <bruno@clisp.org>
12166         windows-mutex: New module.
12167         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
12168         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
12169         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
12170         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
12171         (gl_spinlock_t): Remove type.
12172         (gl_lock_t): Define using glwthread_mutex_t.
12173         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
12174         (glthread_lock_init): Define using glwthread_mutex_init.
12175         (glthread_lock_lock): Define using glwthread_mutex_lock.
12176         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
12177         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
12178         (glthread_lock_init_func, glthread_lock_lock_func,
12179         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12180         declarations.
12181         Use glwthread_spinlock_t instead of gl_spinlock_t.
12182         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
12183         GLWTHREAD_SPINLOCK_INIT.
12184         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
12185         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12186         functions.
12187         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
12188         gl_spinlock_t.
12189         * modules/windows-mutex: New file.
12190         * modules/lock (Depends-on): Add windows-mutex.
12192 2019-06-20  Bruno Haible  <bruno@clisp.org>
12194         windows-once: New module.
12195         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
12196         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
12197         * lib/glthread/lock.h: Include windows-once.h.
12198         (gl_once_t): Define using glwthread_once_t.
12199         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
12200         (glthread_once): Define using glwthread_once.
12201         (glthread_once_func): Remove declaration.
12202         * lib/glthread/lock.c (glthread_once_func): Remove function.
12203         * modules/windows-once: New file.
12204         * modules/lock (Depends-on): Add windows-once.
12206 2019-06-20  Bruno Haible  <bruno@clisp.org>
12208         lock, cond: Avoid possible counter wraparound on Windows.
12209         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
12210         field of the guard unchanged if it was already positive.
12211         (glthread_rwlock_rdlock_func): Likewise.
12212         (glthread_rwlock_wrlock_func): Likewise.
12213         (glthread_recursive_lock_lock_func): Likewise.
12214         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
12215         (glthread_cond_timedwait_func): Likewise.
12217 2019-06-20  Bruno Haible  <bruno@clisp.org>
12219         cond: Make glthread_cond_timedwait more reliable on Windows.
12220         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
12221         condition variable before looking at the current time.
12223 2019-06-20  Bruno Haible  <bruno@clisp.org>
12225         pthread_mutex_timedlock: New module.
12226         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
12227         new declaration.
12228         * lib/pthread_mutex_timedlock.c: New file.
12229         * m4/pthread_mutex_timedlock.m4: New file.
12230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
12231         whether pthread_mutex_timedlock is declared.
12232         (gl_PTHREAD_MODULE_INDICATOR): New macro.
12233         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12234         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12235         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
12236         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12237         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12238         * modules/pthread_mutex_timedlock: New file.
12239         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
12240         module.
12242 2019-06-20  Bruno Haible  <bruno@clisp.org>
12244         thread, lock, cond, tls: Recognize C11 multithreaded applications.
12245         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
12246         * lib/glthread/thread.h (c11_threads_in_use): New macro.
12247         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12248         * lib/glthread/lock.h (c11_threads_in_use): New macro.
12249         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12250         * lib/glthread/cond.h (c11_threads_in_use): New macro.
12251         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12252         * lib/glthread/tls.h (c11_threads_in_use): New macro.
12253         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12255 2019-06-20  Bruno Haible  <bruno@clisp.org>
12257         tls tests: Small improvements.
12258         * tests/test-tls.c: Include <stdint.h>.
12259         (worker_thread): Avoid gcc warning on 64-bit mingw.
12260         (test_tls): Pass a different id to each thread.
12261         * modules/tls-tests (Depends-on): Add stdint.
12263 2019-06-20  Bruno Haible  <bruno@clisp.org>
12265         cond tests: Simplify.
12266         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
12268 2019-06-20  Bruno Haible  <bruno@clisp.org>
12270         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
12271         * tests/test-lock.c (test_once): Don't reference fire_signal if
12272         !ENABLE_LOCKING.
12274 2019-06-19  Bruno Haible  <bruno@clisp.org>
12276         nanosleep: Relicense under LGPLv2+.
12277         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
12278         * modules/nanosleep (License): Change to LGPLv2+.
12280 2019-06-19  Bruno Haible  <bruno@clisp.org>
12282         Reorder pieces of header in perl scripts.
12283         The desired order is
12284         - Prologue part 1 (2 lines with #!)
12285         - Program short description
12286         - Copyright and license notice
12287         - Written-by notice
12288         - Program short description (optional)
12289         - Program long description (optional)
12290         - Prologue part 2
12291         - Time stamp
12292         - Code
12293         Reported by Paul Eggert.
12294         * build-aux/announce-gen: Reorder header.
12295         * build-aux/gitlog-to-changelog: Likewise.
12296         * build-aux/useless-if-before-free: Likewise.
12297         * build-aux/prefix-gnulib-mk: Add copyright notice and short
12298         description.
12299         * build-aux/update-copyright: Likewise. Add short description. Bump
12300         time-stamp-line-limit to 200.
12302 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12304         verify-tests: work around xlc bug
12305         Problem reported by Bruno Haible in:
12306         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
12307         * tests/test-verify.c (item): Move the arithmetic inside the
12308         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
12310 2019-06-16  Bruno Haible  <bruno@clisp.org>
12312         Restore Emacs time-stamp hook applicability.
12313         Reported by Darshit Shah <darnir@gnu.org>.
12314         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
12315         * build-aux/announce-gen: Likewise.
12316         * build-aux/gitlog-to-changelog: Likewise.
12317         * build-aux/prefix-gnulib-mk: Likewise.
12318         * build-aux/update-copyright: Likewise.
12320 2019-06-15  Bruno Haible  <bruno@clisp.org>
12322         Fix scripts to have valid executable format on Alpine Linux.
12323         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12324         Idea by Paul Eggert.
12325         * build-aux/useless-if-before-free: Use a prologue that starts with
12326         '#!/bin/sh'.
12327         * build-aux/announce-gen: Likewise.
12328         * build-aux/gitlog-to-changelog: Likewise.
12329         * build-aux/prefix-gnulib-mk: Likewise.
12330         * build-aux/update-copyright: Likewise.
12331         * tests/test-update-copyright.sh: Update test program accordingly.
12333 2019-06-10  Bruno Haible  <bruno@clisp.org>
12335         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
12336         Reported by Nikita Ermakov <arei@altlinux.org> in
12337         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
12338         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
12339         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
12341 2019-06-10  Bruno Haible  <bruno@clisp.org>
12343         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
12344         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
12345         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
12346         a copy of the path argument.
12347         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
12348         it.
12350 2019-06-10  Bruno Haible  <bruno@clisp.org>
12352         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
12353         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
12354         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
12355         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
12356         a copy of the path argument.
12357         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
12358         it.
12360 2019-06-10  Bruno Haible  <bruno@clisp.org>
12362         posix_spawn_file_actions_addfchdir: Add tests.
12363         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
12364         * tests/test-posix_spawn5.c: New file.
12365         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
12367 2019-06-10  Bruno Haible  <bruno@clisp.org>
12369         posix_spawn_file_actions_addfchdir: New module.
12370         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
12371         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
12372         union member 'fchdir_action'.
12373         * lib/spawn_faction_addfchdir.c: New file.
12374         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
12375         * m4/posix_spawn_faction_addfchdir.m4: New file.
12376         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
12377         'posix_spawn_file_actions_addfchdir' is present and whether
12378         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
12379         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
12380         posix_spawn_file_actions_addfchdir is declared.
12381         (gl_SPAWN_H_DEFAULTS): Initialize
12382         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12383         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12384         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
12385         * modules/spawn (Makefile.am): Substitute
12386         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12387         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12388         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
12389         * modules/posix_spawn_file_actions_addfchdir: New file.
12390         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
12391         signature.
12392         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12393         * doc/posix-functions/posix_spawnp.texi: Likewise.
12394         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
12395         Likewise.
12397 2019-06-10  Bruno Haible  <bruno@clisp.org>
12399         doc: Document existence of posix_spawn_file_actions_addchdir module.
12400         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
12401         the posix_spawn_file_actions_addchdir module.
12403 2019-06-10  Bruno Haible  <bruno@clisp.org>
12405         posix_spawn-internal: Fix module description.
12406         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
12407         from here...
12408         * modules/posix_spawnp (configure.ac): ... and here...
12409         * modules/posix_spawn-internal (configure.ac): ... to here.
12411 2019-06-10  Bruno Haible  <bruno@clisp.org>
12413         doc: Update and improve documentation of glibc functions.
12414         This is a series of commits that
12415         - updates the documentation to the state of glibc 2.29,
12416         - adds references to Linux man pages and glibc documentation,
12417         - marks Linux specific functions as such.
12418         These are the commits:
12419         doc: Update after removal of crypt functions from glibc 2.28.
12420         doc: Remove mention of function vm86 (does not exist on x86_64).
12421         doc: Remove mention of functions that are gone from glibc.
12422         doc: Mention that glibc no longer provides h_errno.
12423         doc: Mention the availability of specific functions in glibc versions.
12424         doc: Mention eaccess.
12425         doc: Add references to Linux man pages.
12426         doc: Add references to glibc documentation.
12427         doc: Mention inotify_* functions.
12428         doc: Mention ppoll.
12429         doc: Mention sched_getcpu.
12430         doc: Mention sync_file_range.
12431         doc: Mention epoll_pwait.
12432         doc: Mention eventfd, eventfd_read, eventfd_write.
12433         doc: Mention signalfd.
12434         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
12435         doc: Mention epoll_create1.
12436         doc: Mention getauxval.
12437         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
12438         doc: Mention nextdown, nextup.
12439         doc: Mention more ISO TS 18661-1 <math.h> functions.
12440         doc: Mention ISO TS 18661-1 <fenv.h> functions.
12441         doc: Mention getrandom, getentropy.
12442         doc: Mention strfromf, strfromd, strfroml.
12443         doc: Mention preadv2, pwritev2.
12444         doc: Mention copy_file_range.
12445         doc: Mention memfd_create.
12446         doc: Mention mlock2.
12447         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
12448         doc: Mention more ISO TS 18661-1 <math.h> functions.
12449         doc: Mention renameat2.
12450         doc: Mention statx.
12451         doc: Mention the ISO C11 multithreading header and functions.
12452         doc: Mention getcpu.
12453         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
12454         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
12455         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
12456         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
12457         doc: Some glibc functions also exist on Solaris 11.
12458         doc: Some glibc functions also exist on Solaris 11.4.
12459         doc: Some glibc functions also exist on FreeBSD.
12460         doc: Some glibc functions also exist on BeOS.
12461         doc: Some glibc functions also exist on Haiku.
12462         doc: Mark functions which exist only on Linux.
12463         doc: Mark functions which exist only on Linux and illumos.
12465 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12467         copy-file: fix typo
12468         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
12470         copy-file-range: simplify into a stub
12471         Based on a comment by Florian Weimer in:
12472         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
12473         It turns out that Emacs (which will use this module) won’t need an
12474         emulation and I suspect other programs won’t either, because these
12475         programs will need to fall back on read+write anyway.  Perhaps I
12476         am wrong and other programs will be able to use an emulation; if
12477         so, this patch can be reverted.
12478         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
12479         Just call it copy_file_range.
12480         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
12481         Check via AC_LINK_IFELSE.
12482         * modules/copy-file-range (Depends-on): Remove modules no longer used.
12484 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
12486         copy-file: prefer copy_file_range
12487         * lib/copy-file.c: Do not include xalloc.h.
12488         (qcopy_file_preserving): Allocate a buffer only if
12489         copy_file_range does not suffice.  If the allocation fails
12490         don't give up; just use a small stack-based buffer.
12491         Prefer copy_file_range if it works.
12492         * modules/copy-file (Depends-on): Add copy-file-range.
12493         Remove xalloc.
12495         copy-file-range: new module
12496         * MODULES.html.sh: Add copy-file-range.
12497         * lib/copy-file-range.c, m4/copy-file-range.m4:
12498         * modules/copy-file-range: New files.
12499         * lib/unistd.in.h (copy_file_range): Declare.
12500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
12501         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
12502         * modules/unistd (unistd.h): Substitute them.
12504 2019-05-28  Bruno Haible  <bruno@clisp.org>
12506         binary-io: Attempted use of O_BINARY on consoles no longer fails.
12507         Reported by KO Myung-Hun <komh78@gmail.com> in
12508         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
12509         * lib/binary-io.h (__gl_setmode_check): Remove function.
12510         (set_binary_mode): Declare as notinline on DJGPP and EMX.
12511         * lib/binary-io.c (__gl_setmode_check): Remove function.
12512         (set_binary_mode): Define here on DJGPP and EMX. Inline
12513         __gl_setmode_check. In case of a tty, don't return an error code.
12515 2019-05-28  James Youngman  <jay@gnu.org>
12517         dirent-safer: Make opendir_safer usable from C++.
12518         * lib/dirent-safer.h: use extern "C".
12520 2019-05-28  James Youngman  <jay@gnu.org>
12522         canonicalize: Make canonicalize_filename_mode usable from C++.
12523         * lib/canonicalize.h: use extern "C".
12525 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
12527         prefix-gnulib-mk: Fix CPPFLAGS migration.
12528         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
12529         _a part of the library name.
12531 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12533         flexmember: update comments again
12534         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
12536         flexmember: update comment
12537         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
12539 2019-05-20  Bruno Haible  <bruno@clisp.org>
12541         setlocale: Improve fallback on macOS.
12542         * lib/setlocale.c (search): Optimize away a redundant strcmp()
12543         invocation.
12544         (locales_with_principal_territory): New array.
12545         (langcmp, get_main_locale_with_same_language): New functions.
12546         (locales_with_principal_language): New array.
12547         (terrcmp, get_main_locale_with_same_territory): New functions.
12548         (rpl_setlocale): When setlocale_single failed, try again with a locale
12549         that is more likely to exist. Don't warn if the environment variable
12550         SETLOCALE_VERBOSE is not set.
12552 2019-05-19  Bruno Haible  <bruno@clisp.org>
12554         localename: Fix default on macOS.
12555         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
12556         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
12557         (gl_locale_name_environ, gl_locale_name_default): Remove code for
12558         HAVE_CFLOCALECOPYCURRENT.
12559         * lib/localename.h (gl_locale_name_default): Update.
12561 2019-05-19  Karl Berry  <karl@freefriends.org>
12563         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
12564         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
12565         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
12567 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
12569         maintainer-makefile: catch uses of $< in non-implicit rules
12570         * top/maint.mk (sc_prohibit_magic_number_exit): New.
12572 2019-05-18  Bruno Haible  <bruno@clisp.org>
12574         threadlib: Provide an easy way to avoid mingw's winpthreads library.
12575         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
12576         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
12577         gl_use_threads accordingly.
12579 2019-05-18  Bruno Haible  <bruno@clisp.org>
12581         pthread_sigmask: Fix compilation error with --enable-threads=windows.
12582         Reported by Tim Rühsen in
12583         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
12584         and Michele Locati in
12585         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
12586         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
12587         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
12588         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
12589         in use and regardless which threads API is chosen.
12591 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12593         close-stream, closein, closeout: simplify
12594         I noticed this opportunity for simplification while drafting a
12595         new, related module that I haven’t had time to finish yet.
12596         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
12597         * modules/close-stream (Files): Remove m4/close-stream.m4.
12598         (configure.ac): Omit gl_CLOSE_STREAM.
12599         * modules/closein (Files): Remove m4/closein.m4
12600         (configure.ac): Omit gl_CLOSEIN.
12601         * modules/closeout (Files): Remove m4/closeout.m4.
12602         (configure.ac): Omit gl_CLOSEOUT.
12604 2019-05-12  Bruno Haible  <bruno@clisp.org>
12606         libtool-next-version: New program.
12607         * build-aux/libtool-next-version: New file.
12609 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
12610             Bruno Haible  <bruno@clisp.org>
12612         version-etc: Ease translation.
12613         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
12614         URLs and formatting newlines out of translatable string.
12616 2019-05-11  Bruno Haible  <bruno@clisp.org>
12618         gnupload: Explain how to create symlinks.
12619         * build-aux/gnupload (usage): Add an example that creates symlinks.
12621 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12623         fpucw: port to gcc -pedantic
12624         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
12625         Use __extension__ if using ({ ... }).
12627         crypto/af_alg: port to strict C compilers
12628         * lib/af_alg.c: Include af_alg.h regardless, so that the
12629         compilation unit is nonempty.
12631 2019-05-10  Bruno Haible  <bruno@clisp.org>
12633         base64: Avoid false positive warning from Coverity.
12634         Reported by Kamil Dudka <kdudka@redhat.com>.
12635         Idea by Paul Eggert.
12636         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
12637         '& 0x3f' to the array index expressions. This convinces Coverity that
12638         there is no out-of-bounds array reference, regardless of the input.
12640 2019-05-09  Bruno Haible  <bruno@clisp.org>
12642         gettext: Update to gettext 0.20.
12643         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
12644         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
12645         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
12646         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
12647         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
12648         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
12649         (configure.ac): Request infrastructure compatible with gettext 0.20.
12650         * m4/glibc2.m4: Remove file.
12651         * m4/intdiv0.m4: Remove file.
12652         * m4/intl.m4: Remove file.
12653         * m4/intldir.m4: Remove file.
12654         * m4/intmax.m4: Remove file.
12655         * m4/printf-posix.m4: Remove file.
12656         * m4/uintmax_t.m4: Remove file.
12657         * m4/gettext.m4: Update from gettext 0.20.
12658         * m4/po.m4: Likewise.
12660 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
12662         verify: remove verify_true
12663         * NEWS: Mention this.
12664         * lib/verify.h (verify_true): Remove.
12665         * tests/test-verify.c (item): Test verify_expr, not verify_true.
12667         Support C2X and C++17 static_assert
12668         C2X and C++17 finally added support for a simple, single-argument
12669         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
12670         doing back in 2005.  Implement static_assert on older platforms.
12671         The only remaining advantage of ‘verify’ is a shorter name.
12672         * doc/posix-headers/assert.texi (assert.h):
12673         * doc/verify.texi (Compile-time Assertions):
12674         Modernize for C2X and C++17.
12675         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
12676         New macros.
12677         (_GL_HAVE__STATIC_ASSERT): Remove.
12678         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
12679         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
12680         string.  All callers changed.
12681         (_GL_VERIFY): Require 3 or more args, of which only the first 2
12682         are used.  All callers changed.
12683         (_Static_assert): Allow either 1 or 2 args, and define if
12684         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
12685         !_GL_HAVE__STATIC_ASSERT.
12686         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
12687         of defining if !_GL_HAVE_STATIC_ASSERT.
12688         (verify_expr, verify): Don’t bother trying to copy the expression
12689         into the diagnostic, since 1-argument static_assert doesn’t.
12690         (verify): Prefer 1-argument _Static_assert if it works.
12691         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
12693 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12695         Fix _GL_HAVE__STATIC_ASSERT typo
12696         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
12697         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
12699 2019-05-05  Bruno Haible  <bruno@clisp.org>
12701         wcwidth: Ensure width 1, not 2, for ambiguous characters.
12702         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
12703         via Akim Demaille <akim.demaille@gmail.com>.
12704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
12705         en_US.UTF-8 locale, since that is more likely to be present than an
12706         fr_FR.UTF-8 locale.
12707         * tests/test-wcwidth.c (main): Check the width of U+2202.
12708         * doc/posix-functions/wcwidth.texi: Mention the issue.
12710 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12712         Port manywarnings to GCC 9
12713         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
12714         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
12715         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
12716         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
12717         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
12718         --help=warnings output.
12719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
12720         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
12721         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
12723 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
12725         Sync lib/mktime-internal.h from glibc
12726         * config/srclist.txt: Add entry for lib/mktime-internal.h.
12727         * lib/mktime-internal.h: Autoupdate.
12729 2019-04-28  Bruno Haible  <bruno@clisp.org>
12731         tls tests: Prevent that the test takes too long.
12732         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
12733         (main): Let the test fail if it takes more than 10 minutes.
12734         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
12736 2019-04-27  Bruno Haible  <bruno@clisp.org>
12738         lock tests: Prevent that the test takes too long.
12739         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
12740         (main): Let the test fail if it takes more than 10 minutes.
12741         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
12743 2019-04-27  Bruno Haible  <bruno@clisp.org>
12745         localename: Fix crash on mingw (regression from 2018-11-23).
12746         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
12747         locale name that is null.
12749 2019-04-27  Bruno Haible  <bruno@clisp.org>
12751         Fix gcc warnings on 64-bit mode mingw.
12752         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
12753         * lib/gl_array_list.c: Likewise.
12754         * lib/gl_array_map.c: Likewise.
12755         * lib/gl_array_set.c: Likewise.
12756         * lib/gl_carray_list.c: Likewise.
12757         * lib/gl_sublist.c: Likewise.
12758         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
12759         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
12760         * lib/gl_hash_map.c (uintptr_t): Likewise.
12761         * lib/gl_hash_set.c (uintptr_t): Likewise.
12762         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
12763         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
12764         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
12765         * lib/iconv.c (uintptr_t): Likewise.
12766         * lib/iconv_close.c (uintptr_t): Likewise.
12767         * tests/test-lock.c: Include <stdint.h>.
12768         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
12769         'long'.
12770         * modules/clean-temp (Depends-on): Add stdint.
12771         * modules/array-list (Depends-on): Likewise.
12772         * modules/array-map (Depends-on): Likewise.
12773         * modules/array-set (Depends-on): Likewise.
12774         * modules/carray-list (Depends-on): Likewise.
12775         * modules/sublist (Depends-on): Likewise.
12776         * modules/lock-tests (Depends-on): Likewise.
12778 2019-04-27  Bruno Haible  <bruno@clisp.org>
12780         error: Tweak indentation.
12781         * lib/error.c: Correct indentation.
12783 2019-04-27  Bruno Haible  <bruno@clisp.org>
12785         term-style-control: Fix gcc warning on mingw.
12786         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
12787         of i.
12789 2019-04-26  Bruno Haible  <bruno@clisp.org>
12791         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
12792         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
12794 2019-04-26  Bruno Haible  <bruno@clisp.org>
12796         relocatable-prog: Fix gcc warning on mingw.
12797         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
12798         on EMX.
12800 2019-04-02  Bruno Haible  <bruno@clisp.org>
12802         gitsub.sh: New file.
12803         * top/gitsub.sh: New file.
12805 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
12807         argmatch: use void* for raw memory pointers
12808         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
12809         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
12810         to "values", keep char* for strings.
12812 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
12814         prefix-gnulib-mk: fix the support for gnulib-po
12815         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
12816         Don't touch HAVE_* variables.
12817         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
12819 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
12821         di-set: allow free with 'ino_map' being NULL.
12822         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
12823         is NULL.  Bug introduced in commit 3703dbbe88dd.
12824         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
12825         as a test.
12827 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
12829         * lib/str-two-way.h: Fix comment typo.
12831 2019-04-13  Bruno Haible  <bruno@clisp.org>
12833         x-to-1: Restore ability to use original calling convention.
12834         * build-aux/x-to-1.in: Add comments. Accept the original form of
12835         HELP2MAN argument as well as the form expected since 2012-12-12.
12837 2019-04-13  Bruno Haible  <bruno@clisp.org>
12839         x-to-1: Avoid failure due to missing perl modules.
12840         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
12841         needs are installed.
12843 2019-04-13  Bruno Haible  <bruno@clisp.org>
12845         openmp-init: New module.
12846         * modules/openmp-init: New file.
12847         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
12848         the changes from 2019-04-09.
12850 2019-04-12  Bruno Haible  <bruno@clisp.org>
12852         signbit: Fix compilation error when gnulib's math.h exists twice.
12853         * lib/math.in.h (GNULIB_defined_signbit): New macro.
12855 2019-04-12  Bruno Haible  <bruno@clisp.org>
12857         openmp: Fix compilation error on platforms without OpenMP.
12858         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
12860 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
12862         mountlist: make parsing /proc/self/mountinfo more robust
12863         Cater for the following issues with mountinfo parsing (the first
12864         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
12865         in <https://bugs.gnu.org/35137>).
12866         1. The fields source, target, mntroot and fstype may contain characters
12867         like '\r'; sscanf(3) fails to read such values with the %s format
12868         specifier because it would stop at such characters.
12869         Example: "mount -t tmpfs tmpfs /foo^Mbar".
12870         The only true separator in that file is the ' ' character.
12871         2. The source field may be an empty string, which happens e.g. with
12872         "mount -t tmpfs '' /target".
12873         3. The fstype field may contain mangled characters as well which need
12874         unescaping.
12875         * lib/mountlist.c (terminate_at_blank): Add utility function.
12876         (read_file_system_list): In the block trying to read the mountinfo file,
12877         avoid using sscanf(3) with %s format; instead, parse the above fields
12878         separated by spaces one by one.
12879         This also handles the case when the source field is an empty string.
12880         Unescape the fstype field.
12882 2019-04-09  Bruno Haible  <bruno@clisp.org>
12884         openmp: Add workaround for 32-bit programs on AIX.
12885         * lib/omp.in.h: New file.
12886         * lib/omp-init.c: New file, based on lib/nproc.c.
12887         * m4/omp_h.m4: New file.
12888         * modules/openmp (Files): Add them.
12889         (Depends-on): Add include_next, c-ctype, setenv.
12890         (configure.ac): Invoke gl_OMP_H.
12891         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
12892         (Include): Mention <omp.h>.
12894 2019-04-09  Bruno Haible  <bruno@clisp.org>
12896         nproc: Fix return value for privileged processes.
12897         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
12898         getpid().
12900 2019-04-07  Bruno Haible  <bruno@clisp.org>
12902         Add copyright notices in several files.
12903         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
12904         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
12905         * lib/libunistring.valgrind: Likewise.
12906         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
12907         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
12908         * lib/memchr.valgrind: Likewise.
12909         * lib/memchr2.valgrind: Likewise.
12910         * lib/rawmemchr.valgrind: Likewise.
12911         * lib/relocatable.valgrind: Likewise.
12912         * lib/strchrnul.valgrind: Likewise.
12914 2019-03-25  Bruno Haible  <bruno@clisp.org>
12916         term-style-control tests: Fix link error.
12917         Reported by Tom G. Christensen in
12918         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
12919         * modules/term-style-control-tests (Makefile.am): Link
12920         test-term-style-control-hello and test-term-style-control-yes against
12921         LIBINTL.
12923 2019-03-24  Bruno Haible  <bruno@clisp.org>
12925         term-style-control: Add tests.
12926         * tests/test-term-style-control-hello.c: New file.
12927         * tests/test-term-style-control-yes.c: New file.
12928         * modules/term-style-control-tests: New file.
12930         term-style-control: New module.
12931         * lib/term-style-control.h: New file, based on libtextstyle's
12932         term-ostream.oo.h and term-ostream.oo.c.
12933         * lib/term-style-control.c: New file, based on libtextstyle's
12934         term-ostream.oo.c.
12935         * modules/term-style-control: New file.
12937 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
12939         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
12940         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
12941         C++98 appears to be supported by Clang, but not by GCC nor ICC.
12943 2019-03-23  Bruno Haible  <bruno@clisp.org>
12945         Support cross-compilation to musl libc.
12946         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
12947         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
12948         musl libc.
12949         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12950         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
12951         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12952         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12953         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12954         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
12955         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12956         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12957         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12958         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12959         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12960         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
12961         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12962         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12963         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12964         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12965         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12967         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
12968         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12970         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12971         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
12972         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12973         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
12974         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12975         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12976         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12977         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
12978         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
12979         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12980         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12981         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
12982         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12983         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12984         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
12985         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12986         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12987         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12988         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12989         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12990         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
12991         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
12992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12993         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12994         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12995         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12996         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
12997         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
12998         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
12999         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
13000         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
13001         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13002         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
13003         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13004         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
13005         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13006         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13007         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13008         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
13009         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13011         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13012         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
13013         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13014         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13016         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
13017         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13018         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
13019         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13020         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13021         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13022         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13023         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
13024         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13025         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13028 2019-03-23  Bruno Haible  <bruno@clisp.org>
13030         posix_spawn_file_actions_*: Document musl libc bugs.
13031         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
13032         the bug.
13033         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
13034         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
13035         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
13036         cross-compiling to a musl system, guess no.
13037         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
13038         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
13040 2019-03-23  Bruno Haible  <bruno@clisp.org>
13042         futimens: Document musl libc bug.
13043         * doc/posix-functions/futimens.texi: Mention the bug.
13044         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
13045         cross-compiling, guess no on glibc and musl systems.
13047 2019-03-23  Bruno Haible  <bruno@clisp.org>
13049         Clarify that cross-compilation guesses are guesses.
13050         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
13051         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
13052         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
13053         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
13054         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
13055         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
13056         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
13057         gl_cv_glob_lists_symlinks.
13058         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
13059         'guessing ' to ac_cv_func_malloc_0_nonnull.
13060         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
13061         'guessing ' to ac_cv_func_realloc_0_nonnull.
13062         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
13063         'guessing ' to gl_cv_func_poll.
13064         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
13065         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
13066         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
13068 2019-03-23  Bruno Haible  <bruno@clisp.org>
13070         strtold: Fix typo.
13071         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
13073 2019-03-23  Bruno Haible  <bruno@clisp.org>
13075         noreturn: In C++ mode with clang, use _Noreturn as fallback.
13076         Reported by Akim Demaille.
13077         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
13078         [[noreturn]] would not work, use _Noreturn instead.
13080 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13082         libtextstyle-optional: Fix compiler warnings.
13083         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
13084         as unused.
13086 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13088         bitset: fix memory leaks
13089         Reported by Bruno Haible.
13090         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
13091         * lib/bitset/vector.c (vbitset_free): New.
13092         (vbitset_vtable): Use it.
13094 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13096         bitset: minor changes
13097         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
13098         * lib/bitset/table.c: Formatting changes.
13099         Remove useless braces.
13100         Prefer using else in cascades of if/else-if with returns.
13101         * lib/bitset/vector.c: Reduce scopes.
13103 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13105         bitset: expose bitset_resize
13106         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
13107         * tests/test-bitset.c (check_attributes): Check bitset_resize.
13108         (main): Use a variable bitset as reference, since fixed does not support resize.
13110 2019-03-19  Bruno Haible  <bruno@clisp.org>
13112         doc: Document the 'stdnoreturn' and 'noreturn' modules.
13113         Reported by Akim Demaille.
13114         * doc/noreturn.texi: New file.
13115         * doc/gnulib.texi: Include it.
13117 2019-03-19  Bruno Haible  <bruno@clisp.org>
13119         doc: Document how to use 'static inline'.
13120         * doc/static-inline.texi: New file.
13121         * doc/gnulib.texi: Include it.
13123 2019-03-19  Bruno Haible  <bruno@clisp.org>
13125         libtextstyle-optional: Add tests.
13126         * tests/test-libtextstyle.c: New file, based on libtextstyle's
13127         adhoc-tests/hello.c.
13128         * tests/test-libtextstyle-default.css: New file, copied from
13129         libtextstyle's adhoc-tests/hello-default.css.
13130         * modules/libtextstyle-optional-tests: New file.
13132         libtextstyle-optional: New module.
13133         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
13134         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
13135         * modules/libtextstyle-optional: New file.
13137 2019-03-19  Bruno Haible  <bruno@clisp.org>
13139         c-stack: Make signal handlers more reliable.
13140         * lib/c-stack.c (progname): New variable.
13141         (die): Use it.
13142         (c_stack_action): Initialize it.
13143         (segv_handler): Save and restore errno.
13145 2019-03-19  Bruno Haible  <bruno@clisp.org>
13147         Help making signal handlers more reliable.
13148         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
13149         _GL_ASYNC_SAFE into config.h.
13150         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
13151         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
13152         argument.
13153         * lib/fatal-signal.c (action_t, uninstall_handlers,
13154         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
13155         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
13156         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
13157         _GL_ASYNC_SAFE.
13158         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
13159         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
13161 2019-03-18  Bruno Haible  <bruno@clisp.org>
13163         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
13164         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
13165         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
13167 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13169         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
13170         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
13171         GCC 4.8.
13173 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13175         fts: minor simplification
13176         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
13178 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13180         bitset, timevar: Depend on c99.
13181         Reported by Bruno Haible.
13182         * modules/bitset, modules/timevar (Depends-on): Add c99.
13184 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13186         bitset: a bit (...) more tests
13187         * tests/test-bitset.c (check_attributes): Check zero and ones.
13189 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13191         bitset: fix overflows.
13192         Reported by Bruno Haible.
13193         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
13194         * lib/bitset/table.c (tbitset_test): last_bit is the position of
13195         the bit in the array of bitset_word, so be sure to take its modulo
13196         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
13197         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
13199 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
13201         bitset: style changes.
13202         * lib/bitset/table.c: Use NULL, not 0, for pointers.
13203         Formatting changes.
13204         (tbitset_list): Reduce scopes.
13206 2019-03-16  Bruno Haible  <bruno@clisp.org>
13208         fatal-signal: Pass the signal number to the action.
13209         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
13210         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
13211         (fatal_signal_handler): Pass the signal number to the action.
13212         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
13213         signal number as parameter.
13214         (create_temp_dir): Update.
13215         * lib/wait-process.c (cleanup_slaves_action): New function.
13216         (register_slave_subprocess): Update at_fatal_signal invocation.
13217         * NEWS: Mention the change.
13219 2019-03-16  Bruno Haible  <bruno@clisp.org>
13221         fatal-signal: Add function that lists the fatal signals.
13222         * lib/fatal-signal.h (get_fatal_signals): New declaration.
13223         * lib/fatal-signal.c (get_fatal_signals): New function.
13225 2019-03-14  Bruno Haible  <bruno@clisp.org>
13227         isatty: Make it return true in Cygwin consoles on native Windows.
13228         * lib/isatty.c: Include <string.h>.
13229         (GetProcAddress): New macro.
13230         (GetNamedPipeClientProcessIdFuncType): New type.
13231         (GetNamedPipeClientProcessIdFunc): New variable.
13232         (QueryFullProcessImageNameFuncType): New type.
13233         (QueryFullProcessImageNameFunc): New variable.
13234         (initialized): New variable.
13235         (initialize): New function.
13236         (IsCygwinConsoleHandle): New function.
13237         (isatty): Invoke it.
13238         * doc/posix-functions/isatty.texi: Mention the issue.
13240 2019-03-14  Bruno Haible  <bruno@clisp.org>
13242         all: Update URLs to msdn.microsoft.com.
13243         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
13244         was moved to docs.microsoft.com.
13246 2019-03-13  Bruno Haible  <bruno@clisp.org>
13248         gnulib-tool: Clarify the coding style.
13249         Suggested by Pavel Raiskup <praiskup@redhat.com>.
13250         * gnulib-tool: Add comment about coding style.
13252 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
13254         strtod: fix clash with strtold
13255         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
13256         * lib/strtod.c (compute_minus_zero, minus_zero):
13257         Simplify by remving the macro / external variable,
13258         and having just a function.  User changed.  This avoids
13259         the need for an external variable that might clash.
13261 2019-03-10  Bruno Haible  <bruno@clisp.org>
13263         alloca-opt: Fix conflict mingw's new <alloca.h> file.
13264         Reported by Eli Zaretskii <eliz@gnu.org>.
13265         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
13266         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
13267         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
13269 2019-03-10  Bruno Haible  <bruno@clisp.org>
13271         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
13272         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
13273         is in use.
13274         * tests/test-printf-posix2.c: Likewise.
13276 2019-03-10  Bruno Haible  <bruno@clisp.org>
13278         uninorm tests: Free allocated memory.
13279         * tests/uninorm/test-u32-normalize-big.h
13280         (struct normalization_test_file): Remove 'const' from allocated member.
13281         (free_normalization_test_file): New declaration.
13282         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
13283         memory.
13284         (free_normalization_test_file): New function.
13285         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
13286         'struct normalization_test_file' contents.
13287         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
13288         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
13289         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
13291 2019-03-10  Bruno Haible  <bruno@clisp.org>
13293         di-set: Fix memory leak.
13294         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
13295         not free().
13297 2019-03-10  Bruno Haible  <bruno@clisp.org>
13299         tests: Free allocated memory.
13300         Reported by <deltatau@protonmail.com> via Assaf Gordon.
13301         * tests/test-astrxfrm.c (main): Free allocated memory.
13302         * tests/test-bitset.c (compare, check_attributes): Free allocated
13303         bitsets.
13304         * tests/test-filenamecat.c (main): Free allocated memory.
13305         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
13306         * tests/test-freadptr.c (main): Likewise.
13307         * tests/test-freadptr2.c (main): Free allocated memory.
13308         * tests/test-freadseek.c (main): Likewise.
13309         * tests/test-gc-arcfour.c (main): Close allocated context.
13310         * tests/test-gc-arctwo.c (main): Likewise.
13311         * tests/test-gc-des.c (main): Close all allocated contexts.
13312         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
13313         * tests/test-pipe-filter-ii1.c (main): Likewise.
13314         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
13315         allocated file actions.
13316         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
13317         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
13318         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
13319         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
13320         * tests/test-strfmon_l.c (main): Free allocated locales.
13321         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
13322         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
13323         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13324         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
13325         * tests/unistr/test-chr.h (main): Free input32.
13326         * tests/unistr/test-strchr.h (test_strchr): Likewise.
13328 2019-03-10  Bruno Haible  <bruno@clisp.org>
13330         tests: Prepare for using valgrind.
13331         * tests/*.sh: Invoke all test programs through ${CHECKER}.
13332         * tests/*/*.sh: Likewise.
13333         * tests/test-freadptr.c (main): Update accordingly.
13334         * tests/test-freadseek.c (main): Likewise.
13336 2019-03-09  Bruno Haible  <bruno@clisp.org>
13338         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
13339         * lib/get-rusage-as.c (get_rusage_as): When compiled by
13340         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
13341         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
13342         before exiting.
13344 2019-03-09  Jim Meyering  <meyering@fb.com>
13346         test-userspec.c: don't print NULL
13347         * tests/test-userspec.c (main): A test release of gcc,
13348         9.0.1 20190310, warned that this test would attempt to
13349         print a NULL pointer via a %s printf format.  Fix that
13350         and remove the unnecessary preceding "!diag" conjunct.
13351         Also add a comment.
13353 2019-03-03  Bruno Haible  <bruno@clisp.org>
13355         getloadavg: Write NULL for the null pointer.
13356         Reported by Michal Privoznik <mprivozn@redhat.com>.
13357         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
13359 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
13361         alloca, tsearch-tests: Write NULL for the null pointer.
13362         * lib/alloca.c (i00afunc): Write NULL instead of 0.
13363         * tests/test-tsearch.c (mangle_tree): Likewise.
13365 2019-03-09  Bruno Haible  <bruno@clisp.org>
13367         strfmon_l: Fix -fsanitize=address finding.
13368         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
13369         <string.h>.
13370         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
13371         (directive_t, directives_t): New types.
13372         (fmon_parse): New function.
13373         (rpl_strfmon_l): Don't call va_arg more often than needed for the
13374         format string. Consume 'long double' arguments in places where the
13375         format string indicates so.
13376         * modules/strfmon_l (Depends-on): Add 'stdbool'.
13378 2019-03-09  Bruno Haible  <bruno@clisp.org>
13380         crypto/des: Fix undefined behaviour.
13381         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
13382         shift operations on 'int'.
13384 2019-03-09  Bruno Haible  <bruno@clisp.org>
13386         Fix undefined behaviour.
13387         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
13388         'unsigned int', to avoid shift operations on 'int'.
13389         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
13390         * tests/test-count-leading-zeros.c (main): Use a random number that has
13391         as many bits as TYPE, not only 2*15 or 2*31 bits.
13392         * tests/test-count-trailing-zeros.c (main): Likewise.
13393         * tests/test-count-one-bits.c (main): Likewise.
13394         * tests/test-memmem.c: Don't include "null-ptr.h".
13395         (main): Use zerosize_ptr() instead of null_ptr().
13396         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
13398 2019-03-08  Bruno Haible  <bruno@clisp.org>
13400         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
13401         Reported by Jeffrey Walton <noloader@gmail.com>.
13402         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
13403         invoke memset with a zero size.
13404         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
13405         Likewise.
13406         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
13407         Adjust accordingly.
13409 2019-03-08  Bruno Haible  <bruno@clisp.org>
13411         unistr/*, uniconv/*: Fix undefined behaviour.
13412         Reported by Jeffrey Walton <noloader@gmail.com>.
13413         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
13414         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
13415         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13416         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13418 2019-03-08  Bruno Haible  <bruno@clisp.org>
13420         unistr/u8-cmp: Fix undefined behaviour.
13421         Reported by Jeffrey Walton <noloader@gmail.com>.
13422         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
13424 2019-03-08  Bruno Haible  <bruno@clisp.org>
13426         unictype/numeric: Fix undefined behaviour.
13427         Reported by Jeffrey Walton <noloader@gmail.com>.
13428         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
13429         on shift overflow, caught by "gcc -fsanitize=undefined".
13430         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
13431         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
13432         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
13434 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
13436         git-version-gen: fix --version copyright year
13437         * build-aux/git-version-gen, build-aux/move-if-change (version):
13438         --version output copyright year is now taken from script year,
13439         so that it no longer needs to be updated by hand.
13441 2019-03-04  Bruno Haible  <bruno@clisp.org>
13443         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
13444         This approach supports relocatable installation of shared libraries
13445         which depend on other shared libraries from the same package.
13446         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
13447         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
13448         wrapper around the original LIBTOOL.
13449         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
13450         token '@loader_path' instead of '$ORIGIN'.
13451         * build-aux/libtool-reloc: New file.
13452         * modules/relocatable-prog (Files): Add it.
13453         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
13454         the recent changes. Document the need to set the *_LDFLAGS of libraries.
13455         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
13456         Makefile.am, not in configure.ac.
13458 2019-03-04  Bruno Haible  <bruno@clisp.org>
13460         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
13461         * build-aux/install-reloc: Revert change.
13462         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
13464 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13466         nstrftime: support the ‘+’ flag
13467         * lib/nstrftime.c (add, __strftime_internal):
13468         Add support for the ‘+’ flag introduced in POSIX.1-2017.
13469         (__strftime_internal): New arg ‘width’.  All uses changed.
13470         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
13472 2019-02-24  Bruno Haible  <bruno@clisp.org>
13474         relocatable-prog: Improve verbose output.
13475         * build-aux/install-reloc (func_verbose): Escape characters that would
13476         be interpreted by the shell.
13478 2019-02-24  Bruno Haible  <bruno@clisp.org>
13480         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
13481         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
13482         "sys/stat.h".
13483         * lib/lstat.c: Likewise.
13484         * lib/fstat.c: Likewise.
13485         * lib/fstatat.c: Likewise.
13487 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
13489         long-options: add parse_gnu_standard_options_only
13490         Discussed in https://bugs.gnu.org/33468 .
13492         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
13493         (parse_gnu_standard_options_only): Add function to process
13494         the GNU default options --help and --version and fail for
13495         any other unknown long or short option. See
13496         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
13497         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
13498         * modules/long-options (depends-on): Add stdbool, exitfail.
13499         * top/maint.mk (sc_prohibit_long_options_without_use): Update
13500         syntax-check rule, add new function name.
13502 2019-02-23  Bruno Haible  <bruno@clisp.org>
13504         relocatable-prog: Update documentation.
13505         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
13506         the recent changes.
13508 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13510         nstrftime: tweak arg order
13511         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
13512         All callers changed.  Suggested by TAMUKI Shoichi in:
13513         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
13515 2019-02-23  Bruno Haible  <bruno@clisp.org>
13517         relocatable-prog: Use wrapper-free installation also on Mac OS X.
13518         Reported by Paul Smith <psmith@gnu.org>.
13519         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
13520         (func_relativize): New function, from gnulib-tool.
13521         Handle mode 'macosx' through invocations of 'otool' and
13522         'install_name_tool'.
13523         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
13524         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
13525         'install-reloc' invocation with mode 'macosx'.
13527 2019-02-23  Bruno Haible  <bruno@clisp.org>
13529         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
13530         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
13531         Hurd with glibc >= 2.27.
13533 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13535         nstrftime: merge glibc strftime changes
13536         This incorporates:
13537         2019-02-11 Fix a few whitespace arrangement inconsistencies
13538         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
13539         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
13540         2019-01-11 strftime: use the "L_" macro with character literals
13541         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
13542         callers changed.  Default width of %Ey is now 2.  This is needed
13543         for proper handling of Japanese dates starting on 2019-05-01.
13545 2019-02-19  Bruno Haible  <bruno@clisp.org>
13547         relocatable-prog: Use $ORIGIN trick on more platforms.
13548         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
13549         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
13550         Solaris >= 10, Haiku. But don't use it on Android.
13551         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
13552         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
13554 2019-02-19  Bruno Haible  <bruno@clisp.org>
13556         progreloc: Speed up executable lookup on various platforms.
13557         * lib/progreloc.c: Include <errno.h>.
13558         (safe_read, full_read): New functions.
13559         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
13560         prefer the information from the /proc file system to a PATH search.
13562 2019-02-19  Bruno Haible  <bruno@clisp.org>
13564         progreloc: Simplify code for Android.
13565         * lib/progreloc.c (executable_fd): Don't define on Android.
13566         (maybe_executable, find_executable): Don't use executable_fd on Android.
13568 2019-02-15  Bruno Haible  <bruno@clisp.org>
13570         gnulib-tool: Support --import with just a few tests, not --with-tests.
13571         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
13572         'inctests' when generating files; use 'inctests' only for computing the
13573         transitive closure.
13575 2019-02-14  Bruno Haible  <bruno@clisp.org>
13577         gnulib-tool: Improve handling of multiple --local-dir options.
13578         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
13579         options work.
13580         * gnulib-tool (func_path_prepend): Remove function.
13581         (func_path_foreach): Make IFS handling more robust.
13582         (local_gnulib_path): Collect --local-dir values using func_path_append,
13583         not func_path_prepend.
13584         (func_determine_path_separator): Make IFS handling more robust.
13585         (func_lookup_file_cb): New function.
13586         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
13587         func_lookup_local_file. Apply the patches in the reverse order of their
13588         origin in $local_gnulib_path.
13589         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
13590         * NEWS: Mention that the first --local-dir option is the one with
13591         highest priority.
13593 2019-02-10  Bruno Haible  <bruno@clisp.org>
13595         libtextstyle: New module.
13596         * m4/libtextstyle.m4: New file.
13597         * modules/libtextstyle: New file.
13599 2019-02-05  Bruno Haible  <bruno@clisp.org>
13601         declared.sh: Fix bug with variables of pointer type.
13602         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
13603         before the symbol to be omitted if the preceding character is a '*'.
13605 2019-02-04  Bruno Haible  <bruno@clisp.org>
13607         Add script for running tests under valgrind.
13608         * build-aux/run-test: New file, from GNU libunistring.
13609         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
13610         as well.
13612 2019-02-04  Bruno Haible  <bruno@clisp.org>
13614         declared.sh: Fix --version output.
13615         * build-aux/declared.sh (func_version): Update package name.
13617 2019-02-03  Bruno Haible  <bruno@clisp.org>
13619         Add script for determining the set of symbols to export from a library.
13620         * build-aux/declared.sh: New file, from GNU libunistring.
13621         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
13622         Mention it.
13624 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13626         vla: add commentary about VLA_ELEMS
13627         * lib/vla.h (VLA_ELEMS): Add commentary,
13628         some inspired by Bruno Haible’s proposal in:
13629         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
13631         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
13632         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
13633         assume the C99 signatures for strtod and strtold.  Programs that
13634         require stricter adherence to C99 should also use the strtod and
13635         strtold modules as needed, and we no longer need the
13636         HAVE_C99_STRTOLD macro.
13637         * NEWS: Mention this.
13638         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
13639         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
13640         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
13641         (Files): Remove m4/c-strtod.m4.
13642         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
13643         exists.
13645 2019-02-02  Bruno Haible  <bruno@clisp.org>
13647         fma: Improve code style.
13648         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
13650 2019-02-02  Colin Watson  <cjwatson@debian.org>
13652         *-map tests: Fix compilation error.
13653         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
13654         * tests/test-hash_map.c: Likewise.
13655         * tests/test-linkedhash_map.c: Likewise.
13657 2019-01-31  Bruno Haible  <bruno@clisp.org>
13659         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
13660         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
13661         GNULIB_defined_strtold_function): New macros.
13662         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
13663         (STRTOD): Ignore HAVE_C99_STRTOLD.
13664         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
13665         deemed buggy. But do use it on platforms where uselocale exists and is
13666         usable.
13667         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
13668         deemed buggy. On platforms where uselocale exists and is usable, use
13669         uselocale and strtod/strtold.
13670         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
13671         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
13672         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
13673         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
13674         (Depends-on): Add strtod.
13675         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
13676         (Depends-on): Add strtold.
13678 2019-01-31  Bruno Haible  <bruno@clisp.org>
13680         strtod, strtold: Use the locale's decimal point.
13681         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
13682         (decimal_point_char): New function, copied from lib/vasnprintf.c.
13683         (parse_number): Add a radixchar argument. Use it instead of '.'.
13684         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
13685         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
13686         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
13687         * tests/test-strtod1.c: New file.
13688         * tests/test-strtod1.sh: New file.
13689         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
13690         locale-fr.m4 and its dependencies.
13691         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
13692         (Makefile.am): Arrange to compile test-strtod1.c and run
13693         test-strtod1.sh.
13694         * tests/test-strtold1.c: New file.
13695         * tests/test-strtold1.sh: New file.
13696         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
13697         locale-fr.m4 and its dependencies.
13698         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
13699         (Makefile.am): Arrange to compile test-strtold1.c and run
13700         test-strtold1.sh.
13702 2019-01-31  Bruno Haible  <bruno@clisp.org>
13704         strtod, strtold tests: Simplify tests.
13705         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
13706         * tests/test-strtold.c (main): Likewise.
13708 2019-01-31  Bruno Haible  <bruno@clisp.org>
13710         strtod, strtold: Avoid unnecessary rounding errors.
13711         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
13712         decimal to DOUBLE conversion.
13714 2019-01-31  Bruno Haible  <bruno@clisp.org>
13716         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
13717         * lib/strtod.c (STRTOD): When there is an extra character after the
13718         exponent marker 'p', reparse the number.
13719         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
13720         * doc/posix-functions/strtold.texi: Likewise.
13722 2019-01-29  Bruno Haible  <bruno@clisp.org>
13724         strtold: Add tests.
13725         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
13726         * modules/strtold-tests: New file.
13728 2019-01-29  Bruno Haible  <bruno@clisp.org>
13730         strtold: New module.
13731         * lib/stdlib.in.h (strtold): New declaration.
13732         * lib/strtold.c: New file.
13733         * lib/strtod.c: Consider USE_LONG_DOUBLE.
13734         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
13735         USE_LDEXP): New macros.
13736         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
13737         USE_LONG_DOUBLE.
13738         (underlying_strtod): Remove function. Replace with some macros.
13739         Re-add the code for a missing underlying function that was removed on
13740         2013-02-19.
13741         * m4/strtold.m4: New file.
13742         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
13743         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
13744         REPLACE_STRTOLD.
13745         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
13746         REPLACE_STRTOLD.
13747         * modules/strtold: New file.
13748         * doc/posix-functions/strtold.texi: Document the new module.
13750 2019-01-29  Bruno Haible  <bruno@clisp.org>
13752         strtod: Fix compilation error on IRIX 6.5.
13753         * modules/strtod (Depends-on): Add 'math'.
13755 2019-01-28  Bruno Haible  <bruno@clisp.org>
13757         Fix build error when building a shared libunistring on Android.
13758         * tests/uninorm/test-nfc.c (n): Don't define on Android.
13759         (main): Add 'volatile', to defeat a GCC optimization that would
13760         eliminate the reference.
13761         * tests/uninorm/test-nfd.c (n): Don't define on Android.
13762         (main): Add 'volatile', to defeat a GCC optimization that would
13763         eliminate the reference.
13764         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
13765         (main): Add 'volatile', to defeat a GCC optimization that would
13766         eliminate the reference.
13767         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
13768         (main): Add 'volatile', to defeat a GCC optimization that would
13769         eliminate the reference.
13771 2019-01-27  Bruno Haible  <bruno@clisp.org>
13773         Avoid build errors due to wrong references between modules.
13774         * lib/uninorm/canonical-decomposition.c: Include
13775         "uninorm/decomposition-table.h", not "decomposition-table.h".
13776         * lib/uninorm/decomposition.c: Likewise.
13777         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
13778         not "decompose-internal.h".
13779         * lib/uninorm/u16-normalize.c: Likewise.
13780         * lib/uninorm/u32-normalize.c: Likewise.
13781         * lib/uninorm/uninorm-filter.c: Likewise.
13782         * lib/uninorm/nfkc.c: Likewise.
13783         * lib/uninorm/nfkd.c: Likewise.
13784         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
13785         "caseprop.h".
13786         * lib/unicase/u8-ct-totitle.c: Likewise.
13787         * lib/unicase/u8-prefix-context.c: Likewise.
13788         * lib/unicase/u8-suffix-context.c: Likewise.
13789         * lib/unicase/u16-casemap.c: Likewise.
13790         * lib/unicase/u16-ct-totitle.c: Likewise.
13791         * lib/unicase/u16-prefix-context.c: Likewise.
13792         * lib/unicase/u16-suffix-context.c: Likewise.
13793         * lib/unicase/u32-casemap.c: Likewise.
13794         * lib/unicase/u32-ct-totitle.c: Likewise.
13795         * lib/unicase/u32-prefix-context.c: Likewise.
13796         * lib/unicase/u32-suffix-context.c: Likewise.
13797         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
13798         "unicasemap.h".
13799         * lib/unicase/u8-toupper.c: Likewise.
13800         * lib/unicase/u8-ct-tolower.c: Likewise.
13801         * lib/unicase/u8-ct-toupper.c: Likewise.
13802         * lib/unicase/u16-tolower.c: Likewise.
13803         * lib/unicase/u16-toupper.c: Likewise.
13804         * lib/unicase/u16-ct-tolower.c: Likewise.
13805         * lib/unicase/u16-ct-toupper.c: Likewise.
13806         * lib/unicase/u32-tolower.c: Likewise.
13807         * lib/unicase/u32-toupper.c: Likewise.
13808         * lib/unicase/u32-ct-tolower.c: Likewise.
13809         * lib/unicase/u32-ct-toupper.c: Likewise.
13810         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
13811         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
13812         * lib/unicase/u16-ct-casefold.c: Likewise.
13813         * lib/unicase/u32-ct-casefold.c: Likewise.
13815 2019-01-27  Bruno Haible  <bruno@clisp.org>
13817         gperf: Fix error when this module is required by some test module.
13818         * modules/gperf (Applicability): Set to 'all'.
13820 2019-01-27  Bruno Haible  <bruno@clisp.org>
13822         tmpfile: Add support for Android.
13823         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
13824         works.
13825         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
13826         Android.
13827         * modules/tmpfile (Depends-on): Add 'stdbool'.
13828         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
13829         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
13831 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
13833         bitsetv: allow free on NULL.
13834         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
13836 2019-01-27  Bruno Haible  <bruno@clisp.org>
13838         test-framework-sh: Improve maintainability.
13839         * tests/init.sh: Clarify what belongs together. Reorder definitions.
13841 2019-01-27  Bruno Haible  <bruno@clisp.org>
13843         tests: Don't assume that /tmp exists.
13844         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
13845         * tests/test-copy-acl-1.sh: Likewise.
13846         * tests/test-file-has-acl-1.sh: Likewise.
13847         * tests/test-copy-file-1.sh: Likewise.
13849 2019-01-27  Bruno Haible  <bruno@clisp.org>
13851         tests: Accommodate a shell that is not in /bin/sh.
13852         * tests/init.sh (setup_): Set srcdir and builddir.
13853         (BOURNE_SHELL): New variable.
13854         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
13855         * modules/file-has-acl-tests (Depends-on): Likewise.
13856         * modules/copy-file-tests (Depends-on): Likewise.
13857         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
13858         scripts through $BOURNE_SHELL.
13859         * tests/test-set-mode-acl-2.sh: Likewise.
13860         * tests/test-copy-acl-1.sh: Likewise.
13861         * tests/test-copy-acl-2.sh: Likewise.
13862         * tests/test-file-has-acl-1.sh: Likewise.
13863         * tests/test-file-has-acl-2.sh: Likewise.
13864         * tests/test-copy-file-1.sh: Likewise.
13865         * tests/test-copy-file-2.sh: Likewise.
13866         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
13867         invoker.
13868         * tests/test-copy-acl.sh (builddir): Likewise.
13869         * tests/test-file-has-acl.sh (builddir): Likewise.
13870         * tests/test-copy-file.sh (builddir): Likewise.
13871         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
13872         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
13873         * tests/test-vc-list-files-git.sh: Likewise.
13875 2019-01-27  Bruno Haible  <bruno@clisp.org>
13877         tests: Fix some "unused variable" warnings.
13878         * tests/test-fts.c (fts_dealloc): Remove unused variable.
13879         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
13880         * tests/test-striconveh.c (main): Move some variable into the
13881         '#if HAVE_ICONV'.
13882         * tests/test-striconveha.c (main): Likewise.
13883         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13884         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13885         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13886         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
13887         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13888         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
13889         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13890         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13891         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13892         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
13893         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
13894         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
13895         * tests/test-tsearch.c (main): Move some variable into the
13896         '#if HAVE_INITSTATE'.
13898 2019-01-27  Bruno Haible  <bruno@clisp.org>
13900         unigbrk/uc-grapheme-breaks: Fix build failure.
13901         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
13902         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
13904 2019-01-27  Bruno Haible  <bruno@clisp.org>
13906         mountlist: Merge two .m4 files.
13907         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
13908         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
13909         * m4/ls-mntd-fs.m4: Remove file.
13910         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
13912 2019-01-27  Bruno Haible  <bruno@clisp.org>
13914         tests: Enable Linux specific tests on Android.
13915         * tests/test-flock.c (main): Treat Android like Linux.
13916         * tests/test-openat-safer.c (main): Likewise.
13918 2019-01-27  Bruno Haible  <bruno@clisp.org>
13920         relocatable-prog: Use Linux code on Android.
13921         * lib/progreloc.c: Treat Android like Linux.
13923 2019-01-26  Bruno Haible  <bruno@clisp.org>
13925         getloadavg: Add support for Android.
13926         * lib/getloadavg.c: Treat Android like Linux.
13928 2019-01-26  Bruno Haible  <bruno@clisp.org>
13930         vma-iter: Add support for Android.
13931         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
13932         * lib/vma-iter.c: Treat Android like Linux.
13933         * lib/get-rusage-data.c (get_rusage_data): Likewise.
13935 2019-01-26  Bruno Haible  <bruno@clisp.org>
13937         fts: Optimize on Android.
13938         * lib/fts.c: Treat Android like Linux.
13940 2019-01-26  Bruno Haible  <bruno@clisp.org>
13942         fts: Add support for Android.
13943         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
13944         defined by this module and the ones in libc.
13945         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
13947 2019-01-26  Bruno Haible  <bruno@clisp.org>
13949         mountlist: Use Linux code on Android.
13950         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
13951         (unescape_tab, read_file_system_list): Enable Linux code on Android
13952         as well.
13953         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
13954         and endmntent.
13955         * modules/mountlist (Depends-on): Add 'getline'.
13957 2019-01-26  Bruno Haible  <bruno@clisp.org>
13959         localename tests: Fix test failure on Android.
13960         * modules/localename-tests (Depends-on): Add 'setlocale'.
13962 2019-01-26  Bruno Haible  <bruno@clisp.org>
13964         mountlist: Port better to Android.
13965         * lib/mountlist.c (MOUNTED): Redefine on Android.
13966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
13967         Android.
13969 2019-01-26  Bruno Haible  <bruno@clisp.org>
13971         striconveh: Fix use of uninitialized iconv_t.
13972         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
13973         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
13974         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
13976 2019-01-26  Bruno Haible  <bruno@clisp.org>
13978         nonblocking-socket-tests: Fix test failure on Android 4.3.
13979         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
13980         also on Android.
13982 2019-01-26  Bruno Haible  <bruno@clisp.org>
13984         sh-filename: Add support for Android 4.3.
13985         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
13987 2019-01-26  Bruno Haible  <bruno@clisp.org>
13989         ptsname_r: Work around bug on Android 4.3.
13990         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
13991         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
13992         correct.
13993         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
13994         is defined, just fix the return value.
13995         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
13996         The behaviour of musl libc is nothing to be "fixed", since it is
13997         compliant with the next POSIX standard.
13999 2019-01-26  Bruno Haible  <bruno@clisp.org>
14001         ttyname_r: Work around bug on Android 4.3.
14002         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
14003         * lib/ttyname_r.c (ttyname_r): Implement for Android.
14004         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
14005         * doc/posix-functions/ttyname.texi: Likewise.
14007 2019-01-25  Bruno Haible  <bruno@clisp.org>
14009         getprogname: Port to Android 4.3.
14010         * lib/getprogname.c (getprogname): On Android, take only the last
14011         component of __progname.
14013 2019-01-25  Bruno Haible  <bruno@clisp.org>
14015         wcrtomb: Work around bug on Android 4.3.
14016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
14017         the C locale.
14018         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
14019         which does not have the 'wctomb' function.
14020         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
14021         * tests/test-wcrtomb.c (main): Accept argument '5'.
14022         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
14024 2019-01-25  Bruno Haible  <bruno@clisp.org>
14026         setlocale: Work around bug on Android 4.3.
14027         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
14028         the "C" locale.
14029         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
14030         * doc/posix-functions/setlocale.texi: Mention the Android bug.
14032 2019-01-24  Bruno Haible  <bruno@clisp.org>
14034         memchr: Work around bug on Android <= 5.0.
14035         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
14036         * doc/posix-functions/memchr.texi: Mention the Android bug.
14038 2019-01-24  Bruno Haible  <bruno@clisp.org>
14040         random: Fix compilation error on Android 4.3.
14041         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
14042         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
14043         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
14044         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
14045         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
14047         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14048         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
14049         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14050         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
14051         REPLACE_INITSTATE, REPLACE_SETSTATE.
14052         * doc/posix-functions/random.texi: Correct the description of the
14053         situation on Android.
14054         * doc/posix-functions/srandom.texi: Likewise.
14055         * doc/posix-functions/rand.texi: Likewise.
14056         * doc/posix-functions/srand.texi: Likewise.
14058 2019-01-24  Bruno Haible  <bruno@clisp.org>
14060         mbtowc: Fix compilation error on Android 4.3.
14061         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
14062         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
14063         HAVE_MBTOWC.
14064         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
14065         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
14066         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
14067         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
14068         * doc/posix-functions/mbtowc.texi: Mention the change.
14070 2019-01-24  Bruno Haible  <bruno@clisp.org>
14072         fdatasync: Fix compilation error on Android 4.3.
14073         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
14074         test whether fdatasync() exists.
14076 2019-01-24  Bruno Haible  <bruno@clisp.org>
14078         unlinkat: Fix compilation error on Android 4.3.
14079         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
14080         also on Android.
14081         * doc/posix-functions/unlinkat.texi: Mention the issue.
14083 2019-01-24  Bruno Haible  <bruno@clisp.org>
14085         renameat: Fix compilation error on Android 4.3.
14086         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
14087         * doc/posix-functions/renameat.texi: Mention the issue.
14089 2019-01-24  Bruno Haible  <bruno@clisp.org>
14091         fchownat: Fix compilation error on Android 4.3.
14092         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
14093         use.
14094         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
14095         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
14096         * doc/posix-functions/fchownat.texi: Mention the issue.
14098 2019-01-23  Bruno Haible  <bruno@clisp.org>
14100         gnulib-tool: Support running testdirs on Android.
14101         * build-aux/test-driver.diff: New file.
14102         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
14103         build-aux/test-driver after running automake.
14105 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14107         relocatable-prog: avoid warnings from Automake
14108         * modules/relocatable-prog: Don't declare PHONY dependencies in
14109         Automake conditionals.
14111 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14113         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
14114         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
14116 2019-01-23  Bruno Haible  <bruno@clisp.org>
14118         threadlib: Revert commit from 2018-06-25. We now have a better fix.
14119         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
14120         preceding -Wl,--as-needed option. Don't check whether the linker
14121         supports --as-needed/--no-as-needed and --push-state/--pop-state.
14123 2019-01-23  Bruno Haible  <bruno@clisp.org>
14125         thread: Force linking with -lpthread, even when --as-needed is in use.
14126         Reported by Richard W.M. Jones <rjones@redhat.com> in
14127         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
14128         * lib/glthread/thread.h (pthread_create): Don't declare weak.
14130 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
14131             Bruno Haible  <bruno@clisp.org>
14133         relocatable: avoid compiler warnings (-Wshadow)
14134         * lib/relocatable.c (compute_curr_prefix): Rename local variables
14135         to avoid name collisions with global variables.
14137 2019-01-22  Bruno Haible  <bruno@clisp.org>
14139         vasnprintf: Don't use %n on Android.
14140         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
14141         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
14142         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
14144 2019-01-22  Bruno Haible  <bruno@clisp.org>
14146         *printf: Support cross-compilation to Android.
14147         * m4/printf.m4: Add cross-compilation guesses for Android.
14149 2019-01-21  Bruno Haible  <bruno@clisp.org>
14151         diacrit: Mark deprecated.
14152         * modules/diacrit (Status, Notice): Mark as deprecated.
14153         * NEWS: Mention it.
14155 2019-01-20  Bruno Haible  <bruno@clisp.org>
14157         rintl: Override broken implementation on NetBSD.
14158         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
14159         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
14160         REPLACE_RINTL.
14161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
14162         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
14163         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
14164         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
14166 2019-01-20  Bruno Haible  <bruno@clisp.org>
14168         log10l: Work around inaccurate implementation on NetBSD.
14169         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
14170         * lib/log10l.c: Comment out too simplistic override.
14171         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
14173 2019-01-20  Bruno Haible  <bruno@clisp.org>
14175         logl: Work around inaccurate implementation on NetBSD.
14176         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
14177         * lib/logl.c: Comment out unused code.
14178         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
14180 2019-01-20  Bruno Haible  <bruno@clisp.org>
14182         expm1l: Work around inaccurate implementation on NetBSD.
14183         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
14184         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
14185         REPLACE_EXPM1L.
14186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
14187         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
14188         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
14189         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
14191 2019-01-20  Bruno Haible  <bruno@clisp.org>
14193         expl: Work around inaccurate implementation on NetBSD.
14194         * lib/math.in.h (expl): Test also REPLACE_EXPL.
14195         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
14196         REPLACE_EXPL.
14197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
14198         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
14199         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
14200         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
14202 2019-01-20  Bruno Haible  <bruno@clisp.org>
14204         exp2l: Work around inaccurate implementation on NetBSD.
14205         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
14206         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
14208 2019-01-20  Bruno Haible  <bruno@clisp.org>
14210         floor, floorl: Avoid autoconf warnings.
14211         * modules/floor (configure.ac): Use AC_REQUIRE.
14212         * modules/floorl (configure.ac): Likewise.
14214 2019-01-20  Bruno Haible  <bruno@clisp.org>
14216         Defeat current GCC optimizations in math autoconf tests.
14217         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
14218         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14219         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14220         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14221         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14222         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14223         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14224         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14225         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14226         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14227         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14228         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14229         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14230         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14231         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
14232         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
14233         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
14234         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14235         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14236         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14237         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14238         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14239         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14240         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14241         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14242         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14243         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14244         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14245         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14246         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14247         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14248         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14249         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14250         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14251         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14252         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14253         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14254         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14256 2019-01-19  Pádraig Brady  <P@draigBrady.com>
14258         gettext: support disabling use of VLAs
14259         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
14261 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14263         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
14264         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
14266 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14268         fcntl: Fix syntax error (regression from 2018-10-05).
14269         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
14271 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
14273         relocatable: improve documentation.
14274         * doc/relocatable-maint.texi (Supporting Relocation): For
14275         substitutions performed by config.status, we need more variables
14276         (for instance datarootdir defaults to '${prefix}/share' so we need
14277         prefix).
14279 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
14281         backup: update dependencies
14282         * modules/backup-rename (Depends-on): It now depends on opendirat
14283         instead of opendir.  It also uses stdint, and xalloc-oversized.
14284         But no longer dirfd.
14285         * modules/backupfile (Depends-on): Add xalloc-oversized.
14287 2019-01-13  Bruno Haible  <bruno@clisp.org>
14289         getcwd: Fix test failure when building on a Linux 9p file system.
14290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
14291         EINVAL from mkdir like ENAMETOOLONG.
14292         * tests/test-getcwd.c (test_long_name): Likewise.
14294 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
14296         Fix typos found by codespell.
14297         * lib/*.[hc]: Fix typos in comments.
14298         * pygnulib/*.py: Fix typos in error messages and comments.
14300 2019-01-12  Bruno Haible  <bruno@clisp.org>
14302         doc: Fix documentation about container data types.
14303         Reported by Werner Lemberg <wl@gnu.org>.
14304         * doc/containers.texi (Container data types): Fix typo.
14306 2019-01-10  Bruno Haible  <bruno@clisp.org>
14308         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
14309         Reported by Reuben Thomas <rrt@sc3d.org>.
14310         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
14312 2019-01-06  Bruno Haible  <bruno@clisp.org>
14314         maintainer-makefile: Make the configure.ac section optional.
14315         * top/maint.mk (GREP, SED): Define if not defined.
14317 2019-01-06  Bruno Haible  <bruno@clisp.org>
14319         localename: Assume setlocale function.
14320         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
14321         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
14323 2019-01-06  Bruno Haible  <bruno@clisp.org>
14325         doc: Add documentation about container data types.
14326         * doc/containers.texi: New file.
14327         * doc/gnulib.texi (Particular Modules): Include it.
14329 2019-01-06  Bruno Haible  <bruno@clisp.org>
14331         doc: Update documentation about 'progname' module.
14332         * doc/progname.texi: Rename from doc/error.texi. Change node name and
14333         title. Rewrite.
14334         * doc/gnulib.texi (Particular Modules): Update.
14336 2019-01-06  Bruno Haible  <bruno@clisp.org>
14338         doc: Document the xstdopen and *-safer modules.
14339         * doc/xstdopen.texi: New file.
14340         * doc/gnulib.texi (Particular Modules): Include it.
14342 2019-01-06  Bruno Haible  <bruno@clisp.org>
14344         xstdopen: Add tests.
14345         * tests/test-xstdopen.c: New file.
14346         * tests/test-xstdopen.sh: New file.
14347         * modules/xstdopen-tests: New file.
14349         xstdopen: New module.
14350         * lib/xstdopen.h: New file.
14351         * lib/xstdopen.c: New file.
14352         * modules/xstdopen: New file.
14354 2019-01-06  Bruno Haible  <bruno@clisp.org>
14356         stdopen: Fix compilation error with IRIX cc.
14357         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
14359 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14361         xfreopen need not include stdio--.h
14362         * lib/xfreopen.c: Do not include stdio--.h.
14364         xfreopen need not depend on freopen-safer
14365         * modules/xfreopen (Depends-on):
14366         Depend on freopen, not freopen-safer.
14368         stdopen: modernize and simplify
14369         * lib/stdopen.c: Update copyright date
14370         Do not include sys/types.h; no longer needed these days.
14371         (stdopen): Use C99-style decl in loop.  Return int errno
14372         value, rather than just a bool.  Do not worry about fd mismatches,
14373         since the caller cares only if 0, 1, 2 are occupied.
14374         * lib/stdopen.h: No need to include <stdbool.h>.
14375         * m4/stdopen.m4: Remove.
14376         * modules/stdopen: New file.
14378         stdopen: copy from last use in coreutils
14379         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
14380         New files, taken from their last commit in coreutils
14381         2007-07-23T12:35:58Z!jim@meyering.net
14382         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
14384 2019-01-05  Bruno Haible  <bruno@clisp.org>
14386         argp: Don't pass an invalid argument to dgettext().
14387         Reported by He X <xw897002528@gmail.com>.
14388         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
14389         dgettext().
14391 2019-01-05  Bruno Haible  <bruno@clisp.org>
14393         argp: Don't pass an invalid argument to dgettext().
14394         Reported by He X <xw897002528@gmail.com>.
14395         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
14396         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
14397         dgettext().
14399 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14401         stdioext: port to newer 32-bit Android
14402         Problem reported by Tom Yan in:
14403         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
14404         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
14405         (fp_) [__ANDROID__]: Use it.
14407 2019-01-04  Bruno Haible  <bruno@clisp.org>
14409         lock: Fix link error with --enable-threads=pth.
14410         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
14411         Mark as weak.
14413 2019-01-04  Bruno Haible  <bruno@clisp.org>
14415         Fix link errors in unit tests.
14416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14417         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
14418         * modules/array-map-tests (Makefile.am): Link test-array_map against
14419         libintl.
14420         * modules/array-set-tests (Makefile.am): Link test-array_set against
14421         libintl.
14422         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
14423         libintl.
14424         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
14425         libintl.
14426         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
14427         against libintl.
14428         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
14429         against libintl.
14431 2019-01-04  Bruno Haible  <bruno@clisp.org>
14433         Fix incorrect 'Link' sections.
14434         * modules/regex (Link): Mention the link requirement of module 'lock'.
14435         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
14437 2019-01-04  Bruno Haible  <bruno@clisp.org>
14439         Fix some 'Link' sections.
14440         * modules/c-stack (Link): Add link directive from the 'gettext-h'
14441         dependency.
14442         * modules/getaddrinfo (Link): Likewise.
14444 2019-01-04  Bruno Haible  <bruno@clisp.org>
14446         Remove redundant 'Link' sections.
14447         * modules/canon-host (Link): Remove section.
14448         * modules/timevar (Link): Likewise.
14450 2019-01-04  Bruno Haible  <bruno@clisp.org>
14452         Remove incorrect 'Link' sections.
14453         * modules/acl (Link): Remove section. Use combined 'Link' sections from
14454         the dependencies instead.
14455         * modules/crypto/md5 (Link): Likewise.
14456         * modules/crypto/sha1 (Link): Likewise.
14457         * modules/crypto/sha256 (Link): Likewise.
14458         * modules/crypto/sha512 (Link): Likewise.
14459         * modules/faccessat (Link): Likewise.
14460         * modules/fdutimensat (Link): Likewise.
14461         * modules/iconv_open-utf (Link): Likewise.
14462         * modules/propername (Link): Likewise.
14463         * modules/qacl (Link): Likewise.
14464         * modules/unicodeio (Link): Likewise.
14465         * modules/utimecmp (Link): Likewise.
14466         * modules/utimensat (Link): Likewise.
14467         * modules/xstriconv (Link): Likewise.
14468         * modules/xstriconveh (Link): Likewise.
14470 2019-01-04  Bruno Haible  <bruno@clisp.org>
14472         gnulib-tool: New option --extract-recursive-link-directive.
14473         * gnulib-tool (func_usage): Document the new options
14474         --extract-recursive-dependencies, --extract-recursive-link-directive.
14475         (func_verify_module): Document output variables.
14476         (func_get_dependencies_recursively): New function.
14477         (func_get_link_directive_recursively): New function.
14478         Use them to implement the new options
14479         --extract-recursive-dependencies, --extract-recursive-link-directive.
14480         * doc/gnulib-tool.texi (Link-time requirements): New section.
14482 2019-01-04  Bruno Haible  <bruno@clisp.org>
14484         Clarify meaning of 'Link' section in module description.
14485         * doc/gnulib.texi (Module description): Clarify the meaning of the
14486         'Link' section versus the one of the dependencies.
14487         * NEWS: Mention the change.
14489 2019-01-04  Bruno Haible  <bruno@clisp.org>
14491         pselect: Fix module description.
14492         * modules/pselect (Link): Put one link option per line.
14494 2019-01-04  Bruno Haible  <bruno@clisp.org>
14496         cosl: Fix module description.
14497         * modules/cosl (Link): Fix typo.
14498         * modules/mathl (configure.ac): Likewise.
14500 2019-01-04  Bruno Haible  <bruno@clisp.org>
14502         c-xvasprintf: Fix module dependencies.
14503         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
14505 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
14507         bootstrap: die when some submodules are not initialized
14508         * build-aux/bootstrap: Make sure all submodules are initialized.
14510 2019-01-04  Bruno Haible  <bruno@clisp.org>
14512         bitsetv: Fix module dependencies.
14513         * lib/bitsetv.c: Include xalloc.h.
14514         * modules/bitsetv (Depends-on): Add 'xalloc'.
14516 2019-01-04  Bruno Haible  <bruno@clisp.org>
14518         xmemdup0: Remove redundant code.
14519         * lib/xmemdup0.h (xalloc_die): Remove declaration.
14521 2019-01-04  Bruno Haible  <bruno@clisp.org>
14523         backupfile: Fix module dependencies.
14524         * modules/backupfile (Depends-on): Add 'xalloc'.
14526 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14528         bitset, crypto/gc: fix conflicts with Solaris 11
14529         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
14530         avoid clash with Solaris 11 <sys/bitset.h>.
14531         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
14532         with Solaris 11 <xorg/gc.h>.
14534 2019-01-04  Bruno Haible  <bruno@clisp.org>
14536         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
14537         Reported by Andy Fiddaman <andy@omniosce.org>.
14538         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
14540 2019-01-03  Eric Blake  <eblake@redhat.com>
14542         maintainer-makefile: fix typo in previous patch
14543         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
14544         of Roman's work.
14546 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
14548         maintainer-makefile: prefer $(GREP) over grep
14549         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
14550         defined.
14551         * top/maint.mk: Use it everywhere.
14553         maintainer-makefile: split long argument lines
14554         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
14555         it would be too long for exec limits on BSD.
14557 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14559         mkfifo: bring back HAVE_MKFIFO macro
14560         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
14561         Problem reported by Andrew Janke in:
14562         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
14564 2018-12-21  Bruno Haible  <bruno@clisp.org>
14566         Assume Autoconf >= 2.63.
14567         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
14568         versions < 2.60.
14570 2018-12-21  Bruno Haible  <bruno@clisp.org>
14572         memcmp: Mention the clang bug.
14573         * tests/test-memcmp.c: Add comment about a known test failure.
14574         * doc/posix-functions/memcmp.texi: Mention the clang bug.
14576 2018-12-20  Jim Meyering  <meyering@fb.com>
14578         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
14579         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
14580           echo '123-x'|LC_ALL=C grep -E '.\bx'
14581         The goal is to revert the first, but reverting it requires to restore
14582         the function deleted in the second. I ran this to restore the deleted
14583         function:
14584           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
14585             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
14586             | patch -R -p1
14587         * lib/dfa.c (charclass_context): Restore deleted function.
14588         Reverting the primary commit removes this change:
14589         dfa: Simplify a building state
14590         * lib/dfa.c (build_state): Simplify a building state.
14592 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14594         version-etc: allow zero authors
14595         * lib/version-etc.c (version_etc_arn): If no authors are given,
14596         omit authorship info instead of dumping core.
14598 2018-12-19  Bruno Haible  <bruno@clisp.org>
14600         lchown tests: Be more permissive regarding errno values.
14601         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
14602         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
14603         alternative to ENOSYS.
14604         * modules/lchown-tests (Depends-on): Add 'errno'.
14605         * modules/fchownat-tests (Depends-on): Likewise.
14607 2018-12-18  Bruno Haible  <bruno@clisp.org>
14609         duplocale: Avoid test failure on AIX 7.
14610         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
14611         (configure.ac): Invoke gt_FUNC_USELOCALE.
14612         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
14613         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
14614         works.
14616 2018-12-18  Bruno Haible  <bruno@clisp.org>
14618         localename: Fix test failure on AIX 7.
14619         Reported by Assaf Gordon in
14620         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
14621         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
14622         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
14623         instead of ac_cv_func_uselocale.
14624         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
14625         HAVE_USELOCALE.
14626         * lib/localename-table.h: Likewise.
14627         * lib/localename-table.c: Likewise.
14628         * tests/test-localename.c: Likewise.
14629         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
14631 2018-12-18  Bruno Haible  <bruno@clisp.org>
14633         localename: Update comments regarding Cygwin.
14634         * lib/localename.c: Update comment.
14635         * doc/posix-functions/uselocale.texi: Update platforms list.
14636         * doc/posix-functions/newlocale.texi: Likewise.
14637         * doc/posix-functions/duplocale.texi: Likewise.
14638         * doc/posix-functions/freelocale.texi: Likewise.
14640 2018-12-16  Bruno Haible  <bruno@clisp.org>
14642         c-stack: Fix for Linux/sparc.
14643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
14644         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
14646 2018-12-16  Bruno Haible  <bruno@clisp.org>
14648         localename: Avoid test failure on some glibc systems.
14649         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
14650         Unset environment variables that might disturb the first setlocale call,
14651         and verify that this setlocale call succeeds.
14653 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
14655         random: Fix build error on native Windows (regression from 2018-06-21).
14656         * lib/random.c (__srandom, __initstate, __setstate, __random,
14657         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
14658         to the symbols without '__' prefix.
14660 2018-12-16  Bruno Haible  <bruno@clisp.org>
14662         obstack, libc-config: Support HP-UX cc in C99 mode.
14663         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
14664         compiler, even when in C99 mode.
14665         * lib/cdefs.h (__flexarr): Likewise.
14666         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
14668 2018-12-16  Bruno Haible  <bruno@clisp.org>
14670         localename: Fix test failure on OpenBSD >= 6.2.
14671         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
14672         locale system. Define HAVE_FAKE_LOCALES in this case.
14673         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
14674         HAVE_USELOCALE.
14675         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
14676         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
14677         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
14678         platforms list.
14679         * doc/posix-functions/newlocale.texi: Likewise.
14680         * doc/posix-functions/duplocale.texi: Update platforms list.
14681         * doc/posix-functions/freelocale.texi: Likewise.
14683 2018-12-16  Bruno Haible  <bruno@clisp.org>
14685         duplocale tests: Re-enable the test on platforms without <monetary.h>.
14686         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
14687         of the test, on platforms without <monetary.h>.
14689 2018-12-16  Bruno Haible  <bruno@clisp.org>
14691         localename: Update comments.
14692         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
14694 2018-12-15  Jim Meyering  <meyering@fb.com>
14696         regex: fix indentation
14697         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
14699 2018-12-15  Bruno Haible  <bruno@clisp.org>
14701         openat-safer tests: Avoid test failure on NetBSD 8.
14702         * tests/test-openat-safer.c (main): Execute a Linux specific test only
14703         on Linux.
14705 2018-12-15  Jim Meyering  <meyering@fb.com>
14707         regex: work around a bug in glibc-2.27 and prior
14708         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
14709         assertion for /0|()0|\1|0/.
14710         * tests/test-regex.c (main): Add the same test here.
14712 2018-12-15  Bruno Haible  <bruno@clisp.org>
14714         localename: Fix use of uninitialized shell variable.
14715         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
14716         gt_cv_locale_solaris114 always before use. Remove assignment without
14717         effect.
14719 2018-12-15  Bruno Haible  <bruno@clisp.org>
14721         dfa tests: Avoid test failure on Alpine Linux.
14722         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
14723         command found on Alpine Linux.
14725 2018-12-15  Jim Meyering  <meyering@fb.com>
14727         dfa: avoid new warnings from gcc
14728         These would prevent building with -Werror and a Dec snapshot of gcc.
14729         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
14730         Rename each inner instance to "p".
14731         (charclass_context): Remove unused static function.
14733 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
14735         mkdir-p: improve diagnostic for FUSE mounts
14736         Problem reported by Niklas Hambüchen in:
14737         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
14738         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
14739         errno to mkdir errno if the stat errno is likely more interesting.
14741 2018-12-14  Bruno Haible  <bruno@clisp.org>
14743         hash-map: Add tests.
14744         * tests/test-hash_map.c: New file.
14745         * modules/hash-map-tests: New file.
14747         linkedhash-map: Add tests.
14748         * tests/test-linkedhash_map.c: New file.
14749         * modules/linkedhash-map-tests: New file.
14751         array-map: Add tests.
14752         * tests/test-array_map.c: New file.
14753         * modules/array-map-tests: New file.
14755         xmap: New module.
14756         * lib/gl_xmap.h: New file.
14757         * lib/gl_xmap.c: New file.
14758         * modules/xmap: New file.
14760         hash-map: New module.
14761         * lib/gl_hash_map.h: New file.
14762         * lib/gl_hash_map.c: New file.
14763         * modules/hash-map: New file.
14765         linkedhash-map: New module.
14766         * lib/gl_linkedhash_map.h: New file.
14767         * lib/gl_linkedhash_map.c: New file.
14768         * lib/gl_anyhash1.h: Update comments.
14769         * lib/gl_anyhash2.h: Likewise.
14770         * modules/linkedhash-map: New file.
14772         array-map: New module.
14773         * lib/gl_array_map.h: New file.
14774         * lib/gl_array_map.c: New file.
14775         * modules/array-map: New file.
14777         map: New module.
14778         * lib/gl_map.h: New file.
14779         * lib/gl_map.c: New file.
14780         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
14781         conflict with gl_map.h.
14782         * modules/map: New file.
14784 2018-12-13  Bruno Haible  <bruno@clisp.org>
14786         select tests: Avoid test failure on Cygwin.
14787         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
14789 2018-12-13  Bruno Haible  <bruno@clisp.org>
14791         localtime-buffer: Avoid endless recursion in localtime and gmtime.
14792         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
14794 2018-12-13  Bruno Haible  <bruno@clisp.org>
14796         localeconv tests: Avoid test failure on Cygwin.
14797         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
14798         'mon_grouping' tests.
14800 2018-12-11  Bruno Haible  <bruno@clisp.org>
14802         omap: Don't dispose the old value when the function returns it.
14803         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
14804         here.
14805         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
14806         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
14807         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
14808         here.
14810         array-omap, avltree-omap, rbtree-omap: Tweak style.
14811         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
14812         false.
14813         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
14815         rbtree-omap: Add tests.
14816         * tests/test-rbtree_omap.c: New file.
14817         * modules/rbtree-omap-tests: New file.
14819         avltree-omap: Add tests.
14820         * tests/test-avltree_omap.c: New file.
14821         * modules/avltree-omap-tests: New file.
14823         array-omap: Add tests.
14824         * tests/test-array_omap.c: New file.
14825         * modules/array-omap-tests: New file.
14827         xomap: New module.
14828         * lib/gl_xomap.h: New file.
14829         * lib/gl_xomap.c: New file.
14830         * modules/xomap: New file.
14832         rbtree-omap: New module.
14833         * lib/gl_rbtree_omap.h: New file.
14834         * lib/gl_rbtree_omap.c: New file.
14835         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
14836         Parameterize.
14837         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
14838         * modules/rbtree-omap: New file.
14839         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
14840         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
14842         avltree-omap: New module.
14843         * lib/gl_avltree_omap.h: New file.
14844         * lib/gl_avltree_omap.c: New file.
14845         * lib/gl_avltree_ordered.h: Code moved to here from
14846         lib/gl_avltree_oset.c. Parameterize.
14847         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
14848         * lib/gl_anytree_omap.h: New file.
14849         * modules/avltree-omap: New file.
14850         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
14851         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
14853         array-omap: New module.
14854         * lib/gl_array_omap.h: New file.
14855         * lib/gl_array_omap.c: New file.
14856         * modules/array-omap: New file.
14858         omap: New module.
14859         * lib/gl_omap.h: New file.
14860         * lib/gl_omap.c: New file.
14861         * modules/omap: New file.
14863 2018-12-11  Bruno Haible  <bruno@clisp.org>
14865         hash-set, linkedhash-set: Reduce code duplication.
14866         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
14867         lib/gl_anyhash_set1.h.
14868         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
14869         lib/gl_anyhash_set2.h. Parameterize.
14870         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
14871         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
14872         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
14873         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
14874         * lib/gl_rbtreehash_list.c: Likewise.
14875         * lib/gl_linkedhash_list.c: Likewise.
14876         (hash_resize_after_add): Remove function.
14877         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
14878         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
14879         * gl_hash_set.c: Likewise.
14880         * modules/avltreehash-list (Files, Makefile.am): Update file list.
14881         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
14882         * modules/linkedhash-list (Files, Makefile.am): Likewise.
14883         * modules/linkedhash-set (Files, Makefile.am): Likewise.
14884         * modules/hash-set (Files, Makefile.am): Likewise.
14886 2018-12-11  Bruno Haible  <bruno@clisp.org>
14888         array-set: Optimize.
14889         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
14890         outside the loop, not inside the loop.
14892 2018-12-11  Bruno Haible  <bruno@clisp.org>
14894         times: Fix tests.
14895         * tests/test-times.c (doublecmp): Implement a total order.
14897 2018-12-11  Bruno Haible  <bruno@clisp.org>
14899         array-set, linkedhash-set, hash-set: Fix tests.
14900         * tests/test-array_set.c (cmp_objects_in_array): New function.
14901         (check_equals): Use it.
14902         * tests/test-hash_set.c: Likewise.
14903         * tests/test-linkedhash_set.c: Likewise.
14905 2018-12-08  Bruno Haible  <bruno@clisp.org>
14907         Fix comments.
14908         * lib/gl_list.h (gl_list_free): Clarify what it does.
14909         * lib/gl_oset.h (gl_oset_free): Likewise.
14910         * lib/gl_set.h (gl_set_free): Likewise.
14911         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
14912         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
14913         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
14914         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
14916 2018-12-03  Bruno Haible  <bruno@clisp.org>
14918         hash-set: Add tests.
14919         * tests/test-hash_set.c: New file.
14920         * modules/hash-set-tests: New file.
14922         linkedhash-set: Add tests.
14923         * tests/test-linkedhash_set.c: New file.
14924         * modules/linkedhash-set-tests: New file.
14926         array-set: Add tests.
14927         * tests/test-array_set.c: New file.
14928         * modules/array-set-tests: New file.
14930         xset: New module.
14931         * lib/gl_xset.h: New file.
14932         * lib/gl_xset.c: New file.
14933         * modules/xset: New file.
14935         hash-set: New module.
14936         * lib/gl_hash_set.h: New file.
14937         * lib/gl_hash_set.c: New file.
14938         * modules/hash-set: New file.
14940         linkedhash-set: New module.
14941         * lib/gl_linkedhash_set.h: New file.
14942         * lib/gl_linkedhash_set.c: New file.
14943         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
14944         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
14945         * lib/gl_anyhash_primes.h: New file, extracted from
14946         lib/gl_anyhash_list2.h.
14947         * lib/gl_anyhash_list2.h: Include it.
14948         (primes, next_prime): Remove definitions.
14949         * modules/linkedhash-set: New file.
14950         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
14951         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
14952         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
14953         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
14954         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
14955         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
14957         array-set: New module.
14958         * lib/gl_array_set.h: New file.
14959         * lib/gl_array_set.c: New file.
14960         * modules/array-set: New file.
14962         set: New module.
14963         * lib/gl_set.h: New file.
14964         * lib/gl_set.c: New file.
14965         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
14966         gl_set.h.
14967         * modules/set: New file.
14969 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
14971         bison: don't force the Yacc mode
14972         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
14973         errors when Bison features are used in the grammar file.  Some of
14974         these features (such as %expect) were flagged non-yacc recently.  Most
14975         of the time, -y is actually used to please Automake's ylwrap which
14976         expects the output to be y.tab.c.
14977         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
14979 2018-12-01  Bruno Haible  <bruno@clisp.org>
14981         gnupload: Document short options.
14982         * build-aux/gnupload (usage): Document the short options.
14984 2018-11-28  Ben Elliston  <bje@gnu.org>
14986         gnupload: Support option -h as alias of --help.
14987         * build-aux/gnupload: Support -h.
14989 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14991         memrchr: port better to clang
14992         * lib/memrchr.c (__memrchr): Cast to void * instead of to
14993         longword *, to pacify clang -Wcast-align (Bug#33544).
14995 2018-11-29  Eric Blake  <eblake@redhat.com>
14997         docs: mention printf %m considerations
14998         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
14999         is not portable, and is easy enough to work around.
15000         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
15001         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
15002         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
15003         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15004         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15005         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15006         * doc/posix-functions/printf.texi (printf): Likewise.
15007         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15008         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15009         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
15010         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15011         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15012         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15013         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15014         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15015         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15016         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
15017         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15018         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15020 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
15022         bitset: rename ebitset/expandable.* as tbitset/table.*
15023         See
15024         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
15025         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
15026         * lib/bitset/table.h, lib/bitset/table.c: these.
15027         Rename all the ebitset* symbols as tbitset*.
15028         Adjust dependencies.
15030 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15032         bitset: check the operations
15033         * tests/test-bitset.c (bitset_random): New.
15034         Use it.
15035         * lib/bitset/expandable.c (ebitset_not): Fix typo.
15037 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15039         bitset: properly use false/true instead of 0/1 for Booleans
15040         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
15041         0/1, as Booleans.
15043 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15045         bitset: rename BITSET_VARRAY as BITSET_VECTOR
15046         For consistency with the name of the file.
15047         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
15048         * lib/bitset/stats.c, lib/bitset/vector.c
15049         (BITSET_VARRAY): Rename as...
15050         (BITSET_VECTOR): this.
15052 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15054         strerror_r-posix: memmove, not memcpy
15055         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
15056         since the source and destination might overlap in the call
15057         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
15058         Simplify.
15060 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15062         bitsetv: new module
15063         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
15065 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15067         bitset: add tests and doc
15068         First stabs at providing a documentation and test for the bitset
15069         module.
15070         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
15072 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15074         bitset: new module
15075         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
15076         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
15077         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
15078         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
15079         * lib/bitset/vector.h, modules/bitset:
15080         New.
15082 2018-11-23  Bruno Haible  <bruno@clisp.org>
15084         localename: Fix gettext test failures on mingw.
15085         * lib/localename.c (gl_locale_name_posix): Convert the result of
15086         gl_locale_name_environ to XPG syntax.
15088 2018-11-23  Karl Berry  <karl@freefriends.org>
15090         * config/srclistvars.txt,
15091         * config/srclist.txt: remove all gettext references;
15092         the gettext maintainers will sync as needed.
15094 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15096         mktime: add libc-config dependency
15097         I missed this when we synced from glibc.
15098         * modules/mktime (Depends-on): Add libc-config.
15100 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15102         longlong: fix comment typo
15103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
15105 2018-11-11  Bruno Haible  <bruno@clisp.org>
15107         havelib: Remove the need to include asm-underscore.m4.
15108         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
15109         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
15110         gl_HOST_CPU_C_ABI.
15111         * modules/havelib (Files): Add host-cpu-c-abi.m4.
15112         (Depends-on): Remove host-cpu-c-abi.
15114 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15116         parse-datetime: simplify test for mktime failure
15117         * lib/parse-datetime.y (mktime_ok): Simplify.
15118         Remove args TZ and T; no longer needed.  Callers changed.
15120         posixtm: simplify test for mktime failure
15121         * lib/posixtm.c (posixtime): Simplify.
15123         nstrftime: simplify test for mktime failure
15124         * lib/nstrftime.c (__strftime_internal): Simplify.
15126 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15128         gnulib-common.m4: port _Noreturn to C++
15129         Problem reported by Akim Demaille in:
15130         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
15131         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
15132         Merge adjustments from _Noreturn.h and from glibc into the non-C++
15133         version.
15134         * lib/_Noreturn.h: Match gnulib-common.
15136 2018-10-30  Bruno Haible  <bruno@clisp.org>
15138         gnu-make: Fix for NetBSD 8 'make'.
15139         Reported by Reuben Thomas in
15140         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
15141         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
15142         output, ignoring exit codes.
15144 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
15146         maintainer-makefile: fix syntax-check rule for "same.h"
15147         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
15148         for 'same_nameat', too.
15150 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15152         havelib: fix nested ‘configure’ chatter
15153         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
15154         AC_CACHE_CHECK calls, which resulted in confusing output like
15155         “checking for the common suffixes of directories in the library
15156         search path... checking for 64-bit host... no lib,lib”.
15158         backupfile: tweak for better code
15159         * lib/backupfile.c: Sort include directives, and remove
15160         unnecessary <limits.h> include.
15161         (FALLTHROUGH): New macro, copied from other modules.
15162         (backupfile_internal): Use it to avoid code duplication.
15163         This lets GCC 8.2.1 generate better code by inlining the
15164         call to check_extension.
15166 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15168         backupfile: new dir_fd args
15169         New module opendirat with code taken from fts.
15170         Use this module to let backupfile use a directory file descriptor.
15171         * NEWS: Document the incompatible change.
15172         * lib/backup-find.c (find_backup_file_name):
15173         * lib/backup-rename.c (backup_file_rename):
15174         New arg DIR_FD.
15175         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
15176         (SIZE_MAX): Remove.
15177         Include opendirat.h rather than dirent--.h.
15178         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
15179         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
15180         (backupfile_internal): New arg DIR_FD.  All callers changed.
15181         * lib/fts.c: Include opendirat.h.
15182         (opendirat): Move to opendirat.c.
15183         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
15184         * modules/backupfile (Depends-on): Remove dirfd, opendir.
15185         Add opendirat.
15186         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
15187         Add opendirat.
15189 2018-10-23  Bruno Haible  <bruno@clisp.org>
15191         localename: Simplify support for per-thread locales on Solaris 11.4.
15192         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
15193         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
15194         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
15195         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
15196         specific code.
15197         * lib/localename-table.h: Update comments.
15198         * lib/localename-table.c: Update comments.
15199         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
15200         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
15201         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
15202         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
15203         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
15204         HAVE_NAMELESS_LOCALES here.
15205         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
15206         m4/intlsolaris.m4.
15207         * modules/gettext (Files): Likewise.
15209 2018-10-22  Bruno Haible  <bruno@clisp.org>
15211         std-gnu11: Support Autoconf versions < 2.64.
15212         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
15213         when _AC_DO_LIMIT does not exist.
15215 2018-10-22  Bruno Haible  <bruno@clisp.org>
15217         Assume Autoconf >= 2.63.
15218         * DEPENDENCIES: Mention the requirement.
15220         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
15221         (func_get_filelist): Don't list m4/onceonly.m4 any more.
15222         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
15223         * m4/onceonly.m4: Remove file.
15225         * m4/openmp.m4: Remove file.
15226         * modules/openmp (Files): Remove m4/openmp.m4.
15228         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
15229         htmldir, dvidir, pdfdir, psdir, localedir.
15230         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
15232         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
15233         Autoconf < 2.60.
15234         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
15235         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
15237         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
15238         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
15239         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
15241         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
15242         exists.
15243         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
15245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
15246         Autoconf < 2.61.
15248         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
15249         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
15250         Autoconf >= 2.52.
15252         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
15253         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
15254         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
15256 2018-10-22  Bruno Haible  <bruno@clisp.org>
15258         Assume Automake >= 1.11.
15259         * m4/configmake.m4: Update comments.
15260         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
15261         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
15262         of 'eval'.
15263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
15264         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
15265         requires Automake >= 1.11.
15267 2018-10-22  Bruno Haible  <bruno@clisp.org>
15269         localename: Fix typo in comment.
15270         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
15272 2018-10-22  Bruno Haible  <bruno@clisp.org>
15274         Fix failure of 'gnulib-tool --create-testdir' with all modules.
15275         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
15277 2018-10-21  Bruno Haible  <bruno@clisp.org>
15279         locale: Ease integration with GNU libintl.
15280         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
15281         GNULIB_defined_freelocale): New macros.
15283 2018-10-21  Bruno Haible  <bruno@clisp.org>
15285         localename: Fine-tune support for per-thread locales on Solaris 11.4.
15286         * lib/localename-table.h: New file, extracted from lib/localename.c.
15287         * lib/localename-table.c: Likewise.
15288         * lib/localename.c: Include localename-table.h.
15289         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
15290         locale_hash_function instead of pointer_hash.
15291         * modules/localename (Files): Add lib/localename-table.h,
15292         lib/localename-table.c.
15293         (lib_SOURCES): Add localename-table.c.
15294         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
15295         for Solaris 11.4 locale system only on Solaris. Test for it
15296         independently whether getlocalename_l exists.
15297         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
15298         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
15299         HAVE_NAMELESS_LOCALES.
15300         * modules/gettext (Files): Add m4/intlsolaris.m4.
15302 2018-10-21  Bruno Haible  <bruno@clisp.org>
15304         Small update from gettext.
15305         * m4/intl.m4: Update from gettext:
15306         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
15307         mode on AIX.
15308         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
15309         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
15311 2018-10-16  Bruno Haible  <bruno@clisp.org>
15313         mountlist: Remove support for Cray with UNICOS 9.
15314         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15315         MOUNTED_LISTMNTENT.
15316         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
15318 2018-10-16  Bruno Haible  <bruno@clisp.org>
15320         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
15321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
15322         STAT_STATFS2_FS_DATA.
15323         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
15324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15325         MOUNTED_GETMNT.
15326         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
15327         * lib/getloadavg.c (decstation): Remove definition and case.
15328         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
15329         * lib/getgroups.c: Likewise.
15330         * doc/posix-functions/getgroups.texi: Likewise.
15331         * lib/time.in.h: Update comments.
15333 2018-10-16  Bruno Haible  <bruno@clisp.org>
15335         getloadavg: Remove support for ConvexOS.
15336         * lib/getloadavg.c: Remove convex case.
15338 2018-10-16  Bruno Haible  <bruno@clisp.org>
15340         getloadavg: Remove support for Sony NEWS.
15341         * lib/getloadavg.c: Remove sony_news case.
15343 2018-10-16  Bruno Haible  <bruno@clisp.org>
15345         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
15346         * lib/fsusage.c: Remove _SEQUENT_ case.
15347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
15348         * lib/mountlist.c: Don't test for MNTTABNAME.
15349         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
15350         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
15351         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
15352         * lib/stat-size.h: Don't mention the Sequent bug.
15353         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
15355 2018-10-16  Bruno Haible  <bruno@clisp.org>
15357         fsusage: Remove support for AIX 3.
15358         * lib/fsusage.c: Remove code for AIX 3.
15359         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
15361 2018-10-16  Bruno Haible  <bruno@clisp.org>
15363         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
15364         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
15365         * lib/fsusage.c: Remove code for AIX PS/2.
15366         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
15367         * lib/getloadavg.c: Likewise.
15369 2018-10-16  Bruno Haible  <bruno@clisp.org>
15371         getloadavg: Remove support for HP-UX on m68k.
15372         * lib/getloadavg.c: Remove hp9000s300 case.
15374 2018-10-16  Bruno Haible  <bruno@clisp.org>
15376         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
15377         * lib/fsusage.c: Remove DOLPHIN case.
15378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
15379         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
15381 2018-10-16  Bruno Haible  <bruno@clisp.org>
15383         getloadavg: Remove support for Alliant FX/2800.
15384         * lib/getloadavg.c: Remove alliant case.
15386 2018-10-16  Bruno Haible  <bruno@clisp.org>
15388         getloadavg: Remove support for tek4300.
15389         * lib/getloadavg.c: Remove tek4300 case.
15391 2018-10-16  Bruno Haible  <bruno@clisp.org>
15393         getloadavg: Remove support for Ardent.
15394         * lib/getloadavg.c: Remove ardent case.
15396 2018-10-16  Bruno Haible  <bruno@clisp.org>
15398         mountlist: Remove support for SVR2.
15399         Reported by Andrew Borodin <aborodin@vmail.ru> in
15400         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
15401         * lib/mountlist.c: Remove MOUNTED_FREAD case.
15402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15403         MOUNTED_FREAD.
15405 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15407         libc-config: merge from glibc
15408         * lib/cdefs.h (__glibc_has_attribute): New macro.
15410         regex: depend on libc-config
15411         * modules/regex (Depends-on): Add libc-config.
15412         This is needed after the recent autoupdate from glibc.
15414 2018-10-14  Bruno Haible  <bruno@clisp.org>
15416         localename: Add support for per-thread locales on Solaris 11.4.
15417         * lib/locale.in.h (newlocale, freelocale): New declarations.
15418         (duplocale): Declare also when the 'localename' module requests it.
15419         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
15420         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
15421         (struniq): Update.
15422         (struct locale_categories_names, struct locale_hash_node): New types.
15423         (LOCALE_HASH_TABLE_SIZE): New constant.
15424         (locale_hash_table, locale_lock): New variables.
15425         (pointer_hash, get_locale_t_name): New functions.
15426         (newlocale, duplocale, freelocale): New overridden functions.
15427         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
15428         * m4/intlsolaris.m4: New file.
15429         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
15430         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
15431         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
15432         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
15433         declared.
15434         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
15435         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
15436         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
15437         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
15438         * modules/localename (Files): Add intlsolaris.m4.
15439         (Depends-on): Add 'locale'.
15440         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
15441         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
15442         the signatures.
15444 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
15446         timevar: use gethrxtime to get wall clock time
15447         clock_gettime is not portable.  gethrxtime takes the best available
15448         option to get the wall clock time, including clock_gettime (monotonic
15449         clock), and gettime (non monotonic).
15450         Also, using xtime_t instead of float preserves the precision.
15451         Suggested by Bruno Haible.
15452         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
15453         * modules/timevar (Depends-on): We need gethrxtime.
15454         We no longer use times().
15455         (Link): Update.
15456         * lib/timevar.h (timevar_time_def): Use xtime_t.
15457         * lib/timevar.c (set_to_current_time): Use gethrxtime.
15458         (timevar_print): Instead of checking whether the timings themselves
15459         are large enough for the timevar to be printed, check the percentages.
15461 2018-10-14  Bruno Haible  <bruno@clisp.org>
15463         wcsnrtombs: Work around Solaris 11.4 bug.
15464         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
15465         macro.
15466         (gl_FUNC_WCSNRTOMBS): Invoke it.
15467         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
15469 2018-10-14  Bruno Haible  <bruno@clisp.org>
15471         mbsnrtowcs: Work around Solaris 11.4 bug.
15472         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
15473         macro.
15474         (gl_FUNC_MBSNRTOWCS): Invoke it.
15475         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
15477 2018-10-14  Bruno Haible  <bruno@clisp.org>
15479         doc: Update for Solaris 11.4.
15480         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
15481         mention Solaris 11.4.
15482         * m4/printf.m4: Update comments about Solaris.
15483         * m4/log.m4: Likewise.
15484         * m4/log10.m4: Likewise.
15485         * m4/logb.m4: Likewise.
15486         * m4/logbf.m4: Likewise.
15487         * m4/logbl.m4: Likewise.
15488         * m4/rename.m4: Likewise.
15489         * m4/wcrtomb.m4: Likewise.
15490         * m4/hostent.m4: Likewise.
15491         * m4/servent.m4: Likewise.
15493 2018-10-14  Bruno Haible  <bruno@clisp.org>
15495         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
15496         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
15497         pointer.
15498         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
15499         pointer.
15500         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
15501         pointer.
15502         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
15503         pointer.
15504         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
15505         pointer.
15507 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
15509         bootstrap: fix wget command for po files.
15510         * build-aux/bootstrap (po_download_command_format): Fix comment,
15511         and adjust callers.
15513 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
15515         timevar: improve the output format
15516         Suggested by Bruno Haible.
15517         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
15518         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
15519         wall, since its resolution is much higher.
15521 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
15523         timevar: expect that getrusage is available.
15524         Don't keep both times and getrusage as backend: both are guaranteed by
15525         gnulib, a single one suffices.  Using getrusage is open to possibly
15526         tracking other types of resources in the future.
15527         * modules/timevar (Depends-on): Add getrusage.
15528         (configure.ac): Remove gl_TIMEVAR.
15529         (Files): Remove m4/timevar.m4.
15530         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
15531         * lib/timevar.h (timevar_enabled): Clarify documentation.
15532         * lib/timevar.c: Remove all the code about times.
15533         Remove all the CPP guards about getrusage: expect it to be present
15534         (courtesy of gnulib).
15536 2018-10-12  Bruno Haible  <bruno@clisp.org>
15538         mountlist: Improve support for Solaris in 64-bit mode.
15539         Reported by David Wood <David.Wood@deshaw.com> in
15540         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
15541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
15542         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
15543         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
15545 2018-10-12  Bruno Haible  <bruno@clisp.org>
15547         mountlist: Add support for Minix.
15548         Reported by Assaf Gordon in
15549         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
15550         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
15551         AC_CHECK_FUNCS to check for 'getmntinfo'.
15552         * lib/mountlist.c: Update comments.
15554 2018-10-12  Bruno Haible  <bruno@clisp.org>
15556         Make better use of Autoconf.
15557         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
15558         * m4/manywarnings.m4: Likewise.
15559         * m4/manywarnings-c++.m4: Likewise.
15560         * m4/socklen.m4: Likewise.
15561         * m4/sockpfaf.m4: Likewise.
15562         * m4/stdarg.m4: Likewise.
15563         * m4/visibility.m4: Likewise.
15564         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
15565         indentation.
15566         * m4/ls-mntd-fs.m4: Likewise.
15568 2018-10-11  Bruno Haible  <bruno@clisp.org>
15570         mountlist: Modernize platform lists.
15571         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
15572         platforms, deemphasizing the obsolete ones.
15573         * lib/mountlist.c: Likewise.
15575 2018-10-11  Bruno Haible  <bruno@clisp.org>
15577         getprogname: Add support for 32-bit programs on HP-UX.
15578         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
15579         try the similar functions 32-bit programs on 64-bit HP-UX.
15581 2018-10-11  Bruno Haible  <bruno@clisp.org>
15583         getprogname: Work around program name truncation when possible.
15584         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
15585         possibly use pst_cmd instead.
15587 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15589         fts: cleanup after FTS_NOATIME removal
15590         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
15591         (FTS_STOP): Shrink to minimal values.  We don’t need to
15592         worry about binary compatibility in Gnulib, and the old way
15593         of doing things had a hole in the user options that caused
15594         FTS_OPTIONMASK to not work as desired.
15596 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
15598         fts: remove FTS_NOATIME
15599         This reverts commit da4d6974013c822af1498941e32db774b2031765.
15600         We cannot guarantee that O_NOATIME works: e.g. openat fails
15601         with EPERM if the effective user ID of the caller does not match
15602         the owner of the file and the caller is not privileged.
15603         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
15604         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
15605         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
15606         (FTS_OPTIONMASK): Adjust.
15607         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
15608         (fd_ring_check): Likewise.
15610 2018-10-08  Bruno Haible  <bruno@clisp.org>
15612         csharpcomp*, csharpexec*: Remove support for pnet.
15613         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
15614         HAVE_CSCC.
15615         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
15616         Don't test HAVE_CSCC.
15617         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
15618         (compile_csharp_class): Don't invoke it.
15619         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
15620         HAVE_ILRUN.
15621         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
15622         Don't test HAVE_ILRUN.
15623         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
15624         (execute_csharp_program): Don't invoke it.
15625         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
15626         any more.
15628 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
15630         renameatu: prefer renameat2 to syscall
15631         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
15632         Use renameat2 instead of syscall (Bug#32796).
15633         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
15635 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
15637         bootstrap, gnulib-tool: use https instead of insecure rsync
15638         * build-aux/bootstrap (download_po_files, po_download_command_format):
15639         Don't try using rsync; always use wget over https to fetch PO files.
15640         * gnulib-tool (func_import): Likewise.
15641         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15643 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
15645         bootstrap, gnulib-tool: correct the translations wget command
15646         * build-aux/bootstrap (po_download_command_format2): Restrict
15647         recursion to a single level.
15648         * gnulib-tool (func_import): Likewise.
15649         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15651 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
15653         doc: the gnulib snapshots are not maintained
15654         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
15656 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
15658         timevar: add to lib_SOURCES
15659         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
15661 2018-10-07  Bruno Haible  <bruno@clisp.org>
15663         dirent: Update documentation.
15664         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
15666 2018-10-05  Bruno Haible  <bruno@clisp.org>
15668         strpbrk: Make it possible to namespace the defined symbol.
15669         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
15671 2018-10-05  Bruno Haible  <bruno@clisp.org>
15673         strcspn: Make it possible to namespace the defined symbol.
15674         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
15676 2018-10-05  Bruno Haible  <bruno@clisp.org>
15678         raise: Make it possible to namespace the defined symbol.
15679         * lib/raise.c (raise): Undefine only after the replacement function has
15680         been defined.
15681         (raise): Renamed from rpl_raise.
15682         (raise_nothrow): Move to the end of the compilation unit.
15684 2018-10-05  Bruno Haible  <bruno@clisp.org>
15686         memcmp: Make it possible to namespace the defined symbol.
15687         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
15689 2018-10-05  Bruno Haible  <bruno@clisp.org>
15691         explicit_bzero: Make it possible to namespace the defined symbol.
15692         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
15693         glibc.
15695 2018-10-05  Bruno Haible  <bruno@clisp.org>
15697         mkdir-p: Depend on 'mkdir'.
15698         * modules/mkdir-p (Depends-on): Add 'mkdir'.
15700 2018-10-05  Bruno Haible  <bruno@clisp.org>
15702         tempname: Depend on 'mkdir'.
15703         Reported by Maarten Bosmans <mkbosmans@gmail.com>
15704         at <https://savannah.gnu.org/bugs/?33379>.
15705         * modules/tempname (Depends-on): Add 'mkdir'.
15707 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
15709         timevar: rely on gnulib modules for time portability.
15710         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
15711         * m4/timevar.m4: Don't check for clock_t and struct tms,
15712         guaranteed by gnulib.
15713         * lib/timevar.h: Use extern "C" protection.
15714         Include <stdio.h> for FILE.
15715         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
15716         they are guaranteed by gnulib.
15717         Remove uses of clock as (now useless) fallback.
15719 2018-10-04  Bruno Haible  <bruno@clisp.org>
15721         sh-filename: New module.
15722         * m4/sh-filename.m4: New file.
15723         * modules/sh-filename: New file.
15724         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
15725         "/bin/sh".
15726         * tests/test-posix_spawn1.c (main): Likewise.
15727         * tests/test-posix_spawn2.c (main): Likewise.
15728         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
15729         is_envjavac_gcj43): Likewise.
15730         * lib/javaexec.c (execute_java_class): Likewise.
15731         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
15732         * modules/posix_spawnp-tests (Depends-on): Likewise.
15733         * modules/javacomp (Depends-on): Likewise.
15734         * modules/javaexec (Depends-on): Likewise.
15736 2018-10-04  Bruno Haible  <bruno@clisp.org>
15738         spawn-pipe tests: Avoid test failure on native Windows.
15739         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
15740         that fd 2 is closed.
15742 2018-10-04  Bruno Haible  <bruno@clisp.org>
15744         fcntl: Make it possible to namespace the defined symbol.
15745         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
15746         been defined.
15747         (fcntl): Renamed from rpl_fcntl.
15748         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
15749         from fcntl.
15750         (klibc_fcntl): Move to the end of the compilation unit.
15752 2018-10-02  Bruno Haible  <bruno@clisp.org>
15754         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
15755         * tests/test-vasnprintf.c (test_function): Change the test added on
15756         2018-09-23 to check only the 18 most significant digits.
15758         vasnprintf tests: Avoid test failure on Cygwin.
15759         * tests/test-vasnprintf.c (test_function): Change the test added on
15760         2018-09-23 to check only the 42 most significant digits.
15762 2018-10-01  Bruno Haible  <bruno@clisp.org>
15764         mkostemp, mkostemps: Update documentation.
15765         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
15766         * doc/glibc-functions/mkostemps.texi: Likewise.
15768 2018-10-01  Tom Tromey  <tom@tromey.com>
15770         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
15771         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
15772         on OS X.
15774 2018-09-30  Pádraig Brady  <P@draigBrady.com>
15776         hmac-*: refactor to remove repetitive code
15777         * lib/hmac.c: A new parameterized single implementation.
15778         * lib/hmac-md5.c: Define parameters and include implementation.
15779         * lib/hmac-sha1.c: Likewise.
15780         * lib/hmac-sha256.c: Likewise.
15781         * lib/hmac-sha512.c: Likewise.
15782         * modules/crypto/hmac-md5: Reference the new implementation file.
15783         * modules/crypto/hmac-sha1: Likewise.
15784         * modules/crypto/hmac-sha256: Likewise.
15785         * modules/crypto/hmac-sha512: Likewise.
15786         * tests/test-hmac-md5.c: Refactor common code to a single function.
15787         * tests/test-hmac-sha1.c: Likewise.
15788         * tests/test-hmac-sha256.c: Likewise.
15789         * tests/test-hmac-sha512.c: Likewise.
15791 2018-09-30  Zhang Qing  <zhangqingl@126.com>
15793         hmac-sha512: fix hash for keys > blocksize (128 bytes)
15794         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
15795         key length to that output by sha512, not the blocksize.
15796         Otherwise uninitialized data from the stack
15797         is used when computing the hash.
15798         * tests/test-hmac-sha512.c: Add a shortened key test case.
15799         Reported at https://github.com/coreutils/gnulib/pull/5
15801 2018-09-30  Bruno Haible  <bruno@clisp.org>
15803         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
15804         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
15805         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
15806         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
15807         'unsigned int' before comparison with an unsigned value.
15809 2018-09-30  Bruno Haible  <bruno@clisp.org>
15811         grantpt: Remove unnecessary dependency.
15812         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
15814 2018-09-30  Bruno Haible  <bruno@clisp.org>
15816         timevar: Small tweaks.
15817         * lib/timevar.h: Fix comments. Add parameter names to function
15818         declarations.
15819         * lib/timevar.c: Include timevar.h immediately after config.h.
15820         * lib/timevar.def: Fix comments.
15821         * modules/timevar (Maintainer): List Akim Demaille.
15823 2018-09-30  Bruno Haible  <bruno@clisp.org>
15825         timevar: Include documentation in gnulib manual.
15826         * doc/timevar.texi: Change node and section name to 'Profiling of
15827         program phases'.
15828         In the code snippets, tweak the #includes and use GNU coding style.
15829         * doc/gnulib.texi: Include timevar.texi.
15831 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
15833         timevar: import from Bison.
15834         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
15835         New files.
15836         * lib/timevar.def: New file.
15837         * doc/timevar.texi: New file.
15839 2018-09-26  Bruno Haible  <bruno@clisp.org>
15841         javacomp-script, javacomp: Add preliminary support for Java 12..17.
15842         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
15843         * lib/javacomp.c (default_target_version): Likewise.
15845 2018-09-26  Bruno Haible  <bruno@clisp.org>
15847         javacomp-script, javacomp: Add support for Java 11.
15848         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
15849         target-version 11.
15850         * lib/javaversion.h: Update comments.
15851         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15852         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15853         TARGET_VERSION_BOUND, target_version_index,
15854         corresponding_classfile_version): Accept source_version 11 and
15855         target_version 11.
15856         * lib/javacomp.h: Update comments accordingly.
15858 2018-09-23  Bruno Haible  <bruno@clisp.org>
15860         vasnprintf: Fix heap memory overrun bug.
15861         Reported by Ben Pfaff <blp@cs.stanford.edu> in
15862         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
15863         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
15864         memory.
15865         * tests/test-vasnprintf.c (test_function): Add another test.
15867 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
15869         maint: mktime.c now shared with glibc
15870         * config/srclist.txt: intprops.h, timegm.c and mktime.c
15871         are now the same in Gnulib and glibc.
15873         mktime: fix _LIBC typo
15874         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
15876 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15878         dfa: optimization for state merge
15879         * lib/dfa.c (merge2): New function.
15880         (merge_nfa_state): Use it.
15882 2018-09-18  Jim Meyering  <meyering@fb.com>
15884         dfa: trivial comment fix: s/is/if/
15885         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
15887 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15889         dfa: use more-informative function name
15890         * lib/dfa.c (maybe_disable_superset_dfa):
15891         Rename from dfautf8noss.  Use change.
15893         dfa: tweak allocation performance
15894         * lib/dfa.c (merge_nfa_state, dfaoptimize):
15895         Prefer ptrdiff_t for indexes some more.
15896         Use char for flags, as it’s wide enough.
15897         Allocate queue and flags together, with one malloc call.
15898         No need to use xnmalloc since the multiplication and
15899         addition cannot overflow (it’s already been checked by
15900         earlier allocation).  Prefer memset to open-coding.
15902         dfa: prune states as we go
15903         * lib/dfa.c (prune): Remove.
15904         dfa: reorder enum for efficiency
15905         (merge_nfa_state): Prune as we go instead of at the end.
15906         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
15908         * lib/dfa.c (END): Now -1 again.  Reorder other elements
15909         of the enumeration to make it easier for GCC to generate
15910         efficient code by using fewer comparisons to check for
15911         ranges of values.
15912         (atom): Take advantage of the reordering.
15914 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15916         dfa: optimize alternation in NFA
15917         Even when similar states exist in alternation, the DFA treats them
15918         as separate items, which may complicate the transition in NFA and
15919         cause slowdown.  This change assembles the states into one.  For
15920         example, ab|ac is changed into a(b|c).  This change speeds-up
15921         matching for many branched patterns.  For example, grep speeds up
15922         more than 30× in:
15924           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
15925           time -p env LC_ALL=C grep -vf in in
15927         * lib/dfa.c (prune): New function.
15928         (merge_nfa_state): New function.  It merges similar NFA states.
15929         (dfaoptimize): New function.  It seeks merged and removed nodes.
15930         (dfaanalyze): Call new function.
15931         (dfautf8noss): Change name from dfaoptimize because of addition of new
15932         function.
15933         (dfacomp): Update caller.
15935         dfa: simplify initial state
15936         Simplifying the initial state enables easier optimization of the NFA.
15937         * lib/dfa.c (enum token): Add new element BEG.
15938         (prtok): Adjust due to adding element BEG.
15939         (dfaparse): Put BEG at a head of tokens.
15940         (state_index): Adjust due to adding element BEG.
15941         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
15942         build initial state.
15943         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
15945 2018-09-18  Bruno Haible  <bruno@clisp.org>
15947         file-has-acl: Fix test failure on Cygwin 2.9.
15948         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
15949         * lib/acl-internal.h: Likewise.
15950         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
15951         * lib/acl-internal.c: Update comments regarding Cygwin.
15952         * lib/acl_entries.c: Likewise.
15953         * lib/file-has-acl.c: Likewise.
15954         (file_has_acl): For Cygwin, use a different way to determine whether
15955         the "default" ACL of a directory is nontrivial.
15956         * lib/get-permissions.c: Update comments regarding Cygwin.
15957         * lib/set-permissions.c: Likewise.
15959 2018-09-18  Bruno Haible  <bruno@clisp.org>
15961         stat-time tests: Fix test failure on Cygwin.
15962         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
15964 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15966         doc: OS X 10.11 lacked ns time functions
15967         According to <https://github.com/zeromq/libzmq/issues/2175>,
15968         nanosecond-resolution timestamp functions were introduced
15969         in macOS 10.12, so document the last version (OS X 10.11)
15970         where they were absent.
15972         gettime: nanotime never existed
15973         Problem reported by Bruno Haible in:
15974         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
15975         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
15976         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
15978 2018-09-18  Bruno Haible  <bruno@clisp.org>
15980         doc: Update statement about target platforms.
15981         Reported by Simon Sobisch.
15982         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
15983         restrictions on MSVC versions.
15985 2018-09-18  Bruno Haible  <bruno@clisp.org>
15987         posix_spawn tests: Fix link error on 64-bit Cygwin.
15988         * tests/test-posix_spawn1.c (environ): Remove declaration.
15989         * tests/test-posix_spawn2.c (environ): Likewise.
15990         * tests/test-posix_spawn3.c (environ): Likewise.
15991         * tests/test-posix_spawn4.c (environ): Likewise.
15992         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
15993         * modules/posix_spawnp-tests (Depends-on): Likewise.
15995 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15997         timespec: new function current_timespec
15998         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
15999         and don’t worry about it failing on a CLOCK_REALTIME arg.
16000         POSIX requires it to succeed and I don’t know of any
16001         counterexamples where the fallbacks would work.
16002         (current_timespec): New function, taken from Emacs.  It is more
16003         convenient than gettime, and can help register allocation.
16004         * lib/timespec.h: Include arg-nonnull.h.
16005         (current_timespec): New declaration.
16006         (gettime, settime): Declare args to be nonnull.
16007         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
16009 2018-09-16  Bruno Haible  <bruno@clisp.org>
16011         setlocale: Improve locale handling on macOS 10.12 or newer.
16012         * lib/setlocale.c: Include header files for CoreFoundation. Declare
16013         gl_locale_name_canonicalize.
16014         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
16015         and LC_MESSAGES.
16016         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
16018 2018-09-16  Bruno Haible  <bruno@clisp.org>
16020         Update list of locale names with scripts on macOS.
16021         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
16022         match Mac OS X 10.13 and recent glibc.
16024 2018-09-16  Bruno Haible  <bruno@clisp.org>
16026         gettext: Use newer macOS APIs when possible.
16027         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
16028         CFLocaleCopyPreferredLanguages.
16030 2018-09-16  Bruno Haible  <bruno@clisp.org>
16032         localename: Revisit macOS specific code.
16033         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
16034         Fix comments about Mac OS X versions.
16036 2018-09-15  Bruno Haible  <bruno@clisp.org>
16038         setlocale: Improve support for locales not supported by libc.
16039         Reported by Dapeng Gao <peter@dpgao.cc> at
16040         <https://savannah.gnu.org/bugs/?54479>.
16041         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
16042         (libintl_setlocale): Use a more error-tolerant strategy when the locale
16043         to be set is not supported by libc: Emit warnings instead of failing.
16045 2018-09-15  Bruno Haible  <bruno@clisp.org>
16047         strstr, strcasestr: Add workaround against glibc-2.28 bug.
16048         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
16049         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
16050         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
16051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
16052         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
16053         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
16054         * doc/glibc-functions/strcasestr.texi: Likewise.
16056 2018-09-14  Bruno Haible  <bruno@clisp.org>
16058         doc: Fix bottom of top-level page.
16059         Reported by Akim Demaille <akim.demaille@gmail.com> in
16060         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
16061         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
16062         mode.
16063         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
16064         accordingly.
16066 2018-09-12  Bruno Haible  <bruno@clisp.org>
16068         Add test case from a recent glibc bug.
16069         * tests/test-strstr.c (main): Add test of long needle.
16070         * tests/test-strcasestr.c (main): Likewise.
16071         * tests/test-c-strstr.c (main): Likewise.
16072         * tests/test-c-strcasestr.c (main): Likewise.
16073         * tests/test-memmem.c (main): Likewise.
16075 2018-09-12  Bruno Haible  <bruno@clisp.org>
16077         Apply Eric Blake's improvements from 2011-02-25 to more tests.
16078         * tests/test-c-strstr.c (main): Add the same tests here as well.
16080 2018-09-12  Bruno Haible  <bruno@clisp.org>
16082         Apply Jim Meyering's fix from 2015-01-11 to more tests.
16083         * tests/test-memmem.c (main): Free haystack.
16084         * tests/test-strcasestr.c (main): Likewise.
16085         * tests/test-c-strcasestr.c (main): Likewise.
16087 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16089         xstrtol: fix missing-TYPE_SIGNED typo
16090         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
16092 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16094         timespec: fix resolution confusion
16095         In normal usage, clock resolution is given in seconds, but the
16096         code was mistakenly using inverse seconds and calling it
16097         “resolution”.  Fix this, partly by renaming two identifiers.
16098         The old names will be kept for a bit, to ease transition.
16099         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
16100         New constants, replacing TIMESPEC_RESOLUTION and
16101         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
16102         All uses changed.
16104 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16106         mktime: simplify in prep for glibc merge
16107         * lib/mktime.c, lib/timegm.c [_LIBC]:
16108         Include mktime-internal.h (a small file just for glibc)
16109         instead of using a typedef.
16111 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16113         intprops: minor clarification of code
16114         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
16115         Use _GL_INT_CONVERT rather than reinventing it.
16117 2018-09-07  Bruno Haible  <bruno@clisp.org>
16119         Fix a comment.
16120         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
16122 2018-09-07  Bruno Haible  <bruno@clisp.org>
16124         posix_spawn_file_actions_addchdir: Add tests.
16125         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
16126         * tests/test-posix_spawn4.c: New file.
16127         * modules/posix_spawn_file_actions_addchdir-tests: New file.
16129 2018-09-07  Bruno Haible  <bruno@clisp.org>
16131         posix_spawn_file_actions_addchdir: New module.
16132         Suggested by Eric Blake in
16133         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
16134         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
16135         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
16136         union member 'chdir_action'.
16137         * lib/spawn_faction_addchdir.c: New file.
16138         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
16139         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
16140         HAVE_WORKING_POSIX_SPAWN.
16141         * lib/spawn_faction_adddup2.c: Likewise.
16142         * lib/spawn_faction_addopen.c: Likewise.
16143         * m4/posix_spawn_faction_addchdir.m4: New file.
16144         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
16145         'posix_spawn_file_actions_addchdir' is present and whether
16146         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
16147         instead of HAVE_WORKING_POSIX_SPAWN.
16148         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
16149         posix_spawn_file_actions_addchdir is declared.
16150         (gl_SPAWN_H_DEFAULTS): Initialize
16151         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16152         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16153         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16154         * modules/spawn (Makefile.am): Substitute
16155         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16156         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16157         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16158         * modules/posix_spawn_file_actions_addchdir: New file.
16159         * modules/posix_spawn_file_actions_addclose (Depends-on,
16160         configure.ac): Test also REPLACE_POSIX_SPAWN.
16161         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
16162         configure.ac): Likewise.
16163         * modules/posix_spawn_file_actions_addopen (Depends-on,
16164         configure.ac): Likewise.
16165         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
16166         signature.
16167         * doc/posix-functions/posix_spawn.texi: Mention the new module.
16168         * doc/posix-functions/posix_spawnp.texi: Likewise.
16170 2018-09-06  Bruno Haible  <bruno@clisp.org>
16172         stddef: Override max_align_t on NetBSD 8.0/x86.
16173         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
16174         the value of __alignof__ (max_align_t).
16175         * doc/posix-headers/stddef.texi: Mention the issue.
16177 2018-09-06  Bruno Haible  <bruno@clisp.org>
16179         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
16180         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
16181         system fcntl.
16182         * doc/posix-functions/fcntl.texi: Document the issue.
16184 2018-09-06  Bruno Haible  <bruno@clisp.org>
16186         count-trailing-zeros tests: Rely on limits-h module.
16187         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
16188         definition.
16189         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
16191 2018-09-06  Bruno Haible  <bruno@clisp.org>
16193         count-leading-zeros tests: Rely on limits-h module.
16194         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
16195         definition.
16196         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
16198 2018-09-06  Bruno Haible  <bruno@clisp.org>
16200         count-one-bits tests: Rely on limits-h module.
16201         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
16202         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
16204 2018-09-06  Bruno Haible  <bruno@clisp.org>
16206         xstrtoll: Rely on limits-h module.
16207         * lib/xstrtol.c: Don't include intprops.h.
16208         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16209         * modules/xstrtol (Depends-on): Remove 'intprops'.
16210         * modules/xstrtoll (Depends-on): Add 'limits-h'.
16212 2018-09-06  Bruno Haible  <bruno@clisp.org>
16214         strtoll, strtoull: Rely on limits-h module.
16215         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
16216         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16217         * modules/strtoll (Depends-on): Add limits-h.
16218         * modules/strtoull (Depends-on): Likewise.
16220 2018-09-06  Bruno Haible  <bruno@clisp.org>
16222         intprops tests: Fix compilation error with pre-C99 compiler.
16223         * tests/test-intprops.c (verify_stmt): New macro.
16224         (VERIFY, main): Use it.
16226 2018-09-06  Bruno Haible  <bruno@clisp.org>
16228         limits-h: Provide numerical limits macros.
16229         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
16230         IRIX and for GCC.
16231         (WORD_BIT, LONG_BIT): Define.
16232         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
16233         <limits.h> does not define LLONG_MAX or WORD_BIT.
16234         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
16235         TYPE_MAXIMUM): New macros, from intprops.h.
16236         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
16237         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
16238         provides.
16240 2018-09-05  Bruno Haible  <bruno@clisp.org>
16242         fcntl: Don't access nonexistent optional argument.
16243         Reported by Frank Busse <f.busse@imperial.ac.uk> in
16244         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
16245         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
16246         don't consume an argument. For actions that take an 'int' argument,
16247         consume an 'int' argument.
16249 2018-09-05  Eric Blake  <eblake@redhat.com>
16251         doc: mention environ pitfall
16252         * doc/posix-functions/environ.texi (environ): Assigning NULL to
16253         environ is a glibc extension.
16255 2018-09-03  Bruno Haible  <bruno@clisp.org>
16257         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
16258         Reported by Antoine Luong <antoine.luong@c-s.fr> in
16259         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
16260         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
16261         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
16262         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
16264 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16266         mktime: fix unlikely race+overflow bug
16267         Problem reported by Alexandre Oliva in:
16268         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
16269         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
16270         to avoid an unlikely race if the compiler delays a load and
16271         if this cascades into a signed integer overflow.
16273 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16275         mktime, timegm: simplify glibc time64_t
16276         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
16277         Now long int, not time_t, since long int is the longstanding type
16278         for this in glibc and there is no need to change it even if time_t
16279         becomes 64 bits - even int would do, though this would be a change
16280         to the glibc generated code.  When this change is merged into
16281         glibc, it should simplify the time_t vs time64_t situation.
16283         mktime, timegm: simplify merge to glibc
16284         Move code around to make a merge to glibc easier to audit.
16285         This should not change behavior.
16286         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
16287         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
16288         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
16289         simplify later conditionals; default the others to zero.  In uses
16290         of these conditionals, explicitly spell out how _LIBC affects
16291         things, so it’s easier to review from a glibc viewpoint.
16292         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
16293         compartmentalize tzset issues.  Move system-dependent tzsettish
16294         code here from mktime.
16295         (mktime): Move tzsettish code to my_tzset, and move
16296         localtime_offset to within mktime so that it doesn’t
16297         need a separate ifdef.
16299 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
16301         intprops: avoid evaluation of some expressions
16302         This makes EXPR_SIGNED (e) easier to use, as it no longer
16303         evaluates the expression E.  Formerly, E was required to be free
16304         of side effects.
16305         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
16306         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
16307         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
16309 2018-08-23  Bruno Haible  <bruno@clisp.org>
16311         getcwd: Add cross-compilation guesses.
16312         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
16313         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
16314         Based on a patch by Paul Eggert.
16315         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
16316         guesses for all GNU systems.
16318 2018-08-19  Bruno Haible  <bruno@clisp.org>
16320         glob-h: Formalize side effects from other modules.
16321         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
16322         * m4/glob.m4 (gl_GLOB): Invoke it.
16324         fnmatch-h: Formalize side effects from other modules.
16325         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
16326         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
16328         limits-h: Formalize side effects from other modules.
16329         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
16330         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
16332 2018-08-19  Bruno Haible  <bruno@clisp.org>
16334         getpass: Move declaration to <unistd.h>.
16335         * lib/unistd.in.h (getpass): New declaration.
16336         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
16337         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
16338         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
16339         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
16340         On glibc systems, don't set REPLACE_GETPASS to 1.
16341         * modules/getpass (Depends-on): Add 'unistd'.
16342         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
16343         (Include): Specify <unistd.h> instead of "getpass.h".
16344         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
16345         (configure.ac): Sync with the configure.ac section of modules/getpass.
16346         (Include): Specify <unistd.h> instead of "getpass.h".
16347         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
16348         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
16349         REPLACE_GETPASS.
16350         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
16351         REPLACE_GETPASS.
16352         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
16353         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
16354         and musl.
16355         * NEWS: Mention the change.
16357 2018-08-19  Bruno Haible  <bruno@clisp.org>
16359         glob: Fix over-optimization due to attribute __nonnull__.
16360         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
16362 2018-08-19  Bruno Haible  <bruno@clisp.org>
16364         glob: Fix another compilation error when glob.h is not replaced.
16365         Reported by Reuben Thomas <rrt@sc3d.org> in
16366         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
16367         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
16368         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
16370 2018-08-18  Bruno Haible  <bruno@clisp.org>
16372         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
16373         Reported by Reuben Thomas <rrt@sc3d.org> in
16374         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
16375         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
16376         in config.h.
16378 2018-08-18  Bruno Haible  <bruno@clisp.org>
16380         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
16381         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
16382         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
16383         Solution proposed by Eli Zaretskii.
16384         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
16385         * lib/gettimeofday.c (GetProcAddress): Likewise.
16386         * lib/link.c (GetProcAddress): Likewise.
16387         * lib/physmem.c (GetProcAddress): Likewise.
16388         * lib/poll.c (GetProcAddress): Likewise.
16389         * lib/select.c (GetProcAddress): Likewise.
16390         * lib/stat-w32.c (GetProcAddress): Likewise.
16392 2018-08-18  Bruno Haible  <bruno@clisp.org>
16394         glob: Fix another compilation error when glob.h is not replaced.
16395         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
16396         * lib/globfree.c: Include <libc-config.h>.
16398 2018-08-18  Bruno Haible  <bruno@clisp.org>
16400         glob: Fix compilation error when glob.h is not replaced.
16401         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
16402         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
16403         * lib/glob_pattern_p.c: Include <libc-config.h>.
16404         * modules/glob (Depends-on): Add libc-config.
16406 2018-08-18  Bruno Haible  <bruno@clisp.org>
16408         scratch_buffer: Add tests.
16409         * tests/test-scratch-buffer.c: New file.
16410         * modules/scratch_buffer-tests: New file.
16412 2018-08-18  Bruno Haible  <bruno@clisp.org>
16414         scratch_buffer: Fix include file.
16415         Reported by Reuben Thomas <rrt@sc3d.org> in
16416         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
16417         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
16418         double-inclusion guard.
16420 2018-08-18  Bruno Haible  <bruno@clisp.org>
16422         glob-h: Revert Paul Eggert's revert.
16423         * m4/glob_h.m4: Revert to previous state.
16424         * modules/glob-h: Likewise.
16426 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16428         glob-h: always build glob.h
16429         This works around a problem reported by Reuben Thomas in:
16430         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
16431         This workaround always builds glob.h, even on platforms that
16432         do not need it; perhaps this could be improved someday.
16433         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
16434         is always created now.
16435         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
16437 2018-08-13  Bruno Haible  <bruno@clisp.org>
16439         monetary: Simplify m4 code.
16440         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
16441         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
16443 2018-08-13  Bruno Haible  <bruno@clisp.org>
16445         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
16446         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
16447         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
16448         and by Paul J. Lucas <paul@lucasmail.org> in
16449         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
16450         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
16452 2018-08-11  Bruno Haible  <bruno@clisp.org>
16454         setlocale: Trivial simplification.
16455         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
16457 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16459         verify: port 'assume' to traditional tools
16460         * lib/verify.h (assume): Port better to Oracle Studio 12.6
16461         and other tools that use /*NOTREACHED*/ comments.
16463 2018-08-10  Bruno Haible  <bruno@clisp.org>
16465         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
16466         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16467         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
16468         'fnmatch-gnu' is in use.
16470 2018-08-07  Bruno Haible  <bruno@clisp.org>
16472         glob-h: Add tests.
16473         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
16474         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
16475         tests/test-glob-h.c.
16476         * modules/glob-h-tests: New file.
16477         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
16478         conditions.
16479         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
16480         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
16482 2018-08-07  Bruno Haible  <bruno@clisp.org>
16484         glob-h: New module.
16485         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
16486         replacements.
16487         * lib/glob.c: Include <config.h>.
16488         * m4/glob_h.m4: New file.
16489         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
16490         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
16491         REPLACE_GLOB_PATTERN_P as appropriate.
16492         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
16493         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
16494         * modules/glob-h: New file.
16495         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
16496         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
16497         lstat, sys_stat. Change conditions.
16498         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
16499         REPLACE_GLOB_PATTERN_P. Set module indicator.
16500         (Makefile.am): Remove code that is moved to glob-h.
16501         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
16502         * modules/posixcheck (Depends-on): Add glob-h.
16504 2018-08-06  Bruno Haible  <bruno@clisp.org>
16506         Force generation of substitute .h file when C++ support is enabled.
16507         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
16508         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
16509         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
16510         FNMATCH_H to non-empty.
16511         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
16512         ICONV_H to non-empty.
16513         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
16514         MONETARY_H to non-empty.
16515         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
16516         non-empty.
16518 2018-08-06  Bruno Haible  <bruno@clisp.org>
16520         fnmatch-h: Fix test compilation error on mingw (regression from today).
16521         * lib/fnmatch.in.h: Fix conditions.
16523 2018-08-06  Bruno Haible  <bruno@clisp.org>
16525         sys_resource: Relicense under LGPLv2+.
16526         John Malmberg's approval is in
16527         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
16528         * modules/sys_resource (License): Change to LGPLv2+.
16530 2018-08-06  Bruno Haible  <bruno@clisp.org>
16532         fnmatch-h: Add tests.
16533         * tests/test-fnmatch-h.c: New file.
16534         * modules/fnmatch-h-tests: New file.
16535         * tests/test-fnmatch-h-c++.cc: New file.
16536         * modules/fnmatch-h-c++-tests: New file.
16538 2018-08-06  Bruno Haible  <bruno@clisp.org>
16540         fnmatch-h: New module.
16541         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
16542         replacements.
16543         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
16544         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
16545         'posixcheck' warning.
16546         * m4/fnmatch_h.m4: New file.
16547         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
16548         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
16549         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
16550         as appropriate.
16551         * modules/fnmatch-h: New file.
16552         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
16553         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
16554         conditions.
16555         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
16556         indicator.
16557         (Makefile.am): Remove code that is moved to fnmatch-h.
16558         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
16559         REPLACE_FNMATCH.
16560         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
16561         * modules/posixcheck (Depends-on): Add fnmatch-h.
16563 2018-08-06  Bruno Haible  <bruno@clisp.org>
16565         Enable more C++ tests.
16566         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
16567         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
16568         * modules/strings-tests (Depends-on): Add strings-c++-tests.
16569         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
16570         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
16572 2018-08-06  Bruno Haible  <bruno@clisp.org>
16574         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
16575         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
16576         getopt.h.
16577         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
16579 2018-08-05  Bruno Haible  <bruno@clisp.org>
16581         utime-h: Generate header file when module 'posixcheck' is in use.
16582         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
16583         UTIME_H to non-empty.
16585 2018-08-05  Bruno Haible  <bruno@clisp.org>
16587         monetary: Generate header file when module 'posixcheck' is in use.
16588         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
16589         use, set MONETARY_H to non-empty.
16591 2018-08-05  Bruno Haible  <bruno@clisp.org>
16593         iconv-h: Generate header file when module 'posixcheck' is in use.
16594         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
16595         set ICONV_H to non-empty.
16597 2018-08-05  Bruno Haible  <bruno@clisp.org>
16599         Optimize the "checking whether ... is declared without a macro" checks.
16600         Suggested by Paul Eggert in
16601         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
16602         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
16603         Gnulib module 'posixcheck' is not in use.
16605 2018-08-05  Bruno Haible  <bruno@clisp.org>
16607         iconv-h: Enable 'posixcheck' warnings.
16608         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
16609         iconv_open.
16610         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
16612 2018-08-05  Bruno Haible  <bruno@clisp.org>
16614         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
16615         * m4/extern-inline.m4: Add more comments.
16616         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
16617         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
16618         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
16620 2018-08-04  Bruno Haible  <bruno@clisp.org>
16622         New module 'posixcheck'.
16623         * modules/posixcheck: New file.
16624         * m4/posixcheck.m4: New file.
16625         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
16626         (Which modules?): Reference it.
16628 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
16630         dfa: fix memory leak
16631         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
16633 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16635         ieee754-h: new module
16636         It looks like Emacs can use this for some NaN processing.
16637         Emacs uses it only on double NaNs so it should be safe.
16638         * MODULES.html.sh (func_all_modules): Add ieee754-h.
16639         * config/srclist.txt: Mention ieee754.h in a comment.
16640         * doc/glibc-headers/ieee754.texi (ieee754.h):
16641         Gnulib now has a substitute that should work
16642         except for long double and for non-IEEE platforms.
16643         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
16644         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
16646 2018-07-27  Bruno Haible  <bruno@clisp.org>
16648         iswcntrl: Mention minor problem on macOS.
16649         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
16651 2018-07-26  Colin Watson  <cjwatson@debian.org>
16653         bootstrap, gnulib-tool: fix translations rsync
16654         Previously, we created files such as $pobase/Makefile.in.in and then the
16655         subsequent rsync would immediately delete them.
16656         * build-aux/bootstrap (po_download_command_format): Avoid deleting
16657         non-.po files in target directory when rsyncing translations.
16658         * gnulib-tool (func_import): Likewise.
16659         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16661 2018-07-25  Jim Meyering  <meyering@fb.com>
16663         bootstrap: reinstate definition fo gnulib_mk.
16664         That variable is used at least by cppi.
16665         * build-aux/bootstrap (gnulib_mk): Restore definition.
16666         This reverts the deletion from v0.1-1844-gc66dba9ba.
16668 2018-07-23  Bruno Haible  <bruno@clisp.org>
16670         doc: For module names, use texinfo markup @code{} or @samp{}.
16671         * doc/alloca.texi: Mark gnulib module names with @code.
16672         * doc/alloca-opt.texi: Likewise.
16673         * doc/quote.texi: Likewise.
16674         * doc/posix-functions/freopen.texi: Likewise.
16675         * doc/posix-functions/open.texi: Likewise.
16676         * doc/posix-functions/readlink.texi: Likewise.
16677         * doc/posix-functions/readlinkat.texi: Likewise.
16678         * doc/posix-functions/stdout.texi: Likewise.
16679         * doc/posix-functions/stderr.texi: Likewise.
16680         * doc/posix-functions/unlink.texi: Likewise.
16681         * doc/posix-functions/unlinkat.texi: Likewise.
16682         * doc/posix-functions/utime.texi: Likewise.
16683         * doc/posix-functions/utimensat.texi: Likewise.
16684         * doc/posix-functions/utimes.texi: Likewise.
16685         * doc/posix-headers/stdint.texi: Likewise.
16686         * doc/glibc-functions/futimesat.texi: Likewise.
16687         * doc/glibc-functions/lutimes.texi: Likewise.
16688         * doc/glibc-functions/memmem.texi: Likewise.
16690 2018-07-23  Werner LEMBERG  <wl@gnu.org>
16692         doc: Avoid some overfull lines in the TeX output.
16693         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
16694         @example.
16695         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
16696         newline before the long URL.
16697         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
16698         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
16699         Add line breaks in code snippets.
16701 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16703         hard-locale: simplify by removing hard-locale.m4
16704         * m4/hard-locale.m4: Remove.
16705         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
16706         (configure.ac): Do not call gl_HARD_LOCALE.
16708         gnulib-tool: limit line length for git send-email
16709         * gnulib-tool (func_import): Break actioncmd log line
16710         into multiple lines.
16712 2018-07-16  Bruno Haible  <bruno@clisp.org>
16714         ffs: Ensure declaration on mingw.
16715         Reported by Daniel P. Berrangé <berrange@redhat.com>
16716         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
16717         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
16718         also declared.
16720 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
16722         regex-tests: add dependency
16723         * modules/regex-tests (Depends-on): Add gettext-h.
16724         This is needed given the recent changes to regex,
16725         which no longer depends on gettext-h.
16727 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16729         regex: now in sync with glibc
16730         * config/srclist.txt: Gnulib and glibc regex code
16731         are synchronized again.
16733 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16735         renameatu: rename from renameat2
16736         It's looking like Glibc will add a renameat2 function
16737         that is incompatible with Gnulib renameat2; see:
16738         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
16739         To help avoid future confusion, rename renameat2 to something else.
16740         Use the name 'renameatu', as the Gnulib function is close to the
16741         Glibc function.  Perhaps someday there will also be a renameat2
16742         Gnulib module, which mimicks the future glibc renameat2, but that
16743         can wait as nobody seems to need such a module now.
16744         * NEWS: Mention this.
16745         * lib/renameatu.c: Rename from lib/renameat2.c.
16746         * lib/renameatu.h: Rename from lib/renameat2.h.
16747         * modules/renameatu: Rename from modules/renameat2.
16748         * modules/renameatu-tests: Rename from modules/renameat2-tests.
16749         All uses of "renameat2" in identifiers or file name
16750         changed to "renameatu", except for two instances in
16751         lib/renameatu.c that deal with the Linux kernel's
16752         renameat2 syscall.
16754 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
16756         gnulib-tool: minor tweaks for --gnu-make
16757         * gnulib-tool: Do not allow --gnu-make in test modes,
16758         since they all require automake.
16759         (func_emit_lib_Makefile_am): Don’t emit automake comment
16760         if --gnu-make.
16762         regex: work around conditional-dependencies glitch
16763         * modules/regex (Depends-on): Add langinfo.
16764         Without this change, I had problems building an experimental
16765         version of GNU Emacs.  The symptom of the bug was a message
16766         ‘./configure: line 12726: test: =: unary operator expected’.
16767         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
16768         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
16769         was unset.  Although gl_FUNC_NL_LANGINFO has
16770         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
16771         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
16772         --conditional-dependencies sometimes arranges for the
16773         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
16774         code.  Since the regex code includes <langinfo.h> it should be
16775         depending on the langinfo module anyway, and this happens to work
16776         around the bug, so install that as a workaround for now.  To
16777         reproduce the original problem, run the following shell script on
16778         the version of Gnulib just before this patch was installed.
16779                 rm -fr foo
16780                 mkdir foo
16781                 cat >foo/configure.ac <<'EOF'
16782                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
16783                 gl_EARLY
16784                 gl_INIT
16785                 AC_OUTPUT
16786                 EOF
16787                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
16788                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
16789                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
16790                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
16791                 cd foo
16792                 aclocal -I m4
16793                 autoconf
16794                 ./configure --with-included-regex
16796 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
16798         wchar: fix bug when checking for ‘inline’
16799         I discovered this when looking into using the regex module
16800         with Emacs.
16801         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
16802         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
16803         conftest1.c and conftest2.c but these files were not created.
16804         As far as I can see, this check never worked and nobody reported
16805         it until now, which is a bit worrisome.
16807 2018-06-30  Jim Meyering  <meyering@fb.com>
16809         bootstrap: s/--option val/--option=val/
16810         * build-aux/bootstrap (gnulib_tool_options): Change the
16811         spelling of "--option val" pairs to "--option=val", for
16812         aesthetics, and also so that this file no longer triggers
16813         a common help2man syntax-check warning when copied into
16814         projects like grep, gzip, etc.
16816 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
16818         manywarnings: omit -Wswitch-default
16819         This should make things more consistent, as we already ignore
16820         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
16821         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
16822         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
16823         Add -Wswitch-default.
16824         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
16825         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16826         Remove -Wswitch-default.
16828         regex: revert most trimming
16829         Problems reported by Bruno Haible in:
16830         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
16831         * modules/regex (Depends-on): Add lock, memcmp, memmove,
16832         and wctype back in.  lock because regex users shouldn’t
16833         need to know that regex needs locking, and the rest because
16834         gnulib-tool should ordinarily ignore them anyway.
16836 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16838         regex: trim module dependencies
16839         * modules/regex (Depends-on): Remove gettext-h and lock,
16840         since the regex code should work OK without these modules,
16841         and Emacs uses it that way.  Also remove memcmp, memmove,
16842         and wctype, as these modules are obsolete and should not be
16843         needed any more.
16845 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
16847         regex: glibc does not use intprops.h
16848         Maybe we can talk glibc into using intprops.h someday, but
16849         now doesn’t seem to be a good time.
16850         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
16851         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
16852         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
16854 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
16856         regex: port to recently proposed glibc regex merge
16857         This patch is inspired by Adhemerval Zanella's recent proposal
16858         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
16859         to merge glibc and Gnulib regex.  It aims to simplify the merge on
16860         the glibc side, without keeping Gnulib portable.
16861         * lib/regex.h: Fix a problem with glibc installed-header checking,
16862         as follows:
16863         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
16864         (_Restrict_arr_): Prefer __restrict_arr if defined,
16865         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
16866         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
16867         (build_wcs_upper_buffer, build_upper_buffer)
16868         (re_string_translate_buffer, re_string_context_at):
16869         Move decls here from lib/regex_internal.h, for glibc internal tests.
16870         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
16871         glibc BZ #18496.
16872         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
16873         -Wunused-value.
16874         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
16875         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
16876         (bitset_mask): Now static inline, and without any __attribute__
16877         ((unused)) decoration, for glibc internal tests.
16879 2018-06-25  Bruno Haible  <bruno@clisp.org>
16881         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
16882         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
16883         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
16884         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
16885         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
16886         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
16887         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
16888         / -lthread / -lpth does not get optimized away by a preceding
16889         --as-needed option.
16891 2018-06-25  Bruno Haible  <bruno@clisp.org>
16893         Continue to use spaces for indentation, not tabs.
16894         * MODULES.html.sh: Untabify.
16895         * doc/regex.texi: Likewise.
16896         * lib/acl-internal.c: Likewise.
16897         * lib/dfa.c: Likewise.
16898         * lib/exclude.c: Likewise.
16899         * lib/exclude.h: Likewise.
16900         * lib/get-permissions.c: Likewise.
16901         * lib/gettimeofday.c: Likewise.
16902         * lib/parse-datetime.y: Likewise.
16903         * lib/pselect.c: Likewise.
16904         * lib/set-permissions.c: Likewise.
16905         * lib/time.in.h: Likewise.
16906         * m4/canonicalize.m4: Likewise.
16907         * m4/gc.m4: Likewise.
16908         * m4/gnulib-common.m4: Likewise.
16909         * m4/pthread_sigmask.m4: Likewise.
16910         * m4/vararrays.m4: Likewise.
16911         * tests/test-digest.h: Likewise.
16912         * tests/test-fcntl-h.c: Likewise.
16913         * tests/test-timespec.c: Likewise.
16914         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
16916 2018-06-25  Bruno Haible  <bruno@clisp.org>
16918         manywarnings: Don't enable -Wjump-misses-init warnings by default.
16919         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
16920         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
16921         -Wjump-misses-init.
16923 2018-06-25  Jim Meyering  <meyering@fb.com>
16925         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
16926         * lib/acl-internal.h (free_permission_context): Remove that
16927         attribute directive.  Otherwise, it would provoke this from GCC 9:
16928         lib/acl-internal.h:300:3: error: 'const' attribute on function \
16929           returning 'void' [-Werror=attributes]
16931 2018-06-24  Jim Meyering  <meyering@fb.com>
16933         parse-datetime: accommodate gcc-4.8.5
16934         Bruno Haible reported the build failure in
16935         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
16936         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
16937         on declaration of new local.
16939 2018-06-24  Bruno Haible  <bruno@clisp.org>
16941         af_alg: Fail in continuable manner on Linux/powerpc64le.
16942         Reported by Assaf Gordon <assafgordon@gmail.com>
16943         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
16944         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
16945         byte send() as the first round.
16947 2018-06-24  Bruno Haible  <bruno@clisp.org>
16949         af_alg: Fix state of stream after sendfile() succeeds.
16950         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
16951         the stream is correctly positioned afterwards.
16952         * modules/crypto/af_alg (Depends-on): Add fflush.
16953         * tests/test-digest.h (test_digest_on_files): Verify that after the
16954         operation the stream is positioned at end of file.
16956 2018-06-24  Jim Meyering  <meyering@fb.com>
16958         canon-host: take GCC9's advice rather than ignoring warning
16959         Pádraig Brady suggested not to ignore this GCC9 advice.
16960         * lib/canon-host.c: Undo preceding change.
16961         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
16963         parse-datetime.y: avoid spurious GCC 9 warning
16964         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
16965         a function local prior to the first "goto fail".  The prior use would
16966         evoke this:
16967         parse-datetime.y: In function 'parse_datetime2':
16968         parse-datetime.y:1791:19: error: jump skips variable initialization \
16969           [-Werror=jump-misses-init]
16970         parse-datetime.y:2385:2: note: label 'fail' defined here
16971         parse-datetime.y:188:43: note: '({anonymous})' declared here
16972         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
16974         canon-host.c: avoid spurious GCC 9 warning
16975         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
16977         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
16978         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
16979         * m4/manywarnings.m4: Remove them.
16980         Otherwise, building coreutils, I would see this:
16981         cc1: error: deprecated command line option '-Wchkp' [-Werror]
16982         cc1: error: -Wabi won't warn about anything [-Werror=abi]
16983         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
16984           which is also used by default
16985         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
16987 2018-06-24  Bruno Haible  <bruno@clisp.org>
16989         af_alg tests: Add another test.
16990         * tests/test-digest.h (test_digest_on_files): Also check a large file
16991         with a skipped header.
16992         * tests/test-md5.c: Include macros.h.
16993         * tests/test-sha1.c: Likewise.
16994         * tests/test-sha256.c: Likewise.
16995         * tests/test-sha512.c: Likewise.
16996         * modules/crypto/md5-tests (Files): Add tests/macros.h.
16997         * modules/crypto/sha1-tests (Files): Likewise.
16998         * modules/crypto/sha256-tests (Files): Likewise.
16999         * modules/crypto/sha512-tests (Files): Likewise.
17001 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17003         maint: clarify comments about sticky EOF
17004         * lib/af_alg.c: Be more direct that we can't
17005         assume stickiness of EOF for portability reasons.
17006         * lib/md5.c: Clarify that this isn't just a glibc issue.
17007         * lib/sha1.c: Likewise.
17008         * lib/sha256.c: Likewise.
17009         * lib/sha512.c: Likewise.
17011 2018-06-24  Bruno Haible  <bruno@clisp.org>
17013         af_alg: Comment and style improvements.
17014         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
17015         (afalg_buffer, afalg_stream): Improve comments.
17017 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17019         af_alg: disable kernel hash functions by default
17020         All the kernel routines were seen to be significantly slower
17021         with these relatively recent components on an i3-2310M system:
17022           kernel-4.10.6-200.fc25.x86_64
17023           openssl-1.0.2m-1.fc25.x86_64
17024         sha1 was nearly twice as slow in the kernel for example.
17025         Further considerations why this should not be the default, at:
17026         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
17028         * m4/af_alg.m4: Require --with-linux-crypto to enable.
17029         * m4/gl-openssl.m4: Tweak accordingly.
17031 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17033         af_alg: avoid hangs when reading from streams
17034         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
17035         and thus avoid doing a fread() when feof() is set.
17036         * lib/md5.c: Ensure feof() is called before fread().
17037         * lib/sha1.c: Likewise.
17038         * lib/sha256.c: Likewise.
17039         * lib/sha512.c: Likewise.
17041 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17043         af_alg: fix error handling when hash not returned
17044         * lib/af_alg.c (afalg_stream): Handle the case where we've
17045         successfully written data to the kernel in the read/write loop,
17046         but the kernel doesn't respond with the hash.
17048 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17050         libc-config: merge from glibc
17051         * lib/cdefs.h (__inline, __restrict):
17052         Copy from current glibc.  This fixes glibc bug 17721,
17053         which Gnulib had already fixed in a different way.
17054         (__nonnull): Lessen the distance from glibc by using the
17055         glibc definition inside an ‘#ifndef __nonnull’.
17056         (__attribute_nonstring__): New macro, copied from
17057         current glibc.
17058         * lib/libc-config.h (__attribute_nonstring__): New undef.
17059         (__restrict): Remove; workaround no longer needed.
17060         Keep the __inline workaround, though, as it uses HAVE___INLINE to
17061         support more compilers than the glibc __inline can.
17063 2018-06-24  Bruno Haible  <bruno@clisp.org>
17065         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
17066         * lib/mbrtowc.c (enc_t): New enum type.
17067         (locale_enc, locale_enc_cached): New functions.
17068         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
17069         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
17070         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
17071         instead.
17072         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
17073         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
17074         * modules/wcwidth (configure.ac): Invoke it.
17076 2018-06-24  Bruno Haible  <bruno@clisp.org>
17078         wchar-single: Fix test failure in wcwidth tests.
17079         * tests/test-wcwidth.c (main): If the wchar-single module is present,
17080         skip the tests in the C locale.
17082 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17084         crypto: mention --without-linux-crypto in --with-openssl --help
17085         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
17086         routines take precedence in --with-openssl help output.
17088 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17090         wchar-single: a new module to enable optimizations in wchar replacements
17091         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
17092         GNULIB_WCHAR_SINGLE is enabled.
17093         * lib/wcwidth.c (wcwidth): Likewise.
17095 2018-06-23  Bruno Haible  <bruno@clisp.org>
17097         libc-config: Fix conflict with FreeBSD include files.
17098         * lib/cdefs.h (__nonnull): Remove definition.
17099         * lib/libc-config.h (__nonnull): Remove undefinition.
17101 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17103         random_r: do not crash if state is unaligned
17104         Problem reported by Bruce Korb in:
17105         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
17106         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
17107         with 'cc -O2 -xmemalign=8s'.
17108         * lib/random_r.c: Include string.h, for memcpy.
17109         (get_int32, set_int32): New functions.
17110         (__srandom_r, __initstate_r, __setstate_r, __random_r):
17111         Use them to avoid assumption that state pointer is aligned.
17112         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
17113         * tests/test-random_r.c (test_failed): New function.
17114         (main): Use it, to test for alignment bugs.
17116         random_r: omit unnecessary include
17117         * lib/random_r.c: Do not include limits.h.
17119         random, random_r: merge from glibc
17120         * lib/random.c, lib/random_r.c:
17121         Include libc-config.h if !_LIBC, not config.h unilaterally.
17122         * lib/random.c:
17123         Do not include stdint.h or time.h; not needed.
17124         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
17125         (unsafe_state): Rename from generator.  All uses changed.
17126         Use C99-style initializers.
17127         (__random, __srandom, __initstate, __setstate): Rename from
17128         non-underscored version, but define it to non-underscored version
17129         on Gnulib.  Add a lock.
17130         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
17131         Likewise.
17132         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
17133         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
17134         (__srandom_r): Use int32_t instead of long int where int32_t will do.
17135         (__random_r): Use uint32 to fix glibc bug 17343.
17136         * modules/random, modules/random_r (Depends-on): Add libc-config.
17137         Depend on stdint only if $HAVE_RANDOM = 0.
17139 2018-06-19  Jim Meyering  <meyering@fb.com>
17141         README-release: also run any check-very-expensive tests
17142         * top/README-release: Adjust instructions so they run the
17143         check-very-expensive tests when there is such a target.
17145 2018-06-18  Bruno Haible  <bruno@clisp.org>
17147         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
17148         * m4/pthread_rwlock_rdlock.m4: Add comment.
17149         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
17150         are reader-preferring in glibc.
17151         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
17152         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
17154 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17156         crypto: use byteswap
17157         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
17158         * lib/sm3.c: Include <byteswap.h>.
17159         (SWAP): Use its macros rather than reinventing the wheel.
17160         * modules/crypto/md4, modules/crypto/md5-buffer:
17161         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
17162         * modules/crypto/sha512-buffer, modules/crypto/sm3:
17163         (Depends-on): Add byteswap.
17165 2018-06-17  Pádraig Brady  <P@draigBrady.com>
17167         gendocs.sh: fix support for legacy --texi2html
17168         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
17169         to the default makeinfo invocation.
17170         Reported by Bruce Korb
17172 2018-06-17  Bruno Haible  <bruno@clisp.org>
17174         gettext po infrastructure: Update from current gettext git.
17175         Reported by Akim Demaille <akim@lrde.epita.fr>.
17176         * build-aux/po/Makefile.in.in: Update from current gettext git.
17177         * build-aux/po/remove-potcdate.sin: Likewise.
17178         * config/srclist.txt: Temporarily disable sync for these files.
17180 2018-06-17  Bruno Haible  <bruno@clisp.org>
17182         getloadavg: Return 0 on Windows without Cygwin.
17183         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
17185 2018-06-17  Paul Smith  <psmith@gnu.org>
17187         getloadavg: Allow building on Windows without Cygwin
17188         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
17189         * m4/getloadavg.m4: Check for unistd.h.
17191 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
17193         Port crypto/af_alg to GCC 4.8.4
17194         Problem reported by Peter Simons in:
17195         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
17196         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
17198 2018-05-27  Colin Watson  <cjwatson@debian.org>
17200         bootstrap: document source fetching in --help
17201         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
17203 2018-04-09  Colin Watson  <cjwatson@debian.org>
17205         bootstrap: allow non-submodule control of gnulib
17206         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
17207         bootstrap.conf when fetching gnulib using "git clone" or via
17208         GNULIB_SRCDIR.
17210 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17212         crypto: omit stream ops Emacs doesn’t need
17213         * lib/md5.c (md5_stream):
17214         * lib/sha1.c (sha1_stream):
17215         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
17216         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
17217         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
17218         defined.  Emacs needs this, as it does not use the stream
17219         operations and doesn’t need all the af_alg stuff we’ve recently
17220         added.  Perhaps a similar change is needed to the other crypto
17221         modules, but this patch changes only those needed for Emacs.
17222         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
17223         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
17224         New modules, used by Emacs.
17225         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
17226         * modules/crypto/sha512: Rewrite to depend on the new modules.
17228 2018-05-20  Pádraig Brady  <P@draigBrady.com>
17230         fts: avoid a memory leak edge case
17231         * lib/fts.c (fts_open): Set an appropriate fts_level
17232         so that an immediate fts_close() will free the allocation.
17233         * tests/test-fts.c (fts_dealloc): Add a test case which
17234         will trigger under valgrind or address sanitizer.
17235         Fixes https://bugs.gnu.org/31439
17237 2018-05-20  Bruno Haible  <bruno@clisp.org>
17239         wcwidth tests: Fix link error.
17240         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
17241         $(LIBUNISTRING).
17243 2018-05-20  Bruno Haible  <bruno@clisp.org>
17245         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
17246         * modules/regex (Files): Add m4/glibc21.m4.
17248 2018-05-20  Bruno Haible  <bruno@clisp.org>
17250         localcharset: Optimize.
17251         * lib/localcharset.c (alias_table): Comment out no-op mappings for
17252         platforms where these don't matter. This reduces the table size,
17253         which in turn reduces the lookup time.
17255 2018-05-19  Bruno Haible  <bruno@clisp.org>
17257         localcharset: Map the locale encodings found in newer OSes.
17258         * lib/localcharset.c (alias_table): Add mapping for locale encodings
17259         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
17260         IRIX 6.5, Minix 3.3.
17261         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
17263 2018-05-19  Bruno Haible  <bruno@clisp.org>
17265         localcharset: Move mapping tables into the code. Use a binary search.
17266         * lib/localcharset.h: Document the GNU canonical names for character
17267         encodings here.
17268         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
17269         relocatable.h, configmake.h.
17270         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
17271         macros.
17272         (charset_aliases): Remove variable.
17273         (get_charset_aliases): Remove function.
17274         (struct table_entry): New type.
17275         (alias_table, locale_table): New constants.
17276         (locale_charset): Use the alias_table or locale_table to get the
17277         canonicalized encoding name.
17278         * lib/config.charset: Remove file.
17279         * lib/ref-add.sin: Remove file.
17280         * lib/ref-del.sin: Remove file.
17281         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
17282         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
17283         * modules/localcharset (Notice): Remove.
17284         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
17285         glibc21.m4.
17286         (Depends-on): Remove configmake.
17287         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
17288         (Makefile.am): Simplify.
17289         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
17291 2018-05-19  Bruno Haible  <bruno@clisp.org>
17293         localcharset: Add a manual test.
17294         * tests/test-localcharset.c: New file.
17295         * modules/localcharset-tests: New file.
17297 2018-05-19  Bruno Haible  <bruno@clisp.org>
17299         localcharset: Remove support for obsolete platforms.
17300         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
17301         Mac OS X 10.2. Comment out dubious entry for Solaris.
17303 2018-05-19  Jim Meyering  <meyering@fb.com>
17305         gnupload: adjust comment
17306         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
17307         more likely we'll remove the just-added code in a year or two.
17309 2018-05-19  Bruno Haible  <bruno@clisp.org>
17311         gnupload: Fix "gpg-agent is not available in this session" error.
17312         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
17314 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17316         crypto/af_alg: fix --help
17317         * m4/af_alg.m4: Avoid spurious newline in --help output.
17319 2018-05-13  Bruno Haible  <bruno@clisp.org>
17321         nl_langinfo: Fix compilation error on Android.
17322         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
17323         INT_CURR_SYMBOL, etc. only if these items are defined.
17325 2018-05-13  Bruno Haible  <bruno@clisp.org>
17327         truncate: Fix compilation error on Android.
17328         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
17329         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
17330         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
17331         HAVE_TRUNCATE.
17332         * modules/truncate: Likewise.
17333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
17334         not HAVE_TRUNCATE.
17335         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
17336         HAVE_TRUNCATE.
17337         * doc/posix-functions/truncate.texi: Mention the issue.
17339 2018-05-13  Bruno Haible  <bruno@clisp.org>
17341         pthread: Fix compilation error on Android.
17342         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
17343         recursive inclusion of this file.
17345 2018-05-13  Bruno Haible  <bruno@clisp.org>
17347         posix_spawn: Fix compilation error on Android.
17348         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
17349         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
17350         (posix_spawn_file_actions_t): Consider also the case
17351         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
17353 2018-05-13  Bruno Haible  <bruno@clisp.org>
17355         tsearch: Move from K&R C to ANSI C.
17356         * lib/tsearch.c (tfind): Convert definition to ANSI C.
17358 2018-05-13  Bruno Haible  <bruno@clisp.org>
17360         tsearch: Fix compilation error on Android.
17361         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
17362         is 0.
17363         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
17364         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
17365         GNULIB_defined_tsearch is true.
17366         (twalk): Define only if GNULIB_defined_twalk is true.
17367         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
17368         is 0.
17369         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
17370         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
17371         * modules/search (Makefile.am): Substitute HAVE_TWALK.
17373 2018-05-13  Bruno Haible  <bruno@clisp.org>
17375         imaxdiv: Fix compilation error on Android.
17376         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
17377         is not defined.
17378         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
17379         HAVE_DECL_IMAXDIV, is 0.
17380         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
17381         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
17383 2018-05-13  Bruno Haible  <bruno@clisp.org>
17385         Support selective inclusion mechanism of recent mingw.org header files.
17386         Reported by Eli Zaretskii <eliz@gnu.org>.
17387         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
17388         __need_ssize_t, or __need_time_t is defined, just include the system's
17389         <sys/types.h>.
17390         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
17391         include the system's <locale.h>.
17393 2018-05-13  Bruno Haible  <bruno@clisp.org>
17395         Avoid compilation error due to 'mmap' on Android.
17396         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
17397         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
17398         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
17399         Undefine on Android.
17401 2018-05-13  Bruno Haible  <bruno@clisp.org>
17403         Add cross-compilation guesses for Linux systems without glibc.
17404         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
17405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
17406         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17407         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17408         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
17409         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
17410         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17411         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17412         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
17413         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
17414         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17415         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17416         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17417         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17418         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17419         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17420         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17421         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17423 2018-05-13  Bruno Haible  <bruno@clisp.org>
17425         getpagesize: Fix compilation error on Android.
17426         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
17427         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
17428         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
17429         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
17430         HAVE_GETPAGESIZE accordingly.
17431         * modules/getcwd (Files): Add m4/getpagesize.m4.
17433 2018-05-13  Bruno Haible  <bruno@clisp.org>
17435         tcgetsid: Fix compilation error on Android.
17436         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
17437         AC_CHECK_FUNC.
17439 2018-05-13  Bruno Haible  <bruno@clisp.org>
17441         getpass: Fix configure test for Android.
17442         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
17443         AC_CHECK_FUNC.
17445 2018-05-13  Bruno Haible  <bruno@clisp.org>
17447         ffs: Fix compilation error on Android.
17448         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
17450 2018-05-13  Bruno Haible  <bruno@clisp.org>
17452         mkfifo: Fix compilation error on Android.
17453         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
17454         AC_CHECK_FUNC.
17456 2018-05-13  Bruno Haible  <bruno@clisp.org>
17458         c-strtod: Fix configure test for Android.
17459         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
17460         AC_CHECK_FUNC.
17462 2018-05-13  Bruno Haible  <bruno@clisp.org>
17464         random: Fix compilation error on Android.
17465         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
17466         AC_CHECK_FUNC.
17468 2018-05-13  Bruno Haible  <bruno@clisp.org>
17470         grantpt: Fix compilation error on Android.
17471         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
17472         AC_CHECK_FUNC.
17474 2018-05-13  Bruno Haible  <bruno@clisp.org>
17476         stdioext: Fix compilation errors with newer Android headers.
17477         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
17478         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
17479         fallbacks for Android.
17480         * lib/fpending.c: Update comments.
17481         * lib/fpurge.c: Likewise.
17482         * lib/freadable.h: Likewise.
17483         * lib/freadable.c: Likewise.
17484         * lib/freadahead.c: Likewise.
17485         * lib/freading.h: Likewise.
17486         * lib/freadptr.c: Likewise.
17487         * lib/fseterr.c: Likewise.
17488         * lib/fwritable.h: Likewise.
17489         * lib/fwritable.c: Likewise.
17490         * lib/fwriting.h: Likewise.
17491         * lib/fwriting.c: Likewise.
17493 2018-05-13  Bruno Haible  <bruno@clisp.org>
17495         doc: Add info about Android versions 2.0 to 8.1.
17496         * doc/**/*.texi: Add info about functions in all released versions of
17497         Bionic.
17499 2018-05-12  Bruno Haible  <bruno@clisp.org>
17501         fseeko: On mingw, don't use the hidden function _fseeki64.
17502         Reported by Eli Zaretskii <eliz@gnu.org>.
17503         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
17504         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
17506 2018-05-12  Bruno Haible  <bruno@clisp.org>
17508         glob: Choose 'dirent_type' in a way that works better on mingw.
17509         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
17510         * lib/glob.c (dirent_type): Define as uint_fast32_t.
17512 2018-05-12  Bruno Haible  <bruno@clisp.org>
17514         execute, spawn-pipe: Avoid warning about redefining 'close'.
17515         Reported by Eli Zaretskii <eliz@gnu.org>.
17516         * lib/execute.c: Undefine 'close' before redefining it.
17517         * lib/spawn-pipe.c: Likewise.
17519 2018-05-12  Bruno Haible  <bruno@clisp.org>
17521         nanosleep: Avoid test failure on mingw when it has nanosleep.
17522         Reported by Eli Zaretskii <eliz@gnu.org>.
17523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
17524         If it does not exist, use a simpler test program that does not call
17525         alarm().
17527 2018-05-10  Bruno Haible  <bruno@clisp.org>
17529         lock, cond, thread, tls: Use a different symbol as libpthread witness.
17530         Reported by Devin Hussey <husseydevin@gmail.com>.
17531         Based on a patch by Paul Eggert.
17532         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
17533         as witness of libpthread.
17534         * lib/glthread/cond.h (pthread_in_use): Likewise.
17535         * lib/glthread/thread.h (pthread_in_use): Likewise.
17536         * lib/glthread/tls.h (pthread_in_use): Likewise.
17538 2018-05-10  Bruno Haible  <bruno@clisp.org>
17540         cond tests: Fix compilation error on Solaris.
17541         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
17542         macro.
17544 2018-05-10  Bruno Haible  <bruno@clisp.org>
17546         doc: Add partial info about Android 4.3.
17547         * doc/*-functions/*.texi: Add info about functions that were added
17548         to Bionic between Android 4.3 and Android 9.0.
17550 2018-05-10  Bruno Haible  <bruno@clisp.org>
17552         doc: Add info about Android 9.0.
17553         * doc/**/*.texi: Add info about functions and headers in Bionic from
17554         Android 9.0.
17556 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
17558         af_alg: fix my typo in afalg_buffer
17559         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
17560         (afalg_stream): Simplify and avoid the need for a runtime test
17561         at the end.
17563         af_alg: recover better from crypto failures
17564         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
17565         input stream is seekable, by repositioning the stream back to
17566         where it was, possibly by just calling sendfile with an offset
17567         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
17568         cases, which lets our callers try again with user-mode code.
17569         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
17570         instead of on fflush and lseek.
17572         af_alg: distiguish I/O errors better
17573         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
17574         not -EIO, if it’s OK for the caller to try again with user-mode code.
17575         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
17576         some other error number) if fflush fails, as the caller should not
17577         try again that case.
17579         af_alg: avoid gotos
17580         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
17581         gotos, as they were a source of unreliability and made the code a
17582         bit harder to follow.
17584         af_alg: don’t leak file descriptors into children
17585         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
17586         This code should be compiled only on recent GNU/Linux platforms
17587         so we shouldn’t have to also depend on the accept4 module.
17589         af_alg: coalesce socket creation
17590         * lib/af_alg.c (alg_socket): New function.
17591         (afalg_buffer, afalg_stream): Use it.  This avoids some
17592         code duplication and gotos.
17594         af_alg: fix file descriptor leak
17595         * lib/af_alg.c (afalg_stream): Close leak.
17597         af_alg: Pacify --enable-gcc-warnings on GCC 8
17598         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
17599         and checking to pacify gcc -Wjump-misses-init on GCC 8.
17601 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17603         af_alg: Pacify --enable-gcc-warnings
17604         Problem reported by Assaf Gordon in:
17605         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
17606         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
17607         gcc -Wjump-misses-init.
17608         * lib/sha512.c (shaxxx_stream): Now static.
17610 2018-05-06  Bruno Haible  <bruno@clisp.org>
17612         af_alg: Add ability to use Linux kernel crypto API on data in memory.
17613         * lib/af_alg.h (afalg_buffer): New declaration.
17614         * lib/af_alg.c (afalg_buffer): New function.
17616 2018-05-06  Bruno Haible  <bruno@clisp.org>
17618         af_alg: Avoid warnings.
17619         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
17620         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
17622 2018-05-06  Bruno Haible  <bruno@clisp.org>
17624         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
17625         * tests/bench-digest.h: New file.
17626         * tests/bench-md5.c: New file.
17627         * tests/bench-sha1.c: New file.
17628         * tests/bench-sha224.c: New file.
17629         * tests/bench-sha256.c: New file.
17630         * tests/bench-sha384.c: New file.
17631         * tests/bench-sha512.c: New file.
17632         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
17633         tests/bench-digest.h.
17634         (Depends-on): Add getrusage, gettimeofday.
17635         (Makefile.am): Add variables to build bench-md5.
17636         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
17637         tests/bench-digest.h.
17638         (Depends-on): Add getrusage, gettimeofday.
17639         (Makefile.am): Add variables to build bench-sha1.
17640         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
17641         tests/bench-sha256.c, tests/bench-digest.h.
17642         (Depends-on): Add getrusage, gettimeofday.
17643         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
17644         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
17645         tests/bench-sha512.c, tests/bench-digest.h.
17646         (Depends-on): Add getrusage, gettimeofday.
17647         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
17649 2018-05-06  Bruno Haible  <bruno@clisp.org>
17651         af_alg: Fix a resource leak.
17652         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
17653         New local variable 'result'.
17655 2018-05-06  Bruno Haible  <bruno@clisp.org>
17657         af_alg: Fix bug with streams that are not at position 0.
17658         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
17659         assume that the stream is positioned at position 0.
17660         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
17661         of the stream.
17662         * lib/md5.h (md5_stream): Likewise.
17663         * lib/sha1.h (sha1_stream): Likewise.
17664         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
17665         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
17666         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
17668         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
17669         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
17670         stream that is not positioned at the beginning.
17672 2018-05-06  Bruno Haible  <bruno@clisp.org>
17674         af_alg: Add configure option to enable/disable use of Linux crypto API.
17675         Suggested by Assaf Gordon <assafgordon@gmail.com>.
17676         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
17677         USE_LINUX_CRYPTO_API.
17678         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
17679         * lib/af_alg.c: Likewise.
17681 2018-05-06  Bruno Haible  <bruno@clisp.org>
17683         Followup to 'af_alg: New module.'.
17684         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
17685         * modules/crypto/sha1 (Depends-on): Likewise.
17686         * modules/crypto/sha256 (Depends-on): Likewise.
17687         * modules/crypto/sha512 (Depends-on): Likewise.
17689 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17691         crypto/{md5,sha1,sha256,sha512}: simplify
17692         * lib/md5.c (md5_stream):
17693         * lib/sha1.c (sha1_stream):
17694         * lib/sha256.c (shaxxx_stream):
17695         Simplify, partly by assuming C99.
17696         * lib/sha256.c (shaxxx_stream):
17697         New function, which implements both sha256 and sha224.
17698         Simplify, partly by assuming C99.
17699         (sha256_stream, sha224_stream):
17700         Use it to avoid code duplication, removing a FIXME.
17701         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
17702         Likewise.
17704         af_alg: Improve comments.
17705         * lib/af_alg.h: Use imperatives and tighten up wording.
17707 2018-05-05  Bruno Haible  <bruno@clisp.org>
17709         af_alg: Improve comments.
17710         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
17712 2018-05-05  Bruno Haible  <bruno@clisp.org>
17714         af_alg: New module.
17715         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
17716         * lib/af_alg.c: Include "af_alg.h" before the other header files.
17717         * lib/md5.c: Include "af_alg.h" unconditionally.
17718         (md5_stream): Invoke afalg_stream unconditionally.
17719         * lib/sha1.c: Include "af_alg.h" unconditionally.
17720         (sha1_stream): Invoke afalg_stream unconditionally.
17721         * lib/sha256.c: Include "af_alg.h" unconditionally.
17722         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
17723         * lib/sha512.c: Include "af_alg.h" unconditionally.
17724         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
17725         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
17726         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
17727         * modules/crypto/af_alg: New file.
17728         * modules/crypto/md5 (Files): Remove files that are now in the
17729         'crypto/af_alg' module.
17730         (Depends-on): Add crypto/af_alg.
17731         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
17732         (Makefile.am): Don't mention af_alg.c here.
17733         * modules/crypto/sha1 (Files): Remove files that are now in the
17734         'crypto/af_alg' module.
17735         (Depends-on): Add crypto/af_alg.
17736         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
17737         (Makefile.am): Don't mention af_alg.c here.
17738         * modules/crypto/sha256 (Files): Remove files that are now in the
17739         'crypto/af_alg' module.
17740         (Depends-on): Add crypto/af_alg.
17741         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
17742         (Makefile.am): Don't mention af_alg.c here.
17743         * modules/crypto/sha512 (Files): Remove files that are now in the
17744         'crypto/af_alg' module.
17745         (Depends-on): Add crypto/af_alg.
17746         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
17747         (Makefile.am): Don't mention af_alg.c here.
17749 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17751         crypto tests: pacify GCC
17752         * tests/test-digest.h (test_digest_on_files):
17753         Don’t assume digest size fits in int (!).
17755         af_alg: minor style improvements
17756         * lib/af_alg.c (afalg_stream): Prefer C99 style
17757         decl-after-statement, since we’re already assuming C99.  Clarify
17758         by strengthening the bind test and omit unnecessary assignment.
17760 2018-05-05  Bruno Haible  <bruno@clisp.org>
17762         af_alg: Fix bug on empty files.
17763         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
17764         stream is empty.
17766 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17768         sys-limits.h: new file for crypto and safe I/O
17769         * lib/af_alg.c: Include sys-limits.h.
17770         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
17771         (afalg_stream): Also reject negative sizes for sendfile; they
17772         should not happen and the code is a bit cleaner and faster this way.
17773         * lib/safe-read.c: Include sys-limits.h.
17774         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
17775         * lib/sys-limits.h: New file, with values and commentary derived
17776         from the old safe-read.c and from GNU Emacs sysdep.c.
17777         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
17778         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
17779         Add lib/sys-limits.h to Files section.
17781 2018-05-05  Bruno Haible  <bruno@clisp.org>
17783         af_alg: Improve function signature.
17784         * lib/af_alg.h (afalg_stream): Swap second and third argument.
17785         * lib/af_alg.c (afalg_stream): Likewise.
17786         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
17788 2018-05-05  Bruno Haible  <bruno@clisp.org>
17790         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
17791         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
17792         * modules/crypto/sha1 (Depends-on): Likewise.
17793         * modules/crypto/sha256 (Depends-on): Likewise.
17794         * modules/crypto/sha512 (Depends-on): Likewise.
17796 2018-05-05  Bruno Haible  <bruno@clisp.org>
17798         crypto/{md5,sha1,sha256,sha512}: Fix module description.
17799         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
17800         * modules/crypto/sha1 (Depends-on): Likewise.
17801         * modules/crypto/sha256 (Depends-on): Likewise.
17802         * modules/crypto/sha512 (Depends-on): Likewise.
17804 2018-05-05  Bruno Haible  <bruno@clisp.org>
17806         af_alg: Add documentation.
17807         * lib/af_alg.h: Add comments.
17809 2018-05-05  Bruno Haible  <bruno@clisp.org>
17811         sha512: Add tests.
17812         * tests/test-sha512.c: New file.
17813         * modules/crypto/sha512-tests: New file.
17815 2018-05-05  Bruno Haible  <bruno@clisp.org>
17817         sha256: Add tests.
17818         * tests/test-sha256.c: New file.
17819         * modules/crypto/sha256-tests: New file.
17821 2018-05-05  Bruno Haible  <bruno@clisp.org>
17823         sha1 tests: Add test for sha1_stream.
17824         * tests/test-sha1.c: Include test-digest.h.
17825         (main): Invoke test_digest_on_files on 'sha1_stream'.
17826         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
17828 2018-05-05  Bruno Haible  <bruno@clisp.org>
17830         md5 tests: Add test for md5_stream.
17831         * tests/test-digest.h: New file.
17832         * tests/test-md5.c: Include test-digest.h.
17833         (main): Invoke test_digest_on_files on 'md5_stream'.
17834         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
17836 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17838         md5sum: Use AF_ALG when available.
17839         * lib/md5.c: Include af_alg.h.
17840         (md5_stream): Use afalg_stream when available.
17841         * modules/crypto/md5 (Files): Add the af_alg files.
17842         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17843         (Makefile.am): Add af_alg.c.
17845 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17847         sha512sum: Use AF_ALG when available.
17848         * lib/sha512.c: Include af_alg.h.
17849         (sha512_stream, sha384_stream): Use afalg_stream when available.
17850         * modules/crypto/sha512 (Files): Add the af_alg files.
17851         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17852         (Makefile.am): Add af_alg.c.
17854 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17856         sha256sum: Use AF_ALG when available.
17857         * lib/sha256.c: Include af_alg.h.
17858         (sha256_stream, sha224_stream): Use afalg_stream when available.
17859         * modules/crypto/sha256 (Files): Add the af_alg files.
17860         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17861         (Makefile.am): Add af_alg.c.
17863 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17865         sha1sum: Use AF_ALG when available.
17866         * lib/af_alg.h: New file.
17867         * lib/af_alg.c: New file.
17868         * lib/sha1.c: Include af_alg.h.
17869         (sha1_stream): Use afalg_stream when available.
17870         * m4/linux-if-alg.m4: New file.
17871         * modules/crypto/sha1 (Files): Add the new files.
17872         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17873         (Makefile.am): Add af_alg.c.
17875 2018-05-05  Bruno Haible  <bruno@clisp.org>
17877         all: Replace more http URLs by https URLs.
17878         * lib/localename.c: Use https: URL.
17879         * lib/timespec.h: Likewise.
17881 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
17883         maint: port more modules to GCC 8
17884         * lib/dirname.h (base_name):
17885         * lib/exclude.h (new_exclude):
17886         * lib/xstrndup.h (xstrndup):
17887         Add malloc attribute.
17888         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
17889         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
17890         This pacifies GCC 8.
17891         * m4/gnulib-common.m4 (gl_COMMON_BODY):
17892         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
17894 2018-05-03  Bruno Haible  <bruno@clisp.org>
17896         Simplify code. Drop support for Borland C++ on Windows.
17897         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
17898         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
17899         'defined _WIN32'.
17900         * lib/canonicalize-lgpl.c: Likewise.
17901         * lib/classpath.c: Likewise.
17902         * lib/clean-temp.c: Likewise.
17903         * lib/csharpexec.c: Likewise.
17904         * lib/ctime.c: Likewise.
17905         * lib/dosname.h: Likewise.
17906         * lib/dup2.c: Likewise.
17907         * lib/errno.in.h: Likewise.
17908         * lib/error.c: Likewise.
17909         * lib/euidaccess.c: Likewise.
17910         * lib/execute.c: Likewise.
17911         * lib/fcntl.in.h: Likewise.
17912         * lib/fcntl.c: Likewise.
17913         * lib/filename.h: Likewise.
17914         * lib/findprog.c: Likewise.
17915         * lib/flock.c: Likewise.
17916         * lib/fopen.c: Likewise.
17917         * lib/freopen.c: Likewise.
17918         * lib/fstat.c: Likewise.
17919         * lib/fsync.c: Likewise.
17920         * lib/gc-gnulib.c: Likewise.
17921         * lib/get-rusage-data.c: Likewise.
17922         * lib/getaddrinfo.c: Likewise.
17923         * lib/getdelim.c: Likewise.
17924         * lib/getdtablesize.c: Likewise.
17925         * lib/gethostname.c: Likewise.
17926         * lib/getlogin.c: Likewise.
17927         * lib/getlogin_r.c: Likewise.
17928         * lib/getopt.c: Likewise.
17929         * lib/getpagesize.c: Likewise.
17930         * lib/getpass.c: Likewise.
17931         * lib/getrusage.c: Likewise.
17932         * lib/gettimeofday.c: Likewise.
17933         * lib/glob.c: Likewise.
17934         * lib/inttypes.in.h: Likewise.
17935         * lib/isapipe.c: Likewise.
17936         * lib/javaexec.c: Likewise.
17937         * lib/link.c: Likewise.
17938         * lib/localcharset.c: Likewise.
17939         * lib/localename.h: Likewise.
17940         * lib/localename.c: Likewise.
17941         * lib/localtime.c: Likewise.
17942         * lib/lseek.c: Likewise.
17943         * lib/mbsinit.c: Likewise.
17944         * lib/mkdir.c: Likewise.
17945         * lib/msvc-nothrow.h: Likewise.
17946         * lib/nanosleep.c: Likewise.
17947         * lib/nl_langinfo.c: Likewise.
17948         * lib/nonblocking.c: Likewise.
17949         * lib/nproc.c: Likewise.
17950         * lib/open.c: Likewise.
17951         * lib/openpty.c: Likewise.
17952         * lib/pathmax.h: Likewise.
17953         * lib/pipe-filter-aux.c: Likewise.
17954         * lib/pipe-filter-gi.c: Likewise.
17955         * lib/pipe-filter-ii.c: Likewise.
17956         * lib/pipe.c: Likewise.
17957         * lib/pipe2.c: Likewise.
17958         * lib/poll.c: Likewise.
17959         * lib/popen.c: Likewise.
17960         * lib/posix_openpt.c: Likewise.
17961         * lib/printf-parse.c: Likewise.
17962         * lib/progreloc.c: Likewise.
17963         * lib/putenv.c: Likewise.
17964         * lib/read.c: Likewise.
17965         * lib/relocatable.c: Likewise.
17966         * lib/rename.c: Likewise.
17967         * lib/same-inode.h: Likewise.
17968         * lib/secure_getenv.c: Likewise.
17969         * lib/select.c: Likewise.
17970         * lib/sethostname.c: Likewise.
17971         * lib/setlocale.c: Likewise.
17972         * lib/sigaction.c: Likewise.
17973         * lib/sigprocmask.c: Likewise.
17974         * lib/sleep.c: Likewise.
17975         * lib/spawn-pipe.h: Likewise.
17976         * lib/spawn-pipe.c: Likewise.
17977         * lib/spawni.c: Likewise.
17978         * lib/stat-time.h: Likewise.
17979         * lib/stat-w32.c: Likewise.
17980         * lib/stat.c: Likewise.
17981         * lib/stdio.in.h: Likewise.
17982         * lib/stdio-impl.h: Likewise.
17983         * lib/stdio-read.c: Likewise.
17984         * lib/stdio-write.c: Likewise.
17985         * lib/stdlib.in.h: Likewise.
17986         * lib/strerror_r.c: Likewise.
17987         * lib/strftime-fixes.c: Likewise.
17988         * lib/sys_stat.in.h: Likewise.
17989         * lib/sys_types.in.h: Likewise.
17990         * lib/sys_wait.in.h : Likewise.
17991         * lib/system-quote.h: Likewise.
17992         * lib/system-quote.c: Likewise.
17993         * lib/tmpdir.c: Likewise.
17994         * lib/tzset.c: Likewise.
17995         * lib/uname.c: Likewise.
17996         * lib/unistd.in.h: Likewise.
17997         * lib/utime.in.h: Likewise.
17998         * lib/utime.c: Likewise.
17999         * lib/utimecmp.c: Likewise.
18000         * lib/utimens.c: Likewise.
18001         * lib/vasnprintf.c: Likewise.
18002         * lib/vma-iter.h: Likewise.
18003         * lib/vma-iter.c: Likewise.
18004         * lib/wait-process.c: Likewise.
18005         * lib/wcsftime.c: Likewise.
18006         * lib/wctype.in.h: Likewise.
18007         * lib/write.c: Likewise.
18008         * tests/nap.h: Likewise.
18009         * tests/test-cloexec.c: Likewise.
18010         * tests/test-dup-safer.c: Likewise.
18011         * tests/test-dup2.c: Likewise.
18012         * tests/test-dup3.c: Likewise.
18013         * tests/test-fcntl.c: Likewise.
18014         * tests/test-get-rusage-data.c: Likewise.
18015         * tests/test-getaddrinfo.c: Likewise.
18016         * tests/test-getlogin.h: Likewise.
18017         * tests/test-isatty.c: Likewise.
18018         * tests/test-localename.c: Likewise.
18019         * tests/test-mbrtowc-w32.c: Likewise.
18020         * tests/test-nonblocking.c: Likewise.
18021         * tests/test-nonblocking-pipe-main.c: Likewise.
18022         * tests/test-nonblocking-socket-main.c: Likewise.
18023         * tests/test-nonblocking-socket.h: Likewise.
18024         * tests/test-pipe.c: Likewise.
18025         * tests/test-pipe2.c: Likewise.
18026         * tests/test-poll.c: Likewise.
18027         * tests/test-pthread_sigmask1.c: Likewise.
18028         * tests/test-select.h: Likewise.
18029         * tests/test-sethostname2.c: Likewise.
18030         * tests/test-sigprocmask.c: Likewise.
18031         * tests/test-spawn-pipe-child.c: Likewise.
18032         * tests/test-stat-time.c: Likewise.
18033         * tests/test-system-quote-main.c: Likewise.
18034         * tests/test-utimens-common.h: Likewise.
18035         * tests/test-wcrtomb-w32.c: Likewise.
18036         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18037         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18038         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
18039         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
18040         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
18041         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18042         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18044         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18045         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18046         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
18047         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
18048         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18049         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18050         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
18051         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18053 2018-05-02  Bruno Haible  <bruno@clisp.org>
18055         localename: Fix test failures on mingw.
18056         * lib/localename.c (gl_locale_name_thread): Remove code specific to
18057         native Windows.
18058         (gl_locale_name_posix): Move code specific to native Windows here.
18059         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
18060         Accept result without charset suffix, as it appears on mingw.
18062 2018-04-28  Paul Smith  <psmith@gnu.org>
18064         bootstrap: Avoid gnulib operations if not needed
18065         * build-aux/bootstrap: Remove unused variable gnulib_mk.
18066         Set $gnulib_extra_files early so it can be overridden in .conf.
18067         Remove redundant --import flag from $gnulib_tool_options.
18068         Set $use_gnulib to false if no gnulib modules or files are needed.
18069         If $use_gnulib is false, don't do anything related to gnulib.
18070         A lot of this is just whitespace (indentation) changes.
18072 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18074         manywarnings: port to GCC 8.0
18075         * build-aux/gcc-warning.spec: Add -Wcatch-value,
18076         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
18077         fact that the GCC help message now mentions operands for
18078         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
18079         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
18080         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
18081         and -Wunused-const-variable.
18082         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
18083         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
18084         -Wmissing-attributes, -Wmultistatement-macros,
18085         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
18086         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
18088 2018-04-24  Bruno Haible  <bruno@clisp.org>
18090         sys_socket: Make SO_REUSEPORT available across platforms.
18091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18092         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
18093         * doc/posix-headers/sys_socket.texi: Mention the issue.
18094         * tests/test-poll.c (SO_REUSEPORT): Remove.
18095         * tests/test-select.h: Include <sys/socket.h>.
18096         (SO_REUSEPORT): Remove.
18097         * modules/select-tests (Depends-on): Add 'sys_socket'.
18099 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
18101         localcharset: short-circuit the search for an alias on a Mac
18102         * lib/localcharset.c (get_charset_aliases): Add a tautological
18103         UTF-8 entry to speed up the search for this case.
18104         Most machines default to a UTF-8 locale nowadays, so begin the
18105         list of aliases with a dummy UTF-8 entry so it will be found
18106         immediately and a time-consuming search through the rest of
18107         the list is avoided.
18109 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18111         fts: add comment
18112         * lib/fts.c (fts_build): Explain why ==, not >.
18113         See remark by Bernhard Voelker in:
18114         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
18116         fts: fix bug in find across filesystems
18117         This fixes a bug I introduced last summer.
18118         Problem reported by Kamil Dudka in:
18119         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
18120         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
18121         (leaf_optimization):
18122         New arg for file descriptor.  All callers changed.
18123         (fts_build): Check for whether inodes should be sorted
18124         before closing the directory.
18126 2018-04-07  Bruno Haible  <bruno@clisp.org>
18128         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
18129         Reported by Genki Sky <sky@genki.is>.
18130         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
18131         version 0.9.10 or newer.
18132         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
18133         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
18134         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
18135         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
18136         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
18138 2018-04-07  Bruno Haible  <bruno@clisp.org>
18140         execute: Update comment.
18141         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
18143 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18145         fts: treat CIFS like NFS
18146         Problem reported by Kamil Dudka in:
18147         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
18148         * lib/fts.c (S_MAGIC_CIFS): New macro.
18149         (dirent_inode_sort_may_be_useful, leaf_optimization):
18150         Treat CIFS like NFS.
18152 2018-03-28  Bruno Haible  <bruno@clisp.org>
18154         c-stack: Fix possible build failure on some platforms.
18155         * lib/c-stack.c (die): Define whenever this function is referenced.
18157 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
18159         time_rz: fix workaround for Mac OS X 10.6 infloop
18160         Problems reported by Charles A. Roelli (Bug#27736#117).
18161         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
18162         Also, discard output, which clutters the 'configure' log.
18164 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
18166         havelib: port to Solaris 10 /bin/sh
18167         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
18168         instead of '! test EXPR'.
18170 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
18172         time_rz: work around Mac OS X 10.6 infloop
18173         * doc/posix-functions/localtime.texi:
18174         * doc/posix-functions/localtime_r.texi: Mention the bug.
18175         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
18176         better to fix localtime and localtime_r instead, but that would be
18177         more work and is not needed to fix the Emacs problem.
18178         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
18180 2018-03-24  Jim Meyering  <meyering@fb.com>
18182         test-version-etc.sh: don't use diff directly: use init.sh's compare
18183         We'd rather not sacrifice readable "diff -u" output even for
18184         "diff -c" output (not supported by busybox) or for even less
18185         readable ed-style "diff" output.  So use init.sh's compare function
18186         * tests/test-version-etc.sh: Source init.sh and add "." to path.
18187         Remove "./" from invocation of test-version-etc, so we use path.
18188         And s/diff/compare/.
18189         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
18190         to get init.sh.
18191         Prompted by Eric Blake's comments in
18192         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
18194 2018-03-24  Bruno Haible  <bruno@clisp.org>
18196         javacomp-script, javacomp: Add support for Java 10.
18197         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
18198         target-version 10.
18199         * lib/javaversion.h: Update comments.
18200         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18201         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18202         TARGET_VERSION_BOUND, target_version_index,
18203         corresponding_classfile_version): Accept source_version 10 and
18204         target_version 10.
18205         * lib/javacomp.h: Update comments accordingly.
18207 2018-03-24  Bruno Haible  <bruno@clisp.org>
18209         javacomp-script, javacomp: Update comments.
18210         * m4/javacomp.m4: Update comments regarding gcj.
18211         * lib/javacomp.h: Likewise.
18213 2018-03-24  Bruno Haible  <bruno@clisp.org>
18215         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
18216         * lib/javaversion.h: Update comments.
18217         * lib/javacomp.h: Likewise.
18218         * lib/javacomp.c (default_target_version, source_version_index,
18219         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
18220         "1.9".
18221         (TARGET_VERSION_BOUND): Bump to 9.
18222         (target_version_index, corresponding_classfile_version): Recognize "9"
18223         instead of "1.9".
18224         (get_source_version_for_javac): New function.
18225         (is_envjavac_nongcj_usable, is_javac_usable): Add
18226         source_version_for_javac argument.
18227         (compile_java_class): Determine and pass source_version_for_javac.
18228         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
18229         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
18230         appropriate.
18232 2018-03-23  Jim Meyering  <meyering@fb.com>
18234         test-version-etc.sh: port to diff without -c
18235         * tests/test-version-etc.sh: Don't use diff's -c option.
18236         This caused spurious test failure on Alpine Linux, which
18237         uses busybox's diff. Reported by Assaf Gordon in
18238         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
18240 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
18242         c-stack: port to recent GCC build
18243         Problem reported by The Fireplace (Bug#30913).
18244         * lib/c-stack.c (die): Define only if used.
18246 2018-03-20  Bruno Haible  <bruno@clisp.org>
18248         euidaccess: Port to native Windows.
18249         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
18250         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
18252 2018-03-19  Bruno Haible  <bruno@clisp.org>
18254         javacomp: Add support for Java 7, 8, 9.
18255         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18256         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18257         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
18258         and target_version 1,7, 1.8, 1.9.
18259         * lib/javacomp.h: Update comments accordingly.
18261 2018-03-19  Bruno Haible  <bruno@clisp.org>
18263         javacomp-script: Add support for Java 9.
18264         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
18265         target-version 1.9.
18267 2018-03-16  Bruno Haible  <bruno@clisp.org>
18269         glob: Don't compile replacements on recent glibc systems.
18270         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
18271         REPLACE_GLOB is 0, include the system's <glob.h> and use
18272         _GL_CXXALIAS_SYS.
18273         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
18274         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
18275         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
18276         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
18277         Remove snippet/warn-on-use.
18278         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
18279         (Makefile.am): Create glob.h always. Update list of substitutions in
18280         glob.h. Don't depend on $(WARN_ON_USE_H).
18282 2018-03-16  Bruno Haible  <bruno@clisp.org>
18284         glob: Fix link error on native Windows.
18285         * modules/glob (Depends-on): Add 'lstat'.
18287 2018-03-15  Bruno Haible  <bruno@clisp.org>
18289         glob: Fix compilation error in C++ mode.
18290         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
18292 2018-03-15  Bruno Haible  <bruno@clisp.org>
18294         host-cpu-c-abi: Support for RISC-V CPU.
18295         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
18296         riscv32 and riscv64 ABIs.
18297         References:
18298         https://github.com/riscv/riscv-toolchain-conventions
18299         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
18300         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
18302 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18304         fflush: be more paranoid about libio.h change
18305         Suggested by Eli Zaretskii in:
18306         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
18307         * lib/fbufmode.c (fbufmode):
18308         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18309         (disable_seek_optimization, rpl_fflush):
18310         * lib/fpending.c (__fpending):
18311         * lib/fpurge.c (fpurge):
18312         * lib/freadable.c (freadable):
18313         * lib/freadahead.c (freadahead):
18314         * lib/freading.c (freading):
18315         * lib/freadptr.c (freadptr):
18316         * lib/freadseek.c (freadptrinc):
18317         * lib/fseeko.c (fseeko):
18318         * lib/fseterr.c (fseterr):
18319         * lib/fwritable.c (fwritable):
18320         * lib/fwriting.c (fwriting):
18321         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
18323 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
18325         maint: write-file-hooks -> before-save-hook
18326         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
18327         it's time to use the recommended replacement.
18328         Problem reported by Glenn Morris in:
18329         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
18330         * build-aux/announce-gen, build-aux/bootstrap:
18331         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
18332         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
18333         * build-aux/gnu-web-doc-update, build-aux/gnupload:
18334         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
18335         * build-aux/update-copyright, build-aux/useless-if-before-free:
18336         * build-aux/vc-list-files:
18337         Update hook usage for files where Gnulib is the canonical source.
18339 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
18341         binary-io: pacify gcc -Wunused-parameter
18342         Problem reported by Reuben Thomas in:
18343         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
18344         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
18345         Use _GL_UNUSED where appropriate.
18347         fflush: adjust to glibc 2.28 libio.h removal
18348         Problem reported by Daniel P. Berrangé in:
18349         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
18350         * lib/fbufmode.c (fbufmode):
18351         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18352         (disable_seek_optimization, rpl_fflush):
18353         * lib/fpending.c (__fpending):
18354         * lib/fpurge.c (fpurge):
18355         * lib/freadable.c (freadable):
18356         * lib/freadahead.c (freadahead):
18357         * lib/freading.c (freading):
18358         * lib/freadptr.c (freadptr):
18359         * lib/freadseek.c (freadptrinc):
18360         * lib/fseeko.c (fseeko):
18361         * lib/fseterr.c (fseterr):
18362         * lib/fwritable.c (fwritable):
18363         * lib/fwriting.c (fwriting):
18364         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
18365         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
18366         Define if not already defined.
18368 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
18370         environ: fix link error on 32-bit Cygwin
18371         Problem reported for GNU Emacs by Ken Brown in:
18372         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
18373         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
18375 2018-02-24  Bruno Haible  <bruno@clisp.org>
18377         mbrtowc tests: Fix regression on glibc.
18378         Reported by Bernhard Voelker.
18379         * tests/test-mbrtowc.c (main): Fix expected value of wc.
18381 2018-02-24  Bruno Haible  <bruno@clisp.org>
18383         striconveha, uniconv/*: Avoid test failures on musl libc.
18384         * tests/iconvsupport.c: New file.
18385         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
18386         does not support the ISO-2022-JP-2 encoding.
18387         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
18388         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18389         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18390         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18391         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18392         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18393         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
18394         (Makefile.am): Link test-striconveha with iconvsupport.o.
18395         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
18396         tests/iconvsupport.c.
18397         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
18398         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
18399         tests/iconvsupport.c.
18400         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
18401         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
18402         tests/iconvsupport.c.
18403         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
18404         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
18405         tests/iconvsupport.c.
18406         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
18407         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
18408         tests/iconvsupport.c.
18409         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
18410         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
18411         tests/iconvsupport.c.
18412         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
18414 2018-02-24  Bruno Haible  <bruno@clisp.org>
18416         localename: Add support for musl libc.
18417         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
18418         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
18419         on Linux platforms which define NL_LOCALE_NAME.
18421 2018-02-24  Bruno Haible  <bruno@clisp.org>
18423         mbrtowc tests: Don't make assumptions about the charset the C locale.
18424         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
18425         particular mapping in the C locale.
18427 2018-02-24  Bruno Haible  <bruno@clisp.org>
18429         ptsname_r: Don't expect that this function sets errno.
18430         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
18431         from ptsname_r().
18432         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
18434 2018-02-23  Bruno Haible  <bruno@clisp.org>
18436         xmalloca: pacify gcc -Wbad-function-cast
18437         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
18439 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
18441         nl_langinfo: pacify gcc -Wunused-function
18442         * lib/nl_langinfo.c (ctype_codeset): Do not define if
18443         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
18444         this case.  Without this change, I got a diagnostic when building
18445         coreutils on Fedora 27 with gcc 7.3.1 20180130.
18447         same: pacify gcc -Wunused-variable
18448         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
18449         Omit unused variable.
18451         malloca: pacify gcc -Wbad-function-cast
18452         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
18453         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
18454         To pacify GCC, I had to cast alloca’s result to some type other
18455         than void * before casting that to uintptr_t.
18457 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18459         utimecmp: new function utimecmpat
18460         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
18461         Do not include utimens.h.
18462         (utimecmpat): New function, generalizing utimecmp.
18463         (utimecmp): Now a thin layer around utimecmpat.
18464         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
18465         utimensat instead of on lstat and utimens.
18467         same: new function same_nameat
18468         * lib/same.c: Include fcntl.h.
18469         * lib/same.c (same_nameat): New function, generalizing same_name.
18470         (same_name): Now a thin layer around same_nameat.
18471         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
18472         * modules/same (Depends-on): Depend on fstatat, openat.
18474 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
18476         warnings: Add support for Objective C.
18477         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
18478         macro.
18480 2018-02-17  Bruno Haible  <bruno@clisp.org>
18482         lock: Fix test-once1 crash on FreeBSD11.
18483         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
18484         'pthread_create', not 'pthread_cancel'.
18486 2018-02-17  Bruno Haible  <bruno@clisp.org>
18488         lock: Add test of gl_once.
18489         * tests/test-once.c: New file.
18490         * modules/lock-tests (Files): Add it.
18491         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
18493 2018-02-17  Bruno Haible  <bruno@clisp.org>
18495         thread: Fix compilation error on IRIX.
18496         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
18497         needed; include it outside the C++ extern "C" {} block.
18498         * doc/posix-headers/pthread.texi: Mention the problem with
18499         pthread_atfork on IRIX.
18501 2018-02-04  Bruno Haible  <bruno@clisp.org>
18503         nl_langinfo: Override the system's nl_langinfo() when needed.
18504         Reported by Jim Meyering.
18505         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
18506         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
18508 2018-02-04  Bruno Haible  <bruno@clisp.org>
18510         signal-h, monetary, strings: Fix build failure in some cases.
18511         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18512         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
18513         as delimiter in sed command, not '|'.
18514         * modules/monetary (Makefile.am): Likewise.
18515         * modules/strings (Makefile.am): Likewise.
18517 2018-02-03  Jim Meyering  <meyering@fb.com>
18519         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
18520         * top/maint.mk (sc_file_system): Don't complain about
18521         "/proc/filesystems".
18523 2018-02-03  Bruno Haible  <bruno@clisp.org>
18525         stdlib: Fix compilation error on OpenIndiana.
18526         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
18527         <sys/time.h>.
18528         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18529         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
18531 2018-02-03  Bruno Haible  <bruno@clisp.org>
18533         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
18534         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
18535         and use $EGREP instead of 'grep -E'.
18536         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
18537         'grep -E'.
18539 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18541         malloca: Add a compile-time verification.
18542         * lib/malloca.c (small_t): Verify that it is wide enough.
18543         * modules/malloca (Depends-on): Add verify.
18545 2018-02-02  Bruno Haible  <bruno@clisp.org>
18547         malloca: Add an argument check.
18548         Suggested by Paul Eggert.
18549         * lib/malloca.c (freea): Check against an invalid argument.
18551 2018-02-02  Bruno Haible  <bruno@clisp.org>
18553         localename: Add support for OpenIndiana.
18554         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
18555         Solaris 11 variants with uselocale() but without getlocalename_l().
18557 2018-02-02  Bruno Haible  <bruno@clisp.org>
18559         malloca, xmalloca: Make multithread-safe.
18560         Reported by Florian Weimer <fweimer@redhat.com>.
18561         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
18562         * lib/malloca.h (malloca): In the stack allocation case, return a
18563         pointer that is a multiple of 2 * sa_alignment_max.
18564         (sa_increment): Remove enum item.
18565         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
18566         a pointer that is a multiple of 2 * sa_alignment_max.
18567         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
18568         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
18569         HASH_TABLE_SIZE, mmalloca_results): Remove.
18570         (small_t): New type.
18571         (mmalloca, free): Rewritten.
18572         * lib/malloca.valgrind: Remove file.
18573         * modules/malloca (Files): Remove it.
18574         (Depends-on): Remove verify.
18576 2018-01-31  Bruno Haible  <bruno@clisp.org>
18578         environ: Fix link error on 64-bit Cygwin.
18579         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
18580         __declspec(dllimport) attribute.
18581         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
18583 2018-01-30  Bruno Haible  <bruno@clisp.org>
18585         get-rusage-data: Add support for Minix 3.
18586         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
18588 2018-01-30  Bruno Haible  <bruno@clisp.org>
18590         vma-iter: Add support for Minix 3.
18591         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
18592         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
18594 2018-01-27  Bruno Haible  <bruno@clisp.org>
18596         Fix malfunction of socket functions on HP-UX in 64-bit mode.
18597         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
18598         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
18599         _HPUX_ALT_XOPEN_SOCKET_API.
18600         * modules/accept (Depends-on): Add 'extensions'.
18601         * modules/getpeername (Depends-on): Likewise.
18602         * modules/getsockname (Depends-on): Likewise.
18603         * modules/getsockopt (Depends-on): Likewise.
18604         * modules/recvfrom (Depends-on): Likewise.
18605         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
18606         * doc/posix-functions/getpeername.texi: Likewise.
18607         * doc/posix-functions/getsockname.texi: Likewise.
18608         * doc/posix-functions/getsockopt.texi: Likewise.
18609         * doc/posix-functions/recvfrom.texi: Likewise.
18611 2018-01-27  Bruno Haible  <bruno@clisp.org>
18613         getsockname tests: More tests.
18614         * tests/test-getsockname.c (open_server_socket): New function, mostly
18615         copied from test-poll.c.
18616         (main): Check that getsockname fills in addr.
18617         * modules/getsockname-tests (Depends-on): Add the necessary
18618         dependencies.
18619         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
18621 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18623         manywarnings: fix maintainer comment
18624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
18625         it does not mistakenly think that ‘-1)’ is an option.
18627 2018-01-26  Bruno Haible  <bruno@clisp.org>
18629         langinfo: Fix last commit.
18630         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18631         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
18633 2018-01-24  Bruno Haible  <bruno@clisp.org>
18635         langinfo, nl_langinfo: Add support for alternative month names.
18636         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
18637         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
18638         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
18639         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
18640         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
18641         * doc/posix-functions/nl_langinfo.texi: Likewise.
18643 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18645         Merge strftime.c changes from glibc
18646         This incorporates:
18647         2017-11-14 [BZ #10871] Implement alternative month names
18648         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
18649         2017-06-20 Use locale_t, not __locale_t, throughout glibc
18650         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
18651         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
18652         Use locale_t, not __locale_t.
18653         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
18654         (__strftime_internal): Add support for alternate months.
18656 2018-01-23  Bruno Haible  <bruno@clisp.org>
18658         doc: Mention another prerequisite for using Gnulib.
18659         Reported at <https://stackoverflow.com/questions/48378214/>.
18660         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
18661         AC_CONFIG_HEADERS.
18663 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
18665         build: GuixSD doesn't have /bin/bash
18666         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
18668 2018-01-21  Bruno Haible  <bruno@clisp.org>
18670         Avoid test failures on Microsoft Windows Subsystem for Linux.
18671         * tests/test-fcntl.c (main): Allow a different errno.
18672         * tests/test-rename.h (test_rename): Likewise.
18673         * tests/test-renameat.c (main): Likewise.
18674         * tests/test-renameat2.c (main): Likewise.
18676 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
18678         filenamecat: make base a suffix of result
18679         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
18680         (mfile_name_concat): Always make BASE a suffix of the result, as
18681         cp expects this.  To implement this, separate with '.' instead of
18682         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
18683         * tests/test-filenamecat.c (main): Adjust tests to match
18684         current behavior.  Check that BASE_IN_RESULT points to
18685         a copy of BASE and is a suffix of the resultk, and that DIR
18686         is a prefix of the result that is no longer than the prefix
18687         indicated by BASE_IN_RESULT.
18689 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
18691         update-copyright: Handle use of ©
18692         * build-aux/update-copyright ($circle_c_re): Update regex to
18693         handle use of © in headers.
18695 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
18697         Fix -Wundef warning in user-included header lib/cdefs.h.
18698         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
18700 2018-01-04  Bruno Haible  <bruno@clisp.org>
18702         pthread_sigmask: Avoid compilation error on mingw.
18703         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18704         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
18705         macro.
18707 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18709         test-framework-sh: ‘ps -ef’, not ‘ps ef’
18710         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
18711         Suggested by Bob Proulx (Bug#29968).
18712         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
18714 2018-01-02  Eric Blake  <eblake@redhat.com>
18716         stat-time: silence -Wunused-parameter regression
18717         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
18718         Prefer attribute over cast-to-void.
18719         (stat_time_normalize): Mark st as potentially unused.
18721 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
18723         test-framework-sh: avoid netstat
18724         Problem reported by Kristýna Streitová (Bug#29947).
18725         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
18726         deprecated on SuSE and it's not that important anyway.
18728 2018-01-01  Jim Meyering  <meyering@fb.com>
18730         update-copyright: add code to handle more special cases
18731         After running "make update-copyright" this year, five files
18732         required additional manual changes.  Automate those adjustments
18733         for next year.
18734         * Makefile (_year_and_prev): Define.
18735         (update-copyright): Add perl commands to induce this year's post-
18736         update-copyright adjustments.
18738 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18740         version-etc: new year
18741         * build-aux/gendocs.sh (version):
18742         * doc/gendocs_template:
18743         * doc/gendocs_template_min:
18744         * doc/gnulib.texi:
18745         * lib/version-etc.c (COPYRIGHT_YEAR):
18746         Update copyright dates by hand in templates and the like.
18748         maint: fix 'make update-copyright'
18749         * Makefile (update-copyright): Adjust to 2016-11-23 change
18750         to config/srclist-update, which changed the format of srclist.txt.
18752 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18754         chdir-safer: remove this module
18755         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
18756         * NEWS: Document removal.
18757         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
18758         * modules/chdir-safer: Remove these files.
18760 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
18762         Add cross-compilation results for GNU/Hurd.
18763         * m4/calloc.m4: Add GNU/Hurd guess.
18764         * m4/cbrtl.m4: Likewise.
18765         * m4/ceil.m4: Likewise.
18766         * m4/ceilf.m4: Likewise.
18767         * m4/ceill.m4: Likewise.
18768         * m4/chown.m4: Likewise.
18769         * m4/duplocale.m4: Likewise.
18770         * m4/exp2l.m4: Likewise.
18771         * m4/expm1.m4: Likewise.
18772         * m4/fchdir.m4: Likewise.
18773         * m4/floor.m4: Likewise.
18774         * m4/floorf.m4: Likewise.
18775         * m4/fmod.m4: Likewise.
18776         * m4/fmodf.m4: Likewise.
18777         * m4/fmodl.m4: Likewise.
18778         * m4/getcwd.m4: Likewise.
18779         * m4/getgroups.m4: Likewise.
18780         * m4/gettimeofday.m4: Likewise.
18781         * m4/hypot.m4: Likewise.
18782         * m4/hypotf.m4: Likewise.
18783         * m4/hypotl.m4: Likewise.
18784         * m4/link-follow.m4: Likewise.
18785         * m4/link.m4: Likewise.
18786         * m4/linkat.m4: Likewise.
18787         * m4/log.m4: Likewise.
18788         * m4/log10.m4: Likewise.
18789         * m4/log10f.m4: Likewise.
18790         * m4/log1p.m4: Likewise.
18791         * m4/log1pf.m4: Likewise.
18792         * m4/log1pl.m4: Likewise.
18793         * m4/log2.m4: Likewise.
18794         * m4/log2f.m4: Likewise.
18795         * m4/logf.m4: Likewise.
18796         * m4/lstat.m4: Likewise.
18797         * m4/malloc.m4: Likewise.
18798         * m4/mbrlen.m4: Likewise.
18799         * m4/mbrtowc.m4: Likewise.
18800         * m4/mkdir.m4: Likewise.
18801         * m4/mkfifo.m4: Likewise.
18802         * m4/mknod.m4: Likewise.
18803         * m4/mkstemp.m4: Likewise.
18804         * m4/modf.m4: Likewise.
18805         * m4/modff.m4: Likewise.
18806         * m4/modfl.m4: Likewise.
18807         * m4/printf.m4: Likewise.
18808         * m4/pselect.m4: Likewise.
18809         * m4/ptsname.m4: Likewise.
18810         * m4/putenv.m4: Likewise.
18811         * m4/readlink.m4: Likewise.
18812         * m4/realloc.m4: Likewise.
18813         * m4/remainder.m4: Likewise.
18814         * m4/remainderf.m4: Likewise.
18815         * m4/remainderl.m4: Likewise.
18816         * m4/rmdir.m4: Likewise.
18817         * m4/round.m4: Likewise.
18818         * m4/roundf.m4: Likewise.
18819         * m4/roundl.m4: Likewise.
18820         * m4/select.m4: Likewise.
18821         * m4/setenv.m4: Likewise.
18822         * m4/signbit.m4: Likewise.
18823         * m4/sleep.m4: Likewise.
18824         * m4/stat.m4: Likewise.
18825         * m4/strerror.m4: Likewise.
18826         * m4/strtok_r.m4: Likewise.
18827         * m4/symlink.m4: Likewise.
18828         * m4/symlinkat.m4: Likewise.
18829         * m4/trunc.m4: Likewise.
18830         * m4/truncf.m4: Likewise.
18831         * m4/truncl.m4: Likewise.
18832         * m4/tzset.m4: Likewise.
18833         * m4/ungetc.m4: Likewise.
18834         * m4/usleep.m4: Likewise.
18835         * m4/wcwidth.m4: Likewise.
18837 2017-12-28  Bruno Haible  <bruno@clisp.org>
18839         gnulib-tool: Make --conditional-dependencies work better.
18840         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
18841         * gnulib-tool (Options): Don't reject the combination of
18842         --conditional-dependencies with --with-tests.
18843         (func_emit_autoconf_snippets): Add argument referenceable_modules.
18844         Don't reference $modules.
18845         (func_import, func_create_testdir): Pass it.
18847 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18849         regex: use re_malloc etc. consistently
18850         Problem and original patch reported by Arnold Robbins in:
18851         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
18852         * lib/regcomp.c (re_comp):
18853         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
18854         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
18856 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
18857             Paul Eggert  <eggert@cs.ucla.edu>
18859         glob: Silence warning about void pointer arithmetic.
18860         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18861         arithmetic.
18863 2017-12-15  Bruno Haible  <bruno@clisp.org>
18865         spawn-pipe: Silence a clang warning.
18866         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18867         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
18868         in this file.
18870 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
18872         explicit_bzero: port to macOS + Clang 9.0.0
18873         Problem reported by Marcus Johnson (Bug#29658).
18874         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
18875         Don’t use asm.
18877 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
18879         doc: Improve explanation of supporting relocatable libraries.
18880         * doc/relocatable-maint.texi (Supporting Relocation): Explain
18881         properly how to build the relocatable module for
18882         libraries. (Method and example code from Bruno Haible.)
18884 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
18886         doc: Use better texinfo tags in a few cases.
18887         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
18888         instead of @samp in a few places.
18890 2017-12-11  Bruno Haible  <bruno@clisp.org>
18892         unistr/base: Update comment.
18893         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
18895 2017-12-10  Pádraig Brady  <P@draigBrady.com>
18897         test-faccessat.c: unlink temp file to avoid subsequent test failure
18898         * tests/test-faccessat.c: Remove the file to avoid failure
18899         to open the file on subsequent runs due to being created
18900         with no permissions.
18902 2017-12-10  Bruno Haible  <bruno@clisp.org>
18904         doc: New sect. "Modifying the build rules of a Gnulib import directory".
18905         * doc/gnulib-tool.texi (Modified build rules): New node.
18907 2017-12-10  Bruno Haible  <bruno@clisp.org>
18909         doc: Tweak wording.
18910         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
18911         "binaries".
18913 2017-12-05  Sam Steingold  <sds@gnu.org>
18914             Bruno Haible  <bruno@clisp.org>
18916         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
18917         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
18918         AC_EGREP_CPP pattern.
18920 2017-12-03  Bruno Haible  <bruno@clisp.org>
18922         all: Replace more http URLs by https URLs.
18923         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
18924         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
18925         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
18926         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
18928 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18930         Port better to CentOS 5
18931         Problems reported by Tom G. Christensen in:
18932         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
18933         * doc/glibc-functions/strverscmp.texi (strverscmp):
18934         Document strverscmp bug with glibc 2.9 and earlier.
18935         * doc/posix-functions/tzset.texi (tzset):
18936         Document that TZ with angle brackets is POSIX-2001 and later.
18937         * tests/test-nstrftime.c: Include unistd.h.
18938         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
18939         (TZ): Use it to skip tests with angle brackets in TZ,
18940         for older systems.
18942         stat: add missing module dependencies
18943         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
18944         Add stat-time.
18946 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
18948         stat: fix compilation failure on macOS Sierra
18949         Reported by Marius Schamschula <mschamschula@gmail.com> in:
18950         https://savannah.gnu.org/bugs/?52546
18951         * lib/stat.c: Add missing include of stat-time.h.
18953 2017-11-28  Jim Meyering  <meyering@fb.com>
18955         test-faccessat.c: correct BASE definition to avoid parallel test failure
18956         * tests/test-faccessat.c (BASE): Define using this file's name, not
18957         that of test-lstat.c.  Using the latter caused this test to fail
18958         sometimes when run concurrently with test-lstat.
18960 2017-11-27  Daiki Ueno  <ueno@gnu.org>
18962         unicase: fix VPATH build
18963         * modules/unicase/special-casing (Makefile.am): Ensure that the
18964         base directory is created when generating
18965         unicase/special-casing.h.
18967 2017-11-27  Daiki Ueno  <ueno@gnu.org>
18969         libunistring: update to Unicode 9.0.0
18970         * lib/gen-uni-tables.c (fill_properties): Recognize
18971         Sentence_Terminal and Prepended_Concatenation_Mark.
18972         (is_property_default_ignorable_code_point): Exclude U+08E2.
18973         (fill_arabicshaping): Allow missing whitespace when parsing;
18974         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
18975         (output_blocks): Increase the element size of the level1 table to
18976         accommodate more blocks.
18977         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
18978         Update each class according to the standard.
18979         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
18980         E_Base_GAZ characters.
18981         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
18982         Glue_After_Zwj, and E_Base_GAZ characters.
18983         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
18984         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
18985         enum value.
18986         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
18987         value.
18988         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
18989         LBP_ZWJ, LBP_EB, and LBP_EM.
18990         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
18991         enum value.
18992         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
18993         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
18994         declaration.
18995         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
18996         (uniwbrk_table): Implement WB14.
18997         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
18998         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
18999         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
19000         uc-is-grapheme-break.
19001         * modules/unigbrk/uc-grapheme-breaks: New module.
19002         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
19003         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
19004         enum value.
19005         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
19006         * lib/unigbrk/u-grapheme-breaks.h: New file.
19007         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
19008         u-grapheme-breaks.h instead of uc_is_grapheme_break.
19009         * lib/unigbrk/uc-grapheme-breaks.c: New file.
19010         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
19011         29.
19012         * tests/unigbrk/test-uc-gbrk-prop.c
19013         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19014         GBP_GAZ, and GBP_EBG.
19015         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
19016         * tests/unigbrk/test-uc-is-grapheme-break.c
19017         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19018         GBP_GAZ, and GBP_EBG.
19019         (main): Skip unsupported rules involving 3 or more characters,
19020         namely GB10, GB12, and GB13.
19021         * lib/uniwidth/width.c (nonspacing_table_data): Update.
19022         * all generated files under lib/uni* and tests/uni*: Regenerate.
19023         * all the affected modules: Bump version.
19025 2017-11-26  Bruno Haible  <bruno@clisp.org>
19027         strfmon_l: Fix compilation error with glibc 2.5.
19028         Reported by Tom G. Christensen <tgc@jupiterrise.com>
19029         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
19030         * lib/monetary.in.h: Include also <locale.h>.
19032 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19034         posixtm: remove PDS_LEADING_YEAR
19035         This changes the API slightly, in a hopefully-innocuous way.
19036         Without this change the code had undefined behavior when a
19037         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
19038         Problem reported by Pádraig Brady in:
19039         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
19040         * NEWS: Mention this.
19041         * lib/posixtm.c (posix_time_parse): Treat the absence of
19042         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
19043         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
19044         present, but define it as zero, for compatibility with existing
19045         source code).  All other PDS_* values moved up.
19046         * tests/test-posixtm.c (LY): New macro.
19047         (T): Use it.  Do not expect a particular numeric encoding
19048         for PDS_CENTURY etc.
19050 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19052         stat: work around Solaris bug with tv_nsec < 0
19053         * doc/posix-functions/fstat.texi (fstat):
19054         * doc/posix-functions/fstatat.texi (fstatat):
19055         * doc/posix-functions/lstat.texi (lstat):
19056         * doc/posix-functions/stat.texi (stat):
19057         Mention Solaris 11 bug.
19058         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
19059         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
19060         * lib/lstat.c (rpl_lstat):
19061         * lib/stat.c (rpl_stat):
19062         Normalize resulting timestamps.
19063         * lib/fstatat.c (normal_fstatat): New function.
19064         (rpl_fstatat): Use it.
19065         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
19066         (stat_time_normalize): New function.
19067         * m4/fstat.m4 (gl_FUNC_FSTAT):
19068         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
19069         * m4/lstat.m4 (gl_FUNC_LSTAT):
19070         * m4/stat.m4 (gl_FUNC_STAT):
19071         Replace on Solaris.
19072         * modules/fstat (Depends-on):
19073         * modules/fstatat (Depends-on):
19074         Add stat-time.
19075         * modules/stat-time (Depends-on): Add errno, intprops.
19077 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
19079         regex: merge from glibc
19080         * lib/regcomp.c (init_word_char): Add comments.
19082 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19084         regex: merge from glibc
19085         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
19086         * lib/regex_internal.h (internal_function): Remove.
19087         All uses removed.
19089 2017-11-20  Bruno Haible  <bruno@clisp.org>
19091         crypto/gc-sm3: Fix buffer overrun.
19092         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
19093         Reported by Coverity.
19095 2017-11-12  Jim Meyering  <meyering@fb.com>
19097         maint: shorten https://lists.gnu.org/archive/html/... links
19098         Each /archive/html/ part can be replace with /r/.
19099         Run this to induce the change:
19100         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
19101         * ChangeLog: Perform that substitution.
19102         * Makefile: Likewise.
19103         * STATUS-libposix: Likewise.
19104         * build-aux/bootstrap: Likewise.
19105         * doc/maintain.texi: Likewise.
19106         * gnulib-tool: Likewise.
19107         * lib/allocator.h: Likewise.
19108         * lib/argp-ba.c: Likewise.
19109         * lib/argp-pv.c: Likewise.
19110         * lib/canon-host.c: Likewise.
19111         * lib/canonicalize-lgpl.c: Likewise.
19112         * lib/float.in.h: Likewise.
19113         * lib/fstat.c: Likewise.
19114         * lib/getdelim.c: Likewise.
19115         * lib/getprogname.c: Likewise.
19116         * lib/glthread/thread.h: Likewise.
19117         * lib/intprops.h: Likewise.
19118         * lib/mbsrtowcs-state.c: Likewise.
19119         * lib/safe-read.c: Likewise.
19120         * lib/signal.in.h: Likewise.
19121         * lib/stat.c: Likewise.
19122         * lib/stdbool.in.h: Likewise.
19123         * lib/stdio-impl.h: Likewise.
19124         * lib/stdio.in.h: Likewise.
19125         * lib/sysexits.in.h: Likewise.
19126         * lib/timespec.h: Likewise.
19127         * lib/wcsrtombs-state.c: Likewise.
19128         * m4/alloca.m4: Likewise.
19129         * m4/extern-inline.m4: Likewise.
19130         * m4/fstatat.m4: Likewise.
19131         * m4/gnulib-common.m4: Likewise.
19132         * m4/lib-ignore.m4: Likewise.
19133         * m4/printf.m4: Likewise.
19134         * m4/regex.m4: Likewise.
19135         * m4/stat-size.m4: Likewise.
19136         * m4/std-gnu11.m4: Likewise.
19137         * m4/stdbool.m4: Likewise.
19138         * m4/sys_types_h.m4: Likewise.
19139         * m4/threadlib.m4: Likewise.
19140         * m4/vararrays.m4: Likewise.
19141         * pygnulib/GLImport.py: Likewise.
19142         * tests/test-exp.h: Likewise.
19143         * tests/test-exp2.h: Likewise.
19144         * tests/test-expm1.h: Likewise.
19145         * tests/test-fflush2.c: Likewise.
19146         * tests/test-getopt_long.h: Likewise.
19147         * tests/test-intprops.c: Likewise.
19148         * tests/test-log.h: Likewise.
19149         * tests/test-log10.h: Likewise.
19150         * tests/test-log1p.h: Likewise.
19151         * tests/test-log2.h: Likewise.
19152         * tests/test-printf-posix.h: Likewise.
19153         * tests/test-regex.c: Likewise.
19154         * tests/test-snprintf-posix.h: Likewise.
19155         * tests/test-sprintf-posix.h: Likewise.
19156         * tests/test-stdalign.c: Likewise.
19157         * tests/test-stdbool.c: Likewise.
19158         * tests/test-vasnprintf-posix.c: Likewise.
19159         * tests/test-vasprintf-posix.c: Likewise.
19160         * top/maint.mk: Likewise.
19162 2017-11-12  Bruno Haible  <bruno@clisp.org>
19164         faccessat: Make the last change more robust.
19165         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
19166         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
19168 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19170         faccessat: port to macOS (Bug#29231)
19171         macOS faccessat has the same bug that lstat does: if the file
19172         name ends in '/' it ignores the trailing slash.
19173         Problem reported for Emacs by Vincent Zhang.
19174         * doc/posix-functions/faccessat.texi (faccessat): Document this.
19175         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
19176         around the initial includes.  Include errno.h, string.h, sys/stat.h.
19177         (orig_faccessat) [HAVE_FACCESSAT]: New function.
19178         Include "unistd.h" after defining it.
19179         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
19180         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
19181         Handle in the usual way.
19182         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
19183         lstat dereferences symlinks, since faccessat is likely to
19184         have the same problem.
19185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
19186         * modules/faccessat (Depends-on): Add fstatat.
19187         Depend if REPLACE_FACCESSAT is 1, too.
19188         (configure.ac): Link if REPLACE_FACCESSAT is 1.
19189         * modules/faccessat-tests (Depends-on): Add symlink.
19190         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
19191         * tests/test-faccessat.c (main): Test for the bug.
19193 2017-11-11  Bruno Haible  <bruno@clisp.org>
19195         getprogname: Fix compilation error on IRIX.
19196         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
19197         'namesize'.
19199 2017-11-11  Bruno Haible  <bruno@clisp.org>
19201         year2038: Tweak last patch.
19202         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
19204 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19206         year2038: be more insistent about 64-bit time_t
19207         Applications requiring access to arbitrary files should not be
19208         built with 32-bit time_t on hosts that have 64-bit timestamps,
19209         as this can lead to real trouble at runtime.
19210         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
19211         Check on all systems, not just MinGW.  Use a heuristic involving
19212         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
19213         output a failure or just a warning, to make it more likely that
19214         builders will select 64-bit time_t.
19216 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19218         havelib: fix typo in previous change
19219         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
19221         Don’t use AC_EGREP_CPP if affected by CFLAGS
19222         * m4/float_h.m4 (gl_FLOAT_H):
19223         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
19224         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
19225         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
19226         * m4/year2038.m4 (gl_YEAR2038):
19227         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
19228         likely to be affected by the choice of CFLAGS, since CFLAGS are
19229         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
19230         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
19232         fstatat: pacify GCC on unusual platform
19233         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
19234         Omit, as it’s unused in this case.
19236 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19238         timespec: prefer ‘assume’ to ‘assure’
19239         This avoids some runtime tests.  The rest of the module makes
19240         similar assumptions and there is little point to testing here.
19241         * lib/timespec.h: Include verify.h instead of assure.h.
19242         (timespec_cmp): Use ‘assume’, not ‘assure’.
19243         Also, remove an unnecessary cast to ‘int’, as lots of other
19244         code in this module now causes -Wconversion to complain, and
19245         this is a problem with -Wconversion not with the code.
19247         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
19249         Port recent gnulib-tool change to Dash
19250         * gnulib-tool (func_create_testdir): Don't assume that the shell
19251         retokenizes after expanding "$@" inside the call to
19252         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
19254 2017-10-27  Jim Meyering  <meyering@fb.com>
19256         timespec.h: use "assure" to avoid a spurious warning
19257         * lib/timespec.h: Include "assure.h" and use it to help
19258         gcc7's -Wstrict-overflow avoid a false positive warning
19259         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
19260         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
19261         * modules/timespec (Depends-on): Add assure.
19263 2017-10-29  Bruno Haible  <bruno@clisp.org>
19265         Avoid several test failures with traditional locales on Haiku.
19266         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
19267         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
19268         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
19269         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
19270         LOCALE_ZH_CN=none.
19272 2017-10-29  Bruno Haible  <bruno@clisp.org>
19274         strerror_r-posix: Fix behaviour and test failure on Haiku.
19275         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
19276         are positive. Work around return value 0 instead of ERANGE on Haiku.
19277         For unknown error numbers, use a format string consistent with perror().
19278         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
19279         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
19280         are positive.
19282 2017-10-29  Bruno Haible  <bruno@clisp.org>
19284         get-rusage-data: Avoid crash on Haiku.
19285         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
19287 2017-10-29  Bruno Haible  <bruno@clisp.org>
19289         get-rusage-as: Avoid crash on Haiku.
19290         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
19292 2017-10-29  Bruno Haible  <bruno@clisp.org>
19294         ilogbl: Ensure replacement on Haiku.
19295         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
19296         REPLACE_ILOGBL if ilogbl does not work.
19297         (gl_FUNC_ILOGBL_WORKS): New macro.
19298         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
19299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
19300         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
19301         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
19302         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
19304 2017-10-29  Bruno Haible  <bruno@clisp.org>
19306         expl: Ensure replacement on Haiku.
19307         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
19308         zero.
19309         * doc/posix-functions/expl.texi: Mention the Haiku problem.
19311 2017-10-29  Bruno Haible  <bruno@clisp.org>
19313         math: Fix test failure on Haiku.
19314         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
19315         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
19316         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19317         * doc/posix-headers/math.texi: Mention the Haiku problem.
19319 2017-10-29  Bruno Haible  <bruno@clisp.org>
19321         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
19322         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
19323         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
19325 2017-10-29  Bruno Haible  <bruno@clisp.org>
19327         crypto/*: Verify that the header file is self-contained.
19328         * tests/test-gc-*.c: Include the module's header file immediately after
19329         <config.h>.
19330         * tests/test-hmac-*.c: Likewise.
19331         * tests/test-arcfour.c: Likewise.
19332         * tests/test-arctwo.c: Likewise.
19333         * tests/test-des.c: Likewise.
19334         * tests/test-md2.c: Likewise.
19335         * tests/test-md4.c: Likewise.
19336         * tests/test-md5.c: Likewise.
19337         * tests/test-rijndael.c: Likewise.
19338         * tests/test-sha1.c: Likewise.
19339         * tests/test-sm3.c: Likewise.
19341 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19342             Bruno Haible  <bruno@clisp.org>
19344         crypto/gc: fix build failure with -Werror=suggest-attribute=const
19345         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
19347 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19349         New module: crypto/gc-sm3
19350         * lib/gc.h: Declare SM3-related stuffs.
19351         * lib/gc-gnulib.c: Support sm3 in internal functions.
19352         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
19353         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
19354         * modules/crypto/gc-sm3: Define gc-sm3 module.
19355         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
19356         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
19357         * MODULES.html.sh: List gc-sm3 module.
19359 2017-10-29  Bruno Haible  <bruno@clisp.org>
19361         random, random_r: Mention different prototypes on Haiku.
19362         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
19363         * doc/glibc-functions/random_r.texi: Likewise.
19364         * doc/glibc-functions/initstate_r.texi: Likewise.
19365         * doc/glibc-functions/setstate_r.texi: Likewise.
19367 2017-10-28  Bruno Haible  <bruno@clisp.org>
19369         posix_spawn: Avoid spurious message in configure output.
19370         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
19371         'cmp' command.
19373 2017-10-28  Bruno Haible  <bruno@clisp.org>
19375         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
19376         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
19377         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
19379 2017-10-28  Bruno Haible  <bruno@clisp.org>
19381         ioctl: Override non-POSIX declaration on Haiku.
19382         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
19383         * lib/sys_ioctl.in.h: Add comment about Haiku.
19384         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
19385         * doc/glibc-headers/sys_ioctl.texi: Likewise.
19387 2017-10-28  Bruno Haible  <bruno@clisp.org>
19389         crypto/sm3: Add overview documentation to the .h file.
19390         * lib/sm3.h: Add comments.
19392 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19394         New module: crypto/sm3
19395         This new module can be used to compute SM3 message digest of files or
19396         memory blocks according to the specification GM/T 004-2012
19397         Cryptographic Hash Algorithm SM3, published by State Cryptography
19398         Administration, China.
19399         The official SM3 cryptographic hash algorithm specification is
19400         available at
19401         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
19402         * lib/sm3.h: Declare the APIs of sm3 module.
19403         * lib/sm3.c: Implement SM3 hash algorithm.
19404         * m4/sm3.m4: m4 file for sm3 module.
19405         * modules/crypto/sm3: Define sm3 module.
19406         * tests/test-sm3.c: Implement SM3 test case.
19407         * modules/crypto/sm3-tests: Define sm3 test module.
19408         * MODULES.html.sh: List sm3 module.
19410 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19412         gc-libgcrypt: fix undefined enum type in switch statement
19413         Resolve the following build failure:
19414         lib/gc-libgcrypt.c: In function 'gc_hash_open':
19415         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
19416         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
19417              case 0:
19418              ^~~~
19419         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
19420         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
19422 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19424         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
19425         Resolve the following build failure:
19426         lib/gc-libgcrypt.c: In function 'gc_hash_read':
19427         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
19428         in signedness [-Werror=pointer-sign]
19429             digest = gcry_md_read (ctx->gch, 0);
19430                    ^
19431         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
19433 2017-10-26  Bruno Haible  <bruno@clisp.org>
19435         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
19436         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
19437         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
19439 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19441         glob: fix another heap buffer overflow
19442         Problem reported by Tim Rühsen in:
19443         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
19444         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
19446 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19448         quotearg: pacify compiler re unsigned
19449         * lib/quotearg.c (quotearg_n_options):
19450         Rewrite to avoid diagnostic from overly-picky compiler.
19451         Problem reported by Sami Kerola in:
19452         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
19454         glob: fix heap buffer overflow
19455         * lib/glob.c (glob): Fix off-by-one error introduced into
19456         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
19457         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
19458         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
19459         Fix suggested by Bruno Haible.
19461 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19463         glob: pacify fuzzer for mempcpy
19464         Problem reported by Tim Rühsen in:
19465         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
19466         * lib/glob.c (glob): Do not pass NULL to mempcpy.
19468 2017-10-12  Bruno Haible  <bruno@clisp.org>
19470         doc: Fix syntax error (regression from 2017-10-03).
19471         * doc/posix-functions/strncpy.texi: Fix syntax error.
19473 2017-10-12  Bruno Haible  <bruno@clisp.org>
19475         doc: Update for Solaris 11.3.
19476         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
19477         mention Solaris 11.3.
19478         * m4/log2.m4: Fix comments.
19479         * m4/log2f.m4: Likewise.
19480         * m4/printf.m4: Update comments.
19481         * m4/rename.m4: Likewise.
19482         * m4/strncat.m4: Likewise.
19484         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
19486 2017-10-10  Bruno Haible  <bruno@clisp.org>
19488         doc: Improve doc about ioctl.
19489         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
19490         prototype.
19492 2017-10-09  Bruno Haible  <bruno@clisp.org>
19494         wcwidth: Don't use obsolete syntax of 'test'.
19495         Reported by Eric Blake.
19496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
19497         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
19499 2017-10-09  Bruno Haible  <bruno@clisp.org>
19501         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
19502         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
19503         and Daniel P. Berrange <berrange@redhat.com>.
19504         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
19505         on glibc systems. The getopt-pfx-core.h file declares exactly what
19506         unistd.h needs, nothing more.
19508 2017-10-08  Bruno Haible  <bruno@clisp.org>
19510         vma-iter: Improve support for FreeBSD.
19511         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
19512         vma_iterate.
19513         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
19515 2017-10-08  Bruno Haible  <bruno@clisp.org>
19517         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
19518         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
19520 2017-10-07  KO Myung-Hun  <komh@chollian.net>
19522         test-framework-sh: Fix 'invalid path dir' error.
19523         On OS/2, a path separator is ';' not ':'. And ':' is used as a
19524         separator between a drive letter and directory parts.
19525         As a result, an absolute path such as x:/path/to/dir on OS/2 is
19526         treated as an invalid path dir.
19527         * tests/init.sh (PATH_SEPARATOR): Set at startup.
19528         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
19529         instead of hard coded ':'.
19531 2017-10-07  Bruno Haible  <bruno@clisp.org>
19533         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
19534         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
19535         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
19536         (rof_open): On Linux, do multiple read() calls and make sure
19537         MIN_LEFTOVER bytes are left when read() returns.
19539 2017-10-07  Bruno Haible  <bruno@clisp.org>
19541         vma-iter: Improve support for GNU/Hurd.
19542         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
19543         API, not the /proc file system.
19545 2017-10-07  Bruno Haible  <bruno@clisp.org>
19547         test-framework-sh: Don't require bash on Windows and OS/2.
19548         Reported by KO Myung-Hun.
19549         * tests/test-init.sh: Use 'shopt' only when running in bash.
19551 2017-10-06  KO Myung-Hun  <komh@chollian.net>
19553         wcwidth: check a macro version of wcwidth () as well
19554         * lib/wchar.in.h: Revert commit from 2016-01-14.
19555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
19557 2017-10-06  Bruno Haible  <bruno@clisp.org>
19559         getopt-posix: Clarify copyright header.
19560         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
19561         * lib/getopt-pfx-core.h: Likewise.
19562         * lib/getopt-pfx-ext.h: Likewise.
19563         * lib/getopt-cdefs.in.h: Likewise.
19565 2017-10-03  Bruno Haible  <bruno@clisp.org>
19567         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
19568         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
19569         gl_HOST_CPU_C_ABI.
19571 2017-10-03  Bruno Haible  <bruno@clisp.org>
19573         doc: warn about misuse of strncpy and wcsncpy.
19574         * doc/posix-functions/strcpy.texi: Describe requirements on prior
19575         memory allocation.
19576         * doc/posix-functions/wcscpy.texi: Likewise.
19577         * doc/posix-functions/strncpy.texi: Describe what this function is not
19578         useful for.
19579         * doc/posix-functions/wcsncpy.texi: Likewise.
19581 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
19583         fsuage: fix typo in previous change
19584         * lib/fsusage.c: Remove stray include of full-read.h.
19585         Problem reported by Sam Steingold for macOS (Bug#28669).
19587 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
19589         fsusage: remove SVR2 support
19590         SVR2 was obsolete by 1986 and is no longer supported by anybody,
19591         and its code was getting in the way of use of this module by
19592         Emacs, which has its own ‘read’ function anyway.
19593         * lib/fsusage.c: Do not include sys/filsys.h.
19594         (get_fs_usage): Remove SVR2-specific code.
19595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
19596         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
19597         * modules/fsusage (Depends-on): Do not depend on full-read.
19599         Simplify autoupdate of licenses
19600         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
19601         place.
19603 2017-10-01  Bruno Haible  <bruno@clisp.org>
19605         vma-iter: Add support for GNU/Hurd.
19606         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
19607         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
19609 2017-09-30  Bruno Haible  <bruno@clisp.org>
19611         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
19612         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
19613         fail when module 'largefile' is in use.
19614         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
19615         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
19616         Don't test HAVE_SYS_PROCFS_H.
19618 2017-09-30  Bruno Haible  <bruno@clisp.org>
19620         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
19621         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
19622         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
19623         * modules/havelib (Depends-on): Add host-cpu-c-abi.
19625 2017-09-30  Bruno Haible  <bruno@clisp.org>
19627         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
19628         * lib/uniname/uniname.c (unicode_name_character): Add braces around
19629         scope of local variables.
19631 2017-09-28  Bruno Haible  <bruno@clisp.org>
19633         string: code style
19634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
19635         substitutable variables.
19636         * modules/string (Makefile.am): Likewise.
19638 2017-09-26  Bruno Haible  <bruno@clisp.org>
19640         uniname/uniname-tests: Tighten code.
19641         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
19642         local variables into one.
19644 2017-09-26  Bruno Haible  <bruno@clisp.org>
19646         vma-iter: Improvements for Linux and BSD platforms.
19647         - Add support for DragonFly BSD.
19648         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
19649         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
19650         Read the entire file into memory in a single system call.
19651         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
19652         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
19654 2017-09-26  Bruno Haible  <bruno@clisp.org>
19656         vma-iter: Provide the protection flags on FreeBSD.
19657         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
19658         skip three fields between the addresses and the protection flags.
19660 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19662         glob: remove bogus extern decl
19663         * lib/glob.c (__glob_pattern_type): Remove now-spurious
19664         extern declaration.  Problem reported by Adhemerval Zanella in:
19665         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
19667 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19669         uniname/uniname-tests: integer overflow fix
19670         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
19671         Check for integer overflow.
19673         duplocale-tests: fix unlikely crash
19674         * tests/test-duplocale.c (get_locale_dependent_values):
19675         Don’t crash with absurdly long month names.
19677         maint: fix overflow checking in nap.h
19678         * modules/chown-tests:
19679         * modules/fchownat-tests, modules/fdutimensat-tests:
19680         * modules/futimens-tests, modules/lchown-tests:
19681         * modules/stat-time-tests, modules/utime-tests:
19682         * modules/utimens-tests, modules/utimensat-tests:
19683         Depend on intprops.
19684         * tests/nap.h: Include intprops.h.
19685         (diff_timespec): Handle overflow properly.
19687         sys_types: update URL
19688         * m4/sys_types_h.m4: Use https: URL.
19690         parse-datetime: fix dependency
19691         * modules/parse-datetime (Depends-on): Depend
19692         on nstrftime, not strftime.
19694         parse-datetime, posixtm: avoid uninit access
19695         * lib/parse-datetime.y (parse_datetime2):
19696         * lib/posixtm.c (posixtime):
19697         Do not access uninitialized storage, even though the resulting
19698         value is never used.
19700 2017-09-25  Bruno Haible  <bruno@clisp.org>
19702         vma-iter: Improvements for BSD platforms.
19703         - Add support for GNU/kFreeBSD.
19704         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
19705         - Speed up on OpenBSD.
19706         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
19707         (vma_iterate_bsd): New function.
19708         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
19709         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
19710         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
19711         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
19713 2017-09-23  Bruno Haible  <bruno@clisp.org>
19715         strfmon_l: New module.
19716         * modules/strfmon_l: New file.
19717         * lib/strfmon_l.c: New file.
19718         * m4/strfmon_l.m4: New file.
19719         * doc/posix-functions/strfmon_l.texi: Mention the new module.
19720         * modules/strfmon_l-tests: New file.
19721         * tests/test-strfmon_l.c: New file.
19723         monetary: New module.
19724         * modules/monetary: New file.
19725         * lib/monetary.in.h: New file.
19726         * m4/monetary_h.m4: New file.
19727         * doc/posix-headers/monetary.texi: Mention the new module.
19728         * modules/monetary-tests: New file.
19729         * tests/test-monetary.c: New file.
19730         * modules/monetary-c++-tests: New file.
19731         * tests/test-monetary-c++.cc: New file.
19732         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
19734 2017-09-23  Bruno Haible  <bruno@clisp.org>
19736         duplocale tests: Fix test crash on Linux/x86.
19737         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
19738         locale from the current thread before freeing it.
19740 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
19742         mktime: port to OpenVMS
19743         Problem reported by John E. Malmberg in:
19744         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
19745         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
19747 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19749         manywarnings: port to GCC on 64-bit MS-Windows
19750         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
19751         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
19752         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
19754 2017-09-13  Bruno Haible  <bruno@clisp.org>
19756         all: Replace many more http URLs by https URLs. Update stale URLs.
19757         * users.txt: Remove mention of 'newts'.
19758         * lib/localename.c: Update comment about LANG_SOTHO.
19760 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19762         all: Replace many http URLs by https URLs.
19764 2017-09-12  Bruno Haible  <bruno@clisp.org>
19766         doc: Prefer https URLs where possible.
19767         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
19768         * doc/ld-output-def.texi: Remove unavailable URL.
19770 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19772         maintainer-makefile: FTP -> HTTPS
19773         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
19774         of FTP, which is planned to be decommissioned on 2017-11-01.
19776 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
19778         libc-config: Fix __GNUC_PREREQ macro.
19779         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
19780         __GNUC_MINOR.
19782 2017-09-09  Bruno Haible  <bruno@clisp.org>
19784         gnulib-tool: Simplify commit from 2015-08-20.
19785         * gnulib-tool (func_add_or_update): Remove local variable
19786         is_binary_file.
19788 2017-09-08  Bruno Haible  <bruno@clisp.org>
19790         stddef: Avoid conflict with system-defined max_align_t.
19791         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
19792         Reported by Werner Lemberg <wl@gnu.org> in
19793         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
19794         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
19795         (max_align_t): Define as a macro.
19796         (GNULIB_defined_max_align_t): New macro. Guards against multiple
19797         definitions of rpl_max_align_t in different copies of gnulib-generated
19798         <stddef.h>.
19800 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
19802         libc-config: port to MSVC
19803         Problems reported by Gisle Vanem in:
19804         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
19805         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
19806         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
19807         * m4/__inline.m4: New file.
19808         * modules/libc-config (Files): Add it.
19809         (Depends-on): Use it.
19811         glob: Use enum for __glob_pattern_type result
19812         From a patch proposed by Adhemerval Zanella in:
19813         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
19814         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
19815         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
19816         * lib/glob_internal.h (__glob_pattern_type):
19817         * lib/glob.c (glob):
19818         * lib/glob_pattern_p.c (__glob_pattern_p):
19819         Use them.
19821         glob: fix for use in glibc
19822         Problem reported by Adhemerval Zanella in:
19823         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
19824         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
19825         Do not redefine if _LIBC.
19827 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19829         glob: fix bugs with long login names
19830         Problem reported by Adhemerval Zanella in:
19831         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
19832         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
19833         (glob): Use the same scratch buffer for both getlogin_r and
19834         getpwnam_r.  Don’t require preallocation of the login name.  This
19835         simplifies storage allocation, and corrects the handling of
19836         long login names.
19838 2017-09-02  Bruno Haible  <bruno@clisp.org>
19840         dirent: Update doc.
19841         * doc/posix-headers/dirent.texi: More concrete list of platforms.
19843 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19845         glob: fix getpwnam_r errno typo
19846         * lib/glob.c (glob): Fix longstanding misuse of errno after
19847         getpwnam_r, which returns an error number rather than setting
19848         errno.
19850         glob: fix typo in recent change
19851         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
19852         Fix recently-introduced typo.
19854 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19856         glob: don't save and restore errno unnecessarily
19857         * lib/glob.c (glob): Don't save and restore errno
19858         merely because we have getpwnam_r.
19860         glob: don't assume getpwnam_r
19861         * lib/glob.c (glob): Port recent patches to platforms
19862         lacking getpwnam_r.
19864         scratch_buffer: don’t use private glibc API
19865         Suggested by Florian Weimer in:
19866         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
19867         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
19868         * lib/scratch_buffer_grow.c: Rename to
19869         lib/malloc/scratch_buffer_grow.c.
19870         * lib/scratch_buffer_grow_preserve.c: Rename to
19871         lib/malloc/scratch_buffer_grow_preserve.c.
19872         * lib/scratch_buffer_set_array_size.c: Rename to
19873         lib/malloc/scratch_buffer_set_array_size.c.
19874         * lib/scratch_buffer.h: New file.
19875         * modules/scratch_buffer (Files, Makefile.am):
19876         Adjust to source-file renaming.
19878 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19880         glob: use scratch_buffer instead of extend_alloca
19881         Much of the lib/glob.c part of this patch comes from a glibc patch
19882         proposed by Adhemerval Zanella in:
19883         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
19884         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
19885         included via glob.h, does this for us now.
19886         (__set_errno): Remove, as libc-config does this for us now.
19887         Include <scratch_buffer.h>.
19888         (GETPW_R_SIZE_MAX): Remove.
19889         (glob): Use struct scratch_buffer instead of extend_alloca.
19890         * lib/glob.in.h: Include libc-config.h rather than
19891         including <sys/cdefs.h> conditionally.
19892         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
19893         (__glibc_unlikely, __restrict, weak_alias):
19894         Remove, as libc-config does this for us now.
19895         * m4/glob.m4 (gl_PREREQ_GLOB):
19896         Remove sys/cdefs.h tests; no longer needed.
19897         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
19898         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
19900         scratch_buffer: new module
19901         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
19902         * lib/scratch_buffer_grow_preserve.c:
19903         * lib/scratch_buffer_set_array_size.c:
19904         New files, copied from glibc with very minor changes that can be
19905         copied back.
19906         * modules/scratch_buffer: New file.
19908         libc-config: new module
19909         * MODULES.html.sh: Add libc-config.
19910         * lib/cdefs.h: New file, copied from the GNU C Library with very
19911         minor changes that can be copied back.
19912         * lib/libc-config.h, modules/libc-config: New files.
19914 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19916         glob: match dangling symlinks
19917         This fixes a bug I inadvertently introduced to Gnulib when I
19918         merged glibc glob back into gnulib on 2007-10-16.  This fix is
19919         inspired by a patch proposed for glibc by Adhemerval Zanella in:
19920         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
19921         * doc/posix-functions/glob.texi: Update list of affected platforms.
19922         * lib/glob.c (__lstat64): New macro.
19923         (is_dir): New function.
19924         (glob, glob_in_dir): Match symlinks even if they are dangling.
19925         (link_stat, link_exists_p): Remove.  All uses removed.
19926         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
19927         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
19928         * modules/glob-tests (Depends-on): Add symlink.
19929         * tests/test-glob.c: Include errno.h, unistd.h.
19930         (BASE): New macro.
19931         (main): Test dangling symlinks, if symlinks are supported.
19933         glob, backupfile: inode 0 is a valid inode number
19934         * doc/posix-functions/readdir.texi (readdir):
19935         * doc/posix-headers/dirent.texi (dirent.h):
19936         Document more readdir portability issues.
19937         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
19938         (numbered_backup): Don’t treat inode 0 any differently from
19939         other inode values.
19940         * lib/glob.c (struct readdir_result): Remove skip_entry member.
19941         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
19942         All uses removed.
19943         * modules/glob (Depends-on): Remove d-ino.
19945         glob: simplify symlink detection
19946         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
19947         uint8_t, as C99 does not require uint8_t.
19948         (struct readdir_result): Use it.  Do not define skip_entry unless
19949         it is needed; this saves a byte on platforms lacking d_ino.
19950         (readdir_result_type, readdir_result_skip_entry):
19951         New functions, replacing ...
19952         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
19953         ... these functions, which were removed.  This makes the callers
19954         easier to read.  All callers changed.
19955         (D_INO_TO_RESULT): Now empty if there is no d_ino.
19957 2017-08-30  Pádraig Brady  <P@draigBrady.com>
19959         fts-tests: tag as a longrunning-test so not included by default
19960         * modules/fts-tests: This test takes about 20s on current systems,
19961         and uses about 285M of space on ext4.
19963 2017-08-30  Pádraig Brady  <P@draigBrady.com>
19965         renameat2: fix compilation on alpine linux
19966         * m4/renameat.m4: Check for <linux/fs.h> presence.
19967         * lib/renameat2.h: Only include <linux/fs.h> if present.
19968         Reported by Assaf Gordon on Alpine Linux.
19970 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19972         glob: try to port recent changes to MS-Windows
19973         Problem reported by Bruno Haible in:
19974         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
19975         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
19976         * lib/glob.in.h (__glob_pattern_p): ... to here.
19978 2017-08-24  Eric Blake  <eblake@redhat.com>
19980         warnings: fix compilation with old autoconf
19981         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
19982         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
19983         AC_DEFUN.
19984         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
19985         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
19987 2017-08-24  Bruno Haible  <bruno@clisp.org>
19989         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
19990         * modules/glob (Depends-on): Add c99.
19992 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19994         glob: fix typo that broke platforms lacking d_ino
19995         This typo also hurt performance on GNU/Linux and similar hosts.
19996         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
19997         in previous change.
19999 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20001         glob: merge from glibc with Zanella glob changes
20002         Merge glob from glibc, with changes for glob proposed
20003         by Adhemerval Zanella in the thread starting here:
20004         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
20005         plus some fixes for this merge.
20006         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
20007         New files, ported from glibc.
20008         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
20009         with __restrict.
20010         (__size_t): Remove.  All uses replaced by size_t.
20011         (size_t): Define by defining __need_size_t and including <stddef.h>.
20012         This should work even in non-glibc platforms, where any name
20013         pollution is OK.
20014         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
20015         (struct stat64): Don’t worry about __GLOB_GNULIB.
20016         (glob, globfree, glob_pattern_p): Remove macros for
20017         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
20018         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
20019         but set errno.
20020         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
20021         removed since the glibc behavior works on null pointers.
20022         Do not include stdio.h; old SunOS is irrelevant now.
20023         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
20024         Include glob_internal.h.
20025         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
20026         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
20027         worked only coincidentally.
20028         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
20029         Remove macros; now done in glob.in.h.
20030         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
20031         (glob): Properly initialize glob structure with
20032         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
20033         Remove old code using SHELL since Bash no longer
20034         uses this.
20035         (glob, prefix_array): Separate MS code better.
20036         (glob, glob_in_dir): Use C99 decls before statements when glibc
20037         does.
20038         (glob_in_dir): Remove old Amiga and VMS code.
20039         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
20040         separate files.
20041         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
20042         (__glibc_unlikely):
20043         Move here from glob.c.
20044         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
20045         (weak_alias): New macro.
20046         (__size_t): Remove.  All uses replaced by size_t.
20047         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
20048         * modules/glob (Files): Add +lib/glob_internal.h,
20049         lib/glob_pattern_p.c, lib/globfree.c.
20050         (Depends-on): Remove snippet/arg-nonnull.
20052 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20054         glob: port to clang's Undefined Sanitizer
20055         Problem reported by Tim Rühsen in:
20056         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
20057         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
20058         (glob_in_dir): Do not rely on undefined behavior in accessing
20059         struct members beyond their bounds.  Use a flexible array member
20060         instead.
20062 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20064         vc-list-files: port to Solaris 10
20065         * build-aux/vc-list-files: Don't assume test -e works.
20067 2017-08-21  Karl Berry  <karl@freefriends.org>
20069         * doc/posix-functions/srandom.texi (srandom): typo }.
20071 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20073         git-version-gen: port to Solaris 10
20074         Problem reported by Dagobert Michelsen in:
20075         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
20076         * build-aux/git-version-gen (v_from_git):
20077         Use expr instead of shell substitution.
20079 2017-08-19  Bruno Haible  <bruno@clisp.org>
20081         host-cpu-c-abi: Improve detection of MIPS ABI.
20082         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
20083         _MIPS_SIM.
20085 2017-08-17  Bruno Haible  <bruno@clisp.org>
20087         hypot tests: Fix test failure on FreeBSD 11.0/x86.
20088         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
20090 2017-08-17  Bruno Haible  <bruno@clisp.org>
20092         float: Fix LDBL_MIN value on FreeBSD/x86.
20093         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
20095 2017-08-17  Bruno Haible  <bruno@clisp.org>
20097         random: Fix test compilation failure on Cygwin 1.5.25.
20098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
20099         HAVE_DECL_SETSTATE.
20100         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
20101         declared.
20102         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
20103         HAVE_DECL_SETSTATE.
20104         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
20105         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
20106         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
20107         * doc/posix-functions/random.texi: Likewise.
20108         * doc/posix-functions/setstate.texi: Likewise.
20109         * doc/posix-functions/srandom.texi: Likewise.
20111 2017-08-16  Bruno Haible  <bruno@clisp.org>
20113         stdnoreturn: Fix test compilation failure on Cygwin.
20114         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
20115         <stdnoreturn.h> replacement.
20116         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
20117         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
20119 2017-08-16  Bruno Haible  <bruno@clisp.org>
20121         thread: Fix conflict with pthread_sigmask module.
20122         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
20123         it's defined as a macro.
20124         * modules/thread (Depends-on): Add pthread_sigmask.
20126 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20128         rename: port better to NetBSD
20129         * doc/posix-functions/rename.texi (rename): NetBSD 7
20130         does not have the link-count bug.
20131         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
20132         broken merely because rename ("a", "b") removes "a" when the two
20133         names are hard links to the same file.
20135 2017-08-16  Bruno Haible  <bruno@clisp.org>
20137         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
20138         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
20139         the target file names with '$(srcdir)/'.
20140         * modules/unicase/locale-language (Makefile.am): Likewise.
20141         * modules/unicase/special-casing (Makefile.am): Likewise.
20142         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
20143         * modules/unictype/category-byname (Makefile.am): Likewise.
20144         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
20145         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
20146         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
20147         * modules/unictype/property-byname (Makefile.am): Likewise.
20148         * modules/unictype/scripts (Makefile.am): Likewise.
20149         * modules/uninorm/composition (Makefile.am): Likewise.
20151 2017-08-16  Bruno Haible  <bruno@clisp.org>
20153         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
20154         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
20155         value for OpenBSD.
20157 2017-08-16  Bruno Haible  <bruno@clisp.org>
20159         rename, renameat: Update doc regarding NetBSD.
20160         * doc/posix-functions/rename.texi: Clarify that when using
20161         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
20162         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
20163         version.
20165 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20167         renameat2: port better to macOS
20168         * lib/renameat2.c (renameat2): Use renameatx_np if available.
20170         futimens: don’t assume struct timespec layout
20171         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
20172         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
20173         * tests/test-fdutimensat.c (main):
20174         * tests/test-futimens.h (test_futimens):
20175         * tests/test-lutimens.h (test_lutimens):
20176         * tests/test-utimens.h (test_utimens):
20177         * tests/test-utimensat.c (main):
20178         Don’t assume that struct timespec is a two-member structure in
20179         tv_sec, tv_nsec order.  Although this is true on all platforms we
20180         know about, POSIX does not guarantee it.
20182         rename: document+test NetBSD rename
20183         Test failure reported by Bruno Haible in:
20184         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
20185         This is an area where NetBSD is better-behaved than POSIX,
20186         so allow the NetBSD behavior in tests.
20187         * doc/posix-functions/rename.texi:
20188         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
20189         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
20191 2017-08-15  Bruno Haible  <bruno@clisp.org>
20193         renameat: Ensure declaration in <stdio.h> on NetBSD.
20194         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
20195         * doc/posix-functions/renameat.texi: Mention this problem.
20197 2017-08-15  Bruno Haible  <bruno@clisp.org>
20199         duplocale: Work around NetBSD 7.0 bug.
20200         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
20201         * lib/duplocale.c: Add comment about NetBSD problem.
20202         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
20204 2017-08-15  Bruno Haible  <bruno@clisp.org>
20206         duplocale tests: Verify use with *_l functions.
20207         * modules/duplocale-tests (configure.ac): Test for uselocale and
20208         some *_l functions.
20209         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
20210         from main.
20211         (get_locale_dependent_values_from, test_with_locale_parameter): New
20212         functions.
20213         (main): Test both test_with_uselocale and test_with_locale_parameter.
20215 2017-08-15  Bruno Haible  <bruno@clisp.org>
20217         extensions: Enable NetBSD specific extensions.
20218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
20220 2017-08-14  Bruno Haible  <bruno@clisp.org>
20222         open, openat: Update doc about O_CLOEXEC.
20223         * doc/posix-functions/open.texi: More concrete list of platforms.
20224         * doc/posix-functions/openat.texi: Likewise.
20226 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20228         open: support O_CLOEXEC
20229         * NEWS, doc/posix-functions/open.texi:
20230         * doc/posix-functions/openat.texi: Document this.
20231         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
20232         (GNULIB_defined_O_CLOEXEC): New symbol.
20233         * lib/open.c: Include cloexec.h.
20234         (open): Support O_CLOEXEC.
20235         * lib/openat.c: Include cloexec.h.
20236         (rpl_openat): Support O_CLOEXEC.
20237         * lib/popen-safer.c: Do not include cloexec.h.
20238         (open_noinherit): Remove.
20239         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
20240         * lib/save-cwd.c: Do not include cloexec.h.
20241         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
20242         * m4/open-cloexec.m4: New file.
20243         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
20244         Replace 'open' if O_CLOEXEC is not present.
20245         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
20246         Replace 'openat' if O_CLOEXEC is not present.
20247         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
20248         * modules/open (Files): Add m4/open-cloexec.m4.
20249         (Depends-on): Depend on cloexec if replacing 'open'.
20250         * modules/openat (Files): Add m4/open-cloexec.m4.
20251         (Depends-on): Depend on cloexec if replacing openat.
20252         * modules/popen-safer (Depends-on): Remove cloexec.
20253         * modules/save-cwd (Depends-on): Remove cloexec, and add
20254         fd-safer-flag and 'open'.
20256 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
20258         reallocarray: minor fixes
20259         * doc/glibc-functions/reallocarray.texi: Update version numbers.
20260         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
20261         * modules/reallocarray (License): Change from GPL to LGPL.
20262         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
20263         Indent properly and don't use tabs.
20265 2017-08-13  Darshit Shah  <darnir@gnu.org>
20267         reallocarray: New module
20268         reallocarray is a new function in glibc 2.26 to safely allocate an array
20269         of memory locations with integer overflow protection.
20270         * MODULES.html.sh: Add reallocarray.
20271         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
20272         * lib/reallocarray.c: New file to implement module reallocarray.
20273         * lib/stdlib.in.h: Add function declarations for reallocarray.
20274         * m4/reallocarray.m4: New file.
20275         * m4/stdlib_h.m4: Declare reallocarray.
20276         * modules/reallocarray: New file.
20277         * modules/reallocarray-test: New file.
20278         * modules/stdlib: Coerce stdlib.h to export reallocarray.
20279         * tests/test-reallocarray.c: New test.
20281 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20283         dirent-safer: fix cloexec race
20284         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
20285         (opendir_safer): Use F_DUPFD_CLOEXEC.
20286         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
20287         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
20288         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
20289         instead of dup_safer.
20291         fts: fix cloexec races
20292         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
20293         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
20294         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
20295         (fd_ring_check): Set cloexec flag on new file descriptors.
20296         (fts_build, fd_ring_check): While we’re at it, make sure the
20297         resulting file descriptor is not 0, 1, or 2, since that is easy.
20299 2017-08-11  Bruno Haible  <bruno@clisp.org>
20301         fts tests: Fix link error.
20302         Reported by Tom G. Christensen in
20303         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
20304         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
20306 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20308         fts: port recent changes to CentOS 6
20309         Problem reported by Tom G. Christensen in:
20310         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
20311         * lib/fts.c (fsword): New type.
20312         (struct dev_type, filesystem_type): Use it.
20313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
20314         Also, check for f_type only if fstatfs and sys/vfs.h work.
20316 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20318         tempname: do not depend on secure_getenv
20319         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
20320         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
20321         * modules/tempname (Depends-on): Remove secure_getenv.
20323 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
20325         extensions: add _OPENBSD_SOURCE
20326         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
20328 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
20329             Bruno Haible  <bruno@clisp.org>
20331         manywarnings: Add support for C++.
20332         * build-aux/g++-warning.spec: New file.
20333         * m4/manywarnings-c++.m4: New file.
20334         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
20335         redirects to manywarnings-c++.m4.
20336         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
20338 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20340         git-version-gen: another fix for tags with "-"
20341         * build-aux/git-version-gen: Improve fix for tags containing "-".
20342         Suggested by Markus Armbruster in:
20343         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
20345 2017-08-06  Bruno Haible  <bruno@clisp.org>
20347         warnings, manywarnings: Add support for multiple languages, not just C.
20348         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
20349         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
20350         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
20351         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
20352         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
20353         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
20354         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
20355         of the current language. If C++ is the current language, modify
20356         WARN_CXXFLAGS instead of WARN_CFLAGS.
20357         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
20358         gl_MANYWARN_ALL_GCC.
20359         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
20361 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
20363         git-version-gen: Fix for tags containing '-'
20365         Really old versions of git-describe (before v1.5.0, Feb 2007)
20366         don't have the number of commits in their long format output,
20367         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
20368         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
20369         recognizes both patterns, and normalizes the old format to the new one.
20371         Unfortunately, this normalization code gets confused when the tag
20372         contains '-'.  Reproducer:
20374             $ git-tag -m test v0.2-rc1
20375             $ build-aux/git-version-gen .tarball-version; echo
20376             build-aux/git-version-gen: WARNING: git rev-list failed
20377             UNKNOWN
20379         We take exact tag "v0.2-rc1" for the old format, extract the presumed
20380         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
20381         commits since tha tag.  Fails, because tag "v0.2" does not exist.
20383         * git-version-gen: We could perhaps drop support for versions from
20384         more than a decade ago.  But tightening the pattern match is easy
20385         enough, so do that.  Still breaks when you use version tags ending in
20386         something matching -g????, but you arguably get what you deserve then.
20388 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
20390         valgrind-tests: use ls, and cache
20391         * m4/valgrind-tests.m4: Test ls, not bash.
20392         Problem reported by Reuben Thomas.
20393         Also, cache the result so that it can be overridden.
20395 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
20397         manywarnings: port to 64-bit GCC builds of Emacs
20398         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
20399         object size rather than hardwiring 2147483647.  This is needed to
20400         build GNU Emacs, which has one conditional (and used
20401         only-in-theory) call to malloc with a literal greater than
20402         2147483647.
20404 2017-08-04  Bruno Haible  <bruno@clisp.org>
20406         Relax the license of some modules with no runtime code.
20407         * modules/std-gnu11 (License): Set to 'unlimited'.
20408         * modules/c99 (License): Likewise.
20409         Reported by Reuben Thomas <rrt@sc3d.org>.
20410         * modules/d-ino (License): Set to 'LGPL'.
20411         * modules/host-os (License): Likewise.
20412         * modules/longlong (License): Likewise.
20414 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
20416         renameat2: port to RHEL 7 + NFS
20417         * lib/renameat2.c (renameat2) [SYS_renameat2]:
20418         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
20419         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
20421 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
20423         renameat2: port to non-renameat platforms
20424         Problem reported for MSVC-2015 by Gisle Vanem in:
20425         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
20426         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
20427         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
20429 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
20431         manywarnings: port to 32-bit GCC bug
20432         Problem reported by Pino Toscano in:
20433         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
20434         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
20435         not 2**63 - 1, to work around the following GCC bug:
20436         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
20438 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
20440         backupfile: new function to validate backup suffix
20441         * lib/backupfile.c (set_simple_backup_suffix): New function.
20442         (backupfile_internal): Use it.
20444         canonicalize: fix EOVERFLOW commentary
20445         Problem reported by Bruno Haible in:
20446         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
20447         * lib/canonicalize.c (canonicalize_filename_mode):
20448         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
20450         Don't interpret EOVERFLOW to mean nonexistence
20451         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
20452         may be EOVERFLOW; this is likely more useful than reporting the
20453         stat errno.
20454         * lib/glob.c (link_stat): Rename from link_exists2_p and
20455         return -1/0 instead of 0/1.  Caller changed.
20456         * lib/glob.c (link_exists_p):
20457         * lib/renameat2.c (rename_noreplace, renameat2):
20458         * lib/tempname.c (try_nocreate):
20459         If errno == EOVERFLOW then the directory entry exists, so do not
20460         act as if it does not exist.
20462         backup-rename: new module
20463         It is like backupfile, except it avoids some race conditions,
20464         and it does not output to stderr or exit.
20465         * MODULES.html.sh: Add backup-rename.
20466         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
20467         * modules/backup-rename: New files.
20468         * lib/backupfile.c: Turn this into an internals file, which
20469         contains code common to backupfile and backup_rename.  Include
20470         backupfile-internal.h instead of backupfile.h.  Do not include
20471         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
20472         renameat2.h and fcntl.h.
20473         (BACKUP_NOMEM): New constant.
20474         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
20475         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
20476         (backupfile_internal): Rename from find_backup_file_name.
20477         Support new arg RENAME.
20478         (backup_args, backup_types, get_version, xget_version):
20479         Move to lib/backup-find.c.
20480         * lib/backupfile.h (backup_file_rename): New decl.
20481         * modules/backupfile (Files): Add lib/backup-internal.h,
20482         lib/backup-find.c.
20483         (Depends-on): Add dirfd, fcntl, renameat2.
20484         (lib_SOURCES): Add backup-find.c.
20486         renameat2: port better to older Solaris
20487         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
20488         Add goto to use a label, to silence picky compilers.
20490         fts-tests: port to gcc -Wwrite-strings
20491         * tests/test-fts.c (base, base_d): New static vars.
20492         (argv, remove_tree, main): Use them.
20494 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
20496         relocatable-lib{,-lgpl}: improve documentation
20497         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
20498         Various other updates.
20500 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
20501             Bruno Haible  <bruno@clisp.org>
20503         relocatable-lib{,-lgpl}: add Valgrind suppressions
20504         * lib/relocatable.valgrind: New file.
20505         * modules/relocatable-lib (Files): Add relocatable.valgrind.
20506         * modules/relocatable-lib-lgpl: Likewise.
20508 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
20510         relocatable: Make the license on the sources the GPL.
20511         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
20512         LGPL, which was a special case so that the relocatable source files
20513         could be used without gnulib-tool, to GPL. They can still be used under
20514         the LGPL, using the --lgpl option to gnulib-tool.
20516 2017-07-30  Bruno Haible  <bruno@clisp.org>
20518         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
20519         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
20520         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
20521         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
20522         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
20524 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
20526         faccessat: document AT_SYMLINK_NOFOLLOW issue
20527         * doc/posix-functions/faccessat.texi: Modernize platform list.
20528         Document AT_SYMLINK_NOFOLLOW limitation.
20530         renameat2: port to Solaris 10
20531         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
20532         with AT_SYMLINK_NOFOLLOW (which is not portable).
20533         (renameat): Undef before using, to avoid endless recursion when
20534         the replacement renameat calls renameat2 which calls the
20535         replacement renameat.
20536         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
20537         * modules/renameat2 (Depends-on): Remove faccessat.
20538         * modules/renameat-tests (test_renameat_LDADD):
20539         * modules/renameat2-tests (test_renameat2_LDADD):
20540         Remove $(LIB_EACCESS).
20542         renameat2: new module
20543         Although the Linux syscall renameat2 is not in glibc (yet?), it is
20544         useful to have access to its RENAME_NOREPLACE flag.
20545         * MODULES.html.sh (func_all_modules): Add renameat2.
20546         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
20547         * modules/renameat2-tests, tests/test-renameat2.c: New files.
20548         * lib/renameat.c (renameat): Move most of the implementation
20549         to renameat2, and just call renameat2.
20550         * modules/renameat (Files): Remove lib/at-func2.c.
20551         (Depends-on): Depend only on renameat2.
20552         (Include): Remove <fcntl.h>.
20553         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
20554         since renameat (via renameat2) might use faccessat.
20556 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
20558         vc-list-files: Adjust the script to support git worktrees
20559         * build-aux/vc-list-files: Require existence, not directory.
20561 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
20563         doc: bring MODULES.html.sh up to date
20564         Somehow a few months ago we stopped updating MODULES.html.sh.
20565         I don’t recall explicitly deciding this, so I updated it now.
20566         Alternatively I suppose we could remove it.
20567         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
20568         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
20569         truncate, utime, utime-h, windows-stat-inodes,
20570         windows-stat-override, windows-stat-timespec, year2038.  Sort.
20572 2017-07-26  Jim Meyering  <meyering@fb.com>
20574         fprintftime: fix build-break caused by recent renaming
20575         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
20576         "strftime.c".
20577         * modules/fprintftime: Depend directly on nstrftime.
20579 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
20581         regex: work with GCC7's -Werror=implicit-fallthrough=
20582         * lib/regex_internal.h (FALLTHROUGH): New macro.
20583         * lib/regcomp.c (peek_token_bracket, parse_expression):
20584         * lib/regexec.c (check_node_accept): Use it.
20586 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
20588         fts: simplify fts_build
20589         * lib/fts.c (fts_build): Simplify, and be lazier about
20590         calling leaf_optimization.
20592         fts: three levels of leaf optimization
20593         * lib/fts.c (enum leaf_optimization): New type with three values.
20594         (S_MAGIC_AFS): New macro.  Sort them.
20595         (leaf_optimization): Rename from leaf_optimization_applies, and
20596         return enum leaf_optimization instead of bool.  All uses changed.
20597         Add cases for unknown type and for AFS.
20598         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
20600         fts: cache dirent_inode_sort_may_be_useful too
20601         * lib/fts.c (struct dev_type): New struct.
20602         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
20603         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
20604         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
20605         Now takes FTSENT const *, not int.  All uses changed.  Use
20606         filesystem_type to cache.
20607         (link_count_optimize_ok): Remove.  Caller changed to use
20608         leaf_optimization_applies, which now uses shared cache.
20610         fts: introduce MIN_DIR_NLINK
20611         * lib/fts.c (MIN_DIR_NLINK): New constant.
20612         Use it instead of 2, whenever we are talking about link counts.
20614         fts: nlink_t signedness fixups
20615         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
20616         so that root need not be a special case later.
20617         (fts_read): Remove now-redundant test for fts_level.
20618         Do not assume that nlink_t is signed.
20619         (fts_build): Remove useless decrement of nlinks.
20620         (fts_stat): Avoid unlikely signed integer overflow later, if
20621         nlink_t is signed.
20623         fts-tests: new module
20624         * modules/fts-tests, tests/test-fts.c: New files.
20626 2017-07-23  Bruno Haible  <bruno@clisp.org>
20628         Rename module 'strftime' to 'nstrftime'.
20629         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
20630         * lib/nstrftime.c: Renamed from lib/strftime.c.
20631         * modules/nstrftime: Renamed from modules/strftime.
20632         (Files, Makefile.am): Update.
20633         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
20634         Fix comment.
20635         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
20636         (Files, Makefile.am): Update.
20637         * modules/strftime: New file, an obsolete indirection.
20638         * doc/posix-functions/strftime.texi: Update reference.
20639         * config/srclist.txt: Update info.
20640         * NEWS: Mention the change.
20642 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
20644         malloca: Silence a warning from clang's memory sanitizer.
20645         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
20646         (freea): Use it.
20648 2017-07-18  Bruno Haible  <bruno@clisp.org>
20650         host-cpu-c-abi: Fix detection of MIPS ABI.
20651         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
20652         ABI, not the CPU instruction set.
20654 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20656         explicit_bzero: new module
20657         The explicit_bzero function has been added to glibc.
20658         This module is intended to supports its use in GNU programs.
20659         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
20660         * m4/explicit_bzero.m4, modules/explicit_bzero:
20661         New files.
20662         * doc/gnulib.texi (Glibc string.h): Link to new doc.
20663         * lib/string.in.h (explicit_bzero): Declare.
20664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
20665         * modules/string (string.h): Substitute its vars.
20667 2017-07-16  Bruno Haible  <bruno@clisp.org>
20669         threadlib: Support static linking.
20670         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
20671         set gl_cv_have_weak to 'no'.
20673 2017-07-16  Bruno Haible  <bruno@clisp.org>
20675         unicase/locale-language: Fix link dependencies.
20676         * modules/unicase/locale-language (Link): New section.
20677         * modules/unicase/locale-language-tests (Makefile.am): Link
20678         test-locale-language program with $(LIBTHREAD).
20680 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
20682         sys_socket: Add support for OpenVMS.
20683         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
20684         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
20686 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
20688         sys_resource: Add support for OpenVMS.
20689         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
20690         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
20692 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
20693             Bruno Haible  <bruno@clisp.org>
20695         math: Add support for OpenVMS.
20696         * lib/math.in.h [__VMS]: Include <fp.h>.
20697         * doc/posix-headers/math.texi: Mention OpenVMS issues.
20699 2017-07-15  Bruno Haible  <bruno@clisp.org>
20701         getdtablesize: Add minimal support for OpenVMS.
20702         Reported by John E. Malmberg <wb8tyw@qsl.net>.
20703         * modules/getdtablesize (Description): Fix.
20704         * lib/getdtablesize.c: Fix comment.
20705         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
20706         getdtablesize() function, even though the test fails.
20707         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
20708         limitation on OpenVMS.
20710 2017-07-13  Bruno Haible  <bruno@clisp.org>
20712         Revisit cross-compilation guesses.
20713         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
20715 2017-07-13  Bruno Haible  <bruno@clisp.org>
20717         Improve cross-compilation guesses for native Windows.
20718         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
20719         Windows.
20720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
20721         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
20722         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20723         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
20724         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
20725         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
20726         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
20727         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20728         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20729         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20730         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20731         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
20732         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
20733         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
20734         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
20735         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20736         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
20737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
20738         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20739         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
20740         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
20741         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20742         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
20743         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
20744         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
20745         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
20746         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
20747         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
20748         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20749         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
20750         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
20752         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
20753         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
20754         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
20755         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
20756         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20757         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20758         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20759         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20760         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20762         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
20763         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
20764         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
20765         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
20766         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
20767         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
20768         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
20769         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
20770         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
20771         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
20772         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
20773         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
20774         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
20775         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
20776         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
20777         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
20778         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
20779         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
20780         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20781         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
20782         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
20783         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
20784         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
20785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20786         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
20787         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20788         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
20789         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
20790         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
20791         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20792         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20793         * m4/regex.m4 (gl_REGEX): Likewise.
20794         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
20795         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
20796         gl_FUNC_REMAINDERF_WORKS): Likewise.
20797         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
20798         gl_FUNC_REMAINDERL_WORKS): Likewise.
20799         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20800         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20801         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20802         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20803         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
20805         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20806         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20807         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
20808         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20809         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
20810         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
20811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20812         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20813         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20814         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20815         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20816         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20817         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20818         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20819         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
20820         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20821         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20822         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20823         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20824         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20825         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20826         Likewise.
20827         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20828         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
20829         Windows. Enable also on Autoconf 2.70.
20830         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20831         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20832         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20833         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
20834         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20835         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
20836         for native Windows.
20837         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20838         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
20840 2017-07-13  Bruno Haible  <bruno@clisp.org>
20842         Improve cross-compilation guesses for native Windows.
20843         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
20844         Windows.
20845         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
20846         memchr.m4.
20847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20849 2017-07-13  Bruno Haible  <bruno@clisp.org>
20851         Improve cross-compilation guesses for native Windows.
20852         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
20853         native Windows.
20854         (gl_FUNC_FFLUSH): Update accordingly.
20855         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
20856         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
20858 2017-07-11  Bruno Haible  <bruno@clisp.org>
20860         More systematic m4 quoting and indentation.
20861         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
20862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20863         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20864         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20865         * m4/host-os.m4 (gl_HOST_OS): Likewise.
20866         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
20867         gl_WINSIZE_IN_PTEM): Likewise.
20868         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
20869         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
20870         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
20871         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
20872         Correct indentation.
20873         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
20874         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20875         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
20876         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20877         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20878         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20880 2017-07-10  Bruno Haible  <bruno@clisp.org>
20882         round, roundf: Avoid compiler warning in configure test.
20883         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
20884         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20886 2017-07-10  Bruno Haible  <bruno@clisp.org>
20888         getlogin tests: Avoid #ifdefs when sharing code between modules.
20889         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
20890         * modules/getlogin-tests (Files): Likewise. Remove
20891         tests/test-getlogin_r.c.
20892         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
20893         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
20894         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
20895         getlogin().
20897 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20899         getlogin: don’t assume one name per uid
20900         Problem reported by Wolfgang F. Muthmann (Bug#27640).
20901         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
20902         (ttyname): Remove test.
20903         * modules/getlogin_r-tests (ttyname): Remove test.
20904         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
20905         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
20906         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
20907         getlogin rather than getlogin_r.  This avoids code duplication.
20908         (main): Use isatty and fstat rather than ttyname and stat.
20909         Use getpwnam instead of getpwuid, to be portable to test platforms
20910         that have multiple login names for the same uid.
20912 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
20913             Bruno Haible  <bruno@clisp.org>
20915         glob: Fix more memory leaks.
20916         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
20917         returning.
20918         Reported by Tim Rühsen.
20920 2017-07-10  Bruno Haible  <bruno@clisp.org>
20922         Make sure $host and $host_os are defined when used.
20923         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
20924         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
20925         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20926         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20927         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20928         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20929         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
20930         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
20931         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20932         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
20933         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
20934         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
20935         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20936         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
20937         m4_ifdef block.
20939 2017-07-09  Bruno Haible  <bruno@clisp.org>
20941         *printf: Fix cross-compilation guess for Solaris.
20942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
20943         2010-12-21.
20945 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20946             Bruno Haible  <bruno@clisp.org>
20948         vasnprintf: port to macOS 10.13
20949         Problem reported by comex in:
20950         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
20951         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
20953 2017-07-06  Bruno Haible  <bruno@clisp.org>
20955         imaxdiv tests: Fix logic.
20956         * tests/test-imaxdiv.c (main): Use == instead of =.
20957         Reported by Coverity.
20959 2017-07-06  Bruno Haible  <bruno@clisp.org>
20961         uninorm/filter: Fix use-after-free bug.
20962         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
20963         sortbuf == filter->sortbuf invariant.
20964         Reported by Coverity.
20966 2017-07-06  Bruno Haible  <bruno@clisp.org>
20968         glob: Fix more memory leaks.
20969         * lib/glob.c (glob): Free dirname before returning.
20970         Reported by Coverity and Tim Rühsen.
20972 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20974         parse-datetime: fix uninit var bug
20975         Reported by Bruno Haible in:
20976         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
20977         * lib/parse-datetime.y (parse_datetime2): Do not use
20978         uninitialized.
20980 2017-07-05  Bruno Haible  <bruno@clisp.org>
20982         doc: Update for MSVC 14.
20983         * doc/posix-headers/*.texi: Add info about MSVC 14.
20984         * doc/posix-functions/*.texi: Likewise.
20985         * doc/pastposix-functions/*.texi: Likewise.
20986         * doc/glibc-headers/*.texi: Likewise.
20987         * doc/glibc-functions/*.texi: Likewise.
20989 2017-07-05  Bruno Haible  <bruno@clisp.org>
20991         sched: Fix build failure on native Windows (regression from 2017-06-19).
20992         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
20994 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
20996         stdioext: Port to OpenVMS.
20997         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
20998         * lib/fpending.c (fpending): Remove non-working VMS specific code.
20999         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
21000         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
21001         * lib/fpurge.c (fpurge): Likewise.
21002         * lib/freadable.c (freadable): Likewise.
21003         * lib/freadahead.c (freadahead): Likewise.
21004         * lib/freading.c (freading): Likewise.
21005         * lib/freadptr.c (freadptr): Likewise.
21006         * lib/freadseek.c (freadseek): Likewise.
21007         * lib/fseeko.c (fseeko): Likewise.
21008         * lib/fseterr.c (fseterr): Likewise.
21009         * lib/fwritable.c (fwriteable): Likewise.
21010         * lib/fwriting.c (fwriting): Likewise.
21012 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
21014         glob: Declare variables at the very start of their scope.
21015         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
21016         its separate scope, so the functions will compile on Haiku.
21018 2017-07-01  Bruno Haible  <bruno@clisp.org>
21020         logbl: Work around a glibc bug on PowerPC64LE.
21021         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
21022         numbers.
21023         * doc/posix-functions/logbl.texi: Update.
21025 2017-06-29  Bruno Haible  <bruno@clisp.org>
21027         stat, fstat: Compile stat-w32.c only on platforms that need it.
21028         Suggested by Paul Eggert.
21029         * modules/stat (configure.ac): Request stat-w32.o only on native
21030         Windows.
21031         * modules/fstat (configure.ac): Likewise.
21033 2017-06-25  Bruno Haible  <bruno@clisp.org>
21035         stat: Improve last change.
21036         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
21038 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
21040         stat: port to xlc 12.01
21041         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
21042         12.01 complains "Compilation unit is empty."
21044 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21046         xalloc-oversized: port to icc
21047         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
21048         __builtin_mul_overflow if ICC is defined, as this results in
21049         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
21050         20170213.
21052 2017-06-19  Bruno Haible  <bruno@clisp.org>
21054         classpath: Avoid including config.h twice, as it produces warnings.
21055         Reported by John E. Malmberg <wb8tyw@gmail.com>.
21056         * lib/classpath.h: Conditionalize the include of config.h.
21058 2017-06-19  Bruno Haible  <bruno@clisp.org>
21059             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
21061         sched: Fix compilation failure on OpenVMS.
21062         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
21063         test whether <pthread.h> exists and defines struct sched_param.
21064         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
21066 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
21068         diffseq: port to GCC 7 with --enable-gcc-warnings
21069         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
21070         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
21071         not complain about big_snake being defined but not used.
21073 2017-06-15  Bruno Haible  <bruno@clisp.org>
21075         gettext-h: Update theoretical condition for use of variable size arrays.
21076         Reported by Paul Eggert.
21077         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
21078         to include the theoretical condition for availability of variable size
21079         arrays, if we could trust the value of __STDC_VERSION__.
21081 2017-06-12  Bruno Haible  <bruno@clisp.org>
21083         Relicense some modules under LGPLv2+.
21084         Daiki Ueno's approval is in
21085         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
21086         * modules/uniwidth/base (License): Change to LGPLv2+.
21087         * modules/uniwidth/width (License): Likewise.
21089 2017-06-11  Bruno Haible  <bruno@clisp.org>
21091         localename: Fix test failure on DragonFly BSD.
21092         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
21093         like FreeBSD.
21095 2017-06-11  Bruno Haible  <bruno@clisp.org>
21097         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
21098         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
21099         * lib/float.in.h: Likewise.
21100         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
21102 2017-06-11  Bruno Haible  <bruno@clisp.org>
21104         gnulib-tool: Clean up after autotools.
21105         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
21106         useless directory left over by the Autotools.
21108 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21110         getopt-posix: port to glibc 2.25.90
21111         Problem reported by Daniel P. Berrange in:
21112         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
21113         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
21114         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
21115         #undef if __GETOPT_PREFIX is defined.
21117 2017-06-11  Bruno Haible  <bruno@clisp.org>
21119         strtod-obsolete: Fix license.
21120         * modules/strtod-obsolete (License): Change to LGPL.
21122 2017-06-10  Jim Meyering  <meyering@fb.com>
21124         maint: update to work with GCC7's -Werror=implicit-fallthrough=
21125         * lib/savewd.c (FALLTHROUGH): Define.
21126         (savewd_save, savewd_restore): Use this, rather than a comment,
21127         whenever one switch case falls through into the next.
21129 2017-06-08  Bruno Haible  <bruno@clisp.org>
21131         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
21132         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
21133         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
21134         case.
21136 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
21138         doc: remove robots, add prereqs
21139         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
21140         builds.  Simon's robot site does not seem to be up, so remove
21141         mentions of it for now.
21143 2017-06-08  Bruno Haible  <bruno@clisp.org>
21145         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
21146         * gnulib-tool (func_symlink_target): New function, extracted from
21147         func_symlink.
21148         (func_symlink, func_symlink_if_changed): Use it.
21150 2017-06-08  Bruno Haible  <bruno@clisp.org>
21152         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
21153         * gnulib-tool (func_ln_s): Determine cp_src correctly.
21155 2017-06-07  Bruno Haible  <bruno@clisp.org>
21157         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
21158         Reported by John E. Malmberg <wb8tyw@gmail.com> in
21159         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
21160         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
21161         override, pass 2 arguments to getcwd, not 3.
21163 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21165         same-inode: port better to VMS 8.2 and later
21166         Problem reported by John E. Malmberg in:
21167         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
21168         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
21169         Use the usual POSIX definition.
21170         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
21172 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21174         error: fix POSIX violation for va_end
21175         Problem reported by Bruno Haible in:
21176         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
21177         * lib/error.c (error_tail): Do not call va_end here.
21178         (error, error_at_line): Call it here instead.
21180 2017-05-28  Bruno Haible  <bruno@clisp.org>
21182         c-strtod: Make it usable in C++ mode.
21183         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
21185 2017-05-25  Jim Meyering  <meyering@fb.com>
21187         quotearg: fix compilation failure due to FALLTHROUGH misuse
21188         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
21189         macro back to /* fall through */ comment.  The macro can apply only
21190         to a following case statement.  Reported by Assaf Gordon.
21192 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21194         intprops: port to recent icc
21195         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
21196         but does not support __builtin_add_overflow etc.
21197         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
21198         Define to 0.
21200 2017-05-23  Karl Berry  <karl@freefriends.org>
21202         * config/srclist.txt (iconv.m4): sync broken, comment out
21203         until (hopefully) the next gettext release.
21205 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
21207         Remove repeated words in comments.
21209 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
21211         fallthrough: reinstate a FALLTHROUGH instance in quotearg
21212         quotearg.c: Reinstate this instance which is significant
21213         when the if branch is not taken.
21215 2017-05-21  Bruno Haible  <bruno@clisp.org>
21217         gnulib-tool: Add options to create hard links.
21218         * gnulib-tool (func_usage): Document options --hardlink,
21219         --local-hardlink, --more-hardlinks.
21220         (func_symlink): Renamed from func_ln.
21221         (func_symlink_if_changed): Renamed from func_ln_if_changed.
21222         (func_hardlink): New function.
21223         (copymode, lcopymode): New variables.
21224         (symbolic, lsymbolic): Remove variables.
21225         (Options): Implement options --hardlink, --local-hardlink,
21226         --more-hardlinks.
21227         (func_should_link): Renamed from func_should_symlink. Set copyaction.
21228         (func_add_file, func_update_file): Update invocation of
21229         func_should_link. Invoke func_hardlink when appropriate.
21230         (func_import): Update comments.
21231         (func_create_testdir): Update invocation of func_should_link. Invoke
21232         func_hardlink when appropriate.
21233         Finally, invoke 'git update-index --refresh' to mitigate the effects of
21234         the hard links on git.
21236 2017-05-20  Bruno Haible  <bruno@clisp.org>
21238         argp: Simplify bit manipulation.
21239         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
21240         on a signed integer type.
21242 2017-05-20  Bruno Haible  <bruno@clisp.org>
21244         Avoid wrong configure results with gcc -fsanitize=address.
21245         This completes the work done on 2016-02-06 on this topic.
21246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
21247         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21249         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21250         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
21251         returning.
21252         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21253         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
21254         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21255         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21256         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21257         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21258         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
21259         free allocated memory before returning.
21260         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21261         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
21262         objects before returning.
21263         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
21264         returning.
21266 2017-05-20  Bruno Haible  <bruno@clisp.org>
21268         gnulib-tool: Don't create hard links between gnulib and its testdirs.
21269         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
21271 2017-05-20  Bruno Haible  <bruno@clisp.org>
21273         argp, tsearch tests: Fix file list.
21274         * modules/argp-tests (Files): Add tests/macros.h.
21275         * modules/tsearch-tests (Files): Likewise.
21277 2017-05-20  Bruno Haible  <bruno@clisp.org>
21279         getopt-posix tests: Remove redundant include.
21280         * tests/test-getopt.h: Don't include "macros.h". It's already included
21281         by tests/test-getopt-main.h.
21283 2017-05-19  Jim Meyering  <meyering@fb.com>
21285         dfa: two small simplifications
21286         * lib/dfa.c (build_state): Avoid repeating longer expressions.
21288 2017-05-18  Jim Meyering  <meyering@fb.com>
21290         fallthrough: update for GCC 7/8
21291         * lib/quotearg.c (FALLTHROUGH): New macro.
21292         Use it whenever one switch case falls through into the next,
21293         replacing "/* Fall through */" comments.  This exposed one
21294         instance of an unwarranted "fall through" comment: unwarranted
21295         because it preceded a "goto" label not a case statement.
21296         * lib/freopen-safer.c (freopen_safer): Likewise.
21297         * lib/fts.c (leaf_optimization_applies): Likewise.
21298         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
21299         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
21300         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
21301         tests/macros.h for the definition.
21302         * tests/test-argp.c (group1_parser): Likewise.
21303         * tests/test-getopt.h (getopt_loop): Likewise.
21305 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21307         argp: fix shift bug
21308         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
21309         behavior on shift overflow, caught by gcc -fsanitize=undefined.
21311         argp: fix pointer-subtraction bug
21312         * lib/argp-help.c (hol_append): Don’t subtract pointers to
21313         different arrays, as this can run afoul of -fcheck-pointer-bounds.
21314         See the thread containing Bruno Haible’s report in:
21315         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
21317 2017-05-19  Bruno Haible  <bruno@clisp.org>
21319         printf-posix tests: Avoid test failure with "gcc --coverage".
21320         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21321         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
21322         than 5000000.
21323         * tests/test-fprintf-posix2.c (main): Likewise.
21325 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21327         closeout: don’t close stderr when sanitizing
21328         * NEWS: Document this.
21329         * lib/closeout.c (__has_feature): New macro, if not already defined.
21330         (SANITIZE_ADDRESS): New constant.
21331         (close_stdout): Don’t close stderr if sanitizing addresses.
21333 2017-05-19  Bruno Haible  <bruno@clisp.org>
21335         get-rusage-data tests: Avoid failure on Linux/glibc.
21336         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
21337         on glibc systems.
21339 2017-05-18  Bruno Haible  <bruno@clisp.org>
21341         localename: Include necessary header files on Cygwin.
21342         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
21343         where NL_LOCALE_NAME is defined.
21345 2017-05-18  Bruno Haible  <bruno@clisp.org>
21347         gettext: Update macros from gettext git.
21348         * m4/intldir.m4: Require Autoconf >= 2.60.
21349         * m4/progtest.m4: Fix typos in copyright notice.
21351 2017-05-18  Bruno Haible  <bruno@clisp.org>
21353         copy-file tests: Fix link error (regression from 2017-05-01).
21354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21355         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
21356         $(LIB_CLOCK_GETTIME).
21358 2017-05-18  Bruno Haible  <bruno@clisp.org>
21360         unicase/special-casing: Fix incompatibility with gperf-3.0.4
21361         (regression from 2017-02-13).
21362         * lib/unicase/special-casing.in.h: Renamed from
21363         lib/unicase/special-casing.h.
21364         * modules/unicase/special-casing (Files): Add
21365         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
21366         (Makefile.am): Add rule for generating unicase/special-casing.h.
21367         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
21368         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
21369         not "special-casing.h".
21370         * lib/unicase/u*.c: Likewise.
21372 2017-05-17  Bruno Haible  <bruno@clisp.org>
21374         README: Don't ask people to read a TeXinfo file.
21375         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21376         * README: Tell people how to read the HTML formatted manual.
21378 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21380         parse-datetime: Fix memleak
21381         * lib/parse-datetime.y (parse_datetime2): Cleanup on
21382         localtime_rz() failure.
21384 2017-05-16  Bruno Haible  <bruno@clisp.org>
21386         javacomp: Fix handle leak.
21387         Found by Coverity.
21388         * lib/javacomp.c (get_classfile_version): Close fd before returning.
21390 2017-05-16  Bruno Haible  <bruno@clisp.org>
21392         relocate: Make it easier to reclaim allocated memory.
21393         * lib/relocatable.h (relocate2): New declaration/macro.
21394         * lib/relocatable.c (relocate2): New function.
21395         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
21396         relocate2 function.
21397         * lib/localcharset.c (relocate2): Define fallback.
21398         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
21399         allocated memory.
21400         * lib/javaversion.c (relocate2): Define fallback.
21401         (javaexec_version): Invoke relocate2 instead of relocate. Free the
21402         allocated memory.
21404 2017-05-16  Bruno Haible  <bruno@clisp.org>
21406         relocate: Simplify EMX specific code.
21407         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
21408         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
21410 2017-05-16  Bruno Haible  <bruno@clisp.org>
21412         sigpipe tests: Fix file list.
21413         * modules/sigpipe-tests (Files): Add tests/macros.h.
21415 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21417         manywarnings: update for GCC 7
21418         * build-aux/gcc-warning.spec:
21419         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
21420         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
21421         requires a non-comment fallthrough attribute.  This is a bit
21422         cleaner than the comment versions.
21423         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
21424         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
21425         Use it whenever one switch case falls through into the next.
21426         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
21427         Use FALLTHROUGH macro.
21429 2017-05-15  Bruno Haible  <bruno@clisp.org>
21431         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
21432         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
21433         @ALLOCA@, not @LTALLOCA@.
21435 2017-05-15  Bruno Haible  <bruno@clisp.org>
21437         sys_select: Avoid "was expanded before it was required" warning.
21438         * modules/sys_select (configure.ac): Require, not invoke,
21439         gl_HEADER_SYS_SELECT.
21441 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21443         gnulib-tool: improve GNU Make debugging
21444         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
21445         Report autoconf diagnostics when it fails, in the output makefile.
21447 2017-05-14  Bruno Haible  <bruno@clisp.org>
21449         stat-time tests: Improve comment.
21450         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
21452 2017-05-14  Bruno Haible  <bruno@clisp.org>
21454         same-inode: Adapt for windows-stat-inodes.
21455         * lib/same-inode.h: Include <sys/types.h>.
21456         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
21457         * modules/same-inode (Depends-on): Add sys_types.
21459 2017-05-14  Bruno Haible  <bruno@clisp.org>
21461         windows-stat-inodes: New module.
21462         * m4/windows-stat-inodes.m4: New file.
21463         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
21464         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
21465         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
21466         (_GL_WINDOWS_STAT_INODES): New macro.
21467         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
21468         (GetFileInformationByHandleExFunc): New variable.
21469         (initialize): Initialize it.
21470         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
21471         st_ino appropriately.
21472         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
21473         a fallback, because it does not provide st_dev and st_ino values.
21474         * modules/fstat (Depends-on): Add 'verify'.
21475         * modules/windows-stat-inodes: New file.
21476         * doc/windows-stat-inodes.texi: New file.
21477         * doc/gnulib.texi: Include it.
21478         * doc/posix-headers/sys_stat.texi: Mention the new module.
21480 2017-05-14  Bruno Haible  <bruno@clisp.org>
21482         stat-time tests: Workaround for native Windows.
21483         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
21484         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
21485         New variables.
21486         (initialize_filenames): New function.
21487         (main): Invoke it.
21488         (cleanup, prepare_test): Update.
21490 2017-05-14  Bruno Haible  <bruno@clisp.org>
21492         stat-time: Adapt for windows-stat-timespec.
21493         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
21494         entire st_ctim field.
21496 2017-05-13  Jim Meyering  <meyering@fb.com>
21498         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
21499         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
21500         file that uses the assume macro, claiming that verify.h is unused.
21502 2017-05-13  Bruno Haible  <bruno@clisp.org>
21504         Use symbolic values for _WIN32_WINNT.
21505         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
21506         * lib/sethostname.c (_WIN32_WINNT): Likewise.
21508 2017-05-13  Bruno Haible  <bruno@clisp.org>
21510         year2038: New module.
21511         * m4/year2038.m4: New file.
21512         * modules/year2038: New file.
21513         * doc/year2038.texi: New file.
21514         * doc/gnulib.texi: Include it.
21516 2017-05-13  Bruno Haible  <bruno@clisp.org>
21518         largefile: Simplify.
21519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
21520         of _GL_WINDOWS_64_BIT_ST_SIZE.
21522 2017-05-13  Bruno Haible  <bruno@clisp.org>
21524         largefile: Improve and document.
21525         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
21526         the mingw headers already define 'stat' appropriately.
21527         * modules/largefile (Description): Clarify.
21528         * doc/largefile.texi: New file.
21529         * doc/gnulib.texi: Include it.
21530         * doc/posix-headers/sys_types.texi: Update.
21532 2017-05-13  Bruno Haible  <bruno@clisp.org>
21534         truncate: New module.
21535         * lib/unistd.in.h (truncate): New declaration.
21536         * lib/truncate.c: New file.
21537         * m4/truncate.m4: New file.
21538         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
21539         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
21540         REPLACE_TRUNCATE.
21541         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
21542         HAVE_TRUNCATE, REPLACE_TRUNCATE.
21543         * modules/truncate: New file.
21544         * tests/test-unistd-c++.cc (truncate): Test signature.
21545         * doc/posix-functions/truncate.texi: Mention the new module.
21547         * tests/test-truncate.c: New file.
21548         * modules/truncate-tests: New file.
21550 2017-05-13  Bruno Haible  <bruno@clisp.org>
21552         windows-stat-timespec: New module.
21553         * modules/windows-stat-timespec: New file.
21554         * m4/windows-stat-timespec.m4: New file.
21555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
21556         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
21557         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
21558         fields st_atim, st_mtim, st_ctim.
21559         (st_atime, st_mtime, st_ctime): Define as macros.
21560         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
21561         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
21562         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
21563         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
21564         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
21565         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
21566         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
21567         FILETIME to 'struct timespec', not 'time_t'.
21568         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
21569         FILETIME to 'struct timespec', not 'time_t'.
21570         * lib/stat-time.h (STAT_TIMESPEC): Define also if
21571         _GL_WINDOWS_STAT_TIMESPEC.
21572         * doc/windows-stat-timespec.texi: New file.
21573         * doc/gnulib.texi: Include it.
21575 2017-05-13  Bruno Haible  <bruno@clisp.org>
21577         windows-stat-override: New module.
21578         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
21579         definition. Define GNULIB_defined_struct_stat.
21580         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
21581         link error if this symbol is used and the corresponding module is not
21582         in use.
21583         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
21584         GNULIB_OVERRIDES_STRUCT_STAT.
21585         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21586         GNULIB_OVERRIDES_STRUCT_STAT.
21587         * modules/sys_stat (Makefile.am): Substitute
21588         GNULIB_OVERRIDES_STRUCT_STAT.
21589         * modules/windows-stat-override: New file.
21591 2017-05-13  Bruno Haible  <bruno@clisp.org>
21593         fstat: Fix module dependency conditions.
21594         * modules/fstat (Depends-on): Fix typo.
21596 2017-05-13  Bruno Haible  <bruno@clisp.org>
21598         stat, fstat: Complete removal of old native Windows code.
21599         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
21600         * lib/fstat.c: Likewise.
21601         * lib/stat-w32.c: Likewise.
21603 2017-05-13  Bruno Haible  <bruno@clisp.org>
21605         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
21606         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
21608 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21610         getopt-posix: port to mingw
21611         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
21612         Problem reported by Daniel P. Berrage in:
21613         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
21615 2017-05-11  Bruno Haible  <bruno@clisp.org>
21617         gettimeofday: Increase precision on mingw.
21618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
21619         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
21620         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
21621         GetSystemTimePreciseAsFileTime based implementation always.
21622         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
21623         mingw.
21625 2017-05-11  Bruno Haible  <bruno@clisp.org>
21627         poll: Fix confusion between SOCKETs and FDs on native Windows.
21628         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
21629         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
21631 2017-05-11  Bruno Haible  <bruno@clisp.org>
21633         doc: Clarify doc about socket functions on native Windows.
21634         This reworks doc that was added on 2008-09-29.
21635         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
21636         clearer wording.
21637         * doc/posix-functions/accept.texi: Use clearer wording.
21638         * doc/posix-functions/bind.texi: Likewise.
21639         * doc/posix-functions/connect.texi: Likewise.
21640         * doc/posix-functions/getpeername.texi: Likewise.
21641         * doc/posix-functions/getsockname.texi: Likewise.
21642         * doc/posix-functions/getsockopt.texi: Likewise.
21643         * doc/posix-functions/ioctl.texi: Likewise.
21644         * doc/posix-functions/listen.texi: Likewise.
21645         * doc/posix-functions/recv.texi: Likewise.
21646         * doc/posix-functions/recvfrom.texi: Likewise.
21647         * doc/posix-functions/send.texi: Likewise.
21648         * doc/posix-functions/sendto.texi: Likewise.
21649         * doc/posix-functions/setsockopt.texi: Likewise.
21650         * doc/posix-functions/shutdown.texi: Likewise.
21651         * doc/posix-functions/socket.texi: Likewise.
21653 2017-05-10  Bruno Haible  <bruno@clisp.org>
21655         poll: Fix link error on native Windows.
21656         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
21658 2017-05-10  Bruno Haible  <bruno@clisp.org>
21660         time: Fix missing initialization of HAVE_TIMEZONE_T.
21661         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
21662         here...
21663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
21664         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
21665         gl_HEADER_SYS_TIME_H_DEFAULTS.
21666         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
21667         (configure.ac): Remove useless quoting.
21669 2017-05-10  Bruno Haible  <bruno@clisp.org>
21671         Implement a way to opt out from MSVC support, part 2.
21672         * modules/msvc-inval (Include): Document recommended idiom.
21673         * modules/msvc-nothrow (Include): Likewise.
21675         Implement a way to opt out from MSVC support.
21676         This is useful for Emacs.
21677         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
21678         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
21679         * lib/error.c: Likewise.
21680         * lib/fcntl.c: Likewise.
21681         * lib/flock.c: Likewise.
21682         * lib/fstat.c: Likewise.
21683         * lib/fsync.c: Likewise.
21684         * lib/ioctl.c: Likewise.
21685         * lib/isapipe.c: Likewise.
21686         * lib/lseek.c: Likewise.
21687         * lib/nonblocking.c: Likewise.
21688         * lib/poll.c: Likewise.
21689         * lib/select.c: Likewise.
21690         * lib/sockets.h: Likewise.
21691         * lib/sockets.c: Likewise.
21692         * lib/stdio-read.c: Likewise.
21693         * lib/stdio-write.c: Likewise.
21694         * lib/utimens.c: Likewise.
21695         * lib/w32sock.h: Likewise.
21696         * lib/w32spawn.h: Likewise.
21697         * tests/test-cloexec.c: Likewise.
21698         * tests/test-dup-safer.c: Likewise.
21699         * tests/test-dup2.c: Likewise.
21700         * tests/test-dup3.c: Likewise.
21701         * tests/test-fcntl.c: Likewise.
21702         * tests/test-pipe.c: Likewise.
21703         * tests/test-pipe2.c: Likewise.
21704         * lib/ftruncate.c: Likewise.
21705         (chsize_nothrow): Renamed from chsize.
21706         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
21707         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
21708         * lib/close.c: Likewise.
21709         * lib/dup.c: Likewise.
21710         * lib/fclose.c: Likewise.
21711         * lib/raise.c: Likewise.
21712         * tests/test-fgetc.c: Likewise.
21713         * tests/test-fputc.c: Likewise.
21714         * tests/test-fread.c: Likewise.
21715         * tests/test-fwrite.c: Likewise.
21716         * lib/getdtablesize.c: Likewise.
21717         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
21718         * lib/isatty.c: Don't include msvc-inval.h if
21719         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
21720         Include <io.h> as an alternative to msvc-nothrow.h.
21721         * lib/read.c: Likewise.
21722         * lib/write.c: Likewise.
21723         * lib/dup2.c: Likewise.
21724         (dup2_nothrow): New function.
21725         (ms_windows_dup2): Use it.
21726         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
21727         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
21728         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21729         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
21730         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
21731         * m4/read.m4 (gl_FUNC_READ): Likewise.
21732         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
21733         * doc/windows-without-msvc.texi: New file.
21734         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
21735         section.
21737 2017-05-10  Bruno Haible  <bruno@clisp.org>
21739         wait-process: Adjust native Windows support.
21740         * lib/wait-process.c: Use the usual condition for recognizing a native
21741         Windows platform.
21743 2017-05-10  Bruno Haible  <bruno@clisp.org>
21745         doc: New chapter "Native Windows Support".
21746         * doc/gnulib.texi (Native Windows Support): New chapter.
21747         * doc/windows-libtool.texi: Small wording changes.
21748         * doc/windows-sockets.texi: Small wording and formatting changes.
21750 2017-05-10  Bruno Haible  <bruno@clisp.org>
21752         doc: Move section "Library version handling".
21753         * doc/gnulib.texi: Move section "Library version handling"
21754         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
21756 2017-05-10  Bruno Haible  <bruno@clisp.org>
21758         doc: Move section "Running self-tests under valgrind".
21759         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
21760         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
21762 2017-05-10  Bruno Haible  <bruno@clisp.org>
21764         doc: New chapter "Build Infrastructure Modules".
21765         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
21767 2017-05-10  Bruno Haible  <bruno@clisp.org>
21769         Prepare for reordering sections in the manual.
21770         * doc/gnulib.texi: Move several sections to separate files. Include
21771         these files.
21772         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
21773         * doc/obsolete.texi: Likewise.
21774         * doc/extra-tests.texi: Likewise.
21775         * doc/transversal.texi: Likewise.
21776         * doc/namespace.texi: Likewise.
21777         * doc/check-version.texi: Likewise.
21778         * doc/windows-sockets.texi: Likewise.
21779         * doc/windows-libtool.texi: Likewise.
21780         * doc/licenses-texi.texi: Likewise.
21781         * doc/build-automation.texi: Likewise.
21782         * doc/c-locale.texi: Likewise.
21784 2017-05-10  Bruno Haible  <bruno@clisp.org>
21786         Fix instructions how to update manual on www.gnu.org.
21787         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
21789 2017-05-09  Bruno Haible  <bruno@clisp.org>
21791         tzset: Expand comment about TZ problem on native Windows.
21792         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
21793         Paul Eggert.
21794         * lib/ctime.c (rpl_ctime): Likewise.
21795         * lib/localtime.c (rpl_localtime): Likewise.
21796         * lib/mktime.c (mktime): Likewise.
21797         * lib/strftime-fixes.c (rpl_strftime): Likewise.
21798         * lib/wcsftime.c (rpl_wcsftime): Likewise.
21800 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21802         intprops: don’t depend on ‘verify’
21803         Problem reported by Ævar Arnfjörð Bjarmason in:
21804         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
21805         * lib/intprops.h: Do not include verify.h, and move compile-time
21806         checks from here ...
21807         * tests/test-intprops.c (main): ... to here, if they’re not here
21808         already.  Check widths of other standard integer types.
21809         * modules/intprops (Depends-on): Remove ‘verify’.
21811 2017-05-07  Bruno Haible  <bruno@clisp.org>
21813         utimens: On native Windows, support 100ns resolution also if fd < 0.
21814         * lib/utime.in.h: Include <time.h>.
21815         (_gl_utimens_windows): New declaration.
21816         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
21817         (utime): Invoke it.
21818         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
21819         instead of utime.
21820         * modules/utime (Depends-on): Add 'time'.
21822 2017-05-07  Bruno Haible  <bruno@clisp.org>
21824         utimens: Improve error code on native Windows.
21825         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
21826         error code EACCES, not EINVAL.
21828 2017-05-07  Bruno Haible  <bruno@clisp.org>
21830         utime: Handle more Windows error codes.
21831         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
21832         Based on explanations by Billy O'Neal.
21834 2017-05-05  Bruno Haible  <bruno@clisp.org>
21836         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
21837         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
21838         union.
21839         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
21840         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
21841         value of cipher->IV.
21843 2017-05-05  Bruno Haible  <bruno@clisp.org>
21845         wctype-h-c++-tests: Update.
21846         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
21848 2017-05-05  Bruno Haible  <bruno@clisp.org>
21850         wchar-c++-tests: Update.
21851         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
21853 2017-05-05  Bruno Haible  <bruno@clisp.org>
21855         utime-h-c++-tests: New module.
21856         * tests/test-utime-h-c++.cc: New file.
21857         (utime): Declare, missing since 2017-04-30.
21858         * modules/utime-h-c++-tests: New file.
21860 2017-05-05  Bruno Haible  <bruno@clisp.org>
21862         unistd-c++-tests: Update.
21863         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
21864         (read): Declare, missing since 2011-04-15.
21865         (sethostname): Declare, missing since 2011-12-03.
21867 2017-05-05  Bruno Haible  <bruno@clisp.org>
21869         time-c++-tests: Update.
21870         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
21871         (localtime, gmtime): Declare, missing since 2017-04-30.
21872         (ctime): Declare, missing since 2017-04-30.
21873         (strftime): Declare, missing since 2017-04-30.
21874         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
21875         2015-07-24.
21877 2017-05-05  Bruno Haible  <bruno@clisp.org>
21879         sys_resource-c++-tests: New module.
21880         * tests/test-sys_resource-c++.cc: New file.
21881         (getrusage): Declare, missing since 2012-04-13.
21882         * modules/sys_resource-c++-tests: New file.
21884 2017-05-05  Bruno Haible  <bruno@clisp.org>
21886         strings-c++-tests: New module.
21887         * tests/test-strings-c++.cc: New file.
21888         (ffs): Declare, missing since 2011-07-12.
21889         * modules/strings-c++-tests: New file.
21891 2017-05-05  Bruno Haible  <bruno@clisp.org>
21893         string-c++-tests: Update.
21894         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
21895         (ffsll): Declare, missing since 2011-07-15.
21897 2017-05-05  Bruno Haible  <bruno@clisp.org>
21899         stdlib-c++-tests: Update.
21900         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
21901         2011-10-18.
21902         (ptsname_r): Declare, missing since 2011-11-07.
21903         (qsort_r): Declare, missing since 2014-08-29.
21904         (random, srandom, initstate, setstate): Declare, missing since
21905         2012-01-14.
21906         (secure_getenv): Declare, missing since 2013-02-05.
21908 2017-05-05  Bruno Haible  <bruno@clisp.org>
21910         stdio-c++-tests: Update.
21911         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
21913 2017-05-05  Bruno Haible  <bruno@clisp.org>
21915         signal-h-c++-tests: Update.
21916         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
21918 2017-05-05  Bruno Haible  <bruno@clisp.org>
21920         math-c++-tests: Update.
21921         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
21922         (fma): Declare, missing since 2011-10-17.
21923         (fmal): Declare, missing since 2011-10-17.
21925 2017-05-05  Bruno Haible  <bruno@clisp.org>
21927         locale-c++-tests: Update.
21928         * tests/test-locale-c++.cc (localeconv): Declare, missing since
21929         2012-03-25.
21931 2017-05-05  Bruno Haible  <bruno@clisp.org>
21933         inttypes-c++-tests: New module.
21934         * tests/test-inttypes-c++.cc: New file.
21935         (strtoimax): Declare, missing since 2012-01-05.
21936         (strtoumax): Declare, missing since 2012-01-05.
21937         * modules/inttypes-c++-tests: New file.
21939 2017-05-05  Bruno Haible  <bruno@clisp.org>
21941         dirent-c++-tests: Update.
21942         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
21943         (rewinddir): Declare, missing since 2011-09-13.
21944         (dirfd): Declare, missing since 2010-03-08.
21946 2017-05-04  Bruno Haible  <bruno@clisp.org>
21948         argp: Fix mistake in 2017-04-23 commit.
21949         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
21950         assume that strerror_r returns 'int', not 'char *'.
21952 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
21954         argp: Fix typo.
21955         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
21957 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21959         utimens: port to Emacs + MS-Windows
21960         Skip the new MS-Windows-specific code if Emacs.
21961         * lib/utimens.c [EMACS_CONFIGUATION]:
21962         Avoid new MS-Windows-specific code.
21963         (USE_SETFILETIME): New macro.
21964         (fdutimens): Use it.
21966 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21968         tzset: update doc for TZ problems on MS-Windows
21969         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
21970         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
21971         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
21972         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
21973         * doc/posix-functions/wcsftime.texi:
21974         Mention some issues with TZ under MS-Windows.
21976 2017-05-01  Bruno Haible  <bruno@clisp.org>
21978         copy-file: Fix build error on mingw.
21979         * modules/copy-file (Depends-on): Add 'close'.
21981 2017-05-01  Bruno Haible  <bruno@clisp.org>
21983         tzset: Work around TZ problem on native Windows.
21984         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
21985         Windows, set REPLACE_TZSET to 1.
21986         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
21987         invoke '_tzset' instead of 'tzset'.
21988         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
21990         * modules/time_rz (Depends-on): Add tzset.
21991         * lib/time_rz.c (tzset): Remove fallback definition.
21992         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
21994 2017-05-01  Bruno Haible  <bruno@clisp.org>
21996         mktime: Fix dependencies.
21997         * modules/mktime (Depends-on): Add 'time'.
21999 2017-05-01  Bruno Haible  <bruno@clisp.org>
22001         New module 'localtime-buffer', split off from module 'gettimeofday'.
22002         * lib/localtime-buffer.h: New file.
22003         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
22004         * lib/time.in.h (tzset): New declaration.
22005         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
22006         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
22007         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
22008         moved to lib/localtime-buffer.c or lib/tzset.c.
22009         * m4/localtime-buffer.m4: New file.
22010         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
22011         HAVE_TZSET, REPLACE_TZSET.
22012         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
22013         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
22014         gl_LOCALTIME_BUFFER_NEEDED.
22015         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
22016         since 2007-01-18.
22017         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
22018         tzset.
22019         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
22020         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
22021         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
22022         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
22023         * modules/localtime-buffer: New file.
22024         * modules/time (Depends-on): Remove 'gettimeofday'.
22025         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
22026         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
22027         * modules/tzset (Description): Enable hyperlink to POSIX spec.
22028         (Files): Add lib/tzset.c.
22029         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
22030         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
22031         gl_TIME_MODULE_INDICATOR.
22032         * modules/gettimeofday (Depends-on): Add localtime-buffer.
22034 2017-05-01  Bruno Haible  <bruno@clisp.org>
22036         copy-file: Preserve sub-second time stamps.
22037         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
22038         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
22039         transport the time stamps from the original file to the destination
22040         file.
22041         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
22042         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
22043         utime-h.
22045 2017-05-01  Bruno Haible  <bruno@clisp.org>
22047         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
22048         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
22049         also on MSVC.
22050         Reported by Eli Zaretskii <eliz@gnu.org>.
22052 2017-05-01  Bruno Haible  <bruno@clisp.org>
22054         wchar: Fix compilation error with the original mingw.org mingw.
22055         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22056         <stddef.h> instead.
22057         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
22058         gl_WCTYPE_H.
22059         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
22060         gl_TYPE_WINT_T_PREREQ instead.
22061         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
22062         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
22063         Reported by Eli Zaretskii <eliz@gnu.org>.
22065 2017-04-30  Bruno Haible  <bruno@clisp.org>
22067         utimecmp: Add support for native Windows.
22068         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
22070 2017-04-30  Bruno Haible  <bruno@clisp.org>
22072         utimens: Add support for native Windows.
22073         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
22074         (fdutimens): Provide a native Windows implementation, like utime.c with
22075         added tv_nsec support.
22076         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
22077         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
22079 2017-04-30  Bruno Haible  <bruno@clisp.org>
22081         wcsftime: New module.
22082         * lib/wchar.in.h (wcsftime): New declaration.
22083         * lib/wcsftime.c: New file.
22084         * m4/wcsftime.m4: New file.
22085         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
22086         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
22087         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
22089         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22090         * modules/wcsftime: New file.
22091         * doc/posix-functions/wcsftime.texi: Mention the new module.
22093 2017-04-30  Bruno Haible  <bruno@clisp.org>
22095         strftime-fixes: New module.
22096         * lib/time.in.h (strftime): New declaration.
22097         * lib/strftime-fixes.c: New file.
22098         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
22099         (gl_FUNC_STRFTIME): Remove macro.
22100         * m4/strftime-fixes.m4: New file.
22101         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
22102         REPLACE_STRFTIME.
22103         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
22104         REPLACE_STRFTIME.
22105         * modules/strftime-fixes: New file.
22106         * doc/posix-functions/strftime.texi: Mention the new module.
22108 2017-04-30  Bruno Haible  <bruno@clisp.org>
22110         mktime: Work around TZ problem on native Windows.
22111         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
22112         from the native Windows workaround.
22113         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
22114         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
22115         'guessing no'.
22116         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
22117         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
22118         NEED_MKTIME_WINDOWS.
22119         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
22120         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
22121         NEED_MKTIME_INTERNAL.
22122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
22123         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
22124         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
22125         not REPLACE_MKTIME.
22126         * doc/posix-functions/mktime.texi: Mention the native Windows
22127         workaround.
22129 2017-04-30  Bruno Haible  <bruno@clisp.org>
22131         localtime: New module.
22132         * lib/time.in.h (localtime): Declare also if requested by module
22133         'localtime'.
22134         * lib/localtime.c: New file.
22135         * m4/localtime.m4: New file.
22136         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
22137         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
22138         * modules/localtime: New file.
22139         * doc/posix-functions/localtime.texi: Mention the new module.
22141 2017-04-30  Bruno Haible  <bruno@clisp.org>
22143         ctime: New module.
22144         * lib/time.in.h (ctime): New declaration.
22145         * lib/ctime.c: New file.
22146         * m4/ctime.m4: New file.
22147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
22148         REPLACE_CTIME.
22149         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
22150         * modules/ctime: New file.
22151         * doc/posix-functions/ctime.texi: Mention the new module.
22153 2017-04-30  Bruno Haible  <bruno@clisp.org>
22155         gettimeofday: Provide higher resolution on native Windows.
22156         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
22157         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
22158         (initialize): Initialize it.
22159         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
22160         'struct timeval'. Don't use _ftime().
22161         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
22162         <sys/timeb.h> and _ftime.
22164 2017-04-30  Bruno Haible  <bruno@clisp.org>
22166         Document the problem with the Cygwin environment variable TZ.
22167         * doc/posix-functions/tzset.texi: Add note about TZ.
22168         * doc/posix-functions/ctime.texi: Likewise.
22169         * doc/posix-functions/localtime.texi: Likewise.
22170         * doc/posix-functions/mktime.texi: Likewise.
22171         * doc/posix-functions/strftime.texi: Likewise.
22172         * doc/posix-functions/wcsftime.texi: Likewise.
22173         * doc/pastposix-functions/ftime.texi: Likewise.
22175 2017-04-30  Bruno Haible  <bruno@clisp.org>
22177         utime-tests: New module.
22178         * tests/test-utime.c: New file, based on tests/test-utimens.h.
22179         * tests/test-utimens-common.h: Include <sys/stat.h>.
22180         * modules/utime-tests: New file.
22182 2017-04-29  Bruno Haible  <bruno@clisp.org>
22184         utime: New module.
22185         * lib/utime.in.h: Add comment for snippets.
22186         (utime): New declaration.
22187         * lib/utime.c: New file.
22188         * m4/utime.m4: New file.
22189         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
22190         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
22191         REPLACE_UTIME.
22192         * modules/utime-h (Depends-on): Add snippets.
22193         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
22194         Insert snippets.
22195         * modules/utime: New file.
22196         * doc/posix-functions/utime.texi: Mention the new module.
22198 2017-04-29  Bruno Haible  <bruno@clisp.org>
22200         utime-h: Modernize handling of 'struct utimbuf'.
22201         * lib/utime.in.h: Include next <utime.h> if it exists.
22202         (utimbuf): Define to _utimbuf on native Windows.
22203         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
22204         Set UTIME_H on native Windows.
22205         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
22206         * modules/utime-h (Depends-on): Add include_next.
22207         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
22208         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
22210         * lib/utimens.c (utimbuf): Remove fallback definition.
22211         * m4/utimens.m4 (gl_UTIMENS): Don't require
22212         gl_CHECK_TYPE_STRUCT_UTIMBUF.
22213         * m4/utimbuf.m4: Remove file.
22214         * modules/utimens (Files): Remove m4/utimbuf.m4.
22216 2017-04-29  Bruno Haible  <bruno@clisp.org>
22218         Make use of module 'utime-h'.
22219         * modules/copy-file (Depends-on): Add utime-h.
22220         * lib/copy-file.c: Assume that <utime.h> exists.
22221         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
22223         * modules/utimens (Depends-on): Add utime-h.
22224         * lib/utimens.c: Assume that <utime.h> exists.
22226 2017-04-29  Bruno Haible  <bruno@clisp.org>
22228         utime-h: New module.
22229         * m4/utime_h.m4: New file.
22230         * lib/utime.in.h: New file.
22231         * modules/utime-h: New file.
22232         * doc/posix-headers/utime.texi: Mention the new module.
22234         * tests/test-utime-h.c: New file.
22235         * modules/utime-h-tests: New file.
22237 2017-04-30  Bruno Haible  <bruno@clisp.org>
22239         Fix a few typos.
22240         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
22241         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
22242         * doc/posix-functions/fstat.texi: Fix a plural typo.
22243         * doc/posix-functions/stat.texi: Likewise.
22244         * m4/include_next.m4: Update comments.
22246 2017-04-29  Bruno Haible  <bruno@clisp.org>
22248         error: Fix mistake in 2017-04-23 commit.
22249         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
22250         assume that strerror_r returns 'int', not 'char *'.
22252 2017-04-29  Bruno Haible  <bruno@clisp.org>
22254         stat: Fix time_t values and other problems on native Windows platforms.
22255         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
22256         implementations of stat().
22257         * lib/stat.c: Include filename.h instead of dosname.h. Include
22258         malloca.h, stat-w32.h.
22259         (is_unc_root): New function.
22260         (rpl_stat): New implementation for native Windows. Remove
22261         REPLACE_FUNC_STAT_DIR code.
22262         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
22263         Don't define REPLACE_FUNC_STAT_DIR.
22264         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
22265         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22266         (Depends-on): Remove dosname. Add filename, malloca.
22267         (configure.ac): Also compile lib/stat-w32.c.
22269 2017-04-29  Bruno Haible  <bruno@clisp.org>
22271         fstat: Fix time_t values on native Windows platforms.
22272         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
22273         * lib/stat-w32.h: New file.
22274         * lib/stat-w32.c: New file.
22275         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
22276         stat-w32.h instead.
22277         (fstat_nothrow): Remove function.
22278         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
22279         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
22280         always.
22281         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
22282         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22283         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
22284         (configure.ac): Also compile lib/stat-w32.c.
22286 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
22288         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
22289         Problem reported by Assaf Gordon and Gavin Smith in:
22290         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
22291         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
22292         #define this, too.
22294 2017-04-29  Bruno Haible  <bruno@clisp.org>
22296         strerror_r-posix: Fixes for MSVC 14.
22297         * lib/strerror_r.c: Include <stdarg.h>.
22298         (strerror_r): Provide error messages for errno values 100...140.
22299         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
22301 2017-04-28  Bruno Haible  <bruno@clisp.org>
22303         noreturn: New module.
22304         * lib/noreturn.h: New file.
22305         * modules/noreturn: New file.
22306         * tests/test-noreturn.c: New file.
22307         * modules/noreturn-tests: New file.
22308         * tests/test-noreturn-c++.cc: New file.
22309         * modules/noreturn-c++-tests: New file.
22311 2017-04-27  Bruno Haible  <bruno@clisp.org>
22313         wctype-h: Fix compilation error with the original mingw.org mingw.
22314         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
22315         HAVE_CRTDEFS_H.
22316         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
22317         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22318         <stddef.h> instead.
22319         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
22321 2017-04-26  Pádraig Brady  <P@draigBrady.com>
22323         nap.h: Fix compilation on non windows platforms
22324         * tests/nap.h: Move misplaced endif.
22326 2017-04-26  Pádraig Brady  <P@draigBrady.com>
22327         and Paul Eggert  <eggert@cs.ucla.edu>
22329         time_rz: fix heap buffer overflow vulnerability
22330         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
22331         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
22332         whether there is enough buffer space available, thus avoiding
22333         the problematic promotion of signed to unsigned causing an invalid
22334         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
22335         the start of the buffer.
22336         * tests/test-parse-datetime.c (main): Add a test case written by
22337         Paul Eggert, which overwrites enough of the heap so that
22338         standard glibc will fail with "free(): invalid pointer"
22339         without the patch applied.
22341 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22343         xalloc: add missing integer overflow check
22344         * lib/xalloc.h (x2nrealloc): Also check for multiplication
22345         overflow when P is null.
22347 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22349         parse-datetime: make it standalone
22350         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
22351         (_GL_ATTRIBUTE_FORMAT): New macro.
22352         These are needed to get './gnulib-tool --test parse-datetime' to work.
22354 2017-04-23  Bruno Haible  <bruno@clisp.org>
22356         nap.h: Port to native Windows.
22357         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
22358         use nap_fd instead. On native Windows, close and reopen nap_fd.
22359         (nap_works): Don't compare the ctimes, because on native Windows, these
22360         are the creation times.
22361         (nap): Update.
22363 2017-04-23  Bruno Haible  <bruno@clisp.org>
22365         nap.h: Fix logic.
22366         * tests/nap.h (nap): Avoid signed integer overflow in loop.
22368 2017-04-23  Bruno Haible  <bruno@clisp.org>
22370         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22371         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
22372         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
22373         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
22374         * lib/argp-help.c (__argp_failure): Likewise.
22376 2017-04-23  Bruno Haible  <bruno@clisp.org>
22378         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
22379         * m4/strerror_r.m4: Revert changes since 2016-10-16.
22380         * lib/strerror_r.c: Likewise.
22382 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22384         Target a C99 subset, not a C89 subset
22385         For many years Gnulib has targeted C89 and has resisted using C99
22386         features, as some Gnulib-using programs still wanted to target
22387         C89.  As this no longer seems to be the case, relax the porting
22388         requirements to allow some C99 features.  This is merely a change
22389         to the documentation, to give other Gnulib developers a chance to
22390         weigh in on the topic.
22391         * doc/extern-inline.texi (extern inline):
22392         * doc/gnulib-readme.texi (Portability guidelines):
22393         * doc/gnulib-tool.texi (Initial import):
22394         * doc/gnulib.texi (Header files):
22395         Modernize to talk about C99 and C11 instead of C89 and C99.
22396         * doc/gnulib-readme.texi (Portability guidelines):
22397         Now a section, not merely a subsection, so that it
22398         can be split up.  Modernize a bit.
22399         (C language versions, C99 features assumed)
22400         (C99 features avoided):
22401         New sections.
22403 2017-04-23  Bruno Haible  <bruno@clisp.org>
22405         doc: New section "Modules that modify the way other modules work".
22406         * doc/gnulib.texi (Modules that modify the way other modules work): New
22407         section.
22409 2017-04-23  Bruno Haible  <bruno@clisp.org>
22411         stat-time: Update comments.
22412         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
22413         * tests/test-utimens-common.h: Add reference regarding st_ctime on
22414         Windows.
22416 2017-04-01  Bruno Haible  <bruno@clisp.org>
22418         glob: Fix more memory leaks.
22419         * lib/glob.c (glob): Free allocated memory before returning.
22420         Reported by Coverity via Tim Rühsen.
22422 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22424         poll: improve fast check for out-of-range NFD
22425         * lib/poll.c: Do not include intprops.h.
22426         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
22427         * modules/poll (Depends-on): Remove intprops.
22429         ftoastr: cite a newer paper
22430         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
22431         instead of Loitsch 2010.
22433 2017-04-22  Bruno Haible  <bruno@clisp.org>
22435         poll: Enable argument check also in the Windows implementation.
22436         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
22437         Reported by Paul Eggert.
22439 2017-04-22  Bruno Haible  <bruno@clisp.org>
22441         getlogin_r: Work around bug in Mac OS X 10.12.
22442         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
22443         bug.
22444         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
22445         given size minus 1, call getlogin_r a second time, on a larger buffer.
22446         * modules/getlogin_r (Depends-on): Add malloca.
22447         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
22449 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22451         parse-datetime: fix %z and prefer signed int
22452         %z problem reported by Pádraig Brady in:
22453         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
22454         While fixing it, I decided to prefer signed ints to size_t, as
22455         they are less error-prone (e.g., ubsan catches overflow).
22456         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
22457         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
22458         counts, since signed integers make for better debugging.
22459         (date): Don’t assume %z works in printf formats.
22460         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
22461         sizes of buffers known to be small, e.g., because we’re using snprintf.
22462         (parse_datetime2): Simplify call to debug_mktime_not_ok.
22464 2017-04-22  Bruno Haible  <bruno@clisp.org>
22466         *printf: Work around rounding bug on Mac OS X.
22467         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
22468         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
22469         Mac OS X and FreeBSD.
22470         * doc/glibc-functions/*printf.texi: Likewise.
22472 2017-04-22  Bruno Haible  <bruno@clisp.org>
22474         vasnprintf tests: Avoid warnings.
22475         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
22476         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
22477         test.
22479 2017-04-22  Bruno Haible  <bruno@clisp.org>
22481         sys_file tests: Avoid warning.
22482         * tests/test-sys_file.c (main): Add a default clause to the switch
22483         statement.
22485 2017-04-22  Bruno Haible  <bruno@clisp.org>
22487         sethostname: Update doc.
22488         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
22489         Mac OS X.
22491 2017-04-22  Bruno Haible  <bruno@clisp.org>
22493         quotearg tests: Avoid warnings.
22494         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
22495         false.
22497 2017-04-22  Bruno Haible  <bruno@clisp.org>
22499         poll: Enable argument check.
22500         * lib/poll.c: Include intprops.h.
22501         (poll): Check value of nfd correctly.
22502         * modules/poll (Depends-on): Add intprops.
22504 2017-04-22  Bruno Haible  <bruno@clisp.org>
22506         get-rusage-data: Avoid warnings on Mac OS X.
22507         * lib/get-rusage-data.c: On Mac OS X, don't define
22508         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
22509         (get_rusage_data) [Mac OS X]: Just return 0.
22511 2017-04-22  Bruno Haible  <bruno@clisp.org>
22513         xbinary-io: Fix build error.
22514         * modules/xbinary-io (Depends-on): Add gettext-h.
22515         * lib/xbinary-io.c: Include gettext.h and define _().
22516         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
22517         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
22519 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22521         parse-datetime: overflow and debug cleanups
22522         This long patch was triggered by this bug report from Ruediger Meier:
22523         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
22524         I fixed the bug he noted, then found some others nearby, and then
22525         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
22526         up some of the code to follow GNU standards while I was at it.
22527         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
22528         use c_isdigit.
22529         (EPOCH_YEAR): Remove; unused.
22530         (TM_YEAR_BASE): Now an enum rather than a macro.
22531         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
22532         time zone offset, since timezones now are in terms of seconds and
22533         not minutes.
22534         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
22535         appropriate.  Verify that intmax_t is wide enough.
22536         (time_overflow, time_zone_str): New functions, used to deal
22537         more reliably with overflow.
22538         (dbg_printf): Add printf attribute, to help catch integer width errors.
22539         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
22540         (%union, to_hour, yylex, parse_datetime2):
22541         Use intmax_t instead of long int and/or long_time_t.
22542         All uses changed.
22543         (DBGBUFSIZE): Move earlier.
22544         (relative_time, set_hhmmss, parser_control):
22545         Just use int for nanoseconds and for time zones; that’s wide enough.
22546         (parser_control): Use bool for members like year_seen that can
22547         be booleans instead of counters.  All uses changed.
22548         Remove debug_default_input_timezone; no longer needed.
22549         All uses removed.
22550         (apply_relative_time): Return a bool overflow flag.
22551         All uses changed to check for overflow.
22552         (apply_relative_time, zone, date, relunit, relunit_snumber)
22553         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
22554         Check for integer overflow portably.
22555         (str_days): Use just int for N, as it’s wide enough.
22556         Prefer 2D char arrays to arrays of char * when it looks like
22557         2D is a win on typical platforms.
22558         Prefer snprintf to strncpy/strncat, for simplicity;
22559         all buffers are smaller than INT_MAX so this is safe.
22560         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
22561         (debug_print_current_time): Don’t assume tv_nsec is of type long,
22562         as this is not true on x32.  Output "." before any nanoseconds.
22563         (debug_print_current_time, parse_datetime2):
22564         Output local zones using a more-consistent format.
22565         (debug_print_current_time, date, parse_datetime2):
22566         (main) [TEST]:
22567         Don’t assume time_t is the same width as long.
22568         (print_rel_part): New function, replacing ...
22569         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
22570         (debug_print_relative_time): Use bool for boolean.
22571         (local_zone): dsts_seen now counts only tDST instances.
22572         (date): Fix printf of size_t to use %z.  Do not assume numeric
22573         tokens have negative values merely because the context suggests
22574         a syntax with "-" separating tokens.
22575         (time_zone_hhmm): Return bool success indicator, which checks for
22576         overflow.  Store result into PC->time_zone instead.  All callers
22577         changed.
22578         (tm_year_str): New function.  Return a bool success indicator and
22579         store the result into a buffer.  All callers changed.  Output the
22580         numerically correct string even if adding 1900 to the year would
22581         overflow.
22582         (to_tm_year): New function, replacing the old to_year.  All
22583         callers changed.
22584         (tm_diff): Sync with glibc.
22585         (lookup_word): Use to_uchar instead of doing it by hand.
22586         (TZBUFSIZE): Now local to the only function that needs it.
22587         (debug_strfdatetime): Simplify now that time zones are int seconds.
22588         (debug_strfdate): Work even if tm_year + 1900 would overflow.
22589         (get_effective_timezone): Remove.  All uses removed.
22590         (parse_datetime2): Use fprintf in pieces instead of snprintfing
22591         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
22592         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
22593         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
22594         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
22595         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
22596         * modules/parse-datetime (Depends-on): Add inttypes.
22598 2017-04-21  Bruno Haible  <bruno@clisp.org>
22600         gettext-h: Avoid -Wundef warning.
22601         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
22602         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
22603         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
22605 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
22607         error: Avoid "function declaration isn't a prototype" warning.
22608         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
22610 2017-04-21  Bruno Haible  <bruno@clisp.org>
22612         vasnprintf: Fix for MSVC 14.
22613         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
22614         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
22615         of !HAVE_SNPRINTF_RETVAL_C99.
22617 2017-04-21  Bruno Haible  <bruno@clisp.org>
22619         mbrtowc tests: Fix test failures on MSVC 14.
22620         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
22621         behaviour for invalid input.
22623 2017-04-21  Bruno Haible  <bruno@clisp.org>
22625         mbsinit: Fix for MSVC 14.
22626         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
22627         implementation that is in sync with mbrtowc.c. On other platforms, use
22628         an adequate ad-hoc implementation.
22630 2017-04-21  Bruno Haible  <bruno@clisp.org>
22632         Fix test-mbrtowc5.sh failure on native Windows.
22633         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
22634         "C".
22636 2017-04-21  Bruno Haible  <bruno@clisp.org>
22638         Avoid accidental use of native Windows APIs on Cygwin.
22639         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
22640         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
22641         * lib/localename.c (WINDOWS_NATIVE): Likewise.
22643 2017-04-20  Bruno Haible  <bruno@clisp.org>
22645         Remove red warnings from the generated MODULES.html.
22646         * modules/fcntl (Description): Disambiguate function references.
22647         * modules/getcwd-lgpl (Description): Likewise.
22648         * modules/hostent (Description): Likewise.
22649         * modules/servent (Description): Likewise.
22650         * modules/tempname (Description): Likewise.
22652 2017-04-20  Bruno Haible  <bruno@clisp.org>
22654         verify tests: Fix spurious failure with parallel make.
22655         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
22656         EXTRA_PROGRAMS.
22657         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
22658         * tests/test-verify-try.c: New file.
22659         * modules/verify-tests (Files): Add it.
22660         (EXTRA_PROGRAMS): Add test-verify-try.
22661         (MOSTLYCLEANFILES): Update accordingly.
22662         Reported by Adam James Stewart <ajstewart@anl.gov>.
22664 2017-04-18  Bruno Haible  <bruno@clisp.org>
22666         vma-iter: Fix compilation error on Solaris 7.
22667         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
22668         like on IRIX, OSF/1.
22669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22671 2017-04-18  Bruno Haible  <bruno@clisp.org>
22673         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
22674         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
22675         included.
22676         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
22677         <sys/procfs.h>.
22678         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
22679         <sys/procfs.h> cannot be included.
22680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22682 2017-04-18  Bruno Haible  <bruno@clisp.org>
22684         getopt-gnu: Add comments.
22685         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
22686         * modules/getopt-gnu (configure.ac): Likewise.
22688 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
22690         regex: port better to Solaris 10
22691         Solaris 10 <locale.h> includes <libintl.h>, which #defines
22692         gettext, and this causes a double #define.
22693         Problem reported by Gavin Smith in:
22694         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
22695         * lib/regex_internal.h (gettext): #undef before #defining.
22697 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
22699         intprops: improve comments
22700         * lib/intprops.h: Improve and shorten commentary.
22701         For the record, if we ever run into a pedantic compiler that
22702         behaves differently from GCC when converting an out-of-range value
22703         to a signed integer, we can work around the problem with something
22704         like the following code, where UCT is the signed counterpart of T
22705         (UCT is sometimes narrower than UT) and all callers are changed
22706         accordingly:
22707         #if __SUNPRO_C <= 0x5120
22708         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
22709            ((t) ((ut) (a) op (ut) (b)))
22710         #else
22711         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
22712            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
22713             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
22714                + TYPE_MINIMUM (t)) \
22715             : (t) (uct) ((ut) (a) op (ut) (b)))
22716         #endif
22718 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
22720         intprops: try to avoid tickling similar bugs
22721         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
22722         needs to be the same width as T; it can be wider.
22723         Change callers so that UT is at least as wide as unsigned int,
22724         as I suspect that this is less likely to run into compiler bugs.
22726         intprops: port to Oracle Studio 12.3 x86
22727         Problem reported by Gavin Smith in:
22728         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
22729         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
22730         Convert unsigned to signed via the usual rather than the standard way,
22731         to avoid a compiler bug in Oracle Studio 12.3 x86.
22733 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22735         getopt: prefer - to _ in new file names
22736         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
22737         * lib/getopt-core.h: Rename from lib/getopt_core.h.
22738         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
22739         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
22740         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
22741         All uses changed.
22743         getopt: port recent getopt changes to macOS
22744         Problem reported by Harald Maier (Bug#26398).
22745         The macOS C compiler uses __nonnull for its own purposes and that
22746         clashes with glibc's __nonnull.
22747         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
22748         * lib/getopt_cdefs.in.h (__nonnull): Remove.
22749         * lib/getopt_core.h (getopt):
22750         * lib/getopt_ext.h (getopt_long, getopt_long_only):
22751         Use _GL_ARG_NONNULL, not __nonnull.
22752         * lib/unistd.in.h: Move snippet hooks to before where the getopt
22753         .h files are included, so that _GL_ARG_NONNULL is defined in time.
22754         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
22755         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
22757 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22759         getopt-gnu: omit some duplicate code
22760         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
22761         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
22762         gnulib-tool already does this.
22763         * modules/getopt-gnu (configure.ac): Omit code duplicated from
22764         getopt-posix, which we depend on.
22766         getopt-posix: use angle-bracket include
22767         * lib/getopt1.c: Include <config.h>, not "config.h".
22769 2017-04-06  Zack Weinberg  <zackw@panix.com>
22771         getopt: annotate files with relationship to glibc
22773         As the final act in this patchset, adjust the message at the top of
22774         each file to indicate which files are synced with glibc.  (This has
22775         already been done for most of the headers.)
22777         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
22778         Mention in top-of-file boilerplate that these files are shared
22779         between glibc and gnulib.
22782         getopt: split up getopt.in.h and eliminate __need_getopt
22784         Over in glibc, all of the __need macros are being phased out in favor
22785         of small headers that declare only the necessary components, as this
22786         is much simpler and less prone to bugs.  As getopt is shared with
22787         glibc, gnulib needs to do the same for __need_getopt.
22789         __need_getopt is misnamed; what it really means is "we want only the
22790         getopt features specified in POSIX, not the GNU extensions".  glibc
22791         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
22792         these files can be shared verbatim with gnulib.  The portability
22793         wrapper, on the other hand, they have renounced altogether; glibc's
22794         getopt.h will no longer be shared with gnulib at all.  In exchange,
22795         certain glibc-specific quirks (having to do with __posix_getopt) no
22796         longer need appear in gnulib's headers at all.
22798         This patch merges getopt_core.h and getopt_ext.h from glibc, and
22799         splits up the current gnulib-side portability wrapper into three
22800         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
22801         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
22802         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
22803         unistd.in.h just use them.  All new files are clearly marked with
22804         whether they are shared with glibc.
22806         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
22807         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
22808         with glibc, and ...
22809         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
22810         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
22811         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
22812         instead of defining __need_getopt and including the full getopt.h.
22814         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
22815         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
22816         * modules/getopt-posix (Files): Add new headers and sort list.
22817         (Depends-on): No longer need snippet/arg-nonnull.
22818         (Makefile.am): Generate getopt_cdefs.h.
22821         getopt: better handling of ambiguous options
22823         glibc's getopt uses alloca to construct a linked list of possibilities
22824         for an "ambiguous" long option.  In gnulib, malloc should be used
22825         instead.  Providing for both cases complicates things a fair bit.
22827         This patch rewrites ambiguous-option handling to use a boolean vector
22828         instead of a linked list.  There is then only one allocation that
22829         might need freeing; in glibc it can honor __libc_use_alloca as usual,
22830         and in gnulib we define __libc_use_alloca to always be false, so we
22831         don't need ifdefs in the middle of the function.  This should also be
22832         slightly more efficient in the normal case of long options being fully
22833         spelled out -- I think most people aren't even aware they _can_
22834         sometimes abbreviate long options.
22836         One interesting consequence is that the list of possibilities is now
22837         printed in exactly the order they appear in the list of long options,
22838         instead of the first possibility being shuffled to the end.
22840         (The patch looks bigger than it really is because there's a fair bit
22841         of reindentation and code rearrangement.)
22843         * lib/getopt.c: When used standalone, define __libc_use_alloca
22844         as always false and alloca to abort if called.
22845         (process_long_option): Rewrite handling of ambiguous long options
22846         to use a single boolean vector, not a linked list; use
22847         __libc_use_alloca to decide whether to allocate this using alloca.
22850         getopt: refactor long-option handling
22852         There were two copies of the bulk of the code to handle long options.
22853         Now there is only one.
22855         This change temporarily removes the logic to avoid using alloca when
22856         standalone; the next patch in the series will restore it.
22858         * lib/getopt.c (process_long_option): New function split out
22859         from _getopt_internal_r.
22860         (_getopt_internal_r): Replace both copies of the long-option
22861         processing code with calls to process_long_option.
22864         getopt: tidy up _getopt_initialize a bit
22866         _getopt_data.__posixly_correct is completely redundant to
22867         _getopt_data.__ordering, and some work that logically belongs in
22868         _getopt_initialize was being done by _getopt_internal_r, making the
22869         code harder to understand.
22871         As a side effect, getenv will no longer be called if the first
22872         character of the options string is '+' or '-', which is probably a
22873         Good Thing.  (Perhaps we should have a flag character that
22874         specifically asks for the permutation behavior?)
22876         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
22877         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
22878         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
22881         getopt: merge from glibc: repetition reduction
22883         The definitions of the entry point functions 'getopt' and
22884         '__posix_getopt' can be made substantially less repetitive with a
22885         helper macro.
22887         While I was merging the const-correctness changes from gnulib into
22888         glibc I noticed there are still some unnecessary casts in
22889         _getopt_internal_r.
22891         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
22892         a macro.  Consistently cast 'argv' to 'char **' when calling
22893         _getopt_internal.
22894         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
22897         getopt: clean up error reporting
22899         getopt can print a whole bunch of error messages, and when used
22900         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
22901         cancellation point and getopt isn't, and also applying fprintf to a
22902         stream in wide-character mode is not allowed.  So every single error
22903         reporting case has an #ifdef _LIBC block in which it calls internal
22904         libc functions instead.  The counterpart patch series in glibc makes
22905         it possible to simplify all of that down to a set of #defines at the
22906         top of the file; core code is written as if it is safe to just call
22907         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
22908         call any *other* stdio functions.)
22910         * lib/getopt.c: When _LIBC is defined, define fprintf to
22911         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
22912         to _IO_funlockfile.  When neither _LIBC nor
22913         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
22914         funlockfile as no-ops.
22915         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
22916         standalone error-printing code can now be used for libc as well.
22917         Add an flockfile/funlockfile pair around one case where the error
22918         message is printed in several chunks.  Don't use fputc.
22921         getopt: fix fencepost error in ambiguous-W-option handling
22923         getopt_long contains an undocumented (AFAICT) feature in which, if you
22924         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
22925         treated as equivalent to '--foo'.  This is implemented with a partial
22926         second copy of the code for handling long options, and that code
22927         increments optind one too many times when recovering from an ambiguous
22928         abbreviated option, which can cause the main loop to walk past the end
22929         of argv and crash.
22931         I discovered this while writing a test case that tries to exercise all
22932         of getopt's error reporting paths; I wouldn't be surprised to learn
22933         that this feature is never used by real applications.
22935         * lib/getopt.c (_getopt_internal_r): Don't increment
22936         d->optind a second time when reporting ambiguous -W options.
22939         getopt: clean up getopt.c and getopt1.c file headers
22941         In getopt.c, there is no need to include wchar.h at all, and it is
22942         safe nowadays to assume that stdlib.h does declare getenv (several
22943         other gnulib modules make this assumption).
22945         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
22946         by using "" inclusions consistently, and there is no actual need to
22947         include stdlib.h (except in the #ifdef TEST block, where it should be
22948         unconditional), nor to provide a backup definition of NULL at all.
22950         * lib/getopt1.c: Simplify #ifdeffage at top of file.
22951         Move inclusion of stdlib.h to #ifdef TEST block and make
22952         unconditional.  Do not define NULL.
22953         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
22954         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
22955         * modules/getopt-gnu, modules/getopt-posix: Don't call
22956         gl_PREREQ_GETENV.
22959         getopt: harmonize comments with glibc
22961         The comments explaining how the behavior of 'getopt' varies depending
22962         on whether it's the standalone version and whether there are special
22963         characters at the beginning of the options string were inconsistent
22964         between gnulib and glibc, and also out of sync with the code.
22966         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
22969         getopt: remove USE_NONOPTION_FLAGS
22971         getopt includes code to parse an environment variable named
22972         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
22973         in decimal); but all of it has been #ifdefed out since 2001, with no
22974         official way to turn it back on.
22976         According to commentary in glibc's config.h.in, bash version 2.0
22977         set this environment variable to indicate argv elements that were
22978         the result of glob expansion and therefore should not be treated
22979         as options, but the feature was "disabled later" because "it
22980         caused problems".  According to bash's CHANGES file, "later" was
22981         release 2.01; it gives no more detail about what the problems
22982         were.
22984         Version 2.0 of bash was released on the last day of 1996, and version
22985         2.01 in June of 1997.  Twenty years later, I think it is safe to
22986         assume that this environment variable isn't coming back.
22988         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
22989         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
22990         __libc_argc and __libc_argv externs, which were only used by
22991         #ifdef USE_NONOPTION_FLAGS blocks.
22994         getopt: tabify, in preparation for merge with glibc
22996         glibc sticks to the GNU default of indenting with a mix of
22997         8-column tabs and spaces; make the gnulib copy match.
22999         getopt.h is not included because it is *not* going to be merged in its
23000         present form.
23002         * getopt.c, getopt1.c, getopt_int.h: Tabify.
23004 2017-04-02  Bruno Haible  <bruno@clisp.org>
23006         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
23007         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
23008         like it was done in modules/relocatable-lib on 2011-05-21 and in
23009         modules/relocatable-prog on 2011-08-15.
23010         Reported by Reuben Thomas <rrt@sc3d.org>.
23012 2017-03-31  Bruno Haible  <bruno@clisp.org>
23014         glob: Fix invalid free() call.
23015         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
23016         static storage to home_dir.
23017         Reported by Coverity via Tim Rühsen.
23019 2017-03-31  Bruno Haible  <bruno@clisp.org>
23021         glob: Fix memory leaks.
23022         * lib/glob.c (glob): Free allocated memory before returning.
23023         Reported by Coverity via Tim Rühsen.
23025 2017-03-31  Bruno Haible  <bruno@clisp.org>
23027         md5, sha1, sha256, sha512: Add comments regarding correctness.
23028         * lib/md5.h (buflen): Add comments regarding range.
23029         * lib/sha1.h (buflen): Likewise.
23030         * lib/sha256.h (buflen): Likewise.
23031         * lib/sha512.h (buflen): Likewise.
23032         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
23033         * lib/sha1.c (sha1_process_bytes): Likewise.
23034         * lib/sha256.c (sha256_process_bytes): Likewise.
23035         * lib/sha512.c (sha512_process_bytes): Likewise.
23036         Reported by Coverity via Tim Rühsen.
23038 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
23040         getopt: merge from glibc
23041         This does not change anything substantial; it merely simplifies
23042         hypothetical merges back to glibc.
23043         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
23044         Change copyright notice to match what is in glibc.
23045         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
23046         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
23047         __open_memstream rather than open_memstream and __glibc_likely
23048         instead of __builtin_expect.
23049         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
23051 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
23053         dfa: make [0-9] faster in non-C locales
23054         Problem reported by John P. Linderman (Bug#26193).
23055         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
23056         If both ends of the range are ASCII digits, do not worry about
23057         multi-character collating sequences and the like.  Be consistent
23058         about using isalpha as a precondition for setbit_case_fold_c.
23060 2017-03-19  Bruno Haible  <bruno@clisp.org>
23062         lock: Fix compilation error with HP-UX IA64 cc.
23063         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
23064         weak on non-glibc platforms.
23066 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23068         stdalign: tweak version# and test for HP-UX IA64
23069         Problems reported by Bruno Haible in:
23070         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
23071         * lib/stdalign.in.h (_Alignas):
23072         * m4/stdalign.m4 (gl_STDALIGN_H):
23073         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
23074         used octal (as that is how they document it), but it is decimal in
23075         practice now and the ancient implementations no longer matter.
23076         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
23078 2017-03-19  Bruno Haible  <bruno@clisp.org>
23080         vma-iter: Add support for Solaris.
23081         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
23082         approach.
23083         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
23084         * lib/get-rusage-as.c: Update comment about Solaris.
23085         * lib/get-rusage-data.c: Likewise.
23087 2017-03-19  Bruno Haible  <bruno@clisp.org>
23089         vma-iter: Prefer HP-UX specific API on HP-UX.
23090         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
23091         * lib/vma-iter.h: Update.
23092         Just in case HP-UX ever implements mquery().
23094 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
23096         stdalign: restore previous behavior for HP-UX IA64
23097         See Bruno Haible's email in:
23098         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23099         which cites p 150 of a manual saying that 'aligned' works on Itanium.
23100         * lib/stdalign.in.h (_Alignas):
23101         Assume the '061200' applies to Itanium, not to PA-RISC.
23102         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
23104 2017-03-17  Bruno Haible  <bruno@clisp.org>
23106         stat-time, timespec: Support use of the header files in C++ mode.
23107         * lib/stat-time.h: Add "C" linkage declaration.
23108         * lib/timespec.h: Likewise.
23110 2017-03-17  Bruno Haible  <bruno@clisp.org>
23112         stdalign: Make it work with HP-UX cc.
23113         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
23114         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
23115         for HP-UX cc.
23117 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
23119         flexmember: try to detect HP-UX 11.31 cc bug
23120         Problem reported by Bruno Haible in:
23121         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23122         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23123         Attempt to detect bug in HP-UX 11.31 cc.
23125 2017-03-16  Bruno Haible  <bruno@clisp.org>
23127         stdint: Fix test compilation failure with HP-UX 11 cc.
23128         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
23129         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
23130         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
23131         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
23133 2017-03-14  Bruno Haible  <bruno@clisp.org>
23135         gnulib-tool: Don't produce a tests directory with only snippet .h files.
23136         * gnulib-tool (func_modules_transitive_closure_separately): If
23137         testsrelated_modules ends up with no "real" modules, aside from
23138         modules with applicability 'all', set it to empty.
23140 2017-03-14  Bruno Haible  <bruno@clisp.org>
23142         vma-iter: Add support for HP-UX.
23143         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
23144         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
23145         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
23146         * lib/get-rusage-as.c: Update comment about HP-UX.
23147         * lib/get-rusage-data.c: Likewise.
23148         (get_rusage_data): Use get_rusage_data_via_setrlimit.
23150 2017-03-14  Bruno Haible  <bruno@clisp.org>
23152         limits-h: Make it work with HP-UX cc.
23153         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
23154         defined.
23156 2017-03-14  Bruno Haible  <bruno@clisp.org>
23158         Fix test failures on DragonFlyBSD.
23159         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
23160         * tests/test-select.h (test_bad_fd): Likewise.
23161         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
23163 2017-03-14  Bruno Haible  <bruno@clisp.org>
23165         freadahead: Silence warning on DragonFlyBSD.
23166         * lib/freadahead.c (__sreadahead): Declare ourselves.
23168 2017-03-14  Bruno Haible  <bruno@clisp.org>
23170         vma-iter: Add comment about AIX.
23171         * lib/vma-iter.c: Add comment about why this module is not implemented
23172         on AIX.
23174 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23176         snippets: move unadjusted snippet sources to lib
23177         Problem reported by Michal Privoznik in:
23178         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
23179         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
23180         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
23181         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
23182         * lib/unused-parameter.h: Rename from
23183         build-aux/snippet/unused-parameter.h.
23184         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
23185         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
23186         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
23187         * modules/snippet/c++defs (Files:, CXXDEFS_H):
23188         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
23189         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
23190         Adjust to file renamings.
23192 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
23194         gnulib-tool: don't automatically distribute files from top/
23195         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
23196         not distribute top/README-release by default, don't distribute files
23197         from top/ unconditionally.
23198         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
23199         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
23201 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23203         gnulib-tool: fix typo in comment output
23204         * gnulib-tool (func_import): Fix typo with previous change.
23206         snippets: work around GNU Make 3.82 VPATH
23207         When using 'gnulib-tool --gnu-make' on Emacs, and building
23208         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
23209         an out-of-source (VPATH) build failed because the sans-copyright
23210         snippet file was not built before the file that used it.
23211         Presumably this is some sort of VPATH thing.  Work around the
23212         problem by using the original snippet, i.e., don’t bother to
23213         remove its copyright notice.
23214         * modules/snippet/_Noreturn, modules/snippet/link-warning:
23215         Don’t assume Automake in comments.  Omit long-incorrect comment.
23216         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
23217         (MOSTLYCLEANFILES):
23218         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
23219         (MOSTLYCLEANFILES):
23220         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
23221         (MOSTLYCLEANFILES):
23222         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
23223         (MOSTLYCLEANFILES):
23224         Remove.
23225         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
23226         * modules/snippet/c++defs (CXXDEFS_H):
23227         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
23228         * modules/snippet/warn-on-use (WARN_ON_USE_H):
23229         Don’t bother to remove the copyright notice; just use the
23230         original snippet as-is.
23232 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
23234         gnulib-tool: minor --gnu-make fixups
23235         * gnulib-tool (func_emit_lib_Makefile_am):
23236         Remove useless code that was a blind alley during implementation.
23237         Problem reported by Thien-Thi Nguyen in:
23238         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
23239         (func_import): Note the "--gnu-make" option in the output comment.
23241 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
23243         gnulib-tool: new option --gnu-make
23244         This is for applications like GNU Emacs that use GNU Make
23245         features instead of Automake.
23246         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
23247         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
23248         Do not assume Automake.
23249         * gnulib-tool (func_determine_path_separator)
23250         (func_modules_transitive_closure, func_update_file)
23251         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23252         (func_import): Add support for --gnu-make.
23254 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23256         gnulib-common.m4: avoid aclocal.m4 bloat
23257         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
23258         Hide AM_PROG_AR from aclocal, so that aclocal does not
23259         install irrelevant macro definitions into aclocal.m4.
23261 2017-03-10  Bruno Haible  <bruno@clisp.org>
23263         vma-iter: Let callers know about error.
23264         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
23265         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
23267 2017-03-05  Bruno Haible  <bruno@clisp.org>
23269         Fix value of LD for 64-bit compilers on AIX.
23270         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
23271         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
23273 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
23275         dtotimespec: simplify
23276         * lib/dtotimespec.c (dtotimespec): Simplify.
23278 2017-03-04  Bruno Haible  <bruno@clisp.org>
23280         test-calloc-gnu: Reenable test also for GCC 7.
23281         * tests/test-calloc-gnu.c (eight): New function.
23282         (main): Don't skip test; use eight() instead.
23284 2017-03-04  Jim Meyering  <meyering@fb.com>
23286         test-calloc-gnu: port to GCC7
23287         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
23288         that attempts to calloc more than SIZE_MAX bytes, because GCC7
23289         and newer would detect that at compilation time.
23291 2017-03-04  Bruno Haible  <bruno@clisp.org>
23293         tests: Avoid compiler warning about uses of null_ptr.
23294         * tests/null-ptr.h: New file.
23295         * tests/test-canonicalize.c: Include null-ptr.h.
23296         (null_ptr): Remove function.
23297         * tests/test-canonicalize-lgpl.c: Likewise.
23298         * tests/test-memmem.c: Likewise.
23299         * tests/test-ptsname_r.c: Likewise.
23300         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
23301         * modules/canonicalize-lgpl-tests: Likewise.
23302         * modules/memmem-tests: Likewise.
23303         * modules/ptsname_r-tests: Likewise.
23304         Reported by Jim Meyering.
23306 2017-03-03  Bruno Haible  <bruno@clisp.org>
23308         doc: Mention Mac OS X deficiencies regarding semaphores.
23309         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
23310         * doc/posix-functions/sem_destroy.texi: Likewise.
23311         * doc/posix-functions/sem_getvalue.texi: Likewise.
23313 2017-03-03  Bruno Haible  <bruno@clisp.org>
23315         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
23316         Reported by Assaf Gordon <assafgordon@gmail.com> via
23317         Pádraig Brady <P@draigBrady.com>.
23318         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
23319         semaphores.
23320         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
23321         (atomic_int_semaphore): New macro.
23323 2017-02-28  Bruno Haible  <bruno@clisp.org>
23325         perror tests: Tweak for z/OS.
23326         Reported by Daniel Richard G. <skunk@iskunk.org>.
23327         * tests/test-perror.sh: Don't fail z/OS style perror output.
23329 2017-02-26  Bruno Haible  <bruno@clisp.org>
23331         nproc: Refactor large function.
23332         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
23333         from num_processors.
23334         (num_processors): In this function, only deal with OMP.
23336 2017-02-26  Pádraig Brady  <P@draigBrady.com>
23338         nproc: adjust handling of OpenMP environment variables
23339         to match the return value from omp_get_num_threads(), i.e.:
23340          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
23341          - Treat 0 as an invalid value and ignore
23342         Also remove the call to omp_get_num_threads() because
23343         it's ineffective without the omp pragmas in place.
23344         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
23345         so that it can be ignored.
23346         (num_processors): Honor OMP_THREAD_LIMIT even without
23347         OMP_NUM_THREADS being set.  Also fix a typo in the environment
23348         variable being checked, from the previous recent commit.
23350 2017-02-26  Pádraig Brady  <P@draigBrady.com>
23352         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
23353         * lib/nproc.c (parse_omp_threads): A new function refactored
23354         from num_processors() to support parsing both of the
23355         above environment variables.
23356         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
23357         to accurately reflect the current OpenMP nesting level.
23358         Also support the OMP_THREAD_LIMIT environment variable
23359         to limit the max value determined from OMP_NUM_THREADS.
23360         * modules/nproc: Depend on minmax header.
23361         Suggested by Oliver Heimlich.
23363 2017-02-25  Bruno Haible  <bruno@clisp.org>
23365         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
23366         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
23368 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23370         ftoastr: port to -Wdouble-promotion
23371         Work around -Wdouble-promotion false alarm in recent GCCs.
23372         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
23373         (ftoastr_snprintf, FTOASTR): Use it.
23375 2017-02-21  Bruno Haible  <bruno@clisp.org>
23377         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
23378         Reported by Rene Saavedra <rennes@openmailbox.org> in
23379         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
23380         * lib/glthread/lock.h: On glibc systems without
23381         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
23382         implementation of rwlocks.
23383         * lib/glthread/lock.c: Likewise.
23385 2017-02-20  Bruno Haible  <bruno@clisp.org>
23387         lock tests: Fix build failure on z/OS.
23388         Reported by Daniel Richard G. <skunk@iskunk.org>.
23389         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
23390         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
23391         exist.
23393 2017-02-19  Bruno Haible  <bruno@clisp.org>
23395         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
23396         This helps when CC=clang.
23397         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
23398         of /usr/bin/gcc.
23400         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
23401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
23403 2017-02-19  Bruno Haible  <bruno@clisp.org>
23405         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
23406         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
23407         --with-tests --single-configure is specified.
23409 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23411         users.txt: Update links, use HTTPS where possible
23412         * users.txt: Updated to HTTPS where possible,
23413         fixed some links to new locations.
23415 2017-02-16  Bruno Haible  <bruno@clisp.org>
23417         xbinary-io: Fix inlining.
23418         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
23420 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23422         xbinary-io: rename from xsetmode
23423         This patch is taken from suggestions by Bruno Haible in:
23424         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
23425         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
23426         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
23427         not ENOTTY, when it is an inappropriate device.
23428         * lib/binary-io.h (SET_BINARY): Resurrect.
23429         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
23430         (xset_binary_mode_error): Rename from xsetmode_error.
23431         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
23432         (xset_binary_mode): Rename from xsetmode.
23433         All uses changed.
23434         * modules/xbinary-io: Rename from modules/xsetmode.
23435         Update file names.
23436         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
23437         * NEWS: Update to match revised behavior.
23439 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23441         tests: Adjust to recent SET_BINARY change
23442         * tests/test-binary-io.c (main):
23443         * tests/test-binary-io.sh: Remove test for SET_BINARY.
23444         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
23445         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
23446         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
23448         xsetmode: new module
23449         This is to fix a problem noted by Eric Blake.
23450         Code was using xfreopen to change files to binary mode, but this
23451         fails for stdout when in append mode.  Such code should use
23452         xsetmode instead.
23453         * NEWS: Document incompatible changes to binary-io module.
23454         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
23455         New function.
23456         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
23457         (set_binary_mode): New function, which also checks for tty.
23458         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
23460 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23462         headers: fix begin-end typos
23463         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
23464         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
23466         selinux-h: port to PGI 16.10
23467         * lib/se-selinux.in.h: Don't assume that include_next skips over
23468         duplicate -I DIR options.
23470         argp: port to PGI 16.10
23471         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
23473 2017-02-13  Darshit Shah  <darnir@gnu.org>
23475         unicase: Update function protoype to match definition.
23476         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
23477         uses 'size_t' as the datatype for the 'len' parameter in the functions
23478         it generates. Update the prototype specified here to match the newly
23479         generated function.
23481 2017-02-12  Bruno Haible  <bruno@clisp.org>
23483         times test: Avoid gcc warnings on Linux/x32.
23484         * tests/test-times.c (main): Really cast printf arguments from clock_t
23485         to 'long int'.
23487 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23489         glob: port better to emscripten
23490         Problem reported by Bruno Haible in:
23491         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
23492         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
23494 2017-02-11  Bruno Haible  <bruno@clisp.org>
23496         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
23497         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
23498         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
23499         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
23500         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
23501         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
23502         Distinguish hppa64 from hppa.
23504 2017-02-10  Bruno Haible  <bruno@clisp.org>
23506         search: Don't assume that tsearch() exists if 'VISIT' is defined.
23507         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
23508         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
23509         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
23511 2017-02-09  Bruno Haible  <bruno@clisp.org>
23513         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
23514         * doc/gnulib.texi (Libtool and Windows): Recommend
23515         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
23516         Reported by Reuben Thomas <rrt@sc3d.org>.
23518 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23520         stddef-tests: port to SIZE_MAX <= INT_MAX
23521         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
23522         Do not assume that INT_MAX < SIZE_MAX.
23524 2017-02-01  Bruno Haible  <bruno@clisp.org>
23526         lock tests: Fix link error.
23527         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
23528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23530 2017-01-31  Bruno Haible  <bruno@clisp.org>
23532         lock: Fix link error (regression from 2017-01-05).
23533         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
23534         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
23535         pthread_rwlockattr_destroy weak.
23536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23538 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23540         Port to PGI 16.10 x86-64
23541         This patch fixes one real bug in gl_anylinked_list2.h, along with
23542         some minor glitches that are not bugs.  It does not silence PGI’s
23543         thousands of bogus warnings when compiling test-intprops.c.
23544         Fortunately, the warnings do not cause a failure.
23545         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
23546         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
23547         My goodness, PGI goes back a long ways - this predates C89!
23548         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
23549         For example, ASYNCSAFE (const void *) should expand to
23550         ‘const void *volatile’, not to ‘volatile const void *’.
23551         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
23552         * lib/verify.h (verify) [!__GNUC__]:
23553         Use shorter albeit meaningless string to bypass silly compiler limits.
23554         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
23555         * tests/nan.h (NaNf, NaNd, NaNl):
23556         Use static functions to avoid misguided compiler diagnostics.
23557         Is there some reason we don’t use static functions on all platforms?
23559 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23561         parse-datetime: handle timezones reentrantly
23562         This API change was prompted by a report by Pádraig Brady in:
23563         https://bug.debian.org/851934#10
23564         To help fix the bug, make parse_datetime2 more reentrant.
23565         * NEWS: Document this incompatible change.
23566         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
23567         Add two arguments, the timezone and the timezone name.
23568         All callers changed.  If TZ="..." is specified, use it for
23569         calculating defaults.
23570         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
23571         this code should be usable in a library.
23572         (mktime_ok, get_effective_timezone):
23573         Accept timezone arg too.  All callers changed.
23574         (get_tz): Remove.
23575         (get_effective_timezone): Check for failures.
23577 2017-01-20  Eric Blake  <eblake@redhat.com>
23579         localename: port to cygwin 2.6
23580         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
23581         Cygwin.
23582         * modules/localename (Depends-on): Add extensions, since
23583         NL_LOCALE_NAME() is not visible without it.
23585 2017-01-17  Pádraig Brady  <P@draigBrady.com>
23587         parse-datetime: fix dependence on AC_PROG_SED
23588         * modules/parse-datetime: Use `sed` directly like all other modules.
23589         Reported by J William Piggott
23591 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23593         intprops: update doc URLs
23594         * doc/intprops.texi (Integer Range Overflow): Update URLs.
23596 2017-01-16  Bruno Haible  <bruno@clisp.org>
23598         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
23599         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
23600         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
23601         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
23602         distinguish s390 and s390x.
23603         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
23604         * NEWS: Mention the change regarding 'armel'.
23606 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23608         localeinfo: case_folded_counterparts and WEOF
23609         * NEWS: Document this.
23610         * lib/localeinfo.c (case_folded_counterparts):
23611         First arg is now wint_t, not wchar_t.  This generalizes the
23612         function to also work on WEOF, where it returns 0.
23614         dfa: port to gcc -fsanitize=undefined
23615         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
23616         as this runs afoul of gcc -fsanitize=undefined.
23618 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
23620         strftime: %z is -00 if unknown
23621         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
23622         the caller's responsibility to set 'negative_number'.  All uses changed.
23623         (__strftime_internal): Put '-' before a zero UTC offset if the time
23624         zone abbreviation starts with "-", which is the recently-introduced
23625         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
23626         * tests/test-strftime.c: Test for this.
23628 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23630         dfa: port to older GCC
23631         Problem reported by Assaf Gordon in:
23632         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
23633         * modules/c99: New module.  This merely attempts to use the latest
23634         C version, which should be enough to solve this particular problem.
23635         The idea is to document which Gnulib modules assume C99 or later.
23636         * modules/dfa (Depends-on): Add it.
23638 2017-01-10  Bruno Haible  <bruno@clisp.org>
23640         Update DEPENDENCIES.
23641         * DEPENDENCIES: List only https URLs. Update recommended version for
23642         autoconf, automake, gperf.
23644 2017-01-10  Jim Meyering  <meyering@fb.com>
23646         maint.mk: enforce spelling of "timestamp" (i.e., no space)
23647         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23648         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
23650 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23652         dfa: minor simplification with emptyset
23653         * lib/dfa.c (build_state): Simplify by using emptyset.
23655 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23657         dfa: shrink constraints from 4 bits to 3
23658         * lib/dfa.c (newline_constraint, letter_constraint)
23659         (other_constraint, prev_newline_dependent)
23660         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
23661         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
23662         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
23663         Constraints need only 3 bits, not 4.  Using smaller integers
23664         shrinks the code a bit and makes grep a tad faster on x86-64.
23666         dfa: omit unnecessary ptrdiff_t check
23667         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
23668         overflow, since xnmalloc does that now.
23670         dfa: omit unnecessary allocation
23671         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
23672         an all-zero follow set works just fine.
23674         dfa: omit unused local
23675         * lib/dfa.c (build_state): Fix up recent change.
23677         maint: remove stray .texi files
23678         Although these were superseded by other files like
23679         doc/posix-functions/ctime.texi, the old files were not removed.
23680         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
23682 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
23684         getprogname: fix port to IRIX
23685         * lib/getprogname.c (getprogname) [__sgi]:
23686         Don't dump core if malloc returns NULL.
23688         dfa: fix reallocation bug when matching newlines
23689         Problem reported for sed by S. Gilles (Bug#25390).
23690         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
23691         (dfastate): Reallocate before moving any newline transition ...
23692         (build_state): ... instead of reallocating here, where it is too late.
23694 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
23696         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
23697         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
23699 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
23701         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
23702         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
23704 2017-01-07  Bruno Haible  <bruno@clisp.org>
23706         stdioext: Port to Minix 3.2 and newer.
23707         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
23708         * lib/fseeko.c (fseeko): Likewise.
23709         Reported by Nelson Beebe via Paul Eggert.
23711 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
23713         getprogname: port to IRIX
23714         * lib/getprogname.c (getprogname): Port to IRIX.
23715         Based on an idea by Bastien Roucariès at:
23716         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
23717         via code from Bruno Haible at:
23718         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23720         localename-tests: port to NetBSD 7
23721         Problem reported by Nelson H. F. Beebe.
23722         * tests/test-localename.c:
23723         Test newlocale and uselocale only if both exist.
23725         glob, intprops, xalloc: work around Clang bug
23726         Work around LLVM bug 16404, which is still not fixed.
23727         https://llvm.org/bugs/show_bug.cgi?id=16404
23728         Problem reported by Nelson H. F. Beebe.
23729         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
23730         Remove.
23731         * lib/glob.c (size_add_wrapv):
23732         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
23733         * lib/xalloc-oversized.h (xalloc_oversized):
23734         Do not use overflow builtins if Clang.
23736         dfa: fix 'return' typo
23737         Problem reported by Nelson H. F. Beebe.
23738         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
23740 2017-01-05  Pádraig Brady  <P@draigBrady.com>
23742         parse-datetime: fix generated paths for coverage files
23743         * modules/parse-datetime: Adjust the paths for parse-datetime.y
23744         within parse-datetime.c, so that gcc generates appropriate .gcno
23745         files, allowing lcov to proceed without error.  Previously it
23746         would error trying to find "lib/lib/parse-datetime.y".
23748 2017-01-05  Pádraig Brady  <P@draigBrady.com>
23750         maint.mk: support parallel execution of coverage
23751         * top/maint.mk (coverage): Run dependencies serially,
23752         thus supporting parallel processing of each one,
23753         particularly build-coverage, which builds and runs tests.
23755 2017-01-05  Bruno Haible  <bruno@clisp.org>
23757         lock tests: Prefer semaphore over mutex.
23758         * tests/test-lock.c (USE_SEMAPHORE): New constant.
23759         (struct atomic_int, init_atomic_int, get_atomic_int_value,
23760         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
23761         Suggested by Torvald Riegel <triegel@redhat.com>.
23763 2017-01-05  Bruno Haible  <bruno@clisp.org>
23765         lock: Provide guarantee to avoid writer starvation for rwlocks.
23766         The rationale is: 1) Read-preferring read-write locks are prone to
23767         writer starvation if the number of reader threads multiplied by the
23768         percentage of time they have the lock held is too high. 2) Write-
23769         preferring read-write locks are the only reliable way to avoid this.
23770         3) There have been reports of 'test-lock' hanging on glibc systems
23771         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
23772         and glibc indeed implements read-preferring rwlocks by default, see
23773         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
23774         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
23775         * m4/pthread_rwlock_rdlock.m4: New file.
23776         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
23777         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
23778         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
23779         of rwlock initialization on glibc systems without
23780         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
23781         of rwlocks altogether on non-glibc systems without
23782         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
23783         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
23784         * lib/glthread/lock.c [USE_POSIX_THREADS]
23785         (glthread_rwlock_init_for_glibc): New function.
23786         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
23787         comment.
23788         [USE_PTH_THREADS]: New implementation of rwlocks.
23789         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
23790         readers.
23791         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
23792         (Depends-on): Add 'extensions'.
23793         * tests/test-rwlock1.c: New file.
23794         * lock-tests (Files): Add it.
23795         (Depends-on): Add usleep.
23796         (Makefile.am): Add test-rwlock1 to the tests.
23798 2017-01-05  Bruno Haible  <bruno@clisp.org>
23800         thread: Fix pth port.
23801         * lib/glthread/thread.h (pth_init): Declare weak.
23802         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
23803         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
23804         function.
23806 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
23808         parse-datetime: fix debug message on lone year number
23809         Input dates such as
23810           date -d "Apr 11 22:59:00 2011"
23811         are parsed as date (Apr 11, with default year 2016), then time, then a
23812         number (2011). Based on the combination of previously seen tokens,
23813         'digits_to_date_time' determines 2011 to be a year value.
23814         This fixes the debug messages to correctly show the updated year.
23815         Before:
23816             $ date --debug -d 'Apr 11 22:59:00 2011'
23817             date: parsed date part: (Y-M-D) 2016-04-11
23818             date: parsed time part: 22:59:00
23819             date: parsed number part: today/this/now
23820         After:
23821             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
23822             date: parsed date part: (Y-M-D) 2016-04-11
23823             date: parsed time part: 22:59:00
23824             date: parsed number part: year: 2011
23825         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
23826         'debug_year_seen' member fields.
23827         (digits_to_date_time): Update 'year_seen' as needed.
23828         (debug_print_current_time): Inform about year updates.
23829         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
23831         parse-datetime: fix local timezone debug messages
23832         "Local timezones" are strings that affect only DST relative to the
23833         default timezone. The debug messages in parse-datetime.y printed
23834         wrong information when encountering local timezones.
23835         Examples:
23836         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
23837              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
23838              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
23839         When the default timezone relates to the zone strings, EET/EEST are
23840         parsed as local timezones (tLOCAL_ZONE), and only change the DST
23841         value (0/1, respectively):
23842              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
23843              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
23844         * lib/parse-datetime.y (debug_print_current_time): If local timezone
23845         was seen, inform about DST change, don't print actual timezone.
23846         (debug_strfdatetime): If local timezone was seen, use default timezone
23847         (and adjust as needed) instead of using incorrect timezone.
23848         (parse_datetime2): Use correct time-zone source string, and adjust
23849         default timezone as needed.
23851         parse-datetime: add debug warning about DST changes
23852         Incorrect date arithmetic due to daylight saving time (DST) are a
23853         common (false) bug report in coreutils.
23854         Detect two such cases and print a warning:
23855         1. year/month/day adjustments (performed on 'struct tm'),
23856            where 'mktime' returns a different isdst value.
23857         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
23858            where the result of 'localtime(3)' on the value will return a
23859            different isdst value.
23860         Note: DST changes could be harmless or unnoticeable.
23861         Examples (with 'TZ=America/New_York'):
23862         Unnoticeable: result is 2016-Dec-14
23863            $ date -d '2016-06-15 EDT + 6 months' +%b
23864            Dec
23865         Unnoticeable: result is 2016-Dec-15 11:00:00
23866            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
23867            2016-12-15
23868         This is unexpected:
23869            $ date -d '2016-06-01 EDT + 6 months' +%F
23870            2016-11-30
23871         The new debug warnings will show:
23872            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
23873            ...
23874            date: warning: daylight saving time changed after date adjustment
23875            ...
23876         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
23877         print an appropriate warning message.
23879         parse-datetime: add debug warning about date arithmetic
23880         Date arithmetic are done directly on the fields of 'struct tm',
23881         which can result in invalid dates. Normalization with 'mktime(3)'
23882         will then produce a different date - which might cause unexpected
23883         results.
23884         Examples:
23885           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
23886           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
23887         Note that date normalization is not inherently wrong and not rejected,
23888         as it has legitimate uses:
23889           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
23890         If the user asked to adjust months but 'mday' changed,
23891         or user asked to adjust years but 'month' changed - warn about it.
23892             $ ./src/date --debug -d '2016-10-31 - 1 month'
23893             ...
23894             date: warning: when adding relative months/years, \
23895                            it is recommended to specify the 15th of the month
23896             ...
23897             date: warning: month/year adjustment resulted in shifted dates:
23898             date:      adjusted Y M D: 2016 09 31
23899             date:    normalized Y M D: 2010 10 01
23900             ...
23901         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
23902         a warning message. Improve recommendation of when to use 15 of the
23903         month or noon for date arithmetic.
23905         parse-datetime: fix debug message of relative part after timezone
23906         Relative part (e.g '+8 days') after a timezone string was not
23907         reported (was only reported after a timezone number). Due to the
23908         parser's structure, timezone strings with numbers were handled
23909         separately.
23910         before:
23911              # Timezone number + relative part: OK
23912              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
23913              ...
23914              date: parsed relative part: -8 day(s)
23915              # Timezone string + relative part: missing
23916              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
23917              [ missing message ]
23918         After: messages are printed in both cases.
23919         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
23921         parse-datetime: fix incorrect debug message on lone number
23922         A lone number is an absolute value, not a relative time part.
23923         before:
23924            $ date --debug -d '20130101'
23925            date: parsed number part: today/this/now
23926         After:
23927            $ ./src/date --debug -d '20130101'
23928            date: parsed number part: (Y-M-D) 2013-01-01
23929         * lib/parse-datetime.y ('item'/'number' tokens): Call
23930         'debug_print_current_time' instead of 'debug_print_relative_time'.
23932 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
23934         doc: modernize for C11 etc.
23935         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
23936         for C11, MinGW, etc.  This responds to Paul Smith's question in:
23937         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
23939         dfa: prefer functions to FETCH_WC macro
23940         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
23941         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
23942         wint_t result into DFA->lex.wctok instead of to a separate arg.
23943         All callers changed.  Move more local decls closer to where
23944         they're used.
23946         dfa: narrow more local var scopes
23947         * lib/dfa.c: Move more local decls to be more local.
23949         dfa: remove duplicate assignment
23950         Problem reported by Bruno Haible in:
23951         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
23952         * lib/dfa.c (parse_bracket_exp): Simplify.
23954 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23956         dfa: simplify constraint-dependency checking
23957         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
23958         (prev_other_constraint): Remove.
23959         (prev_newline_dependent, prev_letter_dependent):
23960         Simplify, to avoid an unnecessary bitwise AND operation.
23962         dfa: prefer functions and constants to macros
23963         * lib/dfa.c: Prefer constants to macros where either will do.
23964         (streq, isasciidigit, newline_constraint)
23965         (letter_constraint, other_constraint, succeeds_in_context)
23966         (prev_newline_constraint, prev_letter_constraint)
23967         (prev_other_constraint, prev_newline_dependent)
23968         (prev_letter_dependent, accepting, accepts_in_context):
23969         Now static functions instead of function-like macros.
23970         Use lower-case names accordingly.  All uses changed.
23972         dfa: narrow more local var scopes
23973         * lib/dfa.c: Move some more local decls down to nearer where
23974         they're needed.
23976 2016-12-31  Jim Meyering  <meyering@fb.com>
23978         dfa: narrow the scope of many local variables
23979         * lib/dfa.c: Now that we are no longer constrained to c89, move
23980         declarations of many variables (often indices) "down" into the
23981         scope(s) where used or to the point of definition.  This is a
23982         no-semantic-change diff.
23984 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23986         version-etc: new year
23987         * build-aux/gendocs.sh (version):
23988         * doc/gendocs_template:
23989         * doc/gendocs_template_min:
23990         * doc/gnulib.texi:
23991         * lib/version-etc.c (COPYRIGHT_YEAR):
23992         Update copyright dates by hand in templates and the like.
23993         * all files: Run 'make update-copyright'.
23995 2016-12-31  Eric Blake  <eblake@redhat.com>
23997         do-release-commit-and-tag: avoid shell syntax error
23998         * build-aux/do-release-commit-and-tag (curr_br): $branch can
23999         contain spaces when rebasing.
24001         maint.mk: hoist gnulib_dir definition earlier
24002         * top/maint.mk (gnulib_dir): Move near top of file.
24004 2016-12-31  Jim Meyering  <meyering@fb.com>
24006         maint.mk: do not always evaluate intprops-related shell
24007         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
24008         using gnulib_dir undefined (gnulib_dir is defined later in the
24009         file, which will be fixed separately), and besides, there is no
24010         need to incur the cost of this shell invocation for every single
24011         use of this .mk file.  Reported by Eric Blake in
24012         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
24014 2016-12-30  Jim Meyering  <meyering@fb.com>
24016         maint.mk: improve sc_prohibit_intprops_without_use
24017         * top/maint.mk (_intprops_names): Don't hard-code the list of
24018         symbol names.  Instead, derive it on the fly.
24020 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
24022         dfa: shorten sbit, success
24023         * lib/dfa.c (struct regex_syntax.sbit):
24024         (struct dfa.success): Use char, not int, for array elements, since
24025         they are all in the range 0..7.
24027         dfa: simplify multibyte_prop etc.
24028         This follows up on a change made when dfa.c was in grep, namely grep
24029         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
24030         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
24031         That earlier simplification allows for some more simplification
24032         and trimming down here.
24033         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
24034         (struct lexer_state): New mamber brack.
24035         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
24036         since they must be in the range 0..3 now.
24037         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
24038         the brack member now supersedes them.
24039         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
24040         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
24041         (dfaparse): Remove unnecessary initializations of already-0 storage.
24042         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
24043         (dfassbuild): No need to clear sup->mbcsets.
24045         dfa: minor performance tweak
24046         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
24048         dfa: wrap charclass inside a struct
24049         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
24050         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
24051         about 5% faster, where list.txt is generated by 'aspell dump
24052         master | head -n 100000 >list.txt'.  See Bug#22239.
24053         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
24054         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
24055         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
24056         Adjust to this, e.g., by using charclass * rather than charclass.
24057         All callers changed as needed.
24058         (copyset): Remove.  All uses changed to simple assignment.
24059         (parse_bracket_exp): Use zeroset instead of memset.
24061 2016-12-30  Jim Meyering  <meyering@fb.com>
24063         maint.mk: update list of intprops.h symbol names
24064         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
24065         This avoids a false failure of the sc_prohibit_intprops_without_use
24066         rule in grep.
24068 2016-12-29  Eric Blake  <eblake@redhat.com>
24070         getopt: fix parallel test failure
24071         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
24072         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
24073         * tests/test-getopt-main.h (main): Use different file names
24074         in case test-getopt-gnu and test-getopt-posix run in parallel.
24076 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24078         xalloc: x2nrealloc check for ptrdiff_t overflow
24079         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
24080         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
24082 2016-12-24  Bruno Haible  <bruno@clisp.org>
24084         lock test: Fix performance problem on multi-core machines.
24085         * tests/test-lock.c (USE_VOLATILE): New macro.
24086         (struct atomic_int): New type.
24087         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
24088         functions.
24089         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
24090         as 'struct atomic_int'.
24091         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
24092         reclock_checker_thread, test_recursive_lock): Use the new functions.
24093         Reported by Eric Blake in
24094         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
24095         and by Pádraig Brady in
24096         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
24098 2016-12-19  Bruno Haible  <bruno@clisp.org>
24100         vma-iter: Fix endless loop on 64-bit Windows.
24101         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
24102         'unsigned long'.
24104 2016-12-19  Bruno Haible  <bruno@clisp.org>
24106         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
24107         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
24108         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
24109         Invoke gt_TYPE_WINT_T instead.
24110         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
24111         * modules/stdint (Files): Add m4/wint_t.m4.
24112         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24113         * modules/wctype-h (Makefile.am): Likewise.
24114         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
24115         not only on MSVC.
24116         * lib/wctype.in.h (wint_t): Likewise.
24118 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24120         getopt-posix-tests: fix Makefile typo
24121         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
24122         Fix typo: the last ‘_’ was missing in the name.
24123         I suspect that the typo explains this build failure:
24124         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
24125         although I can’t reproduce the problem on Solaris 10 sparc.
24127 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24129         dfa: improve worst-case 'replace' performance
24130         See my note in Bug#22357#71.
24131         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
24132         (merge_constrained): New function, which is like
24133         the old 'merge' function, except with a new argument C2.
24134         Simplify the body by avoiding the need for different sections
24135         of code depending on whether one input is exhausted.
24136         (merge): Use the new function.
24137         (delete): Return the constraint of the deleted position,
24138         not the entire position.  Caller changed.
24139         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
24141 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24143         dfa: performance improvement for removal of epsilon closure
24144         See Bug#22357#32.
24145         * lib/dfa.c (delete): Use binary search to find deleted index.
24146         (replace): New function.  It replaces a position with the followed set.
24147         (epsclosure): Replace it with a new algorithm.  Update caller.
24149 2016-12-18  Bruno Haible  <bruno@clisp.org>
24151         Split tests for getopt-posix and getopt-gnu.
24152         * tests/test-getopt-posix.c: New file.
24153         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
24154         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
24155         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
24156         GNULIB_TEST_GETOPT_GNU.
24157         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
24158         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
24159         (Makefile.am): Test test-getopt-posix instead of test-getopt.
24160         * modules/getopt-gnu-tests: New file.
24161         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
24163 2016-12-18  Bruno Haible  <bruno@clisp.org>
24165         posix-modules: Add options for specific platforms.
24166         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
24167         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
24168         Invoke func_tmpdir. Filter out the excludes.
24170 2016-12-18  Bruno Haible  <bruno@clisp.org>
24172         getopt: Fix link error for users of getopt() in <unistd.h>.
24173         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
24174         __need_getopt is defined. Undefine all macros before defining them.
24175         * modules/getopt (Include): Clarify that including <unistd.h> is also
24176         OK.
24177         * tests/test-getopt.c: Add comment.
24179 2016-12-17  Bruno Haible  <bruno@clisp.org>
24181         getaddrinfo tests: Avoid compilation error on MSVC.
24182         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
24183         getaddrinfo on native Windows.
24185 2016-12-17  Bruno Haible  <bruno@clisp.org>
24187         getlogin, getlogin_r: Fix link errors on MSVC.
24188         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
24189         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
24190         (Link): New section.
24191         * modules/getlogin_r (Files): Add m4/getlogin.m4.
24192         (configure.ac): Require gl_LIB_GETLOGIN.
24193         (Link): New section.
24194         * NEWS: Mention the new link requirements.
24195         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
24196         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
24198 2016-12-17  Bruno Haible  <bruno@clisp.org>
24200         Un-deprecate the 'progname' module.
24201         * NEWS: Describe the appropriate use-cases of 'progname' versus
24202         'getprogname'. Based on discussion summary at
24203         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
24205 2016-12-17  Bruno Haible  <bruno@clisp.org>
24207         Reorganize NEWS a bit.
24208         * NEWS: Move some not so important changes away from section
24209         "Important Notes".
24211 2016-12-17  Bruno Haible  <bruno@clisp.org>
24213         tanhf: Avoid redefinition error on MSVC.
24214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
24215         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
24216         may be defined as an inline function.
24217         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
24218         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
24220 2016-12-17  Bruno Haible  <bruno@clisp.org>
24222         tanf: Avoid redefinition error on MSVC.
24223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
24224         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
24225         may be defined as an inline function.
24226         * modules/math (Makefile.am): Substitute REPLACE_TANF.
24227         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
24229 2016-12-17  Bruno Haible  <bruno@clisp.org>
24231         sqrtf: Avoid redefinition error on MSVC.
24232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
24233         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
24234         may be defined as an inline function.
24235         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
24236         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
24238 2016-12-17  Bruno Haible  <bruno@clisp.org>
24240         sinhf: Avoid redefinition error on MSVC.
24241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
24242         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
24243         may be defined as an inline function.
24244         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
24245         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
24247 2016-12-17  Bruno Haible  <bruno@clisp.org>
24249         sinf: Avoid redefinition error on MSVC.
24250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
24251         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
24252         may be defined as an inline function.
24253         * modules/math (Makefile.am): Substitute REPLACE_SINF.
24254         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
24256 2016-12-17  Bruno Haible  <bruno@clisp.org>
24258         logf: Avoid redefinition error on MSVC.
24259         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
24260         may be defined as an inline function.
24262 2016-12-17  Bruno Haible  <bruno@clisp.org>
24264         log10l: Avoid redefinition error on MSVC.
24265         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
24266         may be defined as an inline function.
24268 2016-12-17  Bruno Haible  <bruno@clisp.org>
24270         log10f: Avoid redefinition error on MSVC.
24271         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
24272         may be defined as an inline function.
24274 2016-12-17  Bruno Haible  <bruno@clisp.org>
24276         hypotl: Avoid redefinition error on MSVC.
24277         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
24278         may be defined as an inline function.
24280 2016-12-17  Bruno Haible  <bruno@clisp.org>
24282         hypotf: Avoid redefinition error on MSVC.
24283         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
24284         may be defined as an inline function.
24286 2016-12-17  Bruno Haible  <bruno@clisp.org>
24288         fmodl: Avoid redefinition error on MSVC.
24289         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
24290         may be defined as an inline function.
24292 2016-12-17  Bruno Haible  <bruno@clisp.org>
24294         fmodf: Avoid redefinition error on MSVC.
24295         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
24296         may be defined as an inline function.
24298 2016-12-17  Bruno Haible  <bruno@clisp.org>
24300         expf: Avoid redefinition error on MSVC.
24301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
24302         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
24303         may be defined as an inline function.
24304         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
24305         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
24307 2016-12-17  Bruno Haible  <bruno@clisp.org>
24309         coshf: Avoid redefinition error on MSVC.
24310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
24311         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
24312         may be defined as an inline function.
24313         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
24314         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
24316 2016-12-17  Bruno Haible  <bruno@clisp.org>
24318         cosf: Avoid redefinition error on MSVC.
24319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
24320         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
24321         may be defined as an inline function.
24322         * modules/math (Makefile.am): Substitute REPLACE_COSF.
24323         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
24325 2016-12-17  Bruno Haible  <bruno@clisp.org>
24327         atan2f: Avoid redefinition error on MSVC.
24328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
24329         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
24330         may be defined as an inline function.
24331         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
24332         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
24334 2016-12-17  Bruno Haible  <bruno@clisp.org>
24336         atanf: Avoid redefinition error on MSVC.
24337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
24338         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
24339         may be defined as an inline function.
24340         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
24341         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
24343 2016-12-17  Bruno Haible  <bruno@clisp.org>
24345         asinf: Avoid redefinition error on MSVC.
24346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
24347         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
24348         may be defined as an inline function.
24349         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
24350         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
24352 2016-12-17  Bruno Haible  <bruno@clisp.org>
24354         acosf: Avoid redefinition error on MSVC.
24355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
24356         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
24357         may be defined as an inline function.
24358         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
24359         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
24361 2016-12-17  Bruno Haible  <bruno@clisp.org>
24363         Avoid redefinition errors on MSVC.
24364         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
24365         the function may be defined as an inline function.
24366         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
24367         the function may be defined as an inline function.
24369 2016-12-17  Bruno Haible  <bruno@clisp.org>
24371         Avoid redefinition errors on MSVC.
24372         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
24373         * lib/unistd.in.h: Include <stdio.h> when necessary.
24375 2016-12-17  Bruno Haible  <bruno@clisp.org>
24377         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
24378         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
24379         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24380         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
24381         WINT_MAX.
24383 2016-12-17  Bruno Haible  <bruno@clisp.org>
24385         Avoid autoconf warning.
24386         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
24387         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
24389 2016-12-17  Bruno Haible  <bruno@clisp.org>
24391         fpending: Revert workaround against Emacs bug.
24392         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
24393         The Emacs bug is fixed by Eli Zaretskii in
24394         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
24396 2016-12-17  Bruno Haible  <bruno@clisp.org>
24398         getlogin_r tests: Port to mingw.
24399         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
24400         regression introduced on 2014-05-19.
24402 2016-12-17  Bruno Haible  <bruno@clisp.org>
24404         getlogin: Port to newer mingw.
24405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
24406         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
24407         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
24408         HAVE_GETLOGIN.
24409         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
24410         HAVE_GETLOGIN.
24411         * doc/posix-functions/getlogin.texi: Mention the issue.
24412         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
24413         regression introduced on 2014-05-14.
24415 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
24417         builtin-expect: improve port to IBM XL C
24418         Problem reported for z/OS by Daniel Richard G. in:
24419         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
24420         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
24421         Test for <builtins.h> directly.
24423         builtin-expect: port to IBM XL C
24424         Problem reported for z/OS by Daniel Richard G. in:
24425         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
24426         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
24427         Also allow __builtin_expect defined via a standard include file.
24429         regex: fix dependency
24430         Problem reported by Bruno Haible in:
24431         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
24432         * modules/regex: Depend on builtin-expect.
24434         builtin-expect: new module
24435         Fix fnmatch to use it.
24436         Problem reported for z/OS by Daniel Richard G.
24437         * lib/fnmatch.c (__builtin_expect):
24438         * lib/glob.c (__builtin_expect):
24439         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
24440         * lib/memmem.c (__builtin_expect) [!_LIBC]:
24441         * lib/scandir.c (__builtin_expect):
24442         * lib/strstr.c (__builtin_expect) [!_LIBC]:
24443         Remove macro; config.h now does this.
24444         * lib/gl_anytreehash_list1.h (add_to_bucket):
24445         * lib/regex_internal.h (BE):
24446         Assume __builtin_expect.
24447         * m4/builtin-expect.m4, modules/builtin-expect: New files.
24448         * modules/avltreehash-list, modules/fnmatch, modules/glob:
24449         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
24450         * modules/scandir, modules/strstr-simple:
24451         Depend on builtin-expect.
24453 2016-12-15  Bruno Haible  <bruno@clisp.org>
24455         init.sh: Add possibility to not delete temporary files.
24456         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
24457         to yes, don't erase the temporary directory.
24459 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
24461         regex: fix integer-overflow bug in never-used code
24462         Problem reported by Clément Pit–Claudel in:
24463         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
24464         * lib/regex_internal.h: Include intprops.h.
24465         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
24466         behavior on integer overflow.
24467         * modules/regex (Depends-on): Add intprops.
24469         fpending: fix port to MinGW on Emacs
24470         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
24471         Problem reported by Eli Zaretskii in:
24472         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
24473         Is Plan 9 still a valid porting target, anyway?
24475 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24477         safe-alloc: use xalloc-oversized
24478         * lib/safe-alloc.c: Include xalloc-oversized.h.
24479         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
24480         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
24482         xalloc: do not exceed PTRDIFF_MAX
24483         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
24484         xalloc_oversized check, since objects larger than PTRDIFF_MAX
24485         bytes have pointer-subtraction problems.
24487         malloca: do not exceed PTRDIFF_MAX
24488         * lib/malloca.h: Include xalloc-oversized.
24489         (nmalloca): Use xalloc_oversized instead of rolling our own.
24490         * modules/malloca (Depends-on):
24491         * modules/relocatable-prog-wrapper (Depends-on):
24492         Add xalloc-oversized.
24494         quotearg: pacify GCC better
24495         * modules/quotearg (Depends-on): Add minmax, stdint.
24496         * lib/quotearg.c: Include minmax.h, stdint.h.
24497         (nslots): Now int, as there seems little point to going to extra
24498         work merely to support the INT_MAX slot, which nobody ever uses.
24499         (quotearg_n_options): Redo size-overflow checks to pacify GCC
24500         and to catch (mostly-theoretical) ptrdiff_t problems too.
24501         This can be done via one comparison.
24503 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
24505         xalloc-oversized: check for PTRDIFF_MAX too
24506         This avoids undefined behavior when subtracting pointers to
24507         objects containing more than PTRDIFF_MAX bytes.
24508         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
24509         Also return 1 if the result would exceed PTRDIFF_MAX>
24510         * modules/xalloc-oversized (Depends-on):
24511         Add stdint.
24513         dfa: fix glitches in previous commit
24514         Sorry, I don't know how I managed to commit the wrong version.
24515         * lib/dfa.c (MIN): Move up.
24516         (xpalloc): Now static.
24518         dfa: fix some unlikely integer overflows
24519         I found these while reviewing the recent Coverity-related fix.
24520         This patch changes part of dfa.c to prefer ptrdiff_t instead of
24521         size_t for object counts.  Using ptrdiff_t is the style typically
24522         used in Emacs; although it wastes a sign bit as sizes can never be
24523         negative, it makes -fsanitize=undefined more likely to catch
24524         integer overflows in index calculation, and nowadays the upside is
24525         typically more important than the downside.  Although perhaps the
24526         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
24527         of dfa.c already does, since it uses state_num which is signed),
24528         that is a bigger change and is not needed to fix the bugs I found.
24529         * lib/dfa.c: Include stdint.h and intprops.h.
24530         (TOKEN_MAX): New macro.
24531         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
24532         (charclass_index, parse_bracket_exp, addtok, insert, merge)
24533         (realloc_trans_if_necessary, free_mbdata):
24534         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
24535         This is safe because xpalloc checks that the sizes do not exceed
24536         either SIZE_MAX or PTRDIFF_MAX.
24537         (xpalloc): New function, mostly taken from Emacs.
24538         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
24539         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
24540         (charclass_index): Check for integer overflow in computing
24541         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
24542         added to it later.
24543         (alloc_position_set): Check for integer overflow.  On typical
24544         platforms this check has zero overhead, since the constant
24545         expression is false.
24546         (realloc_trans_if_necessary):
24547         Remove assertion, which I hope Coverity no longer needs.
24549         * modules/dfa (Depends-on): Add intprops, stdint.
24551 2016-12-12  Jim Meyering  <meyering@fb.com>
24553         dfa: add an assertion to avoid coverity false positive
24554         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
24555         warned that "newalloc1 - 2" could overflow.
24557 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
24559         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
24560         * dfa.h (DFA_CASE_FOLD): Remove.
24561         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
24563 2016-12-13  John W. Eaton  <gnu@jweaton.org>
24565         link: fix test to declare use of rename()
24566         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
24567         -Werror=implicit-function-declaration
24569 2016-12-12  Bruno Haible  <bruno@clisp.org>
24571         fpending: Port to native Windows with MSVC.
24572         * lib/fpending.c: Include stdio-impl.h.
24573         (__fpending): Include all known implementations. Err out if it's not
24574         ported.
24575         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
24576         * modules/fpending (Files): Add lib/stdio-impl.h.
24577         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
24579 2016-12-12  Bruno Haible  <bruno@clisp.org>
24581         stdioext: Port to native Windows with MSVC.
24582         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
24583         (struct _gl_real_FILE): New type.
24584         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
24585         Windows.
24586         * lib/fbufmode.c (fbufmode): Add code for native Windows.
24587         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
24588         other SystemV derived implementations.
24589         * lib/fpurge.c (fpurge): Likewise.
24590         * lib/freadable.c (freadable): Likewise.
24591         * lib/freadahead.c (freadahead): Likewise.
24592         * lib/freading.c (freading): Likewise.
24593         * lib/freadptr.c (freadptr): Likewise.
24594         * lib/freadseek.c (freadptrinc): Likewise.
24595         * lib/fseeko.c (fseeko): Likewise.
24596         * lib/fseterr.c (fseterr): Likewise.
24597         * lib/fwritable.c (fwritable): Likewise.
24598         * lib/fwriting.c (fwriting): Likewise.
24599         Reported by Gisle Vanem <gvanem@yahoo.no>.
24601 2016-12-11  Jim Meyering  <meyering@fb.com>
24603         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
24604         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
24605         to work with most shells, but not with the one provided by many
24606         Solaris 10 systems, so running configure with such a /bin/sh evokes
24607         e.g., "./configure: syntax error at line 33602: `(' unexpected".
24608         Reported by Assaf Gordon in
24609         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
24611 2016-12-10  Bruno Haible  <bruno@clisp.org>
24613         threadlib: Optimize out runtime test on Solaris >= 10.
24614         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
24615         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
24616         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
24618 2016-12-10  Bruno Haible  <bruno@clisp.org>
24620         stdint: Update doc about Solaris 9.
24621         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
24623 2016-12-09  Bruno Haible  <bruno@clisp.org>
24625         c-ctype tests: Fix link error on Solaris 9.
24626         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
24627         Reported at <https://savannah.gnu.org/bugs/?46827>.
24629 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
24631         dfa: fix performance bug that recomputes trans
24632         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
24633         25 on-demand changes.  The bug caused build_state to reset all
24634         d->trans elements to -2 even when d->trans was already non-null.
24635         Use C99 style decls after statements in this function.
24637         same-inode: port to MinGW
24638         Here st_ino is always 0, so change the definition of SAME_INODE so
24639         that 1 means the two files are the same, 0 with st_ino != 0 means
24640         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
24641         reported by Bruno Haible (Bug#25146).
24642         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
24643         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
24645 2016-12-04  Bruno Haible  <bruno@clisp.org>
24647         javacomp-script: Support Java 7 and 8.
24648         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
24649         target-version 1.7, 1.8.
24651 2016-12-02  Daiki Ueno  <ueno@gnu.org>
24653         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
24654         GPLv2" rewriting.
24656 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
24658         * gnulib-tool (func_import): Adhere to the license guideline when
24659         rewriting the license text to "LGPLv3+ or GPLv2":
24660         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
24662 2016-12-02  Bruno Haible  <bruno@clisp.org>
24664         localcharset: Avoid theoretical buffer overrun.
24665         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
24666         return value from setlocale if it would lead to a buffer overrun.
24668 2016-12-01  Bruno Haible  <bruno@clisp.org>
24670         Relicense some modules under LGPLv2+.
24671         Kevin Cernekee's approval is in
24672         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
24673         * modules/fseterr (License): Change to LGPLv2+.
24674         * modules/mbchar (License): Likewise.
24675         * modules/mbiter (License): Likewise.
24676         * modules/mbsnlen (License): Likewise.
24677         * modules/wcwidth (License): Likewise.
24679 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
24681         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
24682         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
24683         OS/2 kLIBC.
24685 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
24687         alphasort, scandir: Port to OS/2 kLIBC
24688         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
24689         declaration.
24690         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
24692 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
24694         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
24695         * lib/relocatable.c (relocate): Do not touch pathname if it is started
24696         with '/@unixroot'.
24698 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
24700         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
24701         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
24702         OS/2 kLIBC unless TCPV40HDRS is defined.
24704 2016-11-29  Jim Meyering  <meyering@fb.com>
24706         dfa: avoid new infinite loop
24707         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
24708         * lib/dfa.c (dfastate): When constructing a new state table, we could
24709         initially declare that we had found a match, and later find that
24710         constraints eliminate that possibility, yet continue to use the
24711         now stale "matched" indicator.  That would lead to an infinite loop.
24712         The solution is to update "matched" when necessary.
24713         Introduced by commit v0.1-983-g403adf1.
24715 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24717         dfa: avoid match middle in multibyte character
24718         * lib/dfa.c (transit_state): If fails in matching single byte characters
24719         on a state including period expression in non-UTF8 multibyte locales,
24720         skip trailing bytes.
24721         (dfa_supported): Revert previous change.
24723 2016-11-27  Jim Meyering  <meyering@fb.com>
24725         dfa: avoid false match in non-UTF8 multibyte locales
24726         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
24727         as "not supported" so that callers will resort to using regex-based
24728         matcher.  This will surely hurt performance, but correctness trumps
24729         performance here, and the affected locales are less and less relevant,
24730         these days.  See grep's bug report https://bugs.gnu.org/24975.
24732 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
24734         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
24735         * lib/ptsname_r.c: Include the appropriate headers.
24736         [__sun]: Delete sys/sysmacros.h include.
24737         [_AIX || __osf__]: Likewise.
24738         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
24740 2016-11-27  Pádraig Brady  <P@draigBrady.com>
24742         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
24743         * lib/md4.c (md4_process_bytes): The existing define is made internal
24744         in recent versions of glibc, so also use this new public define.
24745         * lib/md5.c (md5_process_bytes): Likewise.
24746         * lib/sha1.c (sha1_process_bytes): Likewise.
24747         * lib/sha256.c (sha256_process_bytes): Likewise.
24748         * lib/sha512.c (sha512_process_bytes): Likewise.
24750 2016-11-27  Pádraig Brady  <P@draigBrady.com>
24752         maint: use a more standard return from mbrtowc test
24753         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
24754         from the test program as this often indicates an
24755         unhandled case in the test program.
24756         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
24757         (gl_MBRTOWC_SANITYCHECK): Likewise.
24758         (gl_MBRTOWC_NULL_ARG2): Likewise.
24759         (gl_MBRTOWC_NUL_RETVAL): Likewise.
24761 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
24763         freopen: work around glibc bug with closed fd
24764         Work around glibc bug#15589, where freopen mishandles the case
24765         where stdin etc. are already closed.
24766         * doc/posix-functions/freopen.texi (freopen): Document the bug.
24767         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
24768         instead of __need_FILE, as the latter does not work with glibc.
24769         Include <fcntl.h>, for open flags.
24770         (rpl_freopen): Work around glibc bug.
24771         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
24772         * modules/freopen (Depends-on): Add fcntl-h.
24773         * tests/test-freopen.c (main): Test for bug.
24775 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24777         fnmatch: fix typo introduced on 2016-08-17
24778         This fixes the port to non-GCC compilers that lack __builtin_expect.
24779         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
24781         dfa: simplify with new function fillset
24782         * lib/dfa.c (fillset): New function.
24783         Use it for clarity when applicable.
24785         dfa: fix glitches with on-demand states
24786         Also, adjust commentary to better match new code.
24787         Some of these glitches predate the recent change.
24788         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
24789         only non-initial states.
24790         (dfastate): Rename locals to better match new roles.
24791         Move them into nested scopes if this is easy.
24792         Omit unnecessary calls to zeroset.
24793         Simplify test for whether to throw in the positions of state 0.
24794         Omit C99-ism (decl after statement) since Gawk still wants C89.
24795         (build_state): Omit unnecessary test and assignment.
24796         Fix some confusion that counted transition tables inaccurately
24797         and could cause a memory leak.
24798         (dfaexec_main): Redo to make it clearer to the compiler that
24799         -1 and -2 are the only negative state numbers here.
24801 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24803         dfa: addition of new state on demand
24804         * src/dfa.c (dfastate): Add argument UC, the current input character.
24805         Fill only a group including the character in transition table.
24806         (realloc_trans_if_necessary): Add the dummy state which means that a
24807         transition table is assigned but the next state is not assigned.
24808         (build_state): Return the next state.  All callers updated.
24809         (transit_state_singlebyte): If we get the dummy state,
24810         fill the transition table.
24811         (dfaexec_main): Handle the dummy state.
24812         (free_mbdata, dfafree): Consider the dummy state.
24814 2016-11-24  Daiki Ueno  <ueno@gnu.org>
24816         srclist: sync with released gettext
24817         * config/srclist.txt: Set "release" option to the files under
24818         $GETTEXT.
24820 2016-11-24  Daiki Ueno  <ueno@gnu.org>
24822         srclist: add "release" option
24823         * config/srclist.txt: Change the format so that the first column
24824         of each line points to the top-level directory of the source
24825         archive.
24826         * config/srclist-update: Accept "release" option that checks files
24827         from the most recently tagged revision in the source archive.
24829 2016-11-21  Bruno Haible  <bruno@clisp.org>
24831         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
24832         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
24833         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
24834         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
24835         Inline and remove member function 'rpl ()' of the wrapper struct.
24837 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24839         dfa: fix logic typo
24840         Problem reported by Stephane Chazelas (Bug#24973).
24841         * lib/dfa.c (using_simple_locale): Fix typo that caused some
24842         non-simple locales like fr_FR to be treated as simple.
24844 2016-11-20  Jim Meyering  <meyering@fb.com>
24846         fix test driver leaks: exclude, malloc, realloc
24847         * tests/test-exclude.c (main): Fix trivial leak.
24848         * tests/test-malloc-gnu.c (main): Likewise.
24849         * tests/test-realloc-gnu.c (main): Likewise.
24850         With these changes, grep's tests are now leak free.
24851         I.e., running them with ASAN elicits no failure:
24852           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
24853             AM_LDFLAGS='-fsanitize=address -static-libasan' check
24855 2016-11-11  Bruno Haible  <bruno@clisp.org>
24857         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
24858         * modules/libunistring: (License): Change from LGPL to
24859         "LGPLv3+ or GPLv2".
24860         * modules/libunistring-optional: Likewise.
24861         * modules/unicase/*: Likewise.
24862         * modules/uniconv/*: Likewise.
24863         * modules/unictype/*: Likewise.
24864         * modules/unigbrk/*: Likewise.
24865         * modules/unilbrk/*: Likewise.
24866         * modules/uniname/*: Likewise.
24867         * modules/uninorm/*: Likewise.
24868         * modules/unistdio/*: Likewise.
24869         * modules/unistr/*: Likewise.
24870         * modules/uniwbrk/*: Likewise.
24871         * modules/uniwidth/*: Likewise.
24873 2016-11-12  Bruno Haible  <bruno@clisp.org>
24875         Relicense some modules under LGPLv2+.
24876         Paul Eggert's approval is in
24877         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
24878         Eric Blake's approval is in
24879         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
24880         Ludovic Courtès's approval is in
24881         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
24882         * modules/isnand-nolibm (License): Change to LGPLv2+.
24883         * modules/isnanf-nolibm (License): Likewise.
24884         * modules/isnanl-nolibm (License): Likewise.
24886 2016-11-19  Bruno Haible  <bruno@clisp.org>
24888         Relicense some modules under LGPLv2+.
24889         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
24890         modules/vasnprintf.
24891         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
24892         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
24893         All other significant changes to the files in lib/ of these modules
24894         are from me.
24895         * modules/memcmp2 (License): Change to LGPLv2+.
24896         * modules/amemxfrm (License): Likewise.
24897         * modules/fpieee (License): Likewise.
24898         * modules/fpucw (License): Likewise.
24899         * modules/frexp-nolibm (License): Likewise.
24900         * modules/frexpl-nolibm (License): Likewise.
24901         * modules/printf-frexp (License): Likewise.
24902         * modules/printf-frexpl (License): Likewise.
24903         * modules/printf-safe (License): Likewise.
24904         * modules/signbit (License): Likewise.
24906 2016-11-17  Bruno Haible  <bruno@clisp.org>
24908         Enable Unicode decoder safety unconditionally.
24909         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
24910         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
24911         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24912         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24913         * lib/unistr/u8-prev.c (u8_prev): Likewise.
24914         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
24915         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
24916         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
24917         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
24918         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
24919         * lib/unistr/u16-prev.c (u16_prev): Likewise.
24920         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
24921         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
24922         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
24923         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
24924         * lib/unistr/u32-prev.c (u32_prev): Likewise.
24925         * lib/unistr/u32-next.c (u32_next): Likewise.
24926         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
24927         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
24928         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24929         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
24930         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
24931         CONFIG_UNICODE_SAFETY tests unconditionally.
24932         * tests/unistr/test-u32-mblen.c (main): Likewise.
24933         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
24934         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
24935         * tests/unistr/test-u32-next.c (main): Likewise.
24936         * tests/unistr/test-u32-strmblen.c (main): Likewise.
24937         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
24938         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
24939         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
24940         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
24941         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24942         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
24943         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
24944         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
24945         * lib/unistr/u16-check.c (u16_check): Update comment.
24946         * NEWS: Mention the changes that callers should be aware of.
24948 2016-11-19  Bruno Haible  <bruno@clisp.org>
24950         relocatable-prog-wrapper: Fix breakage on Cygwin.
24951         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
24952         (Depends-on): Remove intprops.
24953         * lib/relocwrapper.c: Update dependency tree.
24954         (strerror): Undefine.
24955         * build-aux/install-reloc (func_create_wrapper): Do not compile
24956         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
24958 2016-11-19  Bruno Haible  <bruno@clisp.org>
24960         strerror: Make it compile in C++ mode.
24961         * lib/strerror.c (strerror): Ignore the return value of memcpy().
24963 2016-11-15  Pedro Alves  <palves@redhat.com>
24965         sys_time: add gnulib::timeval for C++
24966         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
24967         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
24968         timeval macro.
24970 2016-11-14  Pedro Alves  <palves@redhat.com>
24972         snippet/c++defs: fix real-floating arg functions in C++ mode
24973         Also, define isfinite, isinf, isnan, signbit in the gnulib
24974         namespace instead of in the global namespace.
24975         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
24976         (_GL_END_NAMESPACE): New.
24977         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
24978         (isfinite, isinf, isnan, signbit) [__cplusplus &&
24979         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
24980         instead of in the global namespace.
24981         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
24982         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
24983         of in the global namespace.
24985 2016-11-13  Jim Meyering  <meyering@fb.com>
24987         strftime: don't use __THROW
24988         Each use of __THROW would provoke this from gcc-7-to-be:
24990           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
24991             on unit local functions [-Wattributes]
24992           static int iso_week_days (int, int) __THROW;
24993           ^~~~~~
24994         * lib/strftime.c (__THROW): Don't define.
24995         Remove each use of __THROW.
24996         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
24997         (tm_diff, iso_week_days, __strftime_internal): Likewise.
24999 2016-11-14  Paul Eggert  <eggert@union>
25001         obstack: port to gcc -fcheck-pointer-bounds
25002         Problem found by 'make check' failure on bleeding-edge coreutils
25003         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
25004         6.2.0-5ubuntu12), configured via "./configure
25005         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
25006         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
25007         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
25008         New macro, copied from fts_.h.
25009         (struct _obstack_chunk.contents): Use it.
25011 2016-11-14  Eric Blake  <eblake@redhat.com>
25013         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
25014         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
25015         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
25017 2016-11-14  Pádraig Brady  <P@draigBrady.com>
25019         strptime: fix compile error in recent change
25020         * lib/strptime.c (__strptime_internal): Fix ported code.
25022 2016-11-11  Bruno Haible  <bruno@clisp.org>
25024         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
25025         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
25026         (func_import): Extend determination of license_incompatibilities.
25027         (func_create_testdir): Extend table of license compatibility. Handle
25028         also the licenses GPLv3+, GPL, LGPLv3+.
25030 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25032         strftime: tune %q
25033         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
25035         Merge strftime.c changes from glibc
25036         This incorporates:
25037         2007-10-16 [BZ #5184] Add tzset_called argument
25038         2008-06-13 [BZ #6612] pass reference to tzset_called around
25039         2009-10-30 Implement Burmese language locale for Myanmar
25040         2010-01-09 Add support for XPG7 testing
25041         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
25042         2015-10-20 Convert miscellaneous function definitions to prototype style
25043         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
25044         it anyway and this lessens the difference between gnulib and glibc.
25045         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
25046         (__THROW): Define if standard headers do not.
25047         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
25048         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
25049         Declare with __THROW.
25050         (__strftime_internal): Rename from strftime_case_. Add arg for
25051         whether tzset is called.  All uses changed.  Call tzset at most
25052         once.  Allow %OC, for Burmese.
25053         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
25054         Don't assume values are in range.
25056 2016-11-12  Eric Blake  <eblake@redhat.com>
25058         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
25059         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
25060         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
25061         different value.
25063 2006-11-12  Pedro Alves  <palves@redhat.com>
25065         Fix gnulib C++ namespace support and std::frexp
25066         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
25067         _GL_CXXALIASWARN.
25069 2006-11-12  Pedro Alves  <palves@redhat.com>
25071         GNULIB_NAMESPACE::func need not pull in rpl_func
25072         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25073         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
25074         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
25075         struct instead of a function pointer.
25077 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
25079         manywarnings: fix -Wno-missing-field-initializers detection
25080         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
25081         to be independent of -Wunused-variable.  I.E. ensure the latter
25082         warning doesn't occur so that detection of the former is accurate.
25084 2016-11-05  Pádraig Brady  <pbrady@fb.com>
25086         strftime,strptime: support %q to represent the quarter
25087         * lib/strftime.c (strftime_case_): Add %q case.
25088         * lib/strptime.c (__strptime_internal): Likewise.
25089         * tests/test-strftime.c (quarter_test): A new test case.
25091 2016-11-03  Eric Blake  <eblake@redhat.com>
25093         bootstrap: Fix get_version() for AIX 5.3
25094         * build-aux/bootstrap (get_version): Factor out sed script, since
25095         indented comments choke AIX 5.3 sed.
25096         Reported-by: Michael Felt <aixtools@gmail.com>
25098 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25100         intprops: port to older XL C
25101         Problem reported by Alexander Samoilov in:
25102         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
25103         http://savannah.nongnu.org/bugs/?49448
25104         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
25105         Define to 1 only for XL C 12.1 or later, since this bug
25106         occurs in XL C for AIX 6.0 but not in 12.1.
25108 2016-11-02  Pádraig Brady  <P@draigBrady.com>
25110         backupfile: initialize default suffix within the implementation
25111         * lib/backupfile.c (find_backup_file_name): Initialize the
25112         global variable here, to simplify usage, and to only call
25113         getenv() when needed.
25115 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25117         futimens: remove FIXME for old Linux kernels
25118         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
25119         this in 2012" FIXME, like that for utimensat.
25121         utimensat: remove FIXME for old Linux kernels
25122         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
25123         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
25124         this in 2012" FIXME, by assuming the file system bug is absent
25125         unless demonstrated to be present.  We no longer need to worry
25126         about Linux kernel 2.6.32 when building with newer kernels.
25128 2016-10-16  Bruno Haible  <bruno@clisp.org>
25130         qsort_r: Fix macrology for platforms that lack the function.
25131         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
25132         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
25133         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
25134         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
25135         not exist.
25136         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
25137         the function exists.
25138         * modules/qsort_r: Add comments.
25140 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25142         sys_types: fix Texinfo typos
25143         * doc/glibc-functions/gnu_dev_major.texi:
25144         * doc/glibc-functions/gnu_dev_makedev.texi:
25145         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
25147 2016-10-26  John David Anglin  <dave.anglin@bell.net>
25149         getprogname: port to HP-UX
25150         See Bug#24805.
25151         * lib/getprogname.c (getprogname) [__hpux]: Port.
25152         * tests/test-getprogname.c (STREQ) [__hpux]:
25153         Special-case for HP-UX limitations on program name length.
25155 2016-10-20  Bruno Haible  <bruno@clisp.org>
25157         Update doc about target platforms.
25158         * doc/gnulib-intro.texi (Target Platforms): Update list.
25160 2016-10-15  Bruno Haible  <bruno@clisp.org>
25162         opendir, readdir, closedir: Relicense under LGPLv2+.
25163         * modules/opendir (License): Change to LGPLv2+.
25164         * modules/readdir (License): Likewise.
25165         * modules/closedir (License): Likewise.
25167 2016-10-16  Bruno Haible  <bruno@clisp.org>
25169         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
25171         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
25172         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
25173         HAVE_DECL_STRERROR_R.
25175 2016-10-16  Bruno Haible  <bruno@clisp.org>
25177         Make the 'argp' module work without the 'error' module.
25178         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
25180 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25182         diffseq: restore TOO_EXPENSIVE heuristic
25183         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
25184         (Bug#24715).  The simplest solution is to restore the
25185         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
25186         using a higher threshold to avoid Bug#16848 on smaller files.
25187         * lib/diffseq.h (struct context): Restore member too_expensive.
25188         (struct partition): Restore members lo_minimal, hi_minimal.
25189         (diag, compareseq): Restore arg find_minimal.  All uses changed.
25190         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
25191         1993 to make 'diff' run faster (but not as well) on large inputs,
25192         but use a threshold of 4096 instead of the old 256.
25193         * lib/fstrcmp.c (strcmp_bounded):
25194         * lib/git-merge-changelog.c (compute_differences):
25195         Adjust to diffseq.h changes.
25197 2016-10-22  Bruno Haible  <bruno@clisp.org>
25199         iconv: Avoid compilation error when bootstrapping GNU libiconv.
25200         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
25201         declaration yet, define ICONV_CONST to empty.
25203 2016-10-15  Bruno Haible  <bruno@clisp.org>
25205         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
25206         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
25207         module.
25209 2016-10-16  Bruno Haible  <bruno@clisp.org>
25211         system-quote tests: Avoid compiler warning on AIX.
25212         * tests/test-system-quote-child.c (fopen): Redefine like the system's
25213         <stdio.h> does.
25215 2016-10-16  Bruno Haible  <bruno@clisp.org>
25217         Fix some "gcc -Wall" warnings.
25218         * tests/test-ffsl.c (main): Use variable x, not i.
25219         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
25220         freopen.
25221         * tests/test-sethostname1.c (main): Explicitly ignore the return value
25222         of sethostname.
25224 2016-10-16  Bruno Haible  <bruno@clisp.org>
25226         gnulib-tool: Make --create-testdir on all modules work again.
25227         * gnulib-tool (func_create_testdir): Don't include the
25228         non-recursive-gnulib-prefix-hack module.
25230 2016-10-21  Daiki Ueno  <ueno@gnu.org>
25232         libunistring: change the maintainer to 'all'
25233         * modules/gen-uni-tables, modules/libunistring:
25234         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
25235         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
25236         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
25237         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
25238         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
25239         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
25240         * modules/uniwidth/*: Change the maintainer to 'all'.
25242 2016-10-16  Bruno Haible  <bruno@clisp.org>
25244         Simplify "configure: checking ..." messages.
25245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
25246         AC_MSG_NOTICE.
25247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25249 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25251         quotearg-tests: pacify gcc -Wall
25252         Problem reported by Bruno Haible in:
25253         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
25254         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
25255         * tests/test-quotearg.h: ... from here.
25257 2016-10-20  Pádraig Brady  <P@draigBrady.com>
25259         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
25260         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
25261         Needed on Centos <= 4.
25263 2016-10-20  Jim Meyering  <meyering@fb.com>
25265         printf.m4: fix a bug in detecting printf %j support
25266         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
25267         uintmax_t is defined in neither stdint.h nor inttypes.h.
25268         Before, this macro might have mistakenly set
25269         gl_cv_func_printf_sizes_c99=yes on such a system.
25270         Spotted by Zev Weiss.
25272 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
25274         sched: substitute HAVE_SYS_CDEFS_H too
25275         Problem reported by Tom G. Christensen in:
25276         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
25277         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
25278         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
25280 2016-10-19  Pádraig Brady  <P@draigBrady.com>
25282         quotearg: never write beyond the returned length
25283         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
25284         scan of the string when we initially encounter a single quote when
25285         shell quoting, so that if we then switch to a more concise quoting method
25286         we will not have written beyond that returned length.
25287         This is significant for sh-quote, which has separate routines
25288         to determine the length and do the actual quoting.
25289         * tests/test-quotearg.h: Reinstate the buffer bounds checking
25290         now that we never write more than the returned length.
25292 2016-10-18  Bruno Haible  <bruno@clisp.org>
25294         getprogname tests: Avoid failure in packages that use libtool.
25295         * tests/test-getprogname.c (main): Strip "lt-" prefix.
25296         Based on a patch by Jim Meyering.
25298 2016-10-16  Bruno Haible  <bruno@clisp.org>
25300         getprogname: Fix test failure on Cygwin. Comments.
25301         * lib/getprogname.h: Add comments.
25302         * lib/getprogname.c: Add comments. Fix #elif indentation.
25303         * tests/test-getprogname.c (main): On Cygwin, expect a result without
25304         ".exe" suffix.
25306 2016-10-16  Bruno Haible  <bruno@clisp.org>
25308         Make sure the libunistring detection rejects older versions with a
25309         known bug.
25310         * modules/unistr/u8-strtok (configure.ac): Bump required version.
25311         * modules/unistr/u16-strtok (configure.ac): Likewise.
25312         * modules/unistr/u32-strtok (configure.ac): Likewise.
25314 2016-10-18  Bruno Haible  <bruno@clisp.org>
25316         sh-quote, system-quote: revert regression of unit test.
25317         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
25318         * tests/test-system-quote-main.c (check_one): Likewise.
25320 2016-10-16  Pádraig Brady  <P@draigBrady.com>
25322         quotearg: fix stale tests
25323         * tests/test-quotearg.c [locale_results]: Add the missing str7
25324         entries to the expected results.
25325         * tests/test-system-quote-main.c (check_one): Don't enforce that we
25326         don't write beyond the returned length, since that's no longer the
25327         case if we switch to a more concise quoting style.
25328         * tests/test-sh-quote.c (check_one): Likewise.
25329         (main): Adjust for the new more concise quoting style.
25330         Reported by Bruno Haible.
25332 2016-10-16  Jim Meyering  <meyering@fb.com>
25334         non-recursive-gnulib-prefix-hack: fix inconsequential typo
25335         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
25336         to "$1".  This macro is always invoked with $1 == lib.
25337         Spotted by Bruno Haible
25339 2016-10-16  Bruno Haible  <bruno@clisp.org>
25341         Fix a test crash.
25342         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
25343         fails.
25345 2016-10-16  Pádraig Brady  <P@draigBrady.com>
25347         test-limits-h: suppress -Woverlength-strings
25348         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
25350 2016-10-15  Bruno Haible  <bruno@clisp.org>
25352         gettime, timespec, utimens: Relicense under LGPL.
25353         * modules/gettime (License): Change to LGPL.
25354         * modules/timespec (License): Likewise.
25355         * modules/utimens (License): Likewise.
25357 2016-10-14  Bruno Haible  <bruno@clisp.org>
25358             Pádraig Brady  <P@draigBrady.com>
25360         canonicalize-lgpl: Support the case path_max > INT_MAX.
25361         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
25362         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
25364 2016-10-13  Jim Meyering  <meyering@fb.com>
25366         getprogname: IBM z/OS: avoid NULL-dereference
25367         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
25368         upon strdup failure.
25370 2016-10-12  Jim Meyering  <meyering@fb.com>
25372         test-stdint: use _GL_VERIFY rather than "verify" for some tests
25373         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
25374         and an abbreviated diagnostic rather than verify with the full one,
25375         because the full-length strings would evoke warnings from gcc with
25376         -Woverlength-strings.
25378 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25380         stdint: port SIZE_MAX to glibc s390
25381         Problem reported by Eric Blake in:
25382         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
25383         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
25384         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
25385         correct type, if possible.
25387 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
25389         getprogname: port to IBM z/OS
25390         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
25392 2016-10-11  Jim Meyering  <meyering@fb.com>
25394         maint: remove stray space after "." in AC_DEFINE comment.
25395         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
25396         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25398 2016-10-05  Jim Meyering  <meyering@fb.com>
25400         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
25401         * lib/long-options.c (parse_long_options): Add a break statement
25402         to avoid this new warning/failure:
25403         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
25404           --create-testdir --dir=/t/x --with-tests --test long-options
25405         ../../gllib/long-options.c: In function 'parse_long_options':
25406         ../../gllib/long-options.c:66:12: error: this statement may \
25407           fall through [-Werror=implicit-fallthrough]
25408                    (*usage_func) (EXIT_SUCCESS);
25409                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
25411 2016-10-05  Jim Meyering  <meyering@fb.com>
25413         utimecmp: avoid new GCC 7 warning from -Wbool-operation
25414         Testing this module would fail when using GCC 7 like this:
25415         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
25416           --dir=/tmp/x --with-tests --test utimecmp
25417         ../../gllib/utimecmp.c: In function ‘utimecmp’:
25418         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
25419           [-Werror=bool-operation]
25420                          time_t s = src_s & ~ (res == 2 * BILLION);
25421                                             ^
25422         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
25423           [-Werror=bool-operation]
25424                src_s &= ~ (res == 2 * BILLION);
25425                         ^
25426         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
25427         Instead, make it explicit that we intend to apply it to 0 or 1.
25429 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25431         dfa: save memory for states
25432         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
25433         states if dfa has a lot of caches.
25435 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
25437         wchar, wctype-h: fix for MinGW 3.22.2
25438         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
25439         special invocation, to fix issues with MinGW 3.22.2 wchar.h
25440         when included from <string.h>.
25441         * lib/wctype.in.h [__MINGW32__]: Add special invocation
25442         convention for MinGW 3.22.2, to solve issues with their
25443         wctype.h when included from <ctype.h>.
25445 2016-10-05  Jim Meyering  <meyering@fb.com>
25447         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
25448         * lib/long-options.c (parse_long_options): Add a break statement
25449         to avoid this new warning/failure:
25450         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
25451           --create-testdir --dir=/t/x --with-tests --test long-options
25452         ../../gllib/long-options.c: In function ‘parse_long_options’:
25453         ../../gllib/long-options.c:66:12: error: this statement may \
25454           fall through [-Werror=implicit-fallthrough]
25455                    (*usage_func) (EXIT_SUCCESS);
25456                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
25458         utimecmp: avoid new GCC 7 warning from -Wbool-operation
25459         Testing this module would fail when using GCC 7 like this:
25460         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
25461           --dir=/tmp/x --with-tests --test utimecmp
25462         ../../gllib/utimecmp.c: In function ‘utimecmp’:
25463         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
25464           [-Werror=bool-operation]
25465                          time_t s = src_s & ~ (res == 2 * BILLION);
25466                                             ^
25467         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
25468           [-Werror=bool-operation]
25469                src_s &= ~ (res == 2 * BILLION);
25470                         ^
25471         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
25472         Instead, make it explicit that we intend to apply it to 0 or 1.
25474 2016-10-03  Pádraig Brady  <P@draigBrady.com>
25476         quotearg: minimize shell quoting using double quotes
25477         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
25478         quote in encountered then use double quotes (c style quoting)
25479         when possible, as it simplifies the quoting.
25480         * tests/test-quotearg-simple.c: Add test cases.
25481         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
25482         for the fact we now may write beyond the returned length.
25484 2016-10-02  Jim Meyering  <meyering@fb.com>
25486         vasnprintf.c: avoid spurious warning from GCC 7
25487         The presence of cpp directives renders this "FALLTHROUGH" comment
25488         ineffective, so does not suppress the -Wimplicit-fallthrough warning
25489         from GCC 7 built from git on 2016-10-02.
25490         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
25491         directives, so that it takes effect once again.  This is clearly
25492         not a proper change, and I will revert it once this bug is fixed:
25493         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
25495 2016-10-01  Jim Meyering  <meyering@fb.com>
25497         getprogname: correct the test for a __progname variable
25498         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
25499         and AC_LINK_IFELSE to check for a global __progname.  If found,
25500         define HAVE_VAR___PROGNAME.
25501         * lib/getprogname.c (getprogname): Reflect the new name of the
25502         feature- checked preprocessor symbol:
25503         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
25505 2016-09-28  Jim Meyering  <meyering@fb.com>
25507         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
25508         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
25509         fall-through case with a /* fallthrough */ comment.
25511         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
25512         * lib/dfa.c (dfassbuild): Mark the end of this case with a
25513         /* fallthrough */ comment.
25515         getprogname: avoid __progname vs program_invocation_short_name pitfall
25516         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
25517         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
25518         not with Fedora 24's glibc-2.23.1-10.
25519         * lib/getprogname.c (__progname): Move this declaration down...
25520         (getprogname): ... into the #elif block where used, and make it
25521         explicitly "extern".
25523         getprogname: port to OpenBSD 5.1
25524         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
25525         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
25526         * modules/getprogname (configure.ac): Move most of this code...
25527         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
25528         increment serial number, and add a test for __progname.
25529         https://bugs.gnu.org/24562
25530         Reported by Nelson H. F. Beebe.
25532 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25534         sched: port to GCC 6.2.1 on macOS Sierra
25535         Problem reported by Denis Davydov in:
25536         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
25537         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
25538         Include <sys/cdefs.h> before <sched.h>.
25539         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
25540         so that we needn’t worry about the sched.h include bug here.
25541         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
25542         and include it before <sched.h> if it exists, when
25543         checking for <sched.h>.
25545         tests/init.sh: port Alpine fix to AIX 7.1
25546         * tests/init.sh (compare_): When attempting to use diff -U3,
25547         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
25548         diff -u not outputting a space after leading '+', as the users
25549         of 'compare' should not be that picky about its output format.
25550         In the AIX 7.1 case, return with diff exit status (or with 2 if
25551         trouble), instead of some random nonzero exit status.
25552         * tests/test-init.sh (test_compare): Remove space after leading
25553         '+', so that AIX 7.1 'diff' passes the test.
25555 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25557         nl_langinfo: pacify GCC
25558         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
25559         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
25561         stdint: also set GL_GENERATE_LIMITS_H
25562         Problem reported by Jim Meyering in:
25563         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
25564         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
25566         limits-h, stdint: Don't assume extensions, fix typo
25567         * m4/limits-h.m4 (gl_LIMITS_H):
25568         * m4/stdint.m4 (gl_STDINT_H):
25569         Don't assume AC_USE_SYSTEM_EXTENSIONS.
25570         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
25571         reported by Jim Meyering in:
25572         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
25574 2016-09-21  Jim Meyering  <meyering@fb.com>
25576         getprogname: port to AIX
25577         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
25578         and strdup to obtain a short program name string.  Using code from
25579         Bruno Haible and an idea from Bastien ROUCARIÈS, in
25580         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25581         Assaf Gordon reported that this new file would fail to compile on
25582         AIX-7.1 32bit.
25584 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25586         extensions: fix typo in comment
25587         * m4/extensions.m4: Sync from Autoconf master.
25589         stdint: support new _WIDTH macros
25590         * doc/posix-headers/stdint.texi: Document this.
25591         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
25592         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
25593         support for INTMAX_WIDTH, etc. as well as for support for just C99.
25594         * modules/stdint (Depends-on): Add limits-h.
25595         (Makefile.am): Substitute HAVE_C99_STDINT_H.
25596         * modules/stdint-tests (Depends-on): Add extensions, so that
25597         INTMAX_MAX etc. are defined.
25598         * tests/test-stdint.c: Verify the new macros.
25600         limits-h: new module
25601         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
25602         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
25603         * doc/posix-headers/limits.texi: Document new module.
25604         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
25605         * modules/limit-h-tests, tests/test-limits-h.c: New files.
25607         stdio: don't redefine __USE_MINGW_ANSI_STDIO
25608         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
25609         if it is already defined.  Apparently GNU Emacs relies on this.  See:
25610         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
25612 2016-09-15  Eric Blake  <eblake@redhat.com>
25614         sys_types: avoid glibc 2.25 warnings about major()
25615         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
25616         older autoconf.
25617         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
25618         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
25619         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
25620         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
25622         mountlist: include sysmacros.h for glibc
25623         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
25624         AC_HEADER_MAJOR.
25625         * lib/mountlist.c (includes): Use correct headers.
25627 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25629         extensions: port to more ISO C TSes
25630         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
25631         master, to add support for more recent ISO C TRs and TSes.
25633 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25635         intprops: new macro TYPE_WIDTH
25636         * lib/intprops.h (TYPE_WIDTH): New macro.
25637         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
25638         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
25639         * lib/parse-datetime.y (parse_datetime2):
25640         Use it.
25642         extensions: port to recent ISO C TRs
25643         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25644         Sync from Autoconf master, to add support for recent ISO C TRs.
25645         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
25646         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
25647         the MinGW option is not an extension.
25649 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
25651         dfa: port to Solaris 9
25652         Problems reported by Tom G. Christensen in:
25653         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
25654         * modules/dfa (Depends-on): Add isblank.
25655         * modules/dfa-tests (dfa_match_aux_LDADD):
25656         Rename from test_stat_LDADD, to fix typo.
25657         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
25659 2016-09-10  Jim Meyering  <meyering@fb.com>
25661         strverscmp: avoid link failure on OS X
25662         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
25663         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
25665 2016-08-16  Jim Meyering  <meyering@fb.com>
25667         dfa: new module, importing grep's DFA matcher
25668         Since grep's DFA matcher is now being used by two gnulib-enabled
25669         projects, grep and sed, it makes sense to version-control its
25670         sources and unit tests in one place: here.
25671         * modules/dfa: New module.
25672         * modules/dfa-tests: New file.
25673         * lib/dfa.c: New file, from grep.
25674         * lib/dfa.h: Likewise.
25675         * lib/localeinfo.c: Likewise.
25676         * lib/localeinfo.h: Likewise.
25677         * tests/dfa-match-aux.c: Likewise.
25678         * tests/dfa-invalid-char-class.sh: Likewise.
25679         * tests/dfa-match.sh: Likewise, with minor changes.
25680         * MODULES.html.sh (Misc): Add "dfa" to this list.
25682 2016-09-09  Jim Meyering  <meyering@fb.com>
25684         getprogname-tests: don't depend on assert-h
25685         * modules/getprogname-tests (Depends-on): Remove assert-h.
25686         It was not needed, and in fact would cause build failure for
25687         coreutils on some systems.  Reported by Assaf Gordon in https:
25688         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
25690 2016-09-07  Jim Meyering  <meyering@fb.com>
25692         getprogname-tests: work also when EXEEXT is nonempty
25693         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
25694         * tests/test-getprogname.c (main): Use it.
25695         Suggested by Gisle Vanem.
25697 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
25699         getprogname: fix errors in previous change
25700         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
25701         s/program_invocation_name/base/
25702         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
25704 2016-09-08  Pádraig Brady  <P@draigBrady.com>
25706         parse-datetime: restrict debug output to input string
25707         * lib/parse-datetime.y (parse_datetime2): If we parse
25708         all of the input but determine it's invalid, ensure
25709         we don't output the now invalid input pointer.
25710         This issue was seen with `date -d 'now +1'`.
25712 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
25714         flexmember: new macro FLEXALIGNOF
25715         * lib/flexmember.h: Include <stddef.h>, for offsetof.
25716         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
25717         this macro.  Update comments.
25719 2016-09-07  Jim Meyering  <meyering@fb.com>
25721         getprogname: port to systems with __argv (mingw, msvc)
25722         * lib/getprogname.c (getprogname): Include "dirname.h" and use
25723         last_component: more general than open coding it with hard-coded "/".
25724         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
25725         * modules/getprogname (Depends-on): Add dirname-lgpl.
25726         (configure.ac): Check for __argv in <stdlib.h>.
25727         * modules/getprogname-tests: New file.
25728         * tests/test-getprogname.c: New file.
25729         Suggested by Gisle Vanem in
25730         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
25732 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
25734         flexmember: port better to GCC + valgrind
25735         With a char[] flexible array member in a struct with nontrivial
25736         alignment, GCC-generated code can access past the end of the
25737         array, because GCC assumes there are padding bytes to get the
25738         struct aligned.  So the common idiom of malloc (offsetof (struct
25739         s, m), n) does not properly allocate an n-byte trailing member, as
25740         malloc’s argument should be the next multiple of alignof (struct s).
25741         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
25742         Although C11 apparently permits this GCC optimization (i.e., there
25743         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
25744         See the thread containing:
25745         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
25746         * lib/flexmember.h: New file.
25747         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
25748         * lib/localename.c, lib/time_rz.c:
25749         Include flexmember.h.
25750         * lib/fnmatch_loop.c (struct patternlist):
25751         * lib/localename.c (struct hash_node):
25752         Use FLEXIBLE_ARRAY_MEMBER.
25753         * lib/fnmatch_loop.c (EXT):
25754         * lib/fts.c (fts_alloc):
25755         * lib/glob.c (glob_in_dir):
25756         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
25757         * lib/localename.c (gl_lock_define_initialized):
25758         * lib/time_rz.c (tzalloc):
25759         Use FLEXSIZEOF instead of offsetof.
25760         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25761         Check that the size of the struct can be taken.
25762         * modules/flexmember (Files): Add lib/flexmember.h.
25763         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
25764         Add flexmember.
25766 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25768         getprogname: port to Solaris 10
25769         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
25770         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
25771         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
25773         stdalign: correct mistake in alignof doc
25774         Problem reported by Joseph Myers in:
25775         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
25776         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
25777         alignof(S) where S is a structure containing a flexible array
25778         member.  The Gnulib substitute does not support this, but C11 does.
25780 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
25782         main.mk: remove sc_program_name, since there is no more need to
25783         use set_program_name in tools (getprogname is enough for most
25784         of the cases).
25785         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
25786         * top/maint.mk (sc_program_name): Remove.
25788 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
25790         Port tests away from progname, since modules that need the
25791         program name already depend on getprogname.
25792         * modules/acl-tests (Depends-on): Remove progname.
25793         * modules/argmatch (Depends-on): Likewise.
25794         * modules/argmatch-tests (Depends-on): Likewise.
25795         * modules/argp-tests (Depends-on): Likewise.
25796         * modules/argp-version-etc-tests (Depends-on): Likewise.
25797         * modules/array-list-tests (Depends-on): Likewise.
25798         * modules/array-oset-tests (Depends-on): Likewise.
25799         * modules/avltree-list-tests (Depends-on): Likewise.
25800         * modules/avltree-oset-tests (Depends-on): Likewise.
25801         * modules/avltreehash-list-tests (Depends-on): Likewise.
25802         * modules/carray-list-tests (Depends-on): Likewise.
25803         * modules/copy-file-tests (Depends-on): Likewise.
25804         * modules/exclude-tests (Depends-on): Likewise.
25805         * modules/fchownat-tests (Depends-on): Likewise.
25806         * modules/fdopendir-tests (Depends-on): Likewise.
25807         * modules/filenamecat-tests (Depends-on): Likewise.
25808         * modules/fstatat-tests (Depends-on): Likewise.
25809         * modules/fstrcmp-tests (Depends-on): Likewise.
25810         * modules/linked-list-tests (Depends-on): Likewise.
25811         * modules/linkedhash-list-tests (Depends-on): Likewise.
25812         * modules/mkdirat-tests (Depends-on): Likewise.
25813         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
25814         * modules/nonblocking-socket-tests (Depends-on): Likewise.
25815         * modules/obstack-printf-tests (Depends-on): Likewise.
25816         * modules/openat-tests (Depends-on): Likewise.
25817         * modules/parse-datetime-tests (Depends-on): Likewise.
25818         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
25819         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
25820         * modules/quotearg-simple-tests (Depends-on): Likewise.
25821         * modules/quotearg-tests (Depends-on): Likewise.
25822         * modules/rbtree-list-tests (Depends-on): Likewise.
25823         * modules/rbtree-oset-tests (Depends-on): Likewise.
25824         * modules/rbtreehash-list-tests (Depends-on): Likewise.
25825         * modules/spawn-pipe-tests (Depends-on): Likewise.
25826         * modules/system-quote-tests (Depends-on): Likewise.
25827         * modules/uniname/uniname-tests (Depends-on): Likewise.
25828         * modules/uninorm/nfc-tests (Depends-on): Likewise.
25829         * modules/uninorm/nfd-tests (Depends-on): Likewise.
25830         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
25831         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
25832         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
25833         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
25834         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
25835         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
25836         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
25837         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
25838         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
25839         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
25840         * modules/unlinkat-tests (Depends-on): Likewise.
25841         * modules/version-etc-tests (Depends-on): Likewise.
25842         * modules/xalloc-die-tests (Depends-on): Likewise.
25843         * modules/xmemdup0-tests (Depends-on): Likewise.
25844         * modules/xprintf-posix-tests (Depends-on): Likewise.
25845         * modules/xvasprintf-tests (Depends-on): Likewise.
25846         * tests/test-argmatch.c: Do not include progname.h.
25847         (main) Stop calling set_program_name.
25848         * tests/test-argp-version-etc.c: Likewise.
25849         * tests/test-argp.c: Likewise.
25850         * tests/test-argv-iter.c: Likewise.
25851         * tests/test-array_list.c: Likewise.
25852         * tests/test-array_oset.c: Likewise.
25853         * tests/test-avltree_list.c: Likewise.
25854         * tests/test-avltree_oset.c: Likewise.
25855         * tests/test-avltreehash_list.c: Likewise.
25856         * tests/test-carray_list.c: Likewise.
25857         * tests/test-copy-acl.c: Likewise.
25858         * tests/test-copy-file.c: Likewise.
25859         * tests/test-exclude.c: Likewise.
25860         * tests/test-fchownat.c: Likewise.
25861         * tests/test-fdopendir.c: Likewise.
25862         * tests/test-filenamecat.c: Likewise.
25863         * tests/test-fstatat.c: Likewise.
25864         * tests/test-fstrcmp.c: Likewise.
25865         * tests/test-linked_list.c: Likewise.
25866         * tests/test-linkedhash_list.c: Likewise.
25867         * tests/test-mkdirat.c: Likewise.
25868         * tests/test-nonblocking-pipe-main.c: Likewise.
25869         * tests/test-nonblocking-socket-main.c: Likewise.
25870         * tests/test-obstack-printf.c: Likewise.
25871         * tests/test-openat.c: Likewise.
25872         * tests/test-parse-datetime.c: Likewise.
25873         * tests/test-pipe-filter-gi1.c: Likewise.
25874         * tests/test-pipe-filter-gi2-main.c: Likewise.
25875         * tests/test-pipe-filter-ii1.c: Likewise.
25876         * tests/test-pipe-filter-ii2-main.c: Likewise.
25877         * tests/test-quotearg-simple.c: Likewise.
25878         * tests/test-quotearg.c: Likewise.
25879         * tests/test-rbtree_list.c: Likewise.
25880         * tests/test-rbtree_oset.c: Likewise.
25881         * tests/test-rbtreehash_list.c: Likewise.
25882         * tests/test-sameacls.c: Likewise.
25883         * tests/test-set-mode-acl.c: Likewise.
25884         * tests/test-spawn-pipe-main.c: Likewise.
25885         * tests/test-system-quote-main.c: Likewise.
25886         * tests/test-unlinkat.c: Likewise.
25887         * tests/test-version-etc.c: Likewise.
25888         * tests/test-xalloc-die.c: Likewise.
25889         * tests/test-xfprintf-posix.c: Likewise.
25890         * tests/test-xmemdup0.c: Likewise.
25891         * tests/test-xprintf-posix.c: Likewise.
25892         * tests/test-xvasprintf.c: Likewise.
25893         * tests/uniname/test-uninames.c: Likewise.
25894         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25895         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25896         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25897         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25898         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25899         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25900         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25901         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25902         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25903         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25904         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25905         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25906         * tests/test-c-stack.c: (program_name): Do not define.
25907         (main): Do not set program_name.
25908         * tests/test-closein.c: Likewise.
25909         * tests/test-xstrtol.c: Likewise.
25910         * tests/test-yesno.c: Likewise.
25912 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
25914         Port modules to use getprogname explicitly, instead of requiring
25915         progname to be used (or program_name to be provided).
25916         * lib/argmatch.c: Do not include progname.h.
25917         [TEST] (program_name): Do not define.
25918         [TEST] (main): Call getprogname instead of using program_name.
25919         * lib/c-stack.c: Do not include progname.h.
25920         (program_name): Do not define.
25921         (die): Call getprogname instead of using program_name.
25922         * lib/chdir-long.c: Do not include progname.h.
25923         [TEST_CHDIR] (main): Do not set program_name.
25924         * lib/error.c [!_LIBC]: Include progname.h.
25925         [!_LIBC] (program_name): Define using getprogname.
25926         * lib/euidaccess.c: Do not include progname.h.
25927         [TEST] (main): Do not set program_name.
25928         * lib/git-merge-changelog.c: Include getprogname.h instead of
25929         progname.h.
25930         (usage): Call getprogname instead of using program_name.
25931         (main): Likewise.  Stop calling set_program_name.
25932         * lib/group-member.c: Do not include progname.h.
25933         [TEST] (main): Do not set program_name.
25934         * modules/argmatch (Depends-on): Add getprogname.
25935         * modules/c-stack (Depends-on): Likewise.
25936         * modules/error (Depends-on): Likewise.
25937         * modules/git-merge-changelog (Depends-on): Likewise.
25938         Also remove progname.
25940 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
25942         * NEWS: Document the deprecation of the 'progname' module.
25944 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
25946         getprogname: new module
25947         This provides a LGPL module for getting the name of the current
25948         program, using the same API found on *BSD systems.
25949         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
25950         * modules/getprogname: New files.
25951         * MODULES.html.sh (Misc): Add getprogname.
25953 2016-09-02  Jim Meyering  <meyering@fb.com>
25955         manywarnings: add -fno-common
25956         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
25957         to the list.  Quoting the manual, "Compiling with -fno-common is
25958         useful on targets for which it provides better performance, or if
25959         you wish to verify that the program will work on other systems that
25960         always treat uninitialized variable declarations this way [putting
25961         it in the data section]."  If diffutils had been using this sooner,
25962         it would have prevented this duplicate declaration issue:
25963         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
25965 2016-08-31  Simon Josefsson  <simon@josefsson.org>
25967         parse-datetime: Fix typo.
25968         * lib/parse-datetime.y (parse_datetime2): Fix typo.
25970 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
25972         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
25973         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
25974         GCC 5 and 6 that have __builtin_sub_overflow but not
25975         __builtin_sub_overflow_p.  With the recent changes, these
25976         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
25977         implementation than with INT_SUBTRACT_OVERFLOW implementation,
25978         since the former needs just one runtime comparison whereas the
25979         latter needs two.
25981         strverscmp: sync with glibc
25982         Although this doesn't exactly synchronize with glibc
25983         byte-for-byte, it makes the code behave the same as glibc.
25984         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
25985         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
25986         difference shouldn't matter in practical use.  All uses changed
25987         back to isdigit.
25988         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
25989         (next_state): Now unsigned char array; redo elements.
25990         (result_type): Now signed char array; redo elements.
25991         (__strverscmp): Fix glibc bug 9913 by using new states.
25992         * tests/test-strverscmp.c (main): Test glibc bug 9913.
25994 2016-08-29  Jim Meyering  <meyering@fb.com>
25996         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
25997         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
25998         similarly to how it was done to intprops.h.
26000 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26002         intprops.h: port recent changes to GCC 6.2.0
26003         * lib/intprops.h (__has_builtin): Move earlier.
26004         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
26005         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
26006         the last argument can be null.  All uses changed.
26007         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
26008         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26009         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
26010         and it's not clear which GCC versions it works for.
26011         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
26012         its definiens.
26014         intprops.h: use __typeof__ with GCC 7
26015         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
26016         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
26017         This avoids computing the expression's value (which might overflow!).
26019 2016-08-29  Jim Meyering  <meyering@fb.com>
26021         intprops.h, xalloc-oversized.h: work with gcc 7
26022         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
26023         __builtin_mul_overflow each accept a NULL pointer as the third
26024         argument.  However in gcc 7, that is no longer accepted.
26025         Instead, one must use the "_p"-suffixed names, with which, the
26026         third parameter is no longer a pointer.
26027         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
26028         the definition: not true for gcc 7 and subsequent.
26029         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
26030         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26031         Provide new definitions for gcc 7 and subsequent.
26032         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
26033         that works with gcc-7.
26035         intprops.h: fix missing-backslash problems
26036         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
26037         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
26039 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26041         intprops: fix paren typo on old platforms
26042         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
26043         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
26044         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
26045         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
26046         && !defined LLONG_MAX]:
26047         Remove stray paren.
26049         intprops: port to OpenVMS
26050         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
26051         * doc/posix-headers/limits.texi: Document the problem.
26052         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
26053         Define if not already defined.
26055 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
26057         parse-datetime: improve debug implementation
26058         Follow-up to commit 12ad79069 ("add optional debug printing").
26059         Improve parse-datetime's debug implementation: remove macros,
26060         replace global debug flag variable with a function parameter,
26061         use nstrftime for formatting.
26062         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
26063         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
26064         (parse_datetime2): New function, accepts 'flags' parameter, supporting
26065         debug flag. Existing interface 'parse_datetime' left unmodified.
26066         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
26067         (struct parser_control): add 'parse_datetime_debug' member variable.
26068         (parse_datetime): Call new function 'parse_datetime2' without debug.
26069         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
26070         pc.parse_datetime_debug variable as needed.
26071         (to_year): Accept new flags parameter, instead of using global variable.
26072         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
26073         use struct 'debug' variable instead of global variable.
26074         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
26075         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
26076         correspnding functions directly instead of using macros.
26077         * modules/parse-datetime: Add gnulib's strftime module.
26079 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
26081         c-strcase-tests: port to EBCDIC
26082         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
26083         which assume ASCII encoding semantics to run only in ASCII
26084         mode, as they fail in EBCDIC.
26086         sigpipe-tests: fix typo
26087         * tests/test-sigpipe.sh: C, not B.
26089 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26091         canonicalize-lgpl: fix errno after malloca fails
26092         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
26093         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
26094         * lib/canonicalize-lgpl.c (__realpath):
26095         Don't assume malloca sets errno on failure.
26097 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26099         strtod: port errno handling to z/OS
26100         * lib/strtod.c (strtod): Save and restore errno more reliably.
26102 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26104         strtod: port to z/OS
26105         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26106         implementation.
26108 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26110         strtod: port to z/OS
26111         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26112         implementation.
26114         regex, string: rename to avoid '__string'
26115         * lib/regex.h, lib/string.in.h: Do not use the identifier
26116         '__string', as it is effectively reserved by string.h on z/OS.
26118         c-strcase-tests, wcwidth-tests: depend on c-ctype
26119         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
26120         Add c-ctype.
26122 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26124         thread: port to z/OS
26125         * lib/glthread/thread.c, lib/glthread/thread.h:
26126         Rudimentary gl_thread support for z/OS.
26128         maint: port tests to z/OS errno behavior
26129         * tests/test-nonblocking-reader.h:
26130         * tests/test-nonblocking-writer.h:
26131         Accommodate z/OS errno code preferences. (I believe this should
26132         still be within spec; IBM is good at following the letter if not
26133         the spirit of such things.)
26135         maint: preprocessor changes to support z/OS
26136         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
26137         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
26138         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
26139         * tests/test-nonblocking-pipe.h:
26141         fclose, strstr-simple, wchar: port to z/OS
26142         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
26143         Changes to the Autoconf M4 code to support z/OS.  Note that
26144         fclose() is broken in a different way on z/OS than it is on other
26145         systems, thus the special-case in fclose.m4.
26147         iconv_open-utf-tests, iconv-tests: port to EBCDIC
26148         * tests/test-iconv-utf.c, tests/test-iconv.c:
26149         Added appropriately conditional #pragmas so that the test strings
26150         in test-iconv-utf.c are correctly interpreted in ASCII instead of
26151         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
26152         addressed in a more portable way by simply rewriting all the ASCII
26153         literal characters as octal escapes, but then you would lose the
26154         partial readability that the strings have now. Also, iconv_open()
26155         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
26157         c-strcase-tests, wcwidth-tests: port to EBCDIC
26158         * tests/test-c-strcasecmp.c: Include c-ctype.h.
26159         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
26160         * tests/test-wcwidth.c: Likewise.
26162 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26164         stdbool: don't require _Bool for C++
26165         Problem reported by David Seifert in:
26166         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
26167         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
26168         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
26169         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
26170         stricter about checking that bool and _Bool are compatible in C.
26172 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26174         getdelim: remove dependency on realloc-posix
26175         * lib/canonicalize-lgpl.c (alloc_failed)
26176         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
26177         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
26178         Use __set_errno where needed, for consistency.
26179         * lib/getdelim.c (alloc_failed): New function.
26180         (getdelim): Use it.
26182 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
26184         parse-datetime: add optional debug printing
26185         Print parsing information, warnings, and errors to stderr.
26186         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
26187         * lib/parse-datetime.y:
26188         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
26189         (PROGRESS*): Same as DEBUG, for progress reporting.
26190         (dbg_printf): Print message to stderr, with 'date' prefix.
26191         (struct parser_control): Add 'debug_*_seen' variables.
26192         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
26193         (debug_print_current_time, debug_print_relateive_time): Prints the
26194         current/relative date/time value of parser_control.
26195         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
26196         (to_year): Warn about 2-digit year parsing.
26197         (yylex):   Warn about unrecognized words.
26198         (get_effective_timezone): Returns current timezone in minutes.
26199         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
26200         clearly and unambigiously as possible.
26201         (debug_mktime_not_ok): Print detailed information about failed
26202         date/time values.
26203         (parse_datetime): Add DEBUG messages for failures, warnings. Add
26204         PROGRESS messages for status messages.
26205         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
26207 2016-08-06  Jim Meyering  <meyering@fb.com>
26209         tests/init.sh: exclude dash with bad "local" semantics
26210         * tests/init.sh (gl_shell_test_script_): Add a function to
26211         eliminate a shell like "dash" (unlike bash, zsh) that has
26212         surprising/risky "local var='...'" semantics.  Inspired by
26213         the problem and discussion in https://bugs.gnu.org/24116#11.
26215 2016-08-02  Ján Tomko  <jtomko@redhat.com>
26217         maint.mk: expand the prohibit_doubled_word regex
26218         This check has a static list of words that are checked for
26219         repetitions.  Expand it before running the perl script to
26220         avoid using expensive captures.  This decreases the cost
26221         for libvirt from 1.66s to 0.66s.
26222         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
26223         (sc_prohibit_doubled_word): Use it.
26225 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26227         useless-if-before-free: skip non-matching lines early
26228         * build-aux/useless-if-before-free: First match each line with the
26229         simple/quick /\bif\b/ and reject if there is no match. This often
26230         saves the cost of the much more involved regular expression.
26231         For libvirt, this decreases the cost from 1.44s to 1.02s.
26233 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26235         maint.mk: speed up sc_po_check
26236         sc_po_check would skip files based on their names, or on the
26237         existence of files with derived names. Rewrite it to use perl
26238         instead of shell to make the check faster.
26239         * top/maint.mk (perl_translatable_files_list_): Define.
26240         (sc_po_check): Use it.
26242 2016-07-30  Ján Tomko  <jtomko@redhat.com>
26244         maint.mk: speed up require_config_h_first
26245         Instead of spawning three processes per file,
26246         rewrite the check in perl and run it once for all the files.
26247         * top/maint.mk (perl_config_h_first_): Define.
26248         (sc_require_config_h_first): Use it in place of shell code.
26250 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26252         maint.mk: speed up sc_po_check
26253         sc_po_check would skip files based on their names, or on the
26254         existence of files with derived names. Rewrite it to use perl
26255         instead of shell to make the check faster.
26256         * top/maint.mk (perl_translatable_files_list_): Define.
26257         (sc_po_check): Use it.
26259 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26261         obstack: pacify GCC 6 with -Wnull-dereference
26262         Problem reported by Assaf Gordon in:
26263         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
26264         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
26265         Declare with __attribute_noreturn__.
26266         * lib/obstack.h (__attribute_noreturn__): New macro.
26268 2016-07-13  Eric Blake  <eblake@redhat.com>
26270         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
26271         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
26272         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
26274 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
26276         doc: mention glibc SSIZE_MAX buglet
26277         * doc/posix-headers/limits.texi (limits.h): Document the bug.
26279 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
26281         printf-posix: Fix mingw build
26282         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
26283         expression for detecting C symbol prefixes but forgot to qoute square
26284         brackets in the command line arguments for grep.  That way when
26285         building with mingw the condition was false although it ought to be
26286         true instead.  In particular scenarios this led to the following
26287         compile error:
26289             Cannot export rpl_printf: symbol not found
26290             Cannot export rpl_scanf: symbol not found
26291             collect2: error: ld returned 1 exit status
26293         Fix this by properly quoting square brackets.
26295 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26297         mktime: call tzset as per POSIX
26298         Problem reported by Ludovic Courtès in:
26299         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
26300         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
26301         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
26303 2016-06-26  Pádraig Brady  <P@draigBrady.com>
26305         fts: handle readdir() errors
26306         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
26307         but also upon error when it will also set errno.  Therefore
26308         flag the error case from readdir().  We treat the case where
26309         no items are read the same as if the dir can't be accessed,
26310         i.e. by setting fts_errno to FTS_DNR.
26312 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26314         intprops: port better to GCC 7
26315         GCC 7 __builtin_add_overflow supports a new usage form, where the
26316         last argument is a null pointer, and which merely returns 1 if an
26317         overflow would occur.  This is a constant expression if all
26318         arguments are constants, and should generate faster code when code
26319         needs to be generated.
26320         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
26321         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26322         Use builtin operations if available.
26323         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
26324         operations are available, as it's almost surely faster.
26326 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26328         intprops-test: port to GCC 6
26329         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
26330         since the bug is not fixed in GCC 6.1.
26332 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
26334         xalloc-oversized: port to GCC 7; fewer warnings
26335         GCC 7 will have a better way to deal with integer overflow.
26336         Plus, fix a warnings problem reported by Tim Ruehsen in:
26337         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
26338         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
26339         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
26340         For GCC 5, use __xalloc_oversized if both args are constants,
26341         or if pedantic.
26343 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
26345         regex: port to Sun C
26346         Reported by Daiki Ueno.
26347         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
26348         __restrict, in prototype.  This fixes a problem I introduced in
26349         the 2016-02-19 merge from glibc.
26351 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
26353         stdbool: Restore __bool_true_false_are_defined check
26354         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
26355         __bool_true_false_are_defined is still defined, even with C++11.
26357 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
26359         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
26360         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
26362 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
26364         Use GCC_LINT, not lint
26365         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
26366         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
26367         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
26368         Document problem with lint and _Noreturn.
26369         * lib/diffseq.h (IF_LINT, IF_LINT2):
26370         * lib/fts.c (sccsid):
26371         * lib/getndelim2.c (IF_LINT):
26372         * lib/gl_anylinked_list2.h (gl_linked_iterator)
26373         (gl_linked_iterator_from_to):
26374         * lib/gl_anytree_list2.h (gl_tree_iterator)
26375         (gl_tree_iterator_from_to):
26376         * lib/gl_anytree_oset.h (gl_tree_iterator):
26377         * lib/gl_array_list.c (gl_array_iterator)
26378         (gl_array_iterator_from_to):
26379         * lib/gl_array_oset.c (gl_array_iterator):
26380         * lib/gl_carray_list.c (gl_carray_iterator)
26381         (gl_carray_iterator_from_to):
26382         * lib/idcache.c:
26383         * lib/inet_ntop.c (IF_LINT):
26384         * lib/regcomp.c (build_charclass_op, create_tree):
26385         * lib/regex_internal.c (re_acquire_state)
26386         (re_acquire_state_context):
26387         * lib/trigl.c (rcsid):
26388         * lib/trim.c (IF_LINT):
26389         * lib/vasnprintf.c (IF_LINT):
26390         * lib/verify.h (assume):
26391         Treat GCC_LINT like lint.
26393 2016-05-29  Bruno Haible  <bruno@clisp.org>
26395         secure_getenv: Port to many more platforms.
26396         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
26397         functions.
26398         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
26399         for non-BSD Unix platforms and for native Windows.
26400         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
26401         Prompted by a request from Nikos Mavrogiannopoulos.
26403 2016-05-27  Eric Blake  <eblake@redhat.com>
26405         canonicalize: Fix broken probe for realpath.
26406         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
26407         in logic introduced in 54615b95.
26409 2016-05-26  Eric Blake  <eblake@redhat.com>
26411         unsetenv: relax to LGPLv2+
26412         * modules/unsetenv (License): Match setenv license.
26414 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
26416         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
26417         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
26418         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
26419         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
26420         (commonarg, dirargs, dirs, infoarg, generate_ascii)
26421         (generate_html, generate_info, generate_tex, outdir)
26422         (source_extra, split, srcfile, texarg): Move above 'version'.
26423         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
26425 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
26427         manywarnings: update for GCC 6.1
26428         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
26429         Add GCC 6.1 options that apply to C.
26430         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
26431         do not apply to C, are obsolescent, etc.
26433 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
26435         glob: size_t overflow checks
26436         * lib/glob.c (__has_builtin): New macro.
26437         (size_add_wrapv, glob_use_alloca): New static functions.
26438         (glob, glob_in_dir): Check for size_t overflow in several places,
26439         and fix some size_t checks that were not quite right.
26441         glob: don't assume INT_MAX < SIZE_MAX
26442         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
26443         latter is not portable to (probably theoretical) hosts where
26444         SIZE_MAX <= INT_MAX.
26446 2016-05-09  Bruno Haible  <bruno@clisp.org>
26448         Fix undefined behaviour in gettext.h.
26449         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
26450         pointer's value after the storage it points to has been freed.
26451         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
26452         Spotted by Coverity.
26454 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
26456         git-version-gen: avoid undefined shift
26457         Problem reported by Mosè Giordano in:
26458         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
26459         * build-aux/git-version-gen: Avoid undefined behavior if invoked
26460         with --prefix or --fallback but without a later argument.  While
26461         we're at it, omit unnecessary quotes.
26463 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
26465         glob: merge glibc changes into lib/glob.c
26466         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
26467         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
26468         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
26469           struct dirent [BZ #19779]
26470         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
26471           callback gl_readdir
26472         2015-10-20 Convert miscellaneous function definitions to prototype style
26473         2015-10-20 Convert 113 more function definitions to prototype style
26474           (files with assertions)
26475         2015-06-12 Fix getlogin_r namespace (bug 18527).
26476         2014-02-10 Use glibc_likely instead __builtin_expect.
26477         2013-10-20 When glob pattern contains a trailing slash match only
26478           directories. Fixes bug 10278.
26479         2013-09-04 glob: silence -Wattribute warnings
26480         2013-06-07 Avoid use of "register" as optimization hint.
26481         2012-09-25 Use size_t instead of int for internal variables in glob
26482           (bug 14621)
26483         2011-07-20 Check for overflows in expressions
26484         2011-05-28 Remove unused variable
26485         2011-05-22 Add a few more alloca size checks
26486         2010-03-27 Whitespace fixes
26487         2010-03-27 Fix one more issue with the glob patch
26488         2010-03-24 Fix glob with empty pattern
26489         2008-05-27 Remove useless more "if" tests before "free"
26490         * modules/glob (Depends-on): Add stdint.
26492 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26494         mktime: port to stricter signed overflow checking
26495         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
26496         (long_int): Require width for INT_MAX * 3 * (seconds per year),
26497         instead of merely for INT_MAX * 2.  In practice platforms that
26498         do the latter also do the former.
26499         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
26500         (shr): New static function, replacing SHR.  All uses changed.
26501         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
26502         and TIME_T_MAX.  All uses changed.
26503         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
26504         Use long_int, not time_t.
26505         (long_int_avg): New static function, replacing time_t_avg.
26506         All uses changed.  Round toward positive infinity, as that
26507         generates slightly better code.
26508         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
26509         by INT_ADD_WRAPV.
26510         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
26511         (convert_time): New static function.
26512         (ranged_convert): Use it
26513         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
26514         Use simpler test for loop exit.
26515         (__mktime_internal): Store negative of guessed offset, to simplify
26516         overflow checking.  Remove no-longer-needed test for small time_t
26517         overflows.
26519         mktime: speed up DEBUG_MKTIME benchmarks
26520         Call tzset just once, at the start, rather than for every test
26521         case.  This lets us measure the CPU cost of mktime as opposed to
26522         that of tzset.  This is relevant when TZ is not set and glibc is
26523         being used.  This speeds up tests by a factor of 40 on my Fedora
26524         23 x86-64 platform.
26525         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
26526         to call tzset and as a sanity check.  Later on, use localtime_r
26527         instead of localtime.
26529         mktime: resurrect DEBUG_MKTIME testing
26530         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
26531         Include <string.h>, for strcmp.
26533         mktime: simplify DEBUG_MKTIME
26534         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
26535         Simplify later usage accordingly.
26537         Port mktime_internal offset to unsigned time_t
26538         This avoids some assumptions about wraparound arithmetic on
26539         signed integer overflow.
26540         * lib/mktime-internal.h (mktime_offset_t): New type.
26541         (mktime_internal): Use it in decl.
26542         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
26544         * lib/mktime.c (__mktime_internal, localtime_offset):
26545         * lib/timegm.c (timegm): Use it.
26546         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
26547         (gl_FUNC_MKTIME): Require it.
26549 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26551         xstrtol: prohibit monstrosities like "1bB"
26552         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
26553         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
26554         "B" only if the first suffix needs a base.
26555         * tests/test-xstrtol.sh: Test this.
26557 2016-04-21  Pádraig Brady  <P@draigBrady.com>
26559         xstrtod: reinstate setting of *result upon ERANGE
26560         * lib/xstrtod.c (XSTRTOD): The user may decide to use
26561         the returned limits upon ERANGE, so allow and document that.
26563 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
26565         xstrtod: modify *result only if no errors
26566         * lib/xstrtod.c (XSTRTOD).
26568 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
26570         btowc: document problems in C locale
26571         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
26572         with mbrtowc.  See: http://bugs.gnu.org/23269#32
26574 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26576         mktime: improve integer overflow checking
26577         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
26578         (WRAPV): Remove; no longer needed.
26579         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
26580         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
26581         Remove.  Use intprops.h defns instead.
26582         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
26583         Use bool for Boolean, for clarity.
26584         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
26585         detect integer overflow.
26586         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
26588         intprops: check two's complement assumption
26589         Suggested by Eric Blake in:
26590         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
26591         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
26592         short, int, long, and (if available) long long are two's complement.
26593         * modules/intprops (Depends-on): Add 'verify'.
26595         intprops, mktime, strtol: assume two's complement
26596         These macros were not portable to every conforming C11 ones'
26597         complement platform.  It's not worth the hassle of porting to some
26598         platforms that use ones' complement or signed magnitude, as such
26599         platforms are almost purely theoretical nowadays and porting even
26600         to some of them makes the code harder to review for little
26601         practical benefit.  Problem reported by Florian Weimer in:
26602         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
26603         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
26604         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
26605         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
26606         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
26607         (TYPE_SIGNED_MAGNITUDE):
26608         Remove.  All uses rewritten to assume two's complement, which is
26609         all we can reasonably test nowadays anyway.
26610         * top/maint.mk (_intprops_names): Remove the removed macros.
26612 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26614         stdint: port to strict C11 left shift
26615         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
26616         Pacify clang -Wshift-negative-value, which should be an issue only
26617         on clang setups where stdint.h does not conform to C11 or to C++11.
26618         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
26620 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
26622         mbrtowc: work around glibc bug#19932
26623         Fix mbrtowc so that it never returns -1 in the C locale,
26624         as this conflicts with a future version of POSIX
26625         http://austingroupbugs.net/view.php?id=663#c2738
26626         and causes problems with GNU grep: http://bugs.gnu.org/23234
26627         See glibc bug 19932:
26628         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
26629         * doc/posix-functions/mbrlen.texi (mbrlen):
26630         * doc/posix-functions/mbrtowc.texi (mbrtowc):
26631         Document the glibc bug.
26632         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
26633         Include hard-locale.h, locale.h.
26634         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
26635         if the bug is possible.
26636         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
26637         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
26638         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
26639         * modules/mbrtowc (Depends-on): Add hard-locale.
26640         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
26641         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
26642         * tests/test-mbrtowc5.sh: New file.
26644 2016-04-03  Pedro Alves  <palves@redhat.com>
26646         stdint: detect good enough pre-C++11 stdint.h in C++ mode
26647         When gnulib is configured in C++ mode for a system with a working C99
26648         implementation of stdint.h that predates C++11, gnulib ends up
26649         substituting stdint.h anyway.  This works on most targets, but on e.g.,
26650         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
26651         MinGW is LLP64.  Instead of trying to detect the right types, detect
26652         good-enough-pre-C++11 stdint.h and in such case define
26653         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
26654         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
26655         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
26656         conforms to C99.  If it does, check whether it hides symbols
26657         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
26658         does, define those macros in config.h.
26660 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26662         argp: merge changes from glibc
26663         Among other things, this should fix problems found by a Coverity
26664         scan and reported by Andrei Borzenkov:
26665         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
26666         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
26667         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
26668         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
26669         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
26670         * lib/argp.h:
26671         Merge changes from glibc.
26672         * tests/test-argp-2.sh: Adjust to match new behavior.
26674 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
26676         stddef: support configuring with g++
26677         Problem reported by Ángel González in:
26678         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
26679         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
26680         Do not define if _GCC_MAX_ALIGN_T is defined.
26682 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26684         test-framework-sh: minor cleanups
26685         * tests/init.sh (testdir_prefix_): Output a trailing newline,
26686         since strictly speaking POSIX requires this.
26687         (setup_): Do not use the variable 'fail', as that makes the
26688         trace output harder to read ('fail' is typically used by
26689         tests to mean the test failed).  Treat // portably.
26690         Check that new directory is not merely a sibling of the tmp dir.
26691         Avoid unnecessary invocation of tr.
26693         test-framework-sh: revert port to NetBSD 7.0
26694         It was a false alarm; I misinterpreted Assaf Gordon's report.
26695         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
26696         Restore.
26697         (test_dir_): Adjust to mktempd_ change.
26698         (mktempd_): Restore 2nd arg.  Use -t again.
26699         (base_template_, template_, nx_): Resurrect old code.
26701         Port better to Alpine Linux
26702         Its diff implementation does not support -c, but does support -U3.
26703         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
26704         * tests/init.sh (diff_opt_): New var.
26705         (compare_): Prefer diff -U3 to diff -c to plain diff.
26707 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
26709         test-framework-sh: port to NetBSD 7.0
26710         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
26711         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
26712         Remove.  All uses removed.
26713         (test_dir_): Adjust to mktempd_ change.
26714         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
26715         (base_template_, template_, nx_): Simplify by hardcoding.
26717 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26719         gitlog-to-changelog: suppress ignored chatter
26720         * build-aux/gitlog-to-changelog: Do not warn about skipping
26721         an SHA if it would have been ignored anyway.
26723 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
26725         setlocale: add "sv" to Windows language table
26726         * lib/setlocale.c (language_table) [W32]: Add "sv".
26727         Reported in <https://savannah.gnu.org/bugs/?44588>.
26729 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
26731         sys_select: port to new Cygwin
26732         Problem reported by Ken Brown in:
26733         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
26734         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
26735         diagnostics.
26737 2016-03-17  Jim Meyering  <meyering@fb.com>
26739         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
26740         * tests/test-userspec.c (main): Remove unnecessary braces and fix
26741         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
26742           test-userspec.c:176:9: error: statement is indented as if it were \
26743             guarded by... [-Werror=misleading-indentation]
26744                    {
26745                    ^
26746           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
26747                  if (!diag && !T[i].result)
26748                  ^~
26750 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26752         time_rz: port to clang -Wunused-const-variable
26753         * lib/time_rz.c (TZ): Remove.  All uses removed.
26755         std-gnu11: improve clang support
26756         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
26757         2016-03-15 Also try clang
26758         2016-03-15 Port C11 and C++11 testing to clang
26760         select: port more to Intel 2016.1.150 compiler
26761         Problem reported by Balázs Hajgató in:
26762         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
26763         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
26765 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
26767         select: try to port to 2016.1.150 compiler
26768         Problem reported by Balázs Hajgató in:
26769         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
26770         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
26771         POSIX specifies 'restrict'.
26773 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
26775         localename-tests: memory allocation fixes
26776         * tests/test-localename.c (test_locale_name)
26777         (test_locale_name_thread): Don't call freelocale on a locale
26778         that was the base of a successful newlocale, as that
26779         results in a double free.  Problem reported by Assaf Gordon.
26780         (test_locale_name_thread): Free saved names after use, to pacify
26781         gcc -fsanitize=address.
26783 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
26785         intprops: make .h file license match module
26786         * lib/intprops.h: Change the license wording to match glibc format.
26787         This is what is in modules/intprops anyway.  See:
26788         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
26790 2016-03-08  Eric Blake  <eblake@redhat.com>
26792         acl: fix missing return on Cygwin
26793         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
26794         fall off end of function. Fixes http://bugs.gnu.org/22949
26796 2016-03-05  Bruno Haible  <bruno@clisp.org>
26798         extern-inline: port to PGI CC
26799         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
26800         keyword 'inline'.
26801         Reported by Adam James Stewart in:
26802         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
26804 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26806         signbit: port back to pre-C++11 GCC
26807         * lib/math.in.h (signbit): Do previous change only if
26808         __cplusplus < 201103.  See Jonathan Wakely in:
26809         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
26811 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
26813         mountlist: recognize autofs-mounted remote file systems, too
26814         Originally reported at: https://bugzilla.redhat.com/1309247
26815         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
26816         "-hosts" because it is used by autofs to mount remote file systems.
26818 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26820         signbit: port to C++ with GCC 6
26821         * lib/math.in.h (signbit) [__cplusplus]:
26822         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
26823         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
26825         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
26827         regex: make it closer to libc
26828         Make Idx a signed type, rather than possibly unsigned.
26829         The unsignedness was not really buying us anything, since the code
26830         overflows for other reasons before getting to PTRDIFF_MAX.  Making
26831         it signed allows us to use -1 and -2 with abandon, like libc does,
26832         thus lessening the number of differences between gnulib and libc.
26833         Also, it should help avoid gratuitous warnings like the one
26834         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
26835         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
26838         regex: merge patches from libc
26840         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
26841         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
26842         Convert miscellaneous function definitions to prototype style.
26843         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
26844         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
26845         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
26846         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
26847         (re_search_internal):
26848         Convert to prototype-style function definition.
26849         Use internal_function for internal functions.
26851 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
26853         stdalign: port to older HP and IBM cc
26854         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
26855         C compilers, by checking their version numbers.  These version
26856         numbers appear in MariaDB and in Qt code that dates way back and
26857         that conditiionally uses the 'aligned' attribute.
26859 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26861         stdalign: port to clang 3.7.0
26862         Problem reported by Herbert J. Skuhra in:
26863         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
26864         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
26865         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
26866         https://llvm.org/bugs/show_bug.cgi?id=26547
26868 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
26870         readdir_r: now obsolescent
26871         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
26872         * lib/mountlist.c (read_file_system_list): Add a FIXME.
26874 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
26876         misc: port better to gcc -fsanitize=address
26877         Without these patches, ./configure CFLAGS='-fsanitize=address'
26878         would compute incorrect values.  This patch fixes some (but not all)
26879         test failures with recent glibc, with this configuration.
26880         * m4/acl.m4 (gl_ACL_GET_FILE):
26881         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
26882         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
26883         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
26884         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
26885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
26886         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
26887         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
26888         * m4/getline.m4 (gl_FUNC_GETLINE):
26889         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
26890         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
26891         * m4/regex.m4 (gl_REGEX):
26892         * m4/strndup.m4 (gl_FUNC_STRNDUP):
26893         * tests/test-calloc-gnu.c (main):
26894         * tests/test-duplocale.c (main):
26895         * tests/test-getgroups.c (main):
26896         * tests/test-getline.c (main):
26897         * tests/test-inttostr.c (main):
26898         * tests/test-localename.c (test_locale_name)
26899         (test_locale_name_thread, test_locale_name_environ)
26900         (test_locale_name_default):
26901         * tests/test-regex.c (main):
26902         * tests/test-setlocale1.c (main):
26903         * tests/test-stat.h (test_stat_func):
26904         Free heap-allocated storage before exiting.
26905         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
26906         Don't match *_foo symbols inserted by AddressSanitizer.
26907         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
26909 2016-02-02  Jim Meyering  <meyering@fb.com>
26911         verify-tests: also remove stray test-verify.Tpo
26912         * modules/verify-tests (Makefile.am): Arrange for "make clean"
26913         to remove the test-verify.Tpo file that is left behind by
26914         the automake-generated rule upon compilation failure.
26915         Otherwise, that .Tpo file would cause a failed "make distcheck"
26916         at least for grep.
26918 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
26920         std-gnu11: new module
26921         This makes it easier for applications to prefer C11 and C++11
26922         to older variants, when compiling C and C++ code.
26923         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
26924         a nontrivial chunk of GPLed Autoconf source code.
26925         * COPYING: Mention the m4/*.m4 copyright situation.
26926         * MODULES.html.sh (std-gnu11): New module.
26927         * m4/std-gnu11.m4, modules/std-gnu11: New files.
26929 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26931         get-permissions, strftime: fix grammar in comments
26932         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
26933         some grammar fixes Alan Mackenzie made to GNU Emacs.
26935 2016-01-25  Daiki Ueno  <ueno@gnu.org>
26937         gettext: mark as obsolete
26938         Suggested by Paul Eggert in:
26939         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
26940         * modules/gettext (Status): Mark as obsolete.
26941         (Notice): Suggest to use 'gettext-h' instead.
26942         * modules/gettext-h (Description): Suggest GNU gettext, instead of
26943         the 'gettext' module.
26945 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
26947         gnulib-tool: don't give up on ln -s so easily
26948         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
26949         because an earlier one failed.  The targets could be on different
26950         file systems.  Problem reported by KO Myung-Hun in:
26951         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
26953         closedir: fix OS/2-related typos
26954         Problem reported by KO Myung-Hun in:
26955         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
26956         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
26957         in the last couple of changes.
26959 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
26961         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
26962         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
26963         copying a directory.
26965 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
26967         regex: treat [x] as x if x is a unibyte encoding error
26968         Problem reported by Aharon Robbins in:
26969         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
26970         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
26971         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
26973         closedir, dirfd, opendir: port to OpenSolaris 5.10
26974         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
26975         * m4/dirfd.m4 (gl_FUNC_DIRFD):
26976         * m4/opendir.m4 (gl_FUNC_OPENDIR):
26977         Don't use ${word##pat} substitution, as it doesn't work in
26978         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
26979         http://bugs.gnu.org/22443#11
26981 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26983         bootstrap: use American spelling
26984         * build-aux/bootstrap: Honor American spelling.
26986 2016-01-22  Karl Berry  <karl@freefriends.org>
26988         * doc/posix-functions/localtime.texi,
26989         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
26991 2016-01-21  Bruno Haible  <bruno@clisp.org>
26993         hash-pjw-bare: fix comment
26994         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
26996         wcwidth: Replace also on OpenBSD 5.8
26997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
26998         * doc/posix-functions/wcwidth.texi: Update.
27000 2016-01-20  Pádraig Brady  <P@draigBrady.com>
27002         gnu-web-doc-update: fix addition of new files
27003         If there were already added (emnpty) dirs,
27004         then cvs aborts the add with the message:
27005           cvs [add aborted]: there is a version in <./dirname> already
27006         * build-aux/gnu-web-doc-update: Add directories separately
27007         to the addition of files, to avoid the above issue
27008         impacting the addition of files.
27010 2016-01-19  Daiki Ueno  <ueno@gnu.org>
27012         utimens-tests: avoid pulling gettext .m4 files
27013         Although this is not the right fix to the original problem:
27014         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
27015         it makes it possible again for consumer projects to use arbitrary
27016         version of gettext, through the steps described at:
27017         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
27018         See here for details:
27019         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
27020         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
27021         'gettext'.
27022         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
27023         'gettext'.
27025 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27027         regex: pacify static checkers
27028         Problem and draft fix reported by Aharon Robbins in:
27029         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27030         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
27031         Clear memory to pacify static checkers.
27033         regex: fix [ diagnostic
27034         Problem and fix reported by Aharon Robbins in:
27035         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27036         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
27038         regex: fix memory leaks
27039         Problem and draft fix reported by Aharon Robbins in:
27040         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27041         * lib/regcomp.c (build_range_exp, build_charclass_op)
27042         * lib/regex_internal.c (re_dfa_add_node):
27043         Fix memory leak on failure.
27045 2016-01-18  Pádraig Brady  <P@draigBrady.com>
27047         fts: don't unconditionally use leaf optimization for NFS
27048         NFS st_nlink are not accurate on all implementations,
27049         leading to aborts() if that assumption is made.
27050         See <https://bugzilla.redhat.com/1299169>
27051         * lib/fts.c (leaf_optimization_applies): Remove NFS from
27052         the white list, and document the issue.
27054 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27055             KO Myung-Hun  <komh@chollian.net>
27057         gnulib-tool: don't assume ln -s works
27058         * gnulib-tool (func_ln_s): New function.
27059         (func_ln): Use it.
27061 2016-01-15  KO Myung-Hun  <komh@chollian.net>
27063         utimes: detect utimes() correctly on OS/2 kLIBC
27064         utimes() of OS/2 kLIBC has some limitations.
27065         1. OS/2 itself supports a file date since 1980 year in local time.
27066         2. OS/2 itself supports only even seconds for a file time.
27067         3. utimes() of OS/2 kLIBC does not work on an opened file.
27068         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
27069         * doc/posix-functions/utimes.texi: Document the above limitations of
27070         utimes() on OS/2 kLIBC.
27072 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27073             KO Myung-Hun  <komh@chollian.net>
27075         openat_proc_name: port to OS/2 kLIBC
27076         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
27077         instead of /proc/self/fd.
27078         * lib/openat-proc.c (openat_proc_name):
27079         Don't assume file name length is less than INT_MAX.
27080         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
27082 2016-01-14  KO Myung-Hun  <komh@chollian.net>
27084         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
27085         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
27086         definitions of intptr_t and uintptr_t (which use int and unsigned)
27087         to avoid clashes with declarations of system functions like sbrk.
27088         * lib/stdint.in.h (intptr_t, uintptr_t): Check
27089         _INTPTR_T_DECLARED before defining them.
27091         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
27092         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
27093         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
27094         Declare on kLIBC.
27095         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
27096         fd associated with dirp.
27097         (_gl_register_dirp_fd): New. Register fd associated with dirp to
27098         dirp_fd_list.
27099         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
27100         (dirfd): Implemented for kLIBC.
27101         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
27102         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
27103         succeeds.
27104         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
27105         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27106         (REPLACE_DIRFD): Define to 1 if replaced.
27107         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
27108         * modules/closedir (Depends-on): Add dirfd.
27109         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
27110         condition.
27111         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
27112         * modules/opendir (Depends-on): Add dirfd.
27114         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
27115         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
27116         * lib/dup.c (dup_nothrow): New.
27117         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
27118         (klibc_dup2): New.
27119         * lib/fcntl.c (klibc_fcntl): New.
27120         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
27121         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
27122         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
27123         fd.
27125         pipe_filter_ii_execute: port to OS/2 kLIBC
27126         Pipes on kLIBC do not support O_NONBLOCK like Win32.
27127         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
27128         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
27129         Reuse Win32 code on OS/2 kLIBC.
27130         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
27131         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
27133         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
27134         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
27135         static inline function.  The implementation of wcwidth in wcwidth.c
27136         causes a "conflicting types" error.
27137         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
27139         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
27140         spawn() on OS/2 kLIBC is not silly like one on Windows
27141         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
27142         empty string on OS/2 kLIBC.
27144         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
27145         On OS/2 kLIBC, select() works only on sockets.
27146         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
27148         binary-io: don't put fd in binary mode if it is a console on EMX
27149         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
27150         a console on EMX.
27152 2016-01-15  Pádraig Brady  <P@draigBrady.com>
27154         doc: mention unfixed issues with unsupported localtime() values
27155         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
27156         returns nonsense for localtime(2^56).
27157         * doc/posix-functions/localtime_r.texi: Likewise.
27159 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27161         doc: mention setlocale() issues on OpenBSD
27162         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
27163         never fails, and the need to check categories individually.
27165 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27167         sig2str: list all signals on FreeBSD >= 7
27168         FreeBSD >= 7 is contravening POSIX by not defining NSIG
27169         to the maximal statically defined signal value.
27170         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
27171         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
27172         where available, even when NSIG is defined.
27174 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27176         acl-permissions: port to USE_ACL==0 platforms
27177         I ran into this problem when building bleeding-edge GNU Emacs
27178         with gcc -fsanitize=address on Fedora 23.  On this platform
27179         the ACL library does not pass the 'configure' test and Emacs
27180         then does not build due in part to what appear to be typos in the
27181         ACL part of Gnulib.
27182         * lib/acl-internal.c (free_permission_context):
27183         * lib/acl-internal.h (struct permission_context):
27184         Test whether USE_ACL is nonzero, not whether it is defined.
27186 2016-01-12  Martin Sebor  <msebor@redhat.com>
27188         mktime: rename macro to avoid glibc clash
27189         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
27190         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
27192 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27194         Port "$@" to OpenIndiana ksh93
27195         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
27196         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
27197         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
27198         bug long-dead shells, so remove the workaround.
27199         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
27200         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27201         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
27202         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
27203         Use "$@" instead of ${1+"$@"}.
27205         Port Universal Time settings to strict POSIX
27206         * build-aux/announce-gen, build-aux/bootstrap:
27207         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
27208         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27209         * build-aux/gnupload, build-aux/mkinstalldirs:
27210         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
27211         * build-aux/update-copyright, build-aux/useless-if-before-free:
27212         * build-aux/vc-list-files, tests/test-strftime.c:
27213         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
27214         but POSIX says the behavior of TZ="UTC" is undefined.
27216 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
27218         msvc-inval: fix problem with unset shell var
27219         Problem reported by Karl Berry in:
27220         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
27221         * modules/msvc-inval (Depends-on):
27222         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
27223         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
27225 2016-01-01  Pádraig Brady  <P@draigBrady.com>
27227         tests: for compare_(), use cmp -s where available
27228         * tests/init.sh (compare_): Only fall back to cmp without
27229         the POSIX defined -s option, where this is not available.
27231 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27233         version-etc: new year
27234         * build-aux/gendocs.sh (version):
27235         * doc/gendocs_template:
27236         * doc/gendocs_template_min:
27237         * doc/gnulib.texi:
27238         * lib/version-etc.c (COPYRIGHT_YEAR):
27239         Update copyright dates by hand in templates and the like.
27240         * all files: Run 'make update-copyright'.
27242 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
27244         human: fix output buffer overrun by 1
27245         * lib/human.c (human_readable): Fix off-by-one typo in buffer
27246         calculation that could lead to a one-byte buffer overrun.
27248 2015-12-28  Daiki Ueno  <ueno@gnu.org>
27250         maint: fix operator precedence in mbrtowc test
27251         This is a fix for test breakage introduced by commit 45228d96; the
27252         equality expression must be parenthesized when negated with '!',
27253         otherwise we always get:
27255           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
27257         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
27258         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
27260 2015-12-23  James Youngman  <jay@gnu.org>
27262         regexprops-generic: update from regex.h
27263         * doc/regexprops-generic.texi: update by running the regexprops binary
27264         from findutils (the command line is 'regexprops "Regular Expressions"
27265         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
27266         gnulib with GNU grep had made this document out-of-date.
27268 2015-12-23  Pádraig Brady  <P@draigBrady.com>
27270         strftime-tests: avoid false failure on OS X
27271         * tests/test-strftime.c (struct localtime_rz_test): Add an
27272         ahistorical member which is used to warn rather than fail
27273         when tm_isdst isn't set for such entries.  This is the case for
27274         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
27276 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
27278         fts: ensure leaf optimization is used for NFS
27279         NFS provides usable dirent.d_type but not necessarily for all entries
27280         of large directories.  See <https://bugzilla.redhat.com/1252549>
27281         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
27283 2015-12-20  Pádraig Brady  <P@draigBrady.com>
27285         fts: enable leaf optimization for XFS
27286         XFS provides usable dirent.d_type only for DT_DIR,
27287         but the noleaf optimization still applies.
27288         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
27290 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
27292         intprops: comment fix
27293         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
27294         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
27296         intprops-test: work around GCC bug 68971
27297         Problem reported by Pádraig Brady in:
27298         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
27299         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
27300         (main): Add a case that better tests 64-bit long in this area.
27302 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
27304         gnulib-tool: allow multiple --local-dir usage
27305         * gnulib-tool: Use --local-dir to construct compound
27306         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
27307         PATH_SEPARATOR early.
27308         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
27309         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
27310         func_determine_path_separator because that needs to be detected
27311         earlier now.
27312         (func_determine_path_separator): New function.
27313         (func_path_foreach, func_path_foreach_inner): New functions.
27314         (func_path_prepend, func_path_append): Likewise.
27315         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
27316         (func_lookup_file, func_all_modules): Use new functions to work
27317         with local_gnulib_path.
27318         (func_modules_in_dir, func_exists_module): New callbacks for
27319         func_path_foreach.
27320         (func_exists_module, func_get_tests_module): Likewise.
27321         (func_is_local_file, func_should_symlink): New helper methods.
27322         (func_add_file, func_update_file): Use new func_should_symlink
27323         instead, DRY.
27324         (func_reconstruct_cached_local_gnulib_path): New helper.
27325         (func_reconstruct_cached_dir): New callback.
27326         (func_import): The cached_local_gnulib_dir renamed to
27327         cached_local_gnulib_path similarly to local_gnulib_dir.
27328         Use new func_reconstruct_cached_local_gnulib_path.
27329         (func_count_relative_local_gnulib_path): New sub-method.
27330         (func_create_testdir): Use func_should_symlink, DRY.
27331         (func_create_megatestdir): Use new functions to work with
27332         local_gnulib_path correctly.
27333         (func_append_local_dir): New helper.
27335 2015-12-08  Pádraig Brady  <P@draigBrady.com>
27337         fix freadptr to work with ungetc on all uClibc configs
27338         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
27339         where GNU coreutils cut(1) generates invalid output on uClibc
27340         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
27341         * lib/freadptr.c (freadptr): Return NULL if there are
27342         ungotten chars.  In this case freadseek() will iterate
27343         again to process the ungotten character.
27345 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
27347         xalloc-oversized: improve performance with GCC 5
27348         * lib/xalloc-oversized.h (xalloc_oversized):
27349         Improve performance with GCC 5 by using __builtin_mul_overflow.
27351 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27353         intprops: new public macro EXPR_SIGNED
27354         Emacs can use this macro, so make it public.
27355         * doc/intprops.texi (Arithmetic Type Properties): Rename from
27356         'Integer Type Determination', since some of these macros apply
27357         to non-integer types.  Clarify what kinds of constant expressions
27358         these macros return.  Say when the arguments can be non-integers.
27359         Mention newly published macro EXPR_SIGNED.
27360         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
27361         make it public.  All uses changed.
27363         intprops: fix typo in clang port
27364         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
27365         '__builtin_add_overflow' that is not caught by compiler.
27367 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27369         test-timespec: fix typo in previous change
27370         * tests/test-timespec.c (main): Fix typo that reduced test quality.
27372         timespec-sub: fix overflow bug; add tests
27373         * lib/timespec-add.c (timespec_add):
27374         * lib/timespec-sub.c (timespec_sub):
27375         Work even if time_t is narrower than int (a theoretical
27376         possibility).  Redo code for a bit more clarity.
27377         * lib/timespec-sub.c (timespec_sub):
27378         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
27379         * modules/timespec-tests, tests/test-timespec.c: New files.
27381         intprops-test: suppress -Woverlength-strings
27382         Problem reported by Pádraig Brady in:
27383         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
27384         It is not worth the hassle to port this test to compilers that
27385         cannot handle long strings in diagnostics.
27386         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
27388 2015-11-03  Pádraig Brady  <P@draigBrady.com>
27390         quotearg: add quotearg_n_style_colon()
27391         This quotes with default options of the specified style,
27392         but with quoting enabled for instances of ':'.
27393         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
27394         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
27396 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27398         intprops: revise _WRAPV macros, revert _OVERFLOW
27399         The incompatible changes to the _OVERFLOW macros were too much of
27400         a hassle in practice, so revert them.  Instead, change the new
27401         _WRAPV macros to make them closer in behavior to GCC 5's new
27402         builtin_add_overflow etc. functions.  No other software was using
27403         these newly-added macros yet, so this should be OK.
27404         * NEWS: Revert previous change, since the incompatible change
27405         has been reverted, and nobody used the incompatible version.
27406         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
27407         Document revised behavior.
27408         (Integer Range Overflow): Adjust example to match above revisions.
27409         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
27410         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
27411         these can be used in integer constant expressions again.
27412         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
27413         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
27414         needed.
27415         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
27416         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
27417         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
27418         Remove, as they did not seem that useful.
27419         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
27420         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
27421         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
27422         Support new semantics.
27423         (__has_builtin): New macro, if not alreay defined.
27424         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
27425         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
27426         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
27427         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
27428         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
27429         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
27430         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
27431         New macros.
27432         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
27434 2015-11-03  Jim Meyering  <meyering@fb.com>
27436         intprops: add parentheses for when OP has precedence lower than "-"
27437         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
27438         "a OP b" must be parenthesized for when OP is like "<<", which has
27439         lower precedence than the following "-". Reported by Pádraig Brady.
27441 2015-11-03  Pádraig Brady  <P@draigBrady.com>
27443         quotearg: constify get_quoting_style parameters
27444         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
27445         * lib/quotearg.c (get_quoting_style): Likewise.
27447 2015-11-02  Pádraig Brady  <P@draigBrady.com>
27449         quotearg: add support for $'' shell escaping
27450         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
27451         items and descriptions.
27452         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
27453         above types by quoting like "shell", but using $'...' syntax
27454         for non printable characters, which should provide unambiguous
27455         printable output for any input.
27456         * tests/test-quotearg-simple.c: Update accordingly.
27458 2015-11-02  Pádraig Brady  <P@draigBrady.com>
27460         maint: use a more standard return from mbrtowc test
27461         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
27462         from the test program as this is non standard and often
27463         indicates an unhandled case in the test program.
27464         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
27466 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27468         intprops: add WRAPV and const flavors for GCC 5
27469         If available, use GCC 5's builtin functions for efficient integer
27470         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
27471         and safely compute the low-order bits of the correct answer.
27472         A downside of these efficient functions is that they cannot be
27473         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
27474         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
27475         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
27476         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
27477         Document the changes.
27478         (Wraparound Arithmetic): New section.
27479         (Integer Range Overflow):
27480         Put this subsection last, since it's least useful.
27481         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
27482         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
27483         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
27484         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
27485         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
27486         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
27487         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
27488         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
27489         New macros.
27490         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
27491         Generate calls to GCC builtins if available, for speed.
27492         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
27493         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
27494         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
27495         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
27496         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
27497         (CHECK_QUOTIENT, CHECK_REMAINDER):
27498         Test WRAPV and CONST flavors (when available) too.
27500 2015-10-30  Pádraig Brady  <P@draigBrady.com>
27502         doc: use extended timezone format in iso-8601 example
27503         * doc/parse-datetime.texi: The standard states that extended format
27504         is to be used consistently throughout.
27505         Note that lib/parse-datetime.y can handle either tz format.
27507 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27509         stdalign: port to Sun C 5.9
27510         * doc/posix-headers/stdalign.texi: Document this.
27511         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
27512         __attribute__ ((__aligned__ (...))).
27514 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27516         time_rz: fix comment about tzalloc
27517         * lib/time_rz.c (tzalloc): Fix comment.
27519 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27521         stdalign: work around pre-4.9 GCC x86 bug
27522         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
27523         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
27524         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
27526 2015-10-18  Pádraig Brady  <P@draigBrady.com>
27528         maint.mk: sc_tight_scope: remove extraneous expressions
27529         * top/maint.mk (tight_scope): This is not really required since
27530         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
27531         that matches all nm entries.  But it does remove extraneous entries
27532         that may be confusing or cause issue in future maintenance.
27534 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27536         time_rz: return NULL if localtime_r fails
27537         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
27538         while still attempting to pacify bleeding-edge GCC.
27540         fts: port to C11 alignof
27541         * doc/posix-headers/stdalign.texi (stdalign.h):
27542         Document the C11 restriction.
27543         * lib/fts.c: Include stddef.h, for max_align_t.
27544         (fts_alloc): Align using max_align_t, not FTSENT.
27545         * modules/fts (Depends-on): Add stddef.
27547 2015-10-18  Jim Meyering  <meyering@fb.com>
27549         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
27550         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
27551         would see this:
27553         lib/time_rz.c: In function 'localtime_rz':
27554         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
27555           [-Werror=nonnull]
27556                    if (tm && !save_abbr (tz, tm))
27557                        ^
27559         That was complaining about "tm" because it is a parameter that was
27560         declared with the __nonnull__ attribute.
27561         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
27562         result of localtime_r.
27564 2015-10-17  Jim Meyering  <meyering@fb.com>
27566         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
27567         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
27568         name-extraction regexp mistakenly used \S+, and would mistakenly
27569         extract "*F" from "extern int *F()" rather than the desired "F".
27570         Use \w+ instead.
27572 2015-10-17  Jim Meyering  <meyering@fb.com>
27574         maint.mk: sc_tight_scope: factor and support OS X
27575         * top/maint.mk (_gl_tight_scope): Address three issues:
27576         - factor out four instances of code that wraps a string in "^...$"
27577         - allow nm-reported symbol names to have an optional leading "_"
27578         - add "main" to the list of ignored variable names, because on os x,
27579         "main" has nm-reported type "S" in the variable-checking section.
27581 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
27583         safe-alloc-tests: fix typo in license header
27584         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
27586 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
27588         copy-file: fix mem leak in error case
27589         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
27590         upon error opening or performing I/O to the src and dest files.
27592 2015-10-15  Mike Frysinger  <vapier@chromium.org>
27594         localename: control langinfo.h inclusion
27595         This header is only used to work around buggy behavior in old
27596         versions of glibc, so do not include it all the time.  Otherwise
27597         we get build failures on systems that do not provide langinfo.h.
27598         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
27599         in the source later on.
27600         The patch was originally submitted to gettext as:
27601         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
27603 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27605         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
27606         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
27607         * lib/u64.c, lib/unistd.c:
27608         Append 'typedef int dummy;', to pacify compilers that are picky
27609         about empty translation units.
27611 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
27613         accept4-tests: fix to avoid non portable flags
27614         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
27615         as they are the only documented ones, and passing others may trigger
27616         EINVAL (seen on FreeBSD 10.1-RELEASE).
27617         * doc/glibc-functions/accept4.texi: Mention that we don't provide
27618         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
27620 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
27622         gnulib-tool: fix tests of 'extensions' module
27623         This complements f8fe25fab60e3c687a124 commit.
27624         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
27625         emitting of initial gl_EARLY macros.
27626         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
27627         replaced with func_emit_pre_early_macros call.
27629 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27631         unicase/locale-language: fix typo in utf-8 cookie
27632         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
27633         Problem reported by Zbigniew Jędrzejewski-Szmek.
27635 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27637         xalloc: do not worry about GCC 5 warning on 32 bit
27638         * lib/xalloc.h: Revert previous change.
27639         I found a better way to fix this in coreutils.
27641 2015-10-02  Pádraig Brady  <P@draigBrady.com>
27643         xalloc: avoid GCC 5.1 warning on 32 bit
27644         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
27645         xalloc_oversized(), which was seen to give this warning
27646         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
27647         when simplifying conditional".
27649 2015-10-02  Daiki Ueno  <ueno@gnu.org>
27651         uniname/uniname-tests: avoid compiler warnings
27652         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
27653         unused local variables.
27654         (test_alias_lookup): Fix alias name display in failure cases.
27656 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27658         c-ctype: do not worry about EBCDIC + char signed
27659         Drop support for EBCDIC with char being signed, as this breaks too
27660         many programs.  Problem reported by Ben Pfaff in:
27661         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
27662         * lib/c-ctype.h: Verify that we are not using EBCDIC with
27663         char being signed.
27664         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
27665         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
27666         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
27667         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
27668         * tests/test-c-ctype.c (test_all):
27669         Simplify by assuming standard char values cannot be negative.
27670         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
27672 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
27674         c-ctype: port better to z/OS EBCDIC
27675         Problems reported by Daniel Richard G. in:
27676         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
27677         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
27678         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
27679         (_C_CTYPE_OTHER_CNTRL): New macro.
27680         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
27681         from SCHAR_MIN, as the functions are defined only from values
27682         promoted from char or from unsigned char, not necessarily from
27683         signed char.
27685 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
27687         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
27689         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
27690         and ARFLAGS variables.  Doing this unconditionally could break
27691         later Automake's AM_PROG_AR invocation (at least it's
27692         AC_CHECK_TOOLS call to detect correct 'ar' binary).
27694         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
27695         Amsterdam Compiler Kit, so make the previous code to have effects
27696         only on ACK, and rather automatically call the Automake's
27697         AM_PROG_AR as soon as possible to decide other cases.
27699         References:
27700         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
27702         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
27703         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
27704         is possible, keep setting AR/ARFLAGS to reasonable defaults.
27705         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
27706         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
27707         'extensions' module is used.
27708         * modules/extensions (configure.ac-early): Remove as this snippet
27709         is added to gnulib-comp.m4 earlier anyway.
27711 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
27713         sockets: MS Windows initalization fixes
27714         Problem reported by Test User in:
27715         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
27716         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
27717         Correct the endianness.
27718         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
27719         number mismatch, not just on <.  Cleanup before any such failure.
27721 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
27723         gc: fix detection of installed libgcrypt version
27724         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
27725         at least as recent as 1.4.4.  The previously used macro is not
27726         available now, since modules were removed in version 1.6.0.
27728 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
27730         c-ctype: rewrite to use inline functions
27731         This simplifies maintenance, since it makes for just one
27732         implementation of each function, letting the compiler have the fun
27733         of optimization.  In practice this works well nowadays with GCC.
27734         E.g., c_isascii might need only three instructions even though the
27735         source code lists every ASCII character individually in a large
27736         switch statement.
27737         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
27738         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
27739         * NEWS: Document the API change.
27740         * lib/c-ctype.c: Drastically simplify, since this now just expands
27741         inline functions.
27742         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27743         (C_CTYPE_INLINE): New macro.
27744         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
27745         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
27746         Verify that either ASCII or EBCDIC is being used.
27747         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
27748         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
27749         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
27750         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
27751         New private macros.
27752         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
27753         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
27754         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
27755         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
27756         (c_tolower, c_toupper): When converting, return the unsigned char,
27757         as that is what z/OS does.
27758         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
27759         of some c-ctype.h macros.
27760         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
27761         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
27762         c_tolower promotion to be compatible with z/OS.
27764 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
27766         gitlog-to-changelog: trim only trailing whitespaces
27767         This is fix for --format regression introduced by commit
27768         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
27769         doubled %n string) had no effect anymore.  This format
27770         specification has been used e.g. by GNU paxuitils (commit
27771         edfd8bcc3).
27773         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
27774         newlines in commmit messages.
27776 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27778         Test that c_iscntrl agrees with iscntrl, etc.
27779         Suggested by Daniel Richard G. in:
27780         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
27781         * modules/c-ctype-tests (Depends-on): Add ctype.
27782         * tests/test-c-ctype.c: Include <ctype.h>.
27783         (NCHARS): New constant.
27784         (test_agree_with_C_locale): New function.
27785         (main): Use it.
27786         (test_all): Use named constants.
27788         c-ctype: improve c_isascii testing
27789         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
27790         Add a test to count the number of ASCII characters.
27792 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27794         savewd: remove SAVEWD_CHDIR_READABLE
27795         It was problematic in the light of file systems that ignore umask.
27796         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
27797         * NEWS: Document this.
27798         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
27799         successful, -1 (setting errno) on failure, rather than something
27800         more complicated than that.
27801         * lib/mkdir-p.c (make_dir_parents):
27802         Do not use SAVEWD_CHDIR_READABLE.
27803         * lib/savewd.c (savewd_chdir):
27804         Remove support for SAVEWD_CHDIR_READABLE.
27805         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
27807         c-ctype: port better to EBCDIC
27808         Problems reported by Daniel Richard G. in
27809         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
27810         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
27811         Include "verify.h".
27812         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
27813         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
27814         Define as enum constants with value false, if not defined, so that
27815         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
27816         code more portable, as both branches of the 'if' are compiled on
27817         all platforms.
27818         (C_CTYPE_EBCDIC): New constant.
27819         Verify that the character set is either ASCII or EBCDIC.
27820         (to_char): New static function.
27821         (c_isascii, c_iscntrl):
27822         Assume standard control-character assignments for EBCDIC.
27823         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
27824         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
27825         Rewrite to use 'if' instead of 'ifdef'.
27826         Use to_char if non-ASCII.  Prefer <= to >=.
27827         Prefer true and false to 1 and 0, for booleans.
27828         (c_iscntrl): Use 'if', not 'ifdef'.
27829         * modules/c-ctype (Depends-on): Add verify.
27830         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
27831         (to_char): New function.
27832         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
27834 2015-09-21  Pádraig Brady  <P@draigBrady.com>
27836         nanosleep: fix return code for interrupted replacement
27837         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
27838         that we return -1 in the case the call is interrupted by a signal,
27839         rather than the current value of 1.
27840         Diagnosed and tested by Daniel Richard G.
27842 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
27844         Diagnose ERE '()|\1'
27845         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
27846         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
27847         track of the set of previously-completed subexpressions available
27848         before the first alternative, and restore this set just before
27849         parsing each subsequent alternative.  This lets us diagnose the
27850         invalid back-reference in the ERE '()|\1'.
27852         regex: merge patches from libc
27854         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
27855         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
27856         * lib/regex_internal.h:
27857         Include <libc-lock.h> instead of <bits/libc-lock.h>.
27859         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
27860         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
27861         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
27862         wcscoll.
27863         * lib/regexec.c (check_node_accept_bytes): Likewise.
27865         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
27866         Fix regex wcrtomb namespace (bug 18496).
27867         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
27868         instead of wcrtomb.
27870         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
27871         Fix regex wctype namespace (bug 18495).
27872         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
27873         instead of towlower.
27874         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
27875         instead of iswlower.  Call __towupper instead of towupper.
27876         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
27877         instead of iswalnum.
27879         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
27880         * lib/regcomp.c (parse_bracket_exp): Initialize type to
27881         COLL_SYM in a couple of places to avoid uninitialized variable
27882         wanings on tilegx gcc 4.8.2.
27884         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27885         * lib/regex_internal.h: Remove NOT_IN_libc.
27887         2014-11-17  Andreas Schwab  <schwab@suse.de>
27888         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
27890         2014-09-11  Roland McGrath  <roland@hack.frob.com>
27891         Move findidx nested functions to top-level.
27892         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
27893         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27894         Pass new arguments to findidx.
27895         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27896         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27897         Don't #include it inside the function.  Pass new arguments to findidx.
27898         * lib/regex_internal.h:
27899         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27900         (re_string_elem_size_at): Don't #include it inside the function.
27901         Pass new arguments to findidx.
27903         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27904         Check if DEBUG is defined in regex_internal.c
27905         * lib/regex_internal.c: Check if DEBUG is defined and is set.
27907 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
27909         ceill: detect buggy OpenBSD implementation
27910         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
27911         which returns zero for small values.  Discussed here:
27912         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
27914 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
27916         mountlist: add me_mntroot field on Linux machines
27917         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
27918         mount_entry so Linux machines based on /proc/self/mountinfo can
27919         distinguish between bind mounts and original mounts.  In reality bind
27920         mounts aren't treated differently than mountroot=/ mounts by the
27921         kernel, but the user often wants these bind mounts distinguished.
27922         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
27923         More details at https://pad.lv/1432871
27925 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
27927         doc: Describe to use multiple instances of gnulib
27928         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
27929         instances of gnulib with different modules can be used, for example one
27930         for a lib and another one for associated tools.
27932 2015-09-01  Pádraig Brady  <P@draigBrady.com>
27934         base32: mark function as __attribute__ const
27935         * lib/base32.h (isbase32): Mark __attribute__ const as
27936         suggested by GCC, and consistent with the base64 module.
27938 2015-08-20  Daiki Ueno  <ueno@gnu.org>
27940         gnulib-tool: don't transform binary files with sed
27941         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
27942         .mo and .class files.
27943         Reported by Denis Denisov.
27945 2015-08-10  Daiki Ueno  <ueno@gnu.org>
27947         gperf: respect silent rules
27948         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
27949         V_GPERF_0 for silent rules.
27950         * modules/iconv_open (Makefile.am): Use V_GPERF.
27951         * modules/unicase/locale-language (Makefile.am): Likewise.
27952         * modules/unicase/special-casing (Makefile.am): Likewise.
27953         * modules/unictype/category-byname (Makefile.am): Likewise.
27954         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
27955         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
27956         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
27957         * modules/unictype/property-byname (Makefile.am): Likewise.
27958         * modules/unictype/scripts (Makefile.am): Likewise.
27959         * modules/uninorm/composition (Makefile.am): Likewise.
27961 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27963         Improve port of stdalign to C++11
27964         Problem reported by Sundaram in:
27965         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
27966         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
27967         (__alignas_is_defined): Define if C++11 or newer.
27969 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
27971         pmccabe2html: fix gawk regex escaping
27972         * build-aux/pmccabe2html: Add one more backslash to properly
27973         escape the gsub replacement value.  Fixes this error:
27974         gawk: ./build-aux/pmccabe2html:425: \
27975         warning: escape sequence `\&' treated as plain `&'
27977 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
27979         time_rz: port to pedantic memcpy
27980         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
27981         that reject memcpy (..., NULL, 0).
27983 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
27985         time_rz: port better to MinGW
27986         Don't change tzname, as this makes MinGW dump core (Bug#21020).
27987         Instead, store the tzname copy in the struct tm_zone object.
27988         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
27989         * lib/strftime.c [!_LIBC]:
27990         * lib/time_rz.c: Include time-internal.h.
27991         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
27992         name from *TZ rather than from TZNAME, doable because *TZ now has
27993         a tzname_copy member.
27994         * lib/time-internal.h: New file, with contents taken from
27995         lib/time_rz.c.  It's separate because strftime.c now accesses
27996         struct tm_zone members.
27997         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
27998         New member tzname_copy.
27999         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
28000         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28001         Initialize tzname_copy member.
28002         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
28003         in tzname_copy member.
28004         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
28005         (restore_tzname): Remove; no longer needed.  All calls removed.
28006         * modules/time_rz (Files): Add lib/time-internal.h.
28008         time: port __need_time_t to MinGW
28009         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
28010         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
28012 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28014         strftime: fix newly-introduced bug on Solaris
28015         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
28016         consistently at the start, rather than doing some of the setup at
28017         the start and some in the %Z format spec.  This is cleaner, and
28018         works better with time_rz on platforms like Solaris where struct
28019         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
28020         mktime_z and localtime_rz can mess up the tzname cache.
28022         test-strftime: test for Solaris bug
28023         * modules/strftime-tests (Depends-on): Add strerror.
28024         * tests/test-strftime.c: Include <errno.h>.
28025         (posixtm_test): New function, containing the old 'main'.
28026         (struct tzalloc_test, struct localtime_rz_test): New types.
28027         (TZ, LT): New static vars.
28028         (tzalloc_test): New function.
28029         (main): Rewrite in terms of posixtm_test and tzalloc_test.
28031         time_rz: port to Solaris etc.
28032         Works around a tzname problem on platforms like Solaris that have
28033         tzname but not tm_zone, by setting tzname at the appropriate time
28034         and restoring it later.
28035         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
28036         New static vars.
28037         (save_abbr) [HAVE_TZNAME]: Set them.
28038         (revert_tz) [HAVE_TZNAME]: Clear or use them.
28039         (restore_tzname): New function.
28040         (localtime_rz, mktime_z): Use it.
28042         time_rz: now LGPL
28043         * modules/time_rz (License): Now LGPL, because strftime depends on it.
28045         time_rz: make a constant 'const'
28046         * lib/time_rz.c (local_tz): Now const.
28048         time_rz: fix off-by-one typo
28049         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
28051 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
28053         fprintftime, strftime: use timezone_t args
28054         * NEWS: Document the change.
28055         * lib/fprintftime.h (fprintftime):
28056         * lib/strftime.c (extra_args) [my_strftime]:
28057         * lib/strftime.h (nstrftime):
28058         Time zone arg is now of type timezone_t, not int.
28059         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
28060         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
28061         (my_strftime) [emacs && !my_strftime]:
28062         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
28063         Remove; Emacs doesn't need this any more.
28064         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
28065         fprintftime and nstrftime to call tzset.
28066         (ut) [!my_strftime]: Remove, replacing with ...
28067         (tz) [!my_stftime]: ... this new macro.  All uses changed.
28068         (strftime_case_): Use localtime_rz and mktime_z instead
28069         of localtime_r and mktime.
28070         * modules/fprintftime (Depends-on): Add time_rz.
28071         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
28072         * tests/test-strftime.c (main): Adjust to new nstrftime API.
28074         time_rz: new module
28075         * MODULES.html.sh: Add time_rz.
28076         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
28077         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
28078         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
28079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
28080         New var HAVE_TIMEZONE_T (default 0).
28081         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28082         New var GNULIB_TIME_RZ (default 0).
28083         * modules/time (time.h): Substitute the new vars.
28085         flexmember: license is now unlimited
28086         * modules/flexmember (License): Change to unlimited,
28087         since its only source file gives an unlimited license.
28089 2015-07-15  Eric Blake  <eblake@redhat.com>
28091         maint: update copyright paper procedures
28092         * config/srclist.txt: Drop outdated files.
28093         * doc/Copyright/conditions.txt: Update to latest.
28094         * doc/Copyright/assign.changes.manual: Delete.
28095         * doc/Copyright/assign.future.manual: Likewise.
28096         * doc/Copyright/assign.manual: Likewise.
28097         * doc/Copyright/assign.translation.manual: Likewise.
28098         * doc/Copyright/disclaim.changes.manual: Likewise.
28099         * doc/Copyright/disclaim.manual: Likewise.
28100         * doc/Copyright/disclaim.program: Likewise.
28102 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28104         localename: fix link error on Illumos
28105         Illumos defines __sun, but does not have getlocalename_l nor the
28106         equivalent.  This partially reverts commit 387c214.
28107         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
28108         available, as well as uselocale.
28109         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
28110         use getlocalename_l if it is not available.
28112 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28114         unistr/uN-strtok-tests: avoid a trivial leak
28115         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
28116         input and delim after the multibyte delimiter tests.
28118 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28120         file-has-acl, acl-permissions: fix HP-UX typos
28121         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
28122         * lib/file-has-acl.c (file_has_acl):
28123         * lib/set-permissions.c (context_acl_from_mode)
28124         (context_aclv_from_mode, set_acls):
28125         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
28126         They were introduced by the recent ACL changes.
28128         regex: match current GNU grep behavior
28129         These symbols have not matched GNU grep behavior for quite some time.
28130         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
28131         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
28132         Change to match current GNU behavior.
28133         Simplify by expressing it as differences from POSIX BREs and EREs.
28134         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
28136 2015-07-03  Jim Meyering  <meyering@fb.com>
28138         set-permissions.c: adjust acl_from_mode's cpp guard
28139         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
28140         directives identical to those guarding the sole use.
28141         Otherwise, on some systems, we'd get a warning about
28142         the function being defined but not used.
28143         Also, filter through cppi to correct misleading indentation
28144         of cpp directives.
28146 2015-07-03  Pádraig Brady  <P@draigBrady.com>
28148         tests: restrict shells to those that support 'local'
28149         The local keyword is very widely supported and used
28150         in tests in coreutils and grep at least.  Therefore
28151         restrict to testing with shells that support it.
28152         This mainly excludes /bin/sh on Solaris.
28153         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
28155 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
28156         and Daiki Ueno  <ueno@gnu.org>
28158         unistr/uN-strtok: handle multibyte delimiters
28159         Previously, uN_strtok moved PTR to the next unit to the token end.
28160         When DELIM contained a multibyte character, the new position could
28161         be a middle of a multibyte character.
28162         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
28163         after the token.
28164         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
28165         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
28166         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
28167         * modules/unistr/u8-strtok (Depends-on): Depend on
28168         unistr/u8-strmblen.
28169         * modules/unistr/u16-strtok (Depends-on): Depend on
28170         unistr/u16-strmblen.
28171         * modules/unistr/u32-strtok (Depends-on): Depend on
28172         unistr/u32-strmblen.
28173         * tests/unistr/test-u-strtok.h: New file.
28174         * tests/unistr/test-u8-strtok.c: New file.
28175         * tests/unistr/test-u16-strtok.c: New file.
28176         * tests/unistr/test-u32-strtok.c: New file.
28177         * modules/unistr/u8-strtok-tests: New file.
28178         * modules/unistr/u32-strtok-tests: New file.
28179         * modules/unistr/u16-strtok-tests: New file.
28181 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
28183         update-copyright: fix test failure with perl >= 5.22 (trivial)
28184         * build-aux/update-copyright: Escape a literal left curly bracket,
28185         required with perl >= 5.22
28187 2015-07-02  Daiki Ueno  <ueno@gnu.org>
28189         u{16,32}-strstr-tests: relax timeout condition
28190         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
28191         tests can take longer than 5 seconds to complete.
28192         Reported by Dagobert Michelsen in:
28193         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
28194         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
28195         seconds to 10 seconds.
28196         * tests/unistr/test-u32-strstr.c (main): Likewise.
28198 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28200         gnulib-common.m4: change the ARFLAGS default to 'cr'
28201         In some GNU/Linux distributions people started to compile 'ar'
28202         binary with --enable-deterministic-archives (binutils project).
28203         That, however, in combination with previous autotools long time
28204         working default AR{_,}FLAGS=cru causes warnings on such
28205         installations:
28206         ar: `u' modifier ignored since `D' is the default (see `U')
28207         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
28208         set already.
28210 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28212         selinux-h: avoid double free after *getfilecon()
28213         Originally reported by Ben Shelton on bug-tar:
28214         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
28215         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
28216         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
28217         param should be freed by freecon(3) (regardless the return value).
28219 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
28221         fix pty related tests issues on Windows (trivial)
28222         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
28223         however it's still present in tests/ subdirectory of the final project.
28224         Therefore avoid it to pass `make check`.
28225         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
28226         will just return -ENOSYS, so avoid this non applicable test allowing
28227         the build to proceed.
28229 2015-07-01  Pádraig Brady  <P@draigBrady.com>
28231         acl: fix definition of acl_from_mode on FreeBSD
28232         This was causing basic coreutils copy operations to fail
28233         with ENOTSUP or ENOENT error messages.
28234         * lib/acl-internal.h (acl_from_mode): Only define when
28235         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
28236         of acl_from_mode() defined in lib/set-permissions.c to
28237         be used on FreeBSD at least.
28238         * lib/set-permissions.c: Fix up comment spelling,
28239         and a redundant variable assignment; noticed in passing.
28241 2015-06-30  Pádraig Brady  <P@draigBrady.com>
28243         readutmp: port to FreeBSD >= 9
28244         * lib/readutmp.h: Map utmpxname() to setutxdb().
28245         With that coreutils who(1) and pinky(1) tests pass.
28247 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28249         mgetgroups: port to strict OS X
28250         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
28251         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
28252         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
28253         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
28255 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
28257         mgetgroups: port to strict OS X
28258         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
28259         Document the getgrouplist problem.
28260         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
28261         New macro.
28262         (mgetgroups): Use it.
28263         * m4/mgetgroups.m4 (gl_MGETGROUPS):
28264         Check for OS X signature for getgrouplist.
28266 2015-06-29  Jim Meyering  <meyering@fb.com>
28268         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
28269         It started like this when building coreutils' latest on OS X,
28270         invoking ./configure with a nonempty --cache=.cache:
28272           lib/linkat.c:46:42: error: operator '||' has no right operand
28273           lib/linkat.c: In function 'rpl_linkat':
28274           lib/linkat.c:330:27: error: #if with no expression
28276         Here's linkat.c's line 46:
28278           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
28280         Here's some context:
28282           $ grep linkat_nofoll .cache
28283           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
28284           $ grep LINKAT_SYM lib/config.h
28285           #define LINKAT_SYMLINK_NOTSUP
28287         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
28288         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
28289         but that violates a tenet of AC_CACHE_CHECK: it must
28290         have no side effect other than setting its cache variable.
28292         What happens is that when the cache is set, we'd skip the
28293         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
28294         defined to whatever value it happened to have in configure's
28295         environment.  In my case, it was not defined, so this later code:
28297           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
28298             [Define to 1 if linkat can create hardlinks to symlinks])
28300         would emit code with an empty RHS.
28302         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
28303         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
28305 2015-06-28  Jim Meyering  <meyering@fb.com>
28307         mountlist: avoid an unused-label warning on OS X
28308         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
28309         Building on OS X, I saw a warning about the "free_then_fail" label
28310         being unused.  Give it the _GL_UNUSED_LABEL attribute.
28312         error.c: correct printf-style format: %d -> %u
28313         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
28314         rather than %d, to match the type of "line_number", unsigned int.
28316 2015-06-25  Pádraig Brady  <P@draigBrady.com>
28318         fts: avoid reading beyond the heap allocation
28319         GCC 5.1.1 with -O2 and -fsanitize=address reports
28320         a read of size 4 from a heap object of size 3 is indeed invalid,
28321         though this may be due to incorrect padding assumptions by GCC, see:
28322         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28323         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
28324         * modules/fts: Depend on stdalign.
28326 2015-06-24  Pádraig Brady  <P@draigBrady.com>
28328         savedir: avoid undefined behavior in qsort call
28329         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
28330         "runtime error: null pointer passed as argument 1,
28331          which is declared to never be null"
28332         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
28334 2015-06-24  Pádraig Brady  <P@draigBrady.com>
28336         userspec: avoid undefined behavior in gettext call
28337         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
28338         "runtime error: null pointer passed as argument 2,
28339          which is declared to never be null"
28340         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
28342 2015-06-20  Glenn Morris  <rgm@gnu.org>
28344         gitlog-to-changelog: improve gitmerge.el commits
28345         Let the Emacs ChangeLog generation process exclude "skipped"
28346         messages from merge commits (Bug#20717).
28347         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
28349 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28351         wchar: fix MinGW compilation warnings
28352         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
28353         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
28354         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
28356 2015-06-20  Daiki Ueno  <ueno@gnu.org>
28358         uniname/uniname-tests: use pristine data files
28359         For copyright and maintenance reasons, use the data files from UCD
28360         without modification.
28361         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
28362         (getfield): Remove.
28363         (aliases_count): New global variable.
28364         (fill_names): Skip comments and empty lines in the input.  Don't
28365         use getfield.
28366         (fill_aliases): Likewise.
28367         (main): Change the expected command line arguments to:
28368         NAMES... ["--" ALIASES...].
28369         * tests/uniname/test-uninames.sh: Adjust to the change in
28370         test-uninames.c.
28371         * tests/uniname/UnicodeDataNames.txt: Remove.
28372         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
28373         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
28374         file from Unicode 8.0.0.
28376 2015-06-19  Pádraig Brady  <P@draigBrady.com>
28378         linked-list, linkedhash-list: avoid compiler warnings
28379         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28380         -Werror=suggest-attribute=pure (from GCC 5.1.1).
28382 2015-06-19  Daiki Ueno  <ueno@gnu.org>
28384         libunistring: bump minimum version to 0.9.6
28385         * all modules depending on updated Unicode data: Regenerate.
28386         The modules are listed by a script that does:
28387         - for each file listed by: git show --oneline --name-only 705f4efc
28388           - deduce the containing modules, based on "Files:"
28389         - deduce the modules which depend on the containing modules, based
28390           on "Depends-on:"
28392 2015-06-18  Daiki Ueno  <ueno@gnu.org>
28394         uniname/uniname: update to Unicode 8.0.0
28395         * lib/uniname/uninames.h: Regenerate.
28396         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
28397         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
28399 2015-06-18  Daiki Ueno  <ueno@gnu.org>
28401         libunistring: update to Unicode 8.0.0
28402         * lib/gen-uni-tables.c (SIZEOF): New macro.
28403         (output_numeric): Increase the maximum number of fractions from
28404         128 to 160.  Increase the level3 value width from 7 bits to 8
28405         bits.  Use SIZEOF instead of a hard-coded integer.
28406         (output_blocks): Decrease the cut-off threshold from 0x30000 to
28407         0x28000.
28408         (fill_blocks): Increase the maximum number of blocks from 256 to
28409         384.  Use SIZEOF instead of a hard-coded integer.
28410         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
28411         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
28412         value width.
28413         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
28414         a new case added to LBP22.
28415         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
28416         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
28417         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
28418         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
28419         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
28420         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28421         lib/uniwidth/width.c.
28422         * all generated files under lib/uni* and tests/uni*: Regenerate.
28424 2015-06-16  Pádraig Brady  <P@draigBrady.com>
28426         gnu-web-doc-update: add --mirror to remove stale files
28427         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
28428         out of date files from the CVS server.  Since this is usually
28429         appropriate, a prompt is given when the option is not specified,
28430         along with the `cvs remove` command that would be run.
28432 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
28434         acl-permissions: pacify -Wsuggest-attribute=const
28435         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
28436         * lib/acl-internal.h (free_permission_context):
28437         Declare with attribute const if ! (defined USE_ACL &&
28438         (HAVE_ACL_GET_FILE || defined GETACL)).
28440         fsync: document AIX misbehavior
28441         * doc/posix-functions/fsync.texi (fsync):
28442         Document failure on AIX with read-only file descriptor.
28444 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
28446         stdio: Don't redefine gets when using C++
28447         * lib/stdio.in.h (gets): Disable warning on C++.
28449 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
28451         acl-permissions: port to AIX, C89 HP-UX
28452         Problems reported by Michael Felt.
28453         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
28454         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
28455         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
28456         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
28457         Add cast for AIX, whose system calls are declared to accept
28458         char * even though the arguments are really char const *.
28459         * lib/get-permissions.c (get_permissions):
28460         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
28461         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
28462         that broke a build.
28463         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
28464         Rework types to pacify xlc.
28466 2015-06-03  Pádraig Brady  <P@draigBrady.com>
28468         vasprintf-posix: avoid compiling vasnprintf where possible
28469         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
28470         module where not required.  For example on a GNU/Linux system
28471         when gnulib-tool is run with the --conditional-dependencies option.
28473 2015-06-02  Pádraig Brady  <P@draigBrady.com>
28475         file-has-acl: fix build on Mac OS X 10
28476         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
28477         which has an incompatible 6 parameter getxattr() call.
28478         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
28479         call on Mac OS X >= 10.4.
28480         * doc/glibc-functions/fgetxattr.texi: Likewise.
28481         * lib/file-has-acl.c: Revert to more complete combined check.
28482         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
28483         Reported by Jack Howarth.
28485 2015-06-02  Pádraig Brady  <P@draigBrady.com>
28487         prefix-gnulib-mk: remove no longer needed special case
28488         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
28489         continued lib_SOURCES lines are no longer present,
28490         so special case handling of such entries is not required.
28492 2015-06-01  Pádraig Brady  <P@draigBrady.com>
28494         acl: don't depend on the deprecated qacl module
28495         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
28497 2015-06-01  Pádraig Brady  <P@draigBrady.com>
28499         gnulib-tool: concatenate lib_SOURCES to a single line
28500         * gnulib-tool: Refactor the line merging sed logic,
28501         and use that to output a single lib_SOURCES line for each module.
28502         gnulib using projects often postprocess this output to prepend
28503         subdir paths to each item, and having a single line simplifies this
28504         processing allowing better decoupling from the gnulib-tool output.
28506 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
28508         pthread_sigmask: discount system version if a simple macro (trivial)
28509         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
28510         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
28511         function to ensure it's available.
28513 2015-05-31  Pádraig Brady  <P@draigBrady.com>
28515         readlinkat: avoid OS X 10.10 trailing slash bug
28516         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
28517         has this bug.
28518         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
28519         that OS X 10.10 has this function.
28520         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
28521         as done for readlink().
28522         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
28523         trailing slash bug, and assume readlinkat() has the same issue.
28524         Also fix a typo where $gl_cv_decl_readlink_works was tested,
28525         rather than the correct $gl_cv_decl_readlinkat_works.
28527 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
28529         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
28530         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
28531         module rewrite.
28533         acl-permissions: Fix build on Solaris and Cygwin
28534         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
28535         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
28536         ace_entries variables have moved into struct permission_context but
28537         they were still accessed as local variables here.
28539 2015-05-29  Pádraig Brady  <P@draigBrady.com>
28541         linkat: avoid OS X 10.10 trailing slash with symlink bug
28542         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
28543         causes the symlink to be dereferenced, and if it points
28544         to a non existent file, that file will be created as
28545         a hard link to "path1".
28546         This fixes a test failure in test-linkat.c.
28547         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
28548         this case.  The existing workaround in linkat.c for
28549         trailing slash issues, suffices for this case.
28550         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
28551         the list of platforms with trailing slash issues.
28553 2015-05-28  Pádraig Brady  <P@draigBrady.com>
28555         unlinkat: handle ignoring of ".." on Darwin 14
28556         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
28557         on Mac OS X 10.10, where it ignores paths with a trailing "..",
28558         so handle in the same manner.
28559         * m4/unlinkat.m4: Comment on this Darwin issue.
28560         * doc/posix-functions/unlink.texi: Update the latest version
28561         where the issue was seen.
28562         * doc/posix-functions/unlinkat.texi: Mention this issue.
28563         Fixes a test failure in test-unlinkat.c.
28565 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28567         qacl: split into qcopy-acl and qset-acl
28568         Emacs needs the former, but not the latter.
28569         * modules/acl-permissions: New file, containing most of the old qacl.
28570         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
28571         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
28572         * modules/qcopy-acl, modules/qset-acl: New files.
28573         * MODULES.html.sh (File system functions):
28574         Mention the new modules, and mention qacl while we're at it.
28576 2015-05-27  Glenn Morris  <rgm@gnu.org>
28578         gitlog-to-changelog: new option --ignore-line
28579         (This patch is imported from the GNU Emacs master.)
28580         This option ignores individual commit lines matching a pattern.
28581         * build-aux/gitlog-to-changelog: Add --ignore-line option.
28583 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
28585         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
28586         Implement get_permissions and set_permissions primitives for getting all
28587         the permissions of a file, storing them, and later setting them. (In the
28588         minimal case, the permissions consist only of a file mode.) Reimplement
28589         qset_acl and qcopy_acl based on these new primitives: this avoids code
28590         duplication and makes error handling more consistent.
28591         The Solaris and Cygwin code still uses duplicate code paths for setting
28592         a file mode while making sure that no acls exist and setting an explicit
28593         acl; this is no worse than before, but could be cleaned up.  The AIX
28594         code still doesn't read ACLs, it only makes sure that acls don't get in
28595         the way when setting a file mode.
28596         * lib/acl-internal.h (struct permission_context): New data structure.
28597         (get_permissions, set_permissions, free_permission_context): Declare.
28598         * lib/acl-internal.c (free_permission_context): New helper function.
28599         * lib/get-permissions.c (get_permissions): New helper function split off
28600         from qcopy_acl.
28601         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
28602         AIX, set a file's permissions based only on a file mode.
28603         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
28604         other platforms construct a temporary acl from the file mode and set
28605         that acl in the same way as setting an acl read from the source file.
28606         This should help avoid code duplication and inconsistent / buggy
28607         behavior.
28608         (set_acls): New helper function Split off from qcopy_acl.
28609         (chmod_or_fchmod): Moved here from qset-acl.c.
28610         (set_permissions): New helper function.
28611         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
28612         set_permissions.
28613         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
28614         * modules/qacl: Add get-permissions.c and set-permissions.c.
28616         file-has-acl: Split feature tests again (Bug#20667)
28617         * lib/file-has-acl.c: Instead of testing for
28618         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
28619         define them when needed.
28620         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
28621         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
28623 2015-05-27  Pádraig Brady  <P@draigBrady.com>
28625         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
28626         This avoids a conflict with "FORTIFY_SOURCE" variants
28627         of the string functions when they're replaced on NetBSD-6.0.1
28628         and Darwin-14.3.0 at least.
28629         * lib/string.in.h: Avoid including our "lib/string.h" while
28630         including the system <string.h>.
28632 2015-05-26  Eric Blake  <eblake@redhat.com>
28634         stdio: limit __gnu_printf__ witness to gcc 4.4+
28635         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
28636         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
28638         error: use correct printf attributes on mingw
28639         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
28641         inttypes: force correct mingw PRIdMAX even without <stdio.h>
28642         * modules/inttypes (Depends-on): Require extensions, so that mingw
28643         always uses GNU style inttypes.
28644         * lib/inttypes.in.h: On mingw, include <stdio.h>.
28646         stdio: fix probe on mingw under gcc 5.1
28647         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
28648         around new gcc preprocessor rules.
28650 2015-05-07  Glenn Morris  <rgm@gnu.org>
28652         gitlog-to-changelog: parse "Tiny-change"
28653         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
28654         "Copyright-paperwork-exempt".  (Bug#20324)
28656 2015-05-06  Pádraig Brady  <P@draigBrady.com>
28658         doc: document glibc posix_fallocate() issues
28659         * doc/posix-functions/posix_fallocate.texi: Mention the
28660         glibc efficiency problems and issues with NFS.
28662 2015-05-05  Karl Berry  <karl@freefriends.org>
28664         * build-aux/gendocs.sh (usage): document new css default
28665         for HTML (--htmlarg).
28667 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
28669         extern-inline: no need for workaround in GCC 5.1
28670         * doc/extern-inline.texi (extern inline):
28671         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
28672         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
28673         around these bugs in GCC 5.1 and later.  Maybe in a decade or
28674         two we can remove these workarounds.
28676 2015-04-28  Pádraig Brady  <P@draigBrady.com>
28678         eealloc, pagealign_alloc, xalloc: avoid clang warnings
28679         Avoid [-Wunknown-attributes] warnings like:
28680         warning: unknown attribute '__alloc_size__' ignored
28681         * lib/xalloc.h: Don't use the __alloc_size__  attribute
28682         with clang, as support has been fully removed as of clang 3.5:
28683         https://github.com/llvm-mirror/clang/commit/c047507a
28684         * lib/eealloc.h: Likewise.
28685         * lib/pagealign_alloc.h: Likewise.
28687 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28689         tests: pacify GCC 5.1's stricter printf checking
28690         * tests/test-dirname.c (main):
28691         * tests/test-getaddrinfo.c (simple):
28692         * tests/test-getlogin.c (main):
28693         * tests/test-getndelim2.c (main):
28694         * tests/test-inttostr.c (CK):
28695         * tests/test-md5.c (main):
28696         * tests/test-read-file.c (main):
28697         * tests/test-sha1.c (main):
28698         Fix mismatches between printf format and value signedness.
28699         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
28700         Remove, as CAST_VAL always returned a value of type uintmax_t.
28702         fts: port to GCC 5.1 with --enable-gcc-warnings
28703         Without this fix, GCC 5.1 (correctly) warns about a subscript
28704         error on the fts_name component of FTSENT.  It's actually a
28705         flexible member, so define it that way on C99 or later hosts.
28706         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
28707         structure that now has a flexible array member.
28708         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
28709         (FTSENT): fts_name is now flexible on C99-or-later platforms.
28710         * modules/fts (Depends-on): Add flexmember.
28712 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
28714         file-has-acl: port to CentOS 6
28715         Problem reported by Tom G. Christensen in:
28716         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
28717         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
28718         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
28719         HAVE_GETXATTR.
28720         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
28721         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
28722         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
28723         file-has-acl.c actually needs.
28725 2015-04-26  Pádraig Brady  <P@draigBrady.com>
28727         file-has-acl: always return false when ACLs aren't supported
28728         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
28729         change the GNU/Linux getxattr path, to transform "not supported"
28730         errors to a false return rather than an error.  This is handled
28731         within file_has_acl() due to the platform specific tests to
28732         determine if ACLs are not supported.
28734 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
28736         gettext: propagate po/Makefile.in.in too
28737         * build-aux/po/Makefile.in.in: Copy from latest gettext.
28738         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
28739         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
28740         between Makefile.in.in and the gettext-runtime m4 files.
28742 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
28744         file-has-acl: new module, split from acl
28745         And add a new module file-has-acl-tests to match.
28746         I ran into a problem with the recent changes to the acl module,
28747         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
28748         When using the fixed version with Emacs, I discovered that
28749         file-has-acl wasn't separated out well enough for Emacs (e.g., it
28750         had multiple libraries, but needed only one), so I fixed that too.
28751         * NEWS: Document this incompatible change.
28752         * modules/file-has-acl, modules/file-has-acl-tests: New files.
28753         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
28754         Initialize gl_need_lib_has_acl.
28755         (gl_FUNC_ACL): Require it.
28756         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
28757         Move the file-has-acl.c-relevant stuff to ...
28758         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
28759         use_xattrs = 0' typo, and omit some needless work.  Set
28760         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
28761         when gl_FUNC_ACL is called.
28762         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
28763         (Link): Remove $(LIB_HAS_ACL).
28764         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
28765         (check_PROGRAMS): Move stuff relevant to file-has-acl to
28766         modules/file-has-acl-tests.
28767         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
28769         manywarnings: add GCC 5.1 warnings
28770         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
28771         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
28772         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
28773         -Wsuggest-override, -Wuse-without-only.  Change
28774         -Wnormalized=... operands to match 5.1.
28775         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
28776         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
28777         -Wdiscarded-qualifiers, -Wformat-signedness,
28778         -Wincompatible-pointer-types, -Wint-conversion,
28779         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
28780         -Wshift-count-negative, -Wshift-count-overflow,
28781         -Wsizeof-array-argument, -Wsuggest-final-methods,
28782         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
28783         and add -Warray-bounds=2 as a special case.
28785 2015-04-21  Simon Josefsson  <simon@josefsson.org>
28787         doc: update FDL template to match FDL examples.
28788         * doc/alloca-opt.texi:
28789         * doc/alloca.texi:
28790         * doc/c-ctype.texi:
28791         * doc/c-strcase.texi:
28792         * doc/c-strcaseeq.texi:
28793         * doc/c-strcasestr.texi:
28794         * doc/c-strstr.texi:
28795         * doc/c-strtod.texi:
28796         * doc/c-strtold.texi:
28797         * doc/ctime.texi:
28798         * doc/error.texi:
28799         * doc/gcd.texi:
28800         * doc/gnulib-tool.texi:
28801         * doc/inet_ntoa.texi:
28802         * doc/intprops.texi:
28803         * doc/lib-symbol-visibility.texi:
28804         * doc/maintain.texi:
28805         * doc/parse-datetime.texi:
28806         * doc/quote.texi:
28807         * doc/regexprops-generic.texi:
28808         * doc/standards.texi: Remove spurious 'with' in FDL license
28809         template.
28811 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
28813         lstat: fix cross-compilation 'ln -s' problem
28814         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28815         Have the test program call 'symlink' rather than a separate
28816         script run 'ln -s'; this is more likely to work in
28817         cross-compilation environments.  Reported by Pavel Fedin in:
28818         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
28820 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
28822         gendocs.sh: default to a common CSS style sheet for HTML output
28823         * build-aux/gendocs.sh (htmlarg): Change default value.
28825 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
28827         gnulib-tool: output bold attribute more portably
28828         * gnulib-tool (func_show_module_list): Change hexadecimal
28829         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
28830         encoded numbers as arguments to `printf' is not portable,
28831         and is not claimed by POSIX.  This is the case with FreeBSD.
28833 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
28835         qacl: Simplify HP-UX acl_nontrivial check
28836         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
28837         acl_nontrivial. Check if the acl has at most three entries instead (it must
28838         have exactly three entries according to the HP-UX documentation). Ignore
28839         uids and gids as long as an entry is either for a user (i.e., the owner),
28840         a group (i.e., the owning group), or others.
28841         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
28842         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
28844 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
28846         acl: On Linux, check for acls without libacl
28847         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
28848         library function to check for the presence of acls, avoiding a library.
28849         * lib/file-has-acl.c: Include xattr headers if we have them.
28850         (file_has_acl): On Linux, use getxattr().
28851         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
28852         file_has_acl(). Check for xattr headers and getxattr().
28854 2015-04-14  Ángel González  <keisial@gmail.com>
28856         tempname: avoid unused parameter warnings (trivial)
28857         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
28858         (try_nocreate): Likewise.
28860 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
28862         fseeko: fix build failure on NetBSD >= 6 (trivial)
28863         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
28864         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
28866 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28868         gitlog-to-changelog: port to MS-Windows
28869         * build-aux/gitlog-to-changelog (git_dir_option):
28870         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
28871         MS-Windows Perl.  Reported by Eli Zaretskii in:
28872         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
28874 2015-04-07  Karl Berry  <karl@gnu.org>
28876         gendocs: new option --tex for passing args to texi2dvi.
28877         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
28878         (TEXI2DVI): cut to just command name.
28879         (usage): mention new option, and update copyright.
28880         <generate_tex>: use it.
28882 2015-04-07  Karl Berry  <karl@gnu.org>
28884         * config/srclistvars.sh (GETTEXT): new definition.
28885         * config/srclist.txt: use it for gettext .m4 files.
28886         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
28887         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
28888         and continuing into April.
28890 2015-04-07  Daiki Ueno  <ueno@gnu.org>
28892         uniname/uniname-tests: fix failure due to alias
28893         Reported by Jack Howarth in:
28894         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
28895         * tests/uniname/test-uninames.c (name_has_alias): New function.
28896         (test_inverse_lookup): Exclude character name with valid alias,
28897         from randomly generated character names.
28898         (main): Fill unicode_aliases before calling test functions.
28900 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
28902         hash: remove deprecated hash_insert0 function
28903         * lib/hash.h (hash_insert0): Remove deprecated function.
28904         * lib/hash.c (hash_insert0): Likewise.
28906 2015-04-02  Pádraig Brady  <P@draigBrady.com>
28908         mountlist: remove dependency on libmount
28909         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
28910         directly, rather than depending on libmount, which has many
28911         dependencies due to its dependence on libselinux, as detailed at:
28912         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
28913         Note we restrict this to __linux__ as that's probably where this
28914         interface will remain.  If ever porting, it would be best
28915         to first pull the makedev() wrapper from coreutils to a gnulib module.
28916         Note also we don't add a getline dependency to the mountlist module,
28917         as all Linux versions are sufficient.
28919 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
28921         stddef: port to pre-C11 GCC on x86
28922         On this platform, max_align_t should have an alignment of 8 even
28923         though the storage alignments of double, long, etc. max out at 4.
28924         Inspired by a comment of Andreas Schwab's here:
28925         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
28926         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
28927         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
28928         * tests/test-stddef.c: Test __alignof__ too, if available.
28930 2015-03-24  Pádraig Brady  <P@draigBrady.com>
28932         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
28933         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
28935 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
28937         yesno: make EOL optional in ENABLE_NLS case also (trival)
28938         * lib/yesno.c (yesno): Check for EOL before replacing.
28939         * tests/test-yesno.sh: Add a test case (test along with gettext).
28941 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28943         fdopendir-tests: test it does not close its arg
28944         * tests/test-fdopendir.c (main): Test that fdopendir does not
28945         close its argument.  From a suggestion by David Grayson in:
28946         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
28948 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
28950         gitlog-to-changelog: trim trailing white space
28951         * build-aux/gitlog-to-changelog (main):
28952         Trim trailing white space from commit message lines.
28953         This is helpful for processing the GNU Emacs repository,
28954         which dates back to 1985 and contains a lot of such lines.
28956         gitlog-to-changelog: new option --ignore-matching
28957         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
28958         Support new option --ignore-matching=PAT, which ignores all
28959         commit messages whose first line matches PAT.
28961 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
28963         fdopendir: port better to MinGW
28964         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
28965         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
28966         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
28967         * modules/fdopendir (Depends-on): Add dirfd.
28969 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
28971         fdopendir: fix typo in comment
28972         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
28974 2015-03-09  Eric Blake  <eblake@redhat.com>
28976         error: document all entry points provided
28977         * doc/glibc-functions/error_print_progname.texi
28978         (error_print_progname): Mention the error module.
28979         * doc/glibc-functions/error_at_line.texi (error_at_line):
28980         Likewise.
28981         * doc/glibc-functions/error_message_count.texi
28982         (error_message_count): Likewise.
28983         * doc/glibc-functions/error_one_per_line.texi
28984         (error_one_per_line): Likewise.
28986 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
28988         vasnprintf: pacify clang 3.5.0
28989         Problem reported by Werner Lemberg in:
28990         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
28991         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
28992         The casts aren't needed, since the characters in question are ASCII.
28994 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28996         glob, etc.: port to MSVC v18 on MS-Windows 8.1
28997         * lib/dirent--.h (GNULIB_defined_opendir):
28998         * lib/dirent.in.h (GNULIB_defined_opendir)
28999         (GNULIB_defined_closedir):
29000         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
29001         #undef only if Gnulib defined it.
29003         poll: port to MSVC v18 on MS-Windows 8.1
29004         Problem reported by Gisle Vanem in:
29005         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
29006         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
29007         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
29008         Add sys_socket.
29010 2015-02-24  Pádraig Brady  <P@draigBrady.com>
29012         tests: support stderr verification with returns_()
29013         * tests/init.sh (returns_): Disable tracing for this wrapper
29014         function, so that stderr of the wrapped command is unchanged,
29015         allowing for verification of the contents.
29017 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
29019         passfd: avoid valgrind uninitalised data warning
29020         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
29021         to include just the fd we've initialized, rather than including
29022         the extra space used for alignment.
29024 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29026         uniwbrk/u32-wordbreaks-tests: fix copyright
29027         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
29029         dup2: doc and test for Android bug
29030         Reported by Kevin Cernekee in:
29031         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
29032         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29033         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
29035 2015-02-23  Kevin Cernekee  <cernekee@google.com>
29037         Replace dup2() on Android
29038         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
29039         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
29040         fails.  Using rpl_dup2() fixes this because it has an explicit test
29041         for this condition.
29043 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
29045         Android doesn't define RLIM_SAVED_*
29046         Portability problem reported by Kevin Cernekee in:
29047         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
29048         * doc/posix-headers/sys_resource.texi (sys/resource.h):
29049         Mention the portability problem.
29050         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
29051         Define if not defined.
29052         * m4/dup2.m4 (gl_FUNC_DUP2):
29053         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29054         Likewise.
29056 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29058         vasnprintf-posix-tests: use consistent test
29059         * tests/test-vasnprintf-posix.c (test_function):
29060         Use "<" in assert instead of "<=", for consistency with other tests.
29062 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29064         printf, isinf, etc.: noncanonical != NaN
29065         Do not require that isinf, printf, etc. treat noncanonical
29066         values as NaNs.  Instead, require only that they do not crash.
29067         Problem reported by Joseph Myers in:
29068         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
29069         * doc/posix-functions/dprintf.texi (dprintf):
29070         * doc/posix-functions/fprintf.texi (fprintf):
29071         * doc/posix-functions/isfinite.texi (isfinite):
29072         * doc/posix-functions/isinf.texi (isinf):
29073         * doc/posix-functions/isnan.texi (isnan):
29074         * doc/posix-functions/printf.texi (printf):
29075         * doc/posix-functions/snprintf.texi (snprintf):
29076         * doc/posix-functions/sprintf.texi (sprintf):
29077         * doc/posix-functions/vdprintf.texi (vdprintf):
29078         * doc/posix-functions/vfprintf.texi (vfprintf):
29079         * doc/posix-functions/vprintf.texi (vprintf):
29080         * doc/posix-functions/vsnprintf.texi (vsnprintf):
29081         * doc/posix-functions/vsprintf.texi (vsprintf):
29082         Document this.
29083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
29084         * m4/isinf.m4 (gl_ISINFL_WORKS):
29085         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
29086         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
29087         * tests/test-isfinite.c (test_isfinitel):
29088         * tests/test-isinf.c (test_isinfl):
29089         * tests/test-isnan.c (test_long_double):
29090         * tests/test-isnanl.h (main):
29091         * tests/test-snprintf-posix.h (test_function):
29092         * tests/test-sprintf-posix.h (test_function):
29093         * tests/test-vasnprintf-posix.c (test_function):
29094         * tests/test-vasprintf-posix.c (test_function):
29095         Test only that noncanonical values do not cause crashes, not that
29096         they are treated as NaNs.  In some cases this means a larger
29097         output buffer is needed.
29099 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
29101         fts: remove redundant close() (trivial)
29102         * lib/fts.c (fts_read): Remove redundant call to close().
29103         Spotted by coverity.
29105 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29107         getdtablesize: port better for Android
29108         Problem reported by Kevin Cernekee in:
29109         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
29110         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
29111         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
29112         Instead, just use getrlimit, taking care to avoid Cygwin bug.
29114         poll: fixes for large fds
29115         * lib/poll.c (poll): Don't check directly for NFD too large.
29116         Don't rely on undefined behavior in FD_SET when an arg exceeds
29117         FD_SETSIZE.  Always set revents afterwards, even if to zero.
29118         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
29119         as that makes the test a bit stricter.
29121 2015-02-19  Kevin Cernekee  <cernekee@google.com>
29123         fcntl: Fix cross compiling
29124         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
29125         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
29127 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29129         dup2, fcntl: cross-compile better for Android
29130         Problem reported by Kevin Cernekee in:
29131         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
29132         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
29133         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
29134         there's little need to cross-compile for older kernels nowadays.
29135         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
29136         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
29138 2015-02-18  Pádraig Brady  <P@draigBrady.com>
29140         getopt: don't crash on memory exhaustion
29141         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
29142         memory exhaustion.  In the _LIBC case we use alloca() as is
29143         already done in glibc, so we don't need to consider the separate
29144         error path in that awkward case.  Also fix a memory leak when
29145         ambiguous options are present.
29146         Reported by Tobias Stoeckmann
29148 2015-02-17  Mike Miller  <mtmiller@ieee.org>
29150         tempname: allow compilation with C++ (trivial)
29151         * lib/tempname.h [C++]: Specify extern "C" linkage.
29152         * lib/tempname.h (try_tempname):
29153         * lib/tempname.c (__try_tempname, __gen_tempname):
29154         Rename 'try' to 'tryfunc'.
29156 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
29158         dup2, fcntl: port to AIX
29159         * m4/dup2.m4 (gl_FUNC_DUP2):
29160         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29161         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
29162         The former works on AIX 7.1 but the latter does not.
29163         Also, this may work better with Android; see:
29164         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
29166 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
29168         getdtablesize, dup2, fcntl: port to Android
29169         Problem reported by Kevin Cernekee in:
29170         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
29171         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
29172         Mention that getdtablesize doesn't work on Android.
29173         * lib/getdtablesize.c: Use getrlimit substitute only if
29174         getdtablesize is declared.  This should suffice for Cygwin
29175         while not breaking Android.
29176         * m4/dup2.m4 (gl_FUNC_DUP2):
29177         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29178         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
29179         standardized but the latter is not, and sysconf works on Android.
29180         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
29181         Also check that getdtablesize is declared.
29182         This removes the need for a special case for Android.
29184 2015-02-16  Kevin Cernekee  <cernekee@google.com>
29186         localename: Implement gl_locale_name_thread_unsafe for Android
29187         * lib/localename.c: Android API level >= 21 supports two hardcoded
29188         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
29189         the internal __locale_t struct.
29191 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
29193         fts: avoid crash when a cycle is added while traversing
29194         This could be triggered by auto-mounting a recursive bind mount.
29195         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
29196         * lib/fts.c (fts_read): Avoid removing the original hash table item
29197         when leaving a directory that caused a cycle, and preserve the FTS_DC
29198         flag.
29200 2015-02-16  Daiki Ueno  <ueno@gnu.org>
29202         uniname/uniname: support character alias
29203         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
29204         Generate one-way mapping from aliases to codepoints in the
29205         generated tables.  Special case variation selectors to reduce
29206         table size.
29207         * lib/uniname/uniname.c (unicode_character_name): Special case
29208         variation selectors.
29209         (unicode_name_character): Special case variation selectors and
29210         their aliases.
29211         * lib/uniname/uninames.h: Regenerate.
29212         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
29213         * modules/uniname/uniname-tests (Files): Add
29214         tests/uniname/NameAliases.txt.
29215         * tests/uniname/test-uninames.c: Mark as static.
29216         (ALIASLEN): Define.
29217         (struct unicode_alias): New struct.
29218         (unicode_aliases): New variable.
29219         (fill_aliases): New function.
29220         (test_alias_lookup): New test function.
29221         (main): Run the 'test_alias_lookup' test if the second argument is
29222         given.
29223         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
29224         second argument.
29226 2015-02-11  Kevin Cernekee  <cernekee@google.com>
29228         Fix FILE struct compatibility with Android API level >= 21
29229         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
29230         __sferror.  Recent versions of Bionic's stdio.h no longer define
29231         __sferror.
29232         * lib/fbufmode.c: Likewise.
29233         * lib/fflush.c: Likewise.
29234         * lib/fpurge.c: Likewise.
29235         * lib/freadable.c: Likewise.
29236         * lib/freadahead.c: Likewise.
29237         * lib/freading.c: Likewise.
29238         * lib/freadptr.c: Likewise.
29239         * lib/freadseek.c: Likewise.
29240         * lib/fseeko.c: Likewise.
29241         * lib/fseterr.c: Likewise.
29242         * lib/fwritable.c: Likewise.
29244         Assume unbroken ungetc() on Android
29245         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
29246         test case passed when running on an Android host, and the code
29247         hasn't really changed since 2009.
29249         getdtablesize: Fix Android build
29250         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
29251         versions have this symbol in the .so library (at least 32-bit
29252         platforms) but are missing the declaration in the header file,
29253         causing the m4 logic to guess incorrectly.
29255         localename: Fix Android build
29256         * modules/localename (Depends-on): Add langinfo.
29258         getugroups: Fix Android build
29259         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
29260         functions.
29262         euidaccess: Fix Android build
29263         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
29264         AT_EACCESS gets declared.
29266         linkat_nofollow: Add fallback case for cross compiling
29267         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
29269         net_if: Handle content-free <net/if.h> system headers
29270         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
29271         struct if_nameindex.  If not, enable the replacement header.
29273         signal_h: Fix Android build
29274         * lib/signal.in.h: Add Android to the list of platforms that declare
29275         pthread_sigmask() in <pthread.h> instead of <signal.h>.
29277         duplocale: Fix Android build of duplocale-tests
29278         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
29279         is included by test-duplocale.c (but not by duplocale.c).
29280         * modules/duplocale-tests (configure.ac): Check for monetary.h.
29281         * tests/test-duplocale.c: Skip test if monetary.h is absent.
29282         * doc/posix-headers/monetary.texi: Add Android to the list of
29283         platforms missing monetary.h.
29285 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29287         tests: avoid recent -Werror=unused-variable regression in test-locale
29288         * tests/test-locale.c (main): Reference the variable to avoid the
29289         "unused variable" warning.
29291 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29293         maint: various whitespace cleanups in tempname
29294         * lib/tempname.c: Normalize spacing and line length.
29295         * lib/tempname.h: Likewise.
29296         * modules/tempname: Likewise.
29298 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29300         tests: provide returns_() to simplify exit status checking
29301         * tests/init.sh (returns_): A new function for use in tests,
29302         to allow for easier checking of return values, where you expect
29303         a command to exit with failure status.  By checking for a particular
29304         exit code, you don't hide any crashes for example.
29306 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29308         mountlist: only use libmount when specified
29309         There are currently many shared libs dependencies introduced by
29310         libmount with associated runtime and virt mem overhead.
29311         Therefore don't enable by default.
29312         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
29314 2015-02-08  Daiki Ueno  <ueno@gnu.org>
29316         uniname/unimame-tests: don't link with -lunistring
29317         * modules/uniname/uniname-tests (Makefile.am): Don't link against
29318         $(LIBUNISTRING).  Document the rationale why we need to
29319         conditionalize the test.
29321 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
29323         fstrcmp: don't assume strlen < INT_MAX
29324         * lib/fstrcmp.c: Include stddef.h and stdint.h.
29325         (uintptr_t): Remove, as we're now assuming stdint.
29326         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
29327         Prefer ptrdiff_t to int when the value could exceed INT_MAX
29328         if the input string is long.
29329         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
29330         uintptr_t to size_t when the underlying value is a pointer casted
29331         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
29332         * modules/fstrcmp (Depends-on): Add stdint.
29334         diffseq: prefer ptrdiff_t to ssize_t
29335         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
29336         ptrdiff_t is the natural type for signed indexes.
29337         On a few older platforms, ssize_t is narrower than size_t.
29339         xalloc: fix typo that suppressed warnings
29340         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
29341         This typo, introduced a couple of years ago, mistakenly suppressed
29342         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
29343         -Wmissing-declarations warnings.
29345         full-read: fix license notice typo
29346         * lib/full-read.h: Remove a stray line in the license notice.
29347         Reported by Sam Ellis in: http://bugs.gnu.org/19808
29349         crypto/gc: fix a -Wswitch warning
29350         Reported by Bruce Korb in:
29351         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
29352         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
29354 2015-02-03  Pádraig Brady  <P@draigBrady.com>
29356         gnulib-tool: fix handling of patch(1) diagnostics
29357         * gnulib-tool: Send diagnostics from patch(1) to stderr,
29358         as otherwise gnulib-tool will reparse that output and attempt
29359         to lookup modules.
29361 2015-02-03  Pádraig Brady  <P@draigBrady.com>
29363         bootstrap: exit immediately upon gnulib-tool failure
29364         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
29365         This was noticed when gnulib-tool exited early due to failure
29366         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
29367         but various confusing errors were then given as the build proceeded.
29369 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
29371         symlinkat: include all required header files
29372         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
29373         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
29374         Reported at https://savannah.gnu.org/bugs/index.php?44151
29375         and by Jack Howarth.
29377 2015-01-29  Pádraig Brady  <P@draigBrady.com>
29379         localename: support Solaris 12 and illumos
29380         * lib/localename.c (gl_locale_name_thread_unsafe): call
29381         getlocalename_l() on newer __sun platforms.
29382         Reported by Alexander Pyhalov.
29383         Fix suggested by Rich Burridge.
29385 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
29387         locale: fix tests on illumos (trivial)
29388         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
29389         so move from global scope to main().
29391 2015-01-24  Daiki Ueno  <ueno@gnu.org>
29393         unictype: avoid undefined left-shift behavior
29394         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
29395         gcc's -fsanitize=shift and running its tests triggered:
29396           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
29397             places cannot be represented in type 'int'
29398         Cast LHS to 'unsigned int' after integer promotion.
29399         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
29400         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
29402 2015-01-20  Daiki Ueno  <ueno@gnu.org>
29404         libunistring: bump version of unitypes dependants
29405         Due to the header file search order, all the headers which depend
29406         on unitypes.h need to be generated, when the preinstalled
29407         libunistring is older.
29408         * modules/unicase/base (configure.ac): Bump minimum version to
29409         0.9.4.
29410         * modules/uniconv/base (configure.ac): Likewise.
29411         * modules/unilbrk/base (configure.ac): Likewise.
29412         * modules/uninorm/base (configure.ac): Likewise.
29413         * modules/unistdio/base (configure.ac): Likewise.
29414         * modules/unistr/base (configure.ac): Likewise.
29415         * modules/uniwbrk/base (configure.ac): Likewise.
29416         * modules/uniwidth/base (configure.ac): Likewise.
29418 2015-01-20  Daiki Ueno  <ueno@gnu.org>
29420         unictype/category-none: fix link with libunistring
29421         Since _UC_CATEGORY_NONE is not a public symbol, it will be
29422         prefixed with "libstring_" when compiled as part of libunistring.
29423         To avoid undefined symbol at link time, increase the minimum
29424         version when the dependant modules are updated.
29425         * modules/unictype/category-none (configure.ac): Bump minimum
29426         version to 0.9.5.
29428 2015-01-20  Daiki Ueno  <ueno@gnu.org>
29430         unitypes: fix build with installed libunistring
29431         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
29432         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
29433         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
29435 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29437         time: port to MinGW32 3.21
29438         Problem reported by Eli Zaretskii in:
29439         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
29440         * lib/time.in.h:
29441         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
29442         * modules/time (Depends-on):
29443         Fall back on unistd.h if the other include files don't define
29444         struct timespec.
29446         update-copyright: apply to self
29447         * build-aux/update-copyright: Fix copyright date.  How ironic!
29449 2015-01-15  Daiki Ueno  <ueno@gnu.org>
29451         libunistring: update to Unicode 7.0.0
29452         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
29453         Manichaean names.
29454         * lib/unictype/joininggroup_name.h: Likewise.
29455         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
29456         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
29457         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
29458         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
29459         (fill_arabicshaping, joining_group_as_c_identifier): Support those
29460         enum values.
29461         (is_property_alphabetic): Accept newly added characters to
29462         cuneiform numeric signs.
29463         (is_property_default_ignorable_code_point): Reject U+0605.
29464         (FIELDLEN): Increase from 120 to 160.
29465         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
29466         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
29467         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
29468         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
29469         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
29470         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
29471         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
29472         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
29473         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
29474         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
29475         U+1E8D0..U+1E8D6.
29476         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
29477         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29478         lib/uniwidth/width.c.
29479         * all generated files under lib/uni* and tests/uni*: Regenerate.
29481 2015-01-14  Daiki Ueno  <ueno@gnu.org>
29483         libunistring: update to Unicode 6.3.0
29484         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
29485         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
29486         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
29487         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
29488         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
29489         Update WB5, WB9, WB10, WB13a, and WB13b.
29490         * tests/uniwbrk/test-uc-wordbreaks.c
29491         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
29492         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
29493         (UC_BIDI_PDI): New enumeration values.
29494         (bidi_category_byname): Support those enum values.
29495         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
29496         dedicated property assigned.
29497         (is_property_case_ignorable): Check 0x0027.
29498         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
29499         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
29500         (output_wbp): Support those enum values.
29501         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
29502         (UC_BIDI_PDI): New enumeration values.
29503         * lib/unictype/bidi_byname.gperf: Add those property names.
29504         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
29505         U+180E, U+1A1B, and U+2066..U+2069.
29506         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29507         lib/uniwidth/width.c.
29508         * all generated files under lib/uni* and tests/uni*: Regenerate.
29510 2015-01-14  Daiki Ueno  <ueno@gnu.org>
29512         libunistring: update to Unicode 6.2.0
29513         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
29514         (unilbrk_table): Adjust table size.
29515         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
29516         for LBP_RI.
29517         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
29518         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
29519         Normalize table index skipping ignored properties.
29520         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
29521         WBP_EXTEND and WBP_FORMAT, which are now computed without using
29522         the table.
29523         * lib/uniwbrk/wbrktable.h: Adjust table size.
29524         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
29525         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
29526         Support rule GB8a.
29527         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
29528         * tests/unigbrk/test-uc-is-grapheme-break.c
29529         (graphemebreakproperty_to_string): Support GBP_RI.
29530         * tests/uniwbrk/test-uc-wordbreaks.c
29531         (wordbreakproperty_to_string): Support WBP_RI.
29532         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
29533         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
29534         (output_lbp): Support LBP_RI.  Adjust some characters changed from
29535         LBP_AL to LBP_ID.
29536         (output_lbp): Support LBP_RI.
29537         (WBP_RI): New enumeration value.
29538         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
29539         (output_wbp): Support WBP_RI.
29540         (GBP_RI): New enumeration value.
29541         (output_gbp_test, fill_org_gbp): Support GBP_RI.
29542         * all generated files under lib/uni* and tests/uni*: Regenerate.
29544 2015-01-14  Daiki Ueno  <ueno@gnu.org>
29546         libunistring: update to Unicode 6.1.0
29547         * lib/gen-uni-tables.c (output_joining_group): Switch to
29548         3-level table to accommodate joining groups defined with higher
29549         codepoint value.  Since there are only 88 groups defined in
29550         Unicode 7.0.0, use 7-bit packed format for level3 entries.
29551         (get_lbp): Update for Unicode 6.1.0.
29552         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
29553         3-level table.
29554         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
29555         joining group name.
29556         * lib/unictype/joininggroup_name.h: Likewise.
29557         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
29558         (unilbrk_table): Adjust table size.
29559         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
29560         for LBP_HL.
29561         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
29562         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
29563         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
29564         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
29565         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
29566         U+302E..U+302F.
29567         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29568         lib/uniwidth/width.c.
29569         * all generated files under lib/uni* and tests/uni*: Regenerate.
29570         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
29572 2015-01-15  Daiki Ueno  <ueno@gnu.org>
29574         uniwbrk/u32-wordbreaks-tests: add conformance test
29575         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
29576         tests/uniwbrk/test-uc-wordbreaks.c,
29577         tests/uniwbrk/test-uc-wordbreaks.sh, and
29578         tests/uniwbrk/WordBreakTest.txt.
29579         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
29580         test-uc-wordbreaks to $(check_PROGRAMS), and define
29581         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
29582         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
29583         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
29585 2015-01-15  Daiki Ueno  <ueno@gnu.org>
29587         uniwbrk: ignore Extended/Format characters at BOL not BOS
29588         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
29589         characters if the previous character property is one of
29590         WBP_NEWLINE, WBP_CR, and WBP_LF.
29592 2015-01-11  Jim Meyering  <meyering@fb.com>
29594         test-strstr.c: avoid a trivial leak
29595         * tests/test-strstr.c (main): Free haystack.
29597         update-copyright: recognize groff's \(co marker
29598         * build-aux/update-copyright (circle_c_re): Also accept
29599         uses of \(co, as found in gzip.1.
29601 2015-01-08  Pádraig Brady  <P@draigBrady.com>
29603         maint.mk: fix compatibility with OS X nm
29604         * top/maint.mk (_gl_tight_scope): Use the -g option to
29605         show exported items rather than the -e option which is
29606         ignored on all platforms except OS X where it gives an error.
29607         Reported by Assaf Gordon.
29609 2015-01-07  KO Myung-Hun  <komh@chollian.net>
29611         localcharset: improve charset detection on OS/2
29612         Use system codepage when appropriate.  Map OS/2 codepages to
29613         GNU canonical charset names if possible.
29614         * lib/config.charset: Don't output aliases if "$os" is os2*.
29615         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
29616         result for OS/2.
29617         (locale_charset) [OS2]: Use system codepage if codeset is omitted
29618         from the locale name which is neither "C" nor "POSIX".
29620 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
29622         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
29623         This reverts the last patch but one, as it shouldn't be needed now
29624         that the typo is fixed.
29625         * lib/count-leading-zeros.h (count_leading_zeros_ll):
29626         * lib/count-trailing-zeros.h:
29627         * lib/count-one-bits.h:
29628         Go back to using 64-bit intrinsics.
29630         count-leading-zeros: fix pragma typos
29631         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
29632         Fix typos in declaration of intrinsics when _MSC_VER.
29634 2015-01-06  Pádraig Brady  <P@draigBrady.com>
29636         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
29637         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
29638         intrinsics in this case.
29639         * lib/count-trailing-zeros.h: Likewise.
29640         * lib/count-one-bits.h: Likewise.
29642 2015-01-06  Daiki Ueno  <ueno@gnu.org>
29644         uniname/uniname: update to Unicode 7.0.0
29645         To accommodate new characters added since Unicode 5.1.0, this
29646         changes the internal representation of codepoint ranges.
29647         Previously, we grouped codepoint ranges by manually assigned 4-bit
29648         tag, which only allowed 16 groups.  This removes the limitation by
29649         switching to binary search on a table.  For the detail rationale
29650         and the benchmark results, see:
29651         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
29652         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
29653         to INDEX, as it no longer represents a codepoint.
29654         (range): New struct.
29655         (main): Switch to intervals list from a bit-pattern based
29656         classification.
29657         * lib/uniname/uninames.h: Regenerate.
29658         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
29659         * modules/uniname/base (configure.ac): Bump minimum version to
29660         0.9.5.
29661         * modules/uniname/uniname (configure.ac): Bump minimum version to
29662         0.9.5.
29664 2015-01-05  Eric Blake  <eblake@redhat.com>
29666         doc: update INSTALL from autoconf
29667         * doc/install.texi: Resync from autoconf.
29668         * doc/INSTALL: Reflect recent autoconf update.
29669         * doc/INSTALL.ISO: Likewise.
29670         * doc/INSTALL.UTF-8: Likewise.
29672         stdio: fix use of PRIdMAX on modern mingw
29673         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
29674         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
29675         to work with modern mingw.
29677 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
29679         pthread: detect git mingw builds with only partial pollution
29680         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
29681         pollution, as seen temporarily in Fedora 21.
29683 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29685         lib-symbol-versions: cache script check
29686         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
29687         Cache the check for linker version scripts.
29688         From a suggestion by Christophe Curis in:
29689         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
29691 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
29693         maint: fix grammar nits in propername (trivial change)
29694         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
29695         and use an adequate verb and tense.
29697 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
29699         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
29700         * module/gendocs: Add 'doc/gendocs_template_min'.
29702         * build-aux/gendocs.sh: Change email addresses and upstream URLs
29703         from to Gnulib's.
29704         (scripturl, templateurl): Adjust accordingly.
29706 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29708         gendocs: copyright date and version fix
29709         Reported by Karl Berry in:
29710         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
29711         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
29712         Fix copyright date.
29713         * build-aux/gendocs.sh (scriptversion): Update.
29715 2015-01-01  Karl Berry  <karl@gnu.org>
29717         * doc/install.texi,
29718         * build-aux/mdate-sh,
29719         * build-aux/depcomp,
29720         * build-aux/config.guess,
29721         * build-aux/config.sub,
29722         * build-aux/ar-lib,
29723         * build-aux/compile: revert copyright updates (some from last
29724         year) in slaved files.
29726 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29728         version-etc: new year
29729         * doc/gnulib.texi:
29730         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
29731         * all files: Run 'make update-copyright'.
29733 2014-12-30  Pádraig Brady  <P@draigBrady.com>
29735         xstrtol: ensure errno is reset
29736         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
29737         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
29739         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
29741 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29743         utimens: fix dependency typo
29744         * modules/utimens (Depends-on): Remove 'assure'.
29745         This bug was introduced in the recent 'assure' patch.
29747 2014-12-22  Eric Blake  <eblake@redhat.com>
29749         docs: mention why libgen.h is bad
29750         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
29752 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
29754         assure: new module
29755         This works better than 'assert' when compiling with -DNDEBUG,
29756         as it avoids some compiler diagnostics in that case.
29757         Reported by Norihiro Tanaka in:
29758         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
29759         * MODULES.html.sh (func_all_modules): Add 'assure'.
29760         * lib/assure.h, modules/assure: New files.
29761         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
29762         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
29763         Prefer 'assure' to 'assert'.
29764         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
29765         * modules/chdir-long, modules/cycle-check, modules/fchdir:
29766         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
29767         Depend on 'assure'.
29769 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
29771         stdalign: port better to HP compilers
29772         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
29773         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
29775         stdalign: work around Apple GCC 4.0 bug
29776         Reported by David Fang in:
29777         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
29778         * lib/stdalign.in.h (_Alignas):
29779         * m4/stdalign.m4 (gl_STDALIGN_H):
29780         Do not use aligned attribute with GCC 4.0 on Apple.
29782 2014-12-16  Pádraig Brady  <P@draigBrady.com>
29784         getcwd: fix test failure on OS X 10.9
29785         * m4/getcwd-path-max.m4: Avoid the replacement if it
29786         won't be effective due to the PATH_MAX limitation of lstat().
29787         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
29788         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
29789         for this case for use in tests, and also exclude this
29790         case when setting REPLACE_GETCWD.
29791         * tests/test-getcwd.c (test_long_name): Restrict the
29792         tested path length so that lstat() will not be passed
29793         a path greater than PATH_MAX.
29794         Also key a test condition on HAVE_OPENAT_SUPPORT rather
29795         than AT_FDCWD, since the latter is set unconditionally
29796         since Sep 2009 in commit 52c658e9.
29798 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
29800         parse-datetime: avoid a compiler warning with byacc (trivial)
29801         * lib/parse-datetime.y (yylex): Use the same prototype in the
29802         function definition as the declaration, to avoid a -Wstrict-prototypes
29803         warning seen when using byacc.
29805 2014-12-12  Daiki Ueno  <ueno@gnu.org>
29807         unicase/locale-language-tests: fix LOCALE_FR test
29808         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
29809         a French locale with traditional encoding.
29810         Reported by umerqayam in:
29811         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
29813 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29815         stddef: support C11's max_align_t
29816         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
29817         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
29818         Do not undef, as that might cause max_align_t to be defined twice.
29819         Instead, change use to check for _GL_STDDEF_WINT_T too.
29820         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
29821         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
29822         Check for max_align_t.
29823         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
29824         * modules/stddef-tests (Depends-on): Add stdalign.
29825         * tests/test-stddef.c: Test max_align_t.
29827 2014-12-11  Daiki Ueno  <ueno@gnu.org>
29829         unistd: fix iOS check conditional
29830         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
29831         as 0 or 1 in <TargetConditionals.h>, and the previous check always
29832         yielded true on non-iOS environment.
29833         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
29834         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
29835         they are defined.
29837 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
29839         posixtm: avoid compiler warning in a better way
29840         * lib/posixtm.c (IF_LINT): Remove.
29841         (year, posix_time_parse):
29842         Return true (not 0) if successful.  All callers changed.
29843         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
29845 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
29847         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
29848         started with '/' on EMX.
29850 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
29852         freopen: workaround freopen() on OS/2 kLIBC
29853         * lib/freopen.c (rpl_freopen): Workaround.
29854         * m4/freopen.m4: Add os2* case.
29856         get_shared_library_fullname: port to EMX
29857         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
29858         on EMX, respectively.
29859         (_DLL_InitTerm): New on EMX.
29860         (get_shared_library_fullname): Implement on EMX.
29862         find_executable: port to EMX
29863         * lib/progreloc.c (find_executable): Implement on EMX.
29865         sched: check struct sched_param in spawn.h as well
29866         * lib/sched.in.h: Include spawn.h on kLIBC.
29867         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
29869 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
29871         bootstrap: Allow perl modules in $buildreq
29872         * build-aux/bootstrap: Add case for perl modules.
29874 2014-12-08  Pádraig Brady  <P@draigBrady.com>
29876         apply _GL_ATTRIBUTE_PURE to some inline functions
29877         clang 3.4.2 flagged these inline functions as pure
29878         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
29879         * lib/sig-handler.h (get_handler): Likewise.
29880         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
29881         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
29883 2014-12-06  Pádraig Brady  <P@draigBrady.com>
29885         vasnprintf: fix potential use after free
29886         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
29887         flagged by clang-analyzer 3.4.2.
29889 2014-12-05  Pádraig Brady  <P@draigBrady.com>
29891         filevercmp, posixtm: avoid compiler warnings with -O3
29892         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
29893         * lib/posixtm.c: (IF_LINT): Define.
29894         (posix_time_parse): Use it to void a "may be used uninitialized"
29895         warning, seen only with -O3.
29897 2014-12-05  Bruno Haible  <bruno@clisp.org>
29899         Fix LDBL80_WORDS macro on big endian platforms.
29900         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
29901         LDBL80_WORDS macro.
29902         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29903         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29904         * tests/test-isfinite.c (test_isfinitel): Likewise.
29905         * tests/test-isinf.c (test_isinfl): Likewise.
29906         * tests/test-isnan.c (test_long_double): Likewise.
29907         * tests/test-isnanl.h (main): Likewise.
29908         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
29909         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
29910         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
29911         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
29912         Reported by Pádraig Brady.
29914 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
29916         git-version-gen: do not print new line characters
29917         * build-aux/git-version-gen: Use printf instead of echo and tr.
29919         gnulib-tool: recognize x:* as an absolute path
29920         * gnulib-tool (func_gnulib_dir): Add ?:* case.
29921         (func_relconcat): Likewise.
29923 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
29925         argp: avoid extraneous translation and mem leak with empty pre doc
29926         * lib/argp-help.c (argp_doc): Never translate the empty string,
29927         when "\v" is the first or last character of the string, as that
29928         has a reserved meaning to return the header info from a po file.
29929         This also fixes a small memory leak in the !post case.
29930         The issue can be seen with this command for example:
29931         LC_MESSAGES=en_US grub2-mknetdir --help
29933 2014-11-27  Daiki Ueno  <ueno@gnu.org>
29935         uniname/uniname-tests: skip if system's libunistring is used
29936         * modules/uniname/uniname-tests (Makefile.am): Skip test if
29937         uniname/uniname module is not compiled.
29939 2014-11-27  Pádraig Brady  <P@draigBrady.com>
29941         printf: fix configure check on big endian systems
29942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
29944 2014-11-22  Daiki Ueno  <ueno@gnu.org>
29946         pipe-filter-gi, pipe-filter-ii: port to AIX
29947         On AIX 7.1, 'select' is defined as static and cannot be referred
29948         to from inline function.
29949         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
29950         the definition...
29951         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
29952         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
29954 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29956         gitlog-to-changelog: add --until
29957         * build-aux/gitlog-to-changelog: Support new --until option.
29958         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
29960 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
29962         extern-inline: update commentary about GCC bugs
29963         * m4/extern-inline.m4: Add another GCC bug number to comments.
29965 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29967         gen-uni-tables: untabify
29968         * lib/gen-uni-tables.c: Untabify.
29970 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29972         gen-uni-tables: check out-of-range values added to 3-level tables
29973         * lib/gen-uni-tables.c (output_category, output_bidi_category)
29974         (output_joining_type, output_ident_category): Check out-of-range
29975         values added to 3-level tables.
29977 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29979         gen-uni-tables: utilize 'assert'
29980         * lib/gen-uni-tables.c: Include <assert.h>.
29981         (output_category, output_combclass, output_decimal_digit_test)
29982         (output_decimal_digit, output_digit_test, output_digit)
29983         (output_numeric, get_mirror_value, fill_properties)
29984         (fill_property30, is_property_alphabetic)
29985         (is_property_default_ignorable_code_point)
29986         (is_property_uppercase, is_property_lowercase)
29987         (is_property_cased, is_property_case_ignorable)
29988         (is_property_changes_when_lowercased, is_property_iso_control)
29989         (is_property_math, fill_arabicshaping, output_joining_group)
29990         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
29991         (output_wbp, fill_org_gbp, get_decomposition)
29992         (output_decomposition, fill_composition_exclusions)
29993         (debug_output_composition_tables, output_composition_tables)
29994         (redistribute_casefolding_rules, output_casing_rules): Use
29995         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
29996         reporting.
29998 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30000         gen-uni-tables: cosmetic improvements
30001         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
30002         variables specification.
30003         (is_outdigit): Remove unused function.
30005 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
30007         fcntl-h-tests: port to PA-RISC GNU/Linux
30008         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
30010 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30012         fts: port to C89
30013         Problem reported for MSVC 16 by Gisle Vanem in:
30014         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
30015         * lib/fts.c (fts_build): Avoid declaration before statement.
30017 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30019         unistd: port to iOS
30020         Problem reported by André Klitzing in:
30021         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
30022         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
30024 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30026         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
30027         Problem reported by Alan Modra in:
30028         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
30029         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
30030         Always cast the function arg, reverting this part of the previous
30031         change.
30033 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30035         obstack: avoid potentially-nonportable function casts
30036         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
30037         Remove, replacing with ...
30038         (call_chunkfun, call_freefun): New static functions.
30039         All uses changed.  Avoid potentially-nonportable casts.
30040         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
30041         (_obstack_begin_worker): Omit last two args, since they
30042         rely on potentially-nonportable casts.  All callers changed.
30043         * lib/obstack.h (_OBSTACK_CAST): New macro.
30044         Use it everywhere the old API used a potentially-nonportable cast.
30045         The new API doesn't cast.
30046         (struct obstack): Use unions rather than requiring
30047         potentially-nonportable casts.
30048         (obstack_chunkfun, obstack_freefun): Return void.
30050 2014-11-03  Alan Modra  <amodra@gmail.com>
30052         obstack: fix macro return values
30053         * lib/obstack.h (obstack_next_free): Return void *.
30054         (obstack_1grow_fast, obstack_blank_fast): Return void.
30055         For __GNUC__ macros:
30056         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
30057         For !__GNUC__ macros:
30058         (obstack_make_room, obstack_grow, obstack_grow0)
30059         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
30061 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30063         obstack: do not assume system-supplied obstack is size_t safe
30064         * m4/obstack.m4: New file.
30065         * modules/obstack (Files): Add it.
30067         obstack: port to platforms that #define __alignof__
30068         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
30069         not if !_LIBC.  We don't know of any platforms that #define
30070         __alignof__, but it might be useful in tests.  Conversely,
30071         glibc assumes GCC.
30073 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30075         linkat: don't unconditionally replace on GNU/Linux
30076         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
30077         was redundant for a few reasons.  It was present to support compiling
30078         on new systems but running on the old narrow window of Linux 2.6.1[67].
30079         It setup and cleaned up test files which weren't actually used.
30080         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
30081         implicit in the following check.
30083 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30085         linkat: wrap to handle symlinks on OS X 10.10
30086         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
30087         but not usable because it doesn't support creating hardlinks
30088         to symlinks.  Therefore add a generic test for this capability
30089         and fallback to our emulation if linkat() fails with ENOTSUP.
30091 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30093         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
30094         * doc/posix-functions/open.texi (open):
30095         * doc/posix-functions/openat.texi (openat):
30096         Document that these functions do not set errno to ELOOP when
30097         a symlink is opened with O_NOFOLLOW.
30099 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30101         obstack: add NEWS entry for recent incompatible changes
30102         * NEWS: Describe recent changes.
30104 2014-10-30  Pádraig Brady  <P@draigBrady.com>
30106         mountlist: don't use libmount to decide on dummy/remote
30107         * lib/mountlist.c (read_file_system_list): Don't use the libmount
30108         routines to determine whether a file system is dummy or remote,
30109         as they're not currently compatible.  For example the remoteness
30110         is determined on file system type (for which the list seems incomplete),
30111         rather than simply checking for a ':' in the device name.
30112         Also libmount currently determines that 'tmpfs' is a dummy file system
30113         even though it has associated storage.
30115 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30117         obstack: prefer __alignof__ to alignof
30118         This is for portability to pre-4.7 GCC when compiling glibc.
30119         See Joseph S. Myers in:
30120         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
30121         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
30122         New macro, defined by including and using <alignof.h>.
30123         (MAX): New macro.
30124         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
30125         Do not use enums as they are not portable to some broken compilers.
30126         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
30128         obstack: prefer alignof to calculating alignments by hand
30129         * lib/obstack.c: Include <stdalign.h>.
30130         (struct fooalign): Remove.
30131         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
30132         * modules/obstack (Depends-on): Add stdalign.
30134 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
30136         obstack: use size_t alignments and check for overflow
30137         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
30138         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
30139         * lib/obstack.h (struct obstack.alignment_mask):
30140         Use _OBSTACK_SIZE_T, not int, for alignments.
30141         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
30142         overflows, e.g., when adding the alignment.
30144 2014-10-29  Alan Modra  <amodra@gmail.com>
30146         obstack: 64-bit obstack support, part 3
30147         This finally enables full 64-bit obstack support.  The glibc
30148         shared library specific code is removed from obstack.c too, and
30149         the error handling code conditionally compiled under control of
30150         another macro, _OBSTACK_NO_ERROR_HANDLER.
30151         * lib/obstack.h: Include string.h earlier.
30152         (_OBSTACK_INTERFACE_VERSION): Define.
30153         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
30154         * lib/obstack.c: Don't include shlib-compat.h.
30155         (OBSTACK_INTERFACE_VERSION): Delete.
30156         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
30157         glibc code is compatible with version 2.  Don't include stdio.h for
30158         __GNU_LIBRARY.
30159         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
30160         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
30161         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
30162         glibc shared library specific source.
30164         obstack: 64-bit obstack support, part 2
30165         This gets us 4G obstack support, without changing ABI
30166         compatibility, apart from possibly introducing some
30167         signed/unsigned comparison warnings in code that uses obstack.h.
30168         a) Replace "int" size parameters, return values, and macro local vars
30169            with _OBSTACK_SIZE_T, an "unsigned int" for now.
30170         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
30171         c) Make all obstack macros checking available room use obstack_room.
30172            "next_free + desired > chunk_limit" may wrap the lhs for chunks
30173            allocated near the top of memory.
30174         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
30175         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
30176         in place of "int" size parameters, return values and local vars.
30177         (_CHUNK_SIZE_T): Define.
30178         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
30179         union use an _OBSTACK_SIZE_T integer type.
30180         For __GNUC__ versions of the following macros...
30181         (obstack_room): Rename local var.
30182         (obstack_make_room): Use obstack_room.
30183         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30184         obstack_int_grow, obstack_blank): Likewise.
30185         (obstack_finish): Use unsigned comparison when comparing aligned
30186         next_free against chunk_limit.
30187         (obstack_free): Cast OBJ to remove possible const qualifier.
30188         For !__GNUC__ versions of the following macros...
30189         (obstack_make_room): Use obstack_room.
30190         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30191         obstack_int_grow, obstack_blank): Likewise.
30192         (obstack_finish): Use unsigned comparision when comparing aligned
30193         next_free against chunk_limit.
30194         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
30195         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
30196         _OBSTACK_SIZE_T.
30197         (_obstack_begin, _obstack_begin_1): Likewise.
30198         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
30199         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
30201         obstack: 64-bit obstack support, part 1
30202         a) Correct calls to alloc function, to use a size_t arg.  "long" is
30203            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
30204            and "size_t" 64 bits.
30205         b) Consolidate _obstack_begin and _obstack_begin1 code.
30206         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
30207         use "size_t" rather than "long".
30208         (_obstack_begin, _obstack_begin1): Likewise.
30209         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
30210         obstack_chunkfun): Update alloc function casts.
30211         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
30212         (chunkfun_type, freefun_type): New typdefs.
30213         (_obstack_begin_worker): Split out from ..
30214         (_obstack_begin, _obstack_begin_1): ..here.
30216         obstack: tidy part 2
30217         a) Don't be concerned about "not polluting the namespace with stddef.h
30218            symbols" in obstack.h, since gnulib string.h includes stddef.h
30219            anyway, and it seems unlikely that anyone would care.
30220         b) Don't roll our own slow memcpy in _obstack_newchunk.
30221         c) Rename obstack_free to _obstack_free.  This makes the naming
30222            consistent with other obstack functions and obviates the need for
30223            __obstack_free.  Ancient obstack.c defined both obstack_free and
30224            _obstack_free.  We continue to do that for _LIBC via an alias.
30225         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
30226            is clever, but nowadays gcc warns on undefined macros.  You'll get
30227            an undefined macro warning if simulating an old gcc with -U__GNUC__
30228            -U__GNUC_MINOR__ -D__GNUC__=1.
30229         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
30230         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
30231         (__obstack_free): Delete, update refs.
30232         (_obstack_free): Rename from obstack_free.
30233         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
30234         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
30235         * lib/obstack.c: Don't include stddef.h.
30236         (COPYING_UNIT): Delete.
30237         (_obstack_begin): Formatting fix.
30238         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
30239         (_obstack_free): Rename from __obstack_free, update alias.  Move
30240         undef of obstack_free to where it is needed.
30242         obstack: tidy part 1
30243         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
30244            to me, and result in overlong lines after later patches.
30245         b) Move error handling code, to avoid a forward declaration and to
30246            simplify later patches in this series.
30247         * lib/obstack.h (struct obstack <temp>): Rename fields of union
30248         and update all uses.
30249         * lib/obstack.c: Include stdlib.h earlier.
30250         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
30251         in file.
30252         (print_and_abort): Remove now redundant forward declaration.
30254 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30256         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
30257         Without this change, in bleeding-edge fileutils Autoconf complains
30258         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
30259         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
30260         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
30261         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
30263 2014-10-24  Daiki Ueno  <ueno@gnu.org>
30265         iconv: avoid false detection of non-working iconv
30266         The INBUF arguments of iconv can be either 'const char **'
30267         or 'char **'.  If CC is g++, the difference causes a compile error
30268         and thus leads to a false detection of non-working iconv.
30269         Reported by Eli Zaretskii and Werner LEMBERG in:
30270         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
30271         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
30272         iconv.  Bump serial number.
30274 2014-10-23  Pádraig Brady  <P@draigBrady.com>
30276         bootstrap: print more diagnostics for missing programs
30277         * build-aux/bootstrap: only suppress stderr when checking for
30278         alternative program names.  This supports programs issuing non
30279         standard error messages.
30281 2014-10-23  Pádraig Brady  <P@draigBrady.com>
30283         bootstrap: only update the gnulib submodule
30284         * build-aux/bootstrap: Restrict the "submodule update" command
30285         to the gnulib path.
30287 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30289         symlinkat: port to AIX 7.1
30290         * doc/posix-functions/symlinkat.texi (symlinkat):
30291         Mention AIX porting problem.
30292         * lib/symlinkat.c: Always include errno.h.
30293         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
30294         * lib/unistd.in.h (symlinkat): Add replacement machinery.
30295         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
30296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
30297         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
30298         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
30299         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
30301         readlinkat: port to AIX 7.1
30302         * doc/posix-functions/readlink.texi (readlink):
30303         * doc/posix-functions/readlinkat.texi (readlinkat):
30304         Mention AIX porting problem.
30305         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
30306         New function.
30307         * lib/unistd.in.h (readlinkat): Add replacement machinery.
30308         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
30309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
30310         * modules/readlinkat (configure.ac): Also compile replacement
30311         if REPLACE_READLINKAT.
30312         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
30314 2014-10-12  Karl Berry  <karl@gnu.org>
30316         * doc/posix-functions/dirname.texi: remove spurious {.
30318 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
30320         basename, dirname: Improve documentation.
30321         * doc/posix-functions/basename.texi: Mention dirname module and
30322         base_name() function.
30323         * doc/posix-functions/dirname.texi: Mention dir_name() and
30324         mdir_name() functions.
30325         Suggested by Werner LEMBERG <wl@gnu.org>.
30327 2014-09-24  Jim Meyering  <meyering@fb.com>
30329         exclude: declare exclude_patopts static
30330         * lib/exclude.c (exclude_patopts): Declare static,
30331         to avoid triggering a -Wmissing-prototypes warning.
30332         The alternative (declaring it in the .h file) would
30333         require publicizing the private "struct patopts".
30335 2014-09-21  Werner Lemberg  <wl@gnu.org>
30337         dirname: support compilation with C++
30338         * lib/dirname.h: Add necessary C linkage declarations.
30340 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30342         qsort_r: include <config.h>
30343         Problem reported by Tom G. Christensen in:
30344         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
30345         * lib/qsort.c [!_LIBC]: Include <config.h> first.
30347 2014-09-16  Dylan Cali  <calid1984@gmail.com>
30349         avltree-list: avoid compiler warnings (trivial)
30350         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30351         -Werror=suggest-attribute=pure.
30352         * lib/gl_array_list.c: Likewise.
30353         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
30354         declaration to avoid -Werror=missing-prototypes.  This is not added
30355         to a header as only exported for tests.  Add (void) to the
30356         check_invariants() call to indicate we're discarding the result
30357         in this context which avoids -Werror=unused-value.  Note we don't
30358         use ignore_value here to avoid a dependency as we know we'll not
30359         be adding __attribute__((warn_unused_result)) to check_invariants().
30360         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
30362 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30364         qsort_r: new module, for GNU-style qsort_r
30365         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
30367 2014-09-15  Werner LEMBERG  <wl@gnu.org>
30369         strerror_r-posix: support compilation with C++
30370         * lib/strerror_r.c: Add necessary C linkage declarations.
30372 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
30374         fcntl-h: fix compilation with Intel C++ compiler (trivial)
30375         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
30377 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
30379         mountlist: use /proc/self/mountinfo when available
30380         Use libmount to propagate device IDs provided by Linux in
30381         /proc/self/mountinfo.  This will give more accurate output when
30382         using df in chroot'ed environments as the device IDs are not
30383         determined by stat() which may be inaccurate within the chroot.
30384         * lib/mountlist.c (read_file_system_list): Use the libmount routines
30385         from util-linux to parse "/proc/self/mountinfo" or fall back to
30386         standard getmntent() processing.
30387         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
30388         getmntent() is used, as is the case on GNU/Linux.
30390 2014-09-07  Eric Wong  <normalperson@yhbt.net>
30392         users.txt: add cmogstored
30393         cmogstored has used gnulib since the beginning in 2012 to support
30394         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
30396 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
30398         Trivial change.
30399         * gnulib-tool: Use same options as build-aux/bootstrap to download
30400         PO files.
30402 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
30404         Trivial change.
30405         * gnulib-tool: Fallback to wget when rsync of PO files fails.
30407 2014-09-04  Eric Blake  <eblake@redhat.com>
30409         maintainer-makefile: add syntax check for useless ';;'
30410         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
30412 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
30414         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
30415         Problem reported by Assaf Gordon in:
30416         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
30417         Apparently Ubuntu is doing some fancy link-time optimization
30418         that doesn't work with -lpthread but does work with -pthread.
30419         Work around the bug by preferring -pthread to -lpthread.
30420         * m4/pthread.m4 (gl_PTHREAD_CHECK):
30421         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
30422         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30423         Treat -pthread like -lpthread.
30425 2014-09-04  Eric Blake  <eblake@redhat.com>
30427         error: drop spurious semicolon
30428         * lib/error.c (__error_at_line): Fix ';;'.
30430 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30432         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
30433         * m4/gnulib-common.m4 (AC_C_RESTRICT):
30434         Override AC_C_RESTRICT unconditionally.
30435         Update from autoconf, incorporating:
30436         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
30437         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
30439 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30441         manywarnings: add GCC 4.9 warnings
30442         Also, make it easier to maintain this in the future.
30443         * build-aux/gcc-warning.spec: Add -Wabi-tag,
30444         -Wconditionally-supported, -Wdelete-incomplete,
30445         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
30446         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
30447         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
30448         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
30449         only for older GCC versions that need them.  Handle
30450         -Wnormalized=nfc specially, so that the 'comm' command used
30451         for maintenance doesn't get confused.
30453 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30455         vasnprintf: fix bugs in width computation
30456         * lib/vasnprintf.c (VASNPRINTF):
30457         Rework previous change, which introduced a bug,
30458         to avoid the warning in a different way.
30459         Avoid undefined behavior if the width arg is less than -INT_MAX.
30460         Avoid unnecessary use of HAS_WIDTH local.
30462 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
30464         vasnprintf: Avoid signed/unsigned comparison warning.
30465         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
30466         compare end addr of generated string w/ maximum end addr.
30468 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30470         parse-datetime: Avoid pointer difference.
30471         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
30472         instead of calculating difference of pointers.  This removes an
30473         annoying warning, devoid of any use.
30475 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30477         qsort_r: new module, for GNU-style qsort_r
30478         This works even on FreeBSD, which has an incompatible qsort_r API.
30479         * MODULES.html.sh: Add it.
30480         * doc/glibc-functions/qsort_r.texi: It's now supported.
30481         * lib/qsort.c: New file, taken from glibc with minor changes
30482         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
30483         removed.
30484         * lib/qsort_r.c: New file, compiled only on FreeBSD.
30485         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
30486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
30487         * modules/qsort_r, modules/qsort_r-tests: New files.
30488         * modules/stdlib (Makefile): Set up its defaults.
30489         * tests/test-qsort_r.c: New file.
30491 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
30493         vla: new module
30494         GNU RCS can use this, mostly for documentation I expect.  See:
30495         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
30496         * MODULES.html.sh: Add vla.
30497         * lib/vla.h, modules/vla: New files.
30499 2014-08-07  Daiki Ueno  <ueno@gnu.org>
30501         localename: make gl_locale_name_thread really thread-safe on Windows
30502         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
30503         "glthread/lock.h".
30504         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
30505         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
30507 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
30509         getpass: don't assume struct termios
30510         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
30511         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
30512         * lib/getpass.c (getpass): Port to systems lacking struct termios.
30514         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
30515         Problem reported by Jonas 'Sortie' Termansen in:
30516         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
30517         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
30518         Implement via sysconf for platforms that lack getdtablesize.
30520         vararrays: modernize AC_C_VARARRAYS for C11
30521         This backports a change I recently made to Autoconf.
30522         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
30523         VLAs are not supported, as this is what C11 does.  The old macro
30524         HAVE_C_VARARRAYS is still defined if they are supported, but is
30525         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
30527 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
30529         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
30530         * build-aux/install-reloc (func_create_wrapper): Also wrap
30531         strerror-override, stat, stat.
30533 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30535         sys_select: fix FD_ZERO problem on Solaris 10
30536         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
30537         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
30538         to expand to an expression that invoked memset without necessarily
30539         including <string.h>.  The problem was that the first include
30540         defined _SYS_TIME_H, causing the second include to short-circuit.
30541         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
30542         Also, fix what appears to be a cut-and-paste typo, by replacing
30543         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
30544         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
30546         accept: document Solaris 10 type glitch
30547         * doc/posix-functions/accept.texi (accept): Mention that
30548         Solaris 10 'accept' takes void * last arg, not socklen_t *.
30550 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
30552         extern-inline: port to FreeBSD, DragonFly
30553         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
30554         is present if either __DragonFly__ or __FreeBSD__ is defined.
30555         FreeBSD problem reported by Andrey Borzenkov in:
30556         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
30557         Also, worry about __APPLE__ only if __MACH__ is also defined,
30558         as this is more consistent with the rest of gnulib.
30559         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
30560         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
30562 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30564         regex: Make #if/#ifdef usage consistent for DEBUG
30565         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
30566         of the inconsistent usage of #if and #ifdef as that works with
30567         both Glibc and Gnulib's style.
30569 2014-07-31  Eric Blake  <eblake@redhat.com>
30571         openat-die: use _Noreturn markup
30572         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
30573         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
30574         _Noreturn.
30576 2014-07-30  Eric Blake  <eblake@redhat.com>
30578         test-open: port to cygwin, which lacks Fortify
30579         * tests/test-open.h (ALWAYS_INLINE): New macro.
30580         (__always_inline): Don't abuse internal symbol on non-glibc.
30582 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
30584         localename: Enforce declarations before statements.
30585         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
30586         first statement.
30588 2014-07-18  Jim Meyering  <meyering@fb.com>
30590         test-userspec: don't look up numeric user names
30591         * tests/test-userspec.c: I found a system for which getpwnam("0")
30592         returned a pointer to a non-root user's entry, and that made the
30593         test fail.
30594         (T): Prefix each numeric input with "+", to inhibit lookup.
30596 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
30598         localcharset, localename: MS-Windows support for non-default locales
30599         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
30600         falling back on the default system codepage, try extracting
30601         the codepage from what 'setlocale' returns.  This allows to
30602         take into account changes of the codeset due to non-default
30603         locale set by a previous call to 'setlocale'.
30604         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
30605         Define if not already defined.
30606         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
30607         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
30608         current locale by calling 'setlocale', then converting the
30609         locale name into LCID by calling 'get_lcid'.  This allows to
30610         take into account changes in the current locale from the
30611         default one, in contrast to GetThreadLocale.
30613 2014-07-14  Daiki Ueno  <ueno@gnu.org>
30615         announce-gen: avoid failure when Digest::SHA is installed
30616         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
30617         Digest::SHA1->new in print_checksums fails.
30618         * build-aux/announce-gen (digest_classes): New associative array
30619         for available message digest implementations.
30620         (print_locations): Use it.
30622 2014-07-13  Pádraig Brady  <P@draigBrady.com>
30624         gettext: revert "update macros to version 0.19"
30625         This reverts commit 9b9370ca, as it currently requires that
30626         developers of any project that explicitly uses the gettext module
30627         or implicitly uses it through the utimens-tests or
30628         futimens-tests modules, use gettext >= 0.19.
30629         However there are some stability and availablity issues with
30630         that version at present.  We can reinstate this soon, when stability
30631         is addressed and packages are more readily available.
30633 2014-07-12  Jim Meyering  <meyering@fb.com>
30635         regex: don't deref NULL upon heap allocation failure
30636         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
30637         failure in one more place.
30638         To trigger the segfault, configure grep -with-included-regex,
30639         build it, and run these commands:
30640         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
30641         I discovered this while replying to a private report from
30642         Jens Schleusener about excessive memory consumption by grep
30643         when using a regular expression like the one above.
30645 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30647         regex: fix memory leak in compiler
30648         Fix by Andreas Schwab in:
30649         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
30650         * lib/regcomp.c (parse_reg_exp): Deallocate partially
30651         constructed tree before returning error.
30653 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
30655         announce-gen: avoid perl warnings
30656         * build-aux/announce-gen: add two minor checks to avoid
30657         "use of uninitialized value" warnings when command-line parameters are
30658         missing.
30660 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
30662         localename: avoid -Wsuggest-attribute={const,pure} warnings
30663         * lib/localename.c (string_has): Tag internal function as pure.
30664         * lib/localename.h (gl_locale_name_default): Tag extern declaration
30665         as const when appropriate.
30667 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
30669         nl_langinfo: Fix last change.
30670         * lib/nl_langinfo.c (includes): Drop redundant include.
30672 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
30674         error: Fix -Wundef warnings in glibc
30675         * lib/error.c [_LIBC]: Define default macros for
30676         glibc.
30677         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
30678         Check _LIBC before STRERROR_R_CHAR_P.
30680         error: Sync from glibc master
30681         * lib/error.c [_LIBC]: Remove INTUSE usage.
30682         (error_tail): Remove unused macro ALLOCA_LIMIT.
30683         Fix potential buffer overflow.  Fix potential NULL dereference
30684         in strcmp.
30686 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
30688         nl_langinfo: fix build under mingw
30689         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
30691 2014-07-09  Andrew D Warshall  <warshall@99main.com>
30693         mountlist: do not classify a bind-mounted dir entry as "dummy"
30694         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
30695         1-argument getmntent() (instead of assuming absence).
30697 2014-07-08  Eric Blake  <eblake@redhat.com>
30699         maint.mk: less syntax-check noise when SIGPIPE is ignored
30700         * top/maint.mk (_sc_header_without_use)
30701         (sc_require_config_h_first): Parse full list.
30703 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
30704             Paul Eggert  <eggert@cs.ucla.edu>
30706         nl_langinfo: CODESET on MS-Windows and more items from localeconv
30707         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
30708         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
30709         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
30710         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
30711         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
30712         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
30713         Include <stdio.h> if Microsoft Windows.
30714         Include <time.h> if !REPLACE_NL_LANGINFO.
30715         (ctype_codeset): New function, taken from rpl_nl_langinfo,
30716         and with improvements for Microsoft Windows.
30717         (rpl_nl_langinfo): Use it.
30718         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
30719         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
30720         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
30721         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
30722         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
30723         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
30724         corresponding values returned by 'localeconv'.  Compute the values
30725         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
30726         'strftime' with a suitable struct tm value.
30728 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30730         Bruno Haible has stepped down as maintainer.
30731         See Karl Berry in:
30732         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
30733         Daiki Ueno has volunteered to maintain libunistring; see:
30734         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
30735         * modules/gen-uni-tables, modules/libunistring:
30736         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
30737         * modules/unicase/base, modules/unicase/cased:
30738         * modules/unicase/empty-prefix-context:
30739         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
30740         * modules/unicase/locale-language, modules/unicase/special-casing:
30741         * modules/unicase/tocasefold, modules/unicase/tolower:
30742         * modules/unicase/totitle, modules/unicase/toupper:
30743         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
30744         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
30745         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
30746         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
30747         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
30748         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
30749         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
30750         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
30751         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
30752         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
30753         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
30754         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
30755         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
30756         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
30757         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
30758         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
30759         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
30760         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
30761         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
30762         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
30763         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
30764         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
30765         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
30766         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
30767         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
30768         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
30769         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
30770         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
30771         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
30772         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
30773         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
30774         * modules/unicase/ulc-casexfrm, modules/unicodeio:
30775         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
30776         * modules/uniconv/u16-conv-to-enc:
30777         * modules/uniconv/u16-strconv-from-enc:
30778         * modules/uniconv/u16-strconv-from-locale:
30779         * modules/uniconv/u16-strconv-to-enc:
30780         * modules/uniconv/u16-strconv-to-locale:
30781         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
30782         * modules/uniconv/u32-strconv-from-enc:
30783         * modules/uniconv/u32-strconv-from-locale:
30784         * modules/uniconv/u32-strconv-to-enc:
30785         * modules/uniconv/u32-strconv-to-locale:
30786         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
30787         * modules/uniconv/u8-strconv-from-enc:
30788         * modules/uniconv/u8-strconv-from-locale:
30789         * modules/uniconv/u8-strconv-to-enc:
30790         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
30791         * modules/unictype/bidicategory-all:
30792         * modules/unictype/bidicategory-byname:
30793         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
30794         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
30795         * modules/unictype/bidiclass-byname:
30796         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
30797         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
30798         * modules/unictype/block-all, modules/unictype/block-list:
30799         * modules/unictype/block-of, modules/unictype/block-test:
30800         * modules/unictype/category-C, modules/unictype/category-Cc:
30801         * modules/unictype/category-Cf, modules/unictype/category-Cn:
30802         * modules/unictype/category-Co, modules/unictype/category-Cs:
30803         * modules/unictype/category-L, modules/unictype/category-LC:
30804         * modules/unictype/category-Ll, modules/unictype/category-Lm:
30805         * modules/unictype/category-Lo, modules/unictype/category-Lt:
30806         * modules/unictype/category-Lu, modules/unictype/category-M:
30807         * modules/unictype/category-Mc, modules/unictype/category-Me:
30808         * modules/unictype/category-Mn, modules/unictype/category-N:
30809         * modules/unictype/category-Nd, modules/unictype/category-Nl:
30810         * modules/unictype/category-No, modules/unictype/category-P:
30811         * modules/unictype/category-Pc, modules/unictype/category-Pd:
30812         * modules/unictype/category-Pe, modules/unictype/category-Pf:
30813         * modules/unictype/category-Pi, modules/unictype/category-Po:
30814         * modules/unictype/category-Ps, modules/unictype/category-S:
30815         * modules/unictype/category-Sc, modules/unictype/category-Sk:
30816         * modules/unictype/category-Sm, modules/unictype/category-So:
30817         * modules/unictype/category-Z, modules/unictype/category-Zl:
30818         * modules/unictype/category-Zp, modules/unictype/category-Zs:
30819         * modules/unictype/category-all, modules/unictype/category-and:
30820         * modules/unictype/category-and-not, modules/unictype/category-byname:
30821         * modules/unictype/category-longname, modules/unictype/category-name:
30822         * modules/unictype/category-none, modules/unictype/category-of:
30823         * modules/unictype/category-or, modules/unictype/category-test:
30824         * modules/unictype/category-test-withtable:
30825         * modules/unictype/combining-class:
30826         * modules/unictype/combining-class-all:
30827         * modules/unictype/combining-class-byname:
30828         * modules/unictype/combining-class-longname:
30829         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
30830         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
30831         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
30832         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
30833         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
30834         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
30835         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
30836         * modules/unictype/digit, modules/unictype/joininggroup-all:
30837         * modules/unictype/joininggroup-byname:
30838         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
30839         * modules/unictype/joiningtype-all:
30840         * modules/unictype/joiningtype-byname:
30841         * modules/unictype/joiningtype-longname:
30842         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
30843         * modules/unictype/mirror, modules/unictype/numeric:
30844         * modules/unictype/property-all, modules/unictype/property-alphabetic:
30845         * modules/unictype/property-ascii-hex-digit:
30846         * modules/unictype/property-bidi-arabic-digit:
30847         * modules/unictype/property-bidi-arabic-right-to-left:
30848         * modules/unictype/property-bidi-block-separator:
30849         * modules/unictype/property-bidi-boundary-neutral:
30850         * modules/unictype/property-bidi-common-separator:
30851         * modules/unictype/property-bidi-control:
30852         * modules/unictype/property-bidi-embedding-or-override:
30853         * modules/unictype/property-bidi-eur-num-separator:
30854         * modules/unictype/property-bidi-eur-num-terminator:
30855         * modules/unictype/property-bidi-european-digit:
30856         * modules/unictype/property-bidi-hebrew-right-to-left:
30857         * modules/unictype/property-bidi-left-to-right:
30858         * modules/unictype/property-bidi-non-spacing-mark:
30859         * modules/unictype/property-bidi-other-neutral:
30860         * modules/unictype/property-bidi-pdf:
30861         * modules/unictype/property-bidi-segment-separator:
30862         * modules/unictype/property-bidi-whitespace:
30863         * modules/unictype/property-byname:
30864         * modules/unictype/property-case-ignorable:
30865         * modules/unictype/property-cased:
30866         * modules/unictype/property-changes-when-casefolded:
30867         * modules/unictype/property-changes-when-casemapped:
30868         * modules/unictype/property-changes-when-lowercased:
30869         * modules/unictype/property-changes-when-titlecased:
30870         * modules/unictype/property-changes-when-uppercased:
30871         * modules/unictype/property-combining:
30872         * modules/unictype/property-composite:
30873         * modules/unictype/property-currency-symbol:
30874         * modules/unictype/property-dash:
30875         * modules/unictype/property-decimal-digit:
30876         * modules/unictype/property-default-ignorable-code-point:
30877         * modules/unictype/property-deprecated:
30878         * modules/unictype/property-diacritic:
30879         * modules/unictype/property-extender:
30880         * modules/unictype/property-format-control:
30881         * modules/unictype/property-grapheme-base:
30882         * modules/unictype/property-grapheme-extend:
30883         * modules/unictype/property-grapheme-link:
30884         * modules/unictype/property-hex-digit:
30885         * modules/unictype/property-hyphen:
30886         * modules/unictype/property-id-continue:
30887         * modules/unictype/property-id-start:
30888         * modules/unictype/property-ideographic:
30889         * modules/unictype/property-ids-binary-operator:
30890         * modules/unictype/property-ids-trinary-operator:
30891         * modules/unictype/property-ignorable-control:
30892         * modules/unictype/property-iso-control:
30893         * modules/unictype/property-join-control:
30894         * modules/unictype/property-left-of-pair:
30895         * modules/unictype/property-line-separator:
30896         * modules/unictype/property-logical-order-exception:
30897         * modules/unictype/property-lowercase, modules/unictype/property-math:
30898         * modules/unictype/property-non-break:
30899         * modules/unictype/property-not-a-character:
30900         * modules/unictype/property-numeric:
30901         * modules/unictype/property-other-alphabetic:
30902         * modules/unictype/property-other-default-ignorable-code-point:
30903         * modules/unictype/property-other-grapheme-extend:
30904         * modules/unictype/property-other-id-continue:
30905         * modules/unictype/property-other-id-start:
30906         * modules/unictype/property-other-lowercase:
30907         * modules/unictype/property-other-math:
30908         * modules/unictype/property-other-uppercase:
30909         * modules/unictype/property-paired-punctuation:
30910         * modules/unictype/property-paragraph-separator:
30911         * modules/unictype/property-pattern-syntax:
30912         * modules/unictype/property-pattern-white-space:
30913         * modules/unictype/property-private-use:
30914         * modules/unictype/property-punctuation:
30915         * modules/unictype/property-quotation-mark:
30916         * modules/unictype/property-radical:
30917         * modules/unictype/property-sentence-terminal:
30918         * modules/unictype/property-soft-dotted:
30919         * modules/unictype/property-space:
30920         * modules/unictype/property-terminal-punctuation:
30921         * modules/unictype/property-test, modules/unictype/property-titlecase:
30922         * modules/unictype/property-unassigned-code-value:
30923         * modules/unictype/property-unified-ideograph:
30924         * modules/unictype/property-uppercase:
30925         * modules/unictype/property-variation-selector:
30926         * modules/unictype/property-white-space:
30927         * modules/unictype/property-xid-continue:
30928         * modules/unictype/property-xid-start:
30929         * modules/unictype/property-zero-width, modules/unictype/scripts:
30930         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
30931         * modules/unictype/syntax-c-whitespace:
30932         * modules/unictype/syntax-java-ident:
30933         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
30934         * modules/unigbrk/u16-grapheme-breaks:
30935         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
30936         * modules/unigbrk/u32-grapheme-breaks:
30937         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
30938         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
30939         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
30940         * modules/unigbrk/uc-is-grapheme-break:
30941         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
30942         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
30943         * modules/unilbrk/u16-width-linebreaks:
30944         * modules/unilbrk/u32-possible-linebreaks:
30945         * modules/unilbrk/u32-width-linebreaks:
30946         * modules/unilbrk/u8-possible-linebreaks:
30947         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
30948         * modules/unilbrk/ulc-possible-linebreaks:
30949         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
30950         * modules/uniname/uniname, modules/uninorm/base:
30951         * modules/uninorm/canonical-decomposition:
30952         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
30953         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
30954         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
30955         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
30956         * modules/uninorm/nfkc, modules/uninorm/nfkd:
30957         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
30958         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
30959         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
30960         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
30961         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
30962         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
30963         * modules/unistdio/base, modules/unistdio/u-printf-args:
30964         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
30965         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
30966         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
30967         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
30968         * modules/unistdio/u16-u16-sprintf:
30969         * modules/unistdio/u16-u16-vasnprintf:
30970         * modules/unistdio/u16-u16-vasprintf:
30971         * modules/unistdio/u16-u16-vsnprintf:
30972         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
30973         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
30974         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
30975         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
30976         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
30977         * modules/unistdio/u32-u32-asnprintf:
30978         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
30979         * modules/unistdio/u32-u32-sprintf:
30980         * modules/unistdio/u32-u32-vasnprintf:
30981         * modules/unistdio/u32-u32-vasprintf:
30982         * modules/unistdio/u32-u32-vsnprintf:
30983         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
30984         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
30985         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
30986         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
30987         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
30988         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
30989         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
30990         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
30991         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
30992         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
30993         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
30994         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
30995         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
30996         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
30997         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
30998         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
30999         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
31000         * modules/unistr/u16-check, modules/unistr/u16-chr:
31001         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
31002         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
31003         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
31004         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
31005         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
31006         * modules/unistr/u16-move, modules/unistr/u16-next:
31007         * modules/unistr/u16-prev, modules/unistr/u16-set:
31008         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
31009         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
31010         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
31011         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
31012         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
31013         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
31014         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
31015         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
31016         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
31017         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
31018         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
31019         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
31020         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
31021         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
31022         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
31023         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
31024         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
31025         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
31026         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
31027         * modules/unistr/u32-next, modules/unistr/u32-prev:
31028         * modules/unistr/u32-set, modules/unistr/u32-startswith:
31029         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
31030         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
31031         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
31032         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
31033         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
31034         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
31035         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
31036         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
31037         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
31038         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
31039         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
31040         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
31041         * modules/unistr/u8-check, modules/unistr/u8-chr:
31042         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
31043         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
31044         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
31045         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
31046         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
31047         * modules/unistr/u8-next, modules/unistr/u8-prev:
31048         * modules/unistr/u8-set, modules/unistr/u8-startswith:
31049         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
31050         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
31051         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
31052         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
31053         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
31054         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
31055         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
31056         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
31057         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
31058         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
31059         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
31060         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
31061         * modules/uniwbrk/base, modules/uniwbrk/table:
31062         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
31063         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
31064         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
31065         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
31066         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
31067         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
31068         * modules/uniwidth/width, modules/utf16-ucs4:
31069         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
31070         * modules/utf8-ucs4-unsafe:
31071         Change maintainer from Bruno Haible to Daiki Ueno.
31072         This is my guess at the libunistring modules; please feel free
31073         to fix if I guessed incorrectly.
31074         * modules/accept4, modules/acl, modules/acos, modules/acosf:
31075         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
31076         * modules/areadlink, modules/array-list, modules/array-mergesort:
31077         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
31078         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
31079         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
31080         * modules/binary-io, modules/bison-i18n, modules/btowc:
31081         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
31082         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
31083         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
31084         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
31085         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
31086         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
31087         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
31088         * modules/closedir, modules/concat-filename, modules/copy-file:
31089         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
31090         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
31091         * modules/csharpcomp-script, modules/csharpexec:
31092         * modules/csharpexec-script, modules/ctype, modules/diffseq:
31093         * modules/dprintf, modules/dprintf-posix, modules/dup:
31094         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
31095         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
31096         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
31097         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
31098         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
31099         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
31100         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
31101         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
31102         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
31103         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
31104         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
31105         * modules/findprog, modules/findprog-lgpl, modules/floor:
31106         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
31107         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
31108         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
31109         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
31110         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
31111         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
31112         * modules/freadable, modules/freadahead, modules/freadptr:
31113         * modules/freadseek, modules/freopen, modules/frexp:
31114         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
31115         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
31116         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
31117         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
31118         * modules/ftello, modules/full-read, modules/full-write:
31119         * modules/fwritable, modules/fwriteerror, modules/gcd:
31120         * modules/get-rusage-as, modules/get-rusage-data:
31121         * modules/getdtablesize, modules/getrusage, modules/gettext:
31122         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
31123         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
31124         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
31125         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
31126         * modules/iconv, modules/iconv-h, modules/iconv_open:
31127         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
31128         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
31129         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
31130         * modules/integer_length_ll, modules/ioctl, modules/isatty:
31131         * modules/isblank, modules/isnand, modules/isnand-nolibm:
31132         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
31133         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
31134         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
31135         * modules/javaexec, modules/javaexec-script, modules/javaversion:
31136         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
31137         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
31138         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
31139         * modules/lib-symbol-visibility, modules/libsigsegv:
31140         * modules/linked-list, modules/linkedhash-list, modules/list:
31141         * modules/localcharset, modules/locale, modules/localeconv:
31142         * modules/localename, modules/lock, modules/log, modules/log-ieee:
31143         * modules/log10, modules/log10-ieee, modules/log10f:
31144         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
31145         * modules/log1p, modules/log1p-ieee, modules/log1pf:
31146         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
31147         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
31148         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
31149         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
31150         * modules/logf, modules/logf-ieee, modules/login_tty:
31151         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
31152         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
31153         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
31154         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
31155         * modules/mbscspn, modules/mbsinit, modules/mbslen:
31156         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
31157         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
31158         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
31159         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
31160         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
31161         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
31162         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
31163         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
31164         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
31165         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
31166         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
31167         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
31168         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
31169         * modules/posix_spawn, modules/posix_spawn-internal:
31170         * modules/posix_spawn_file_actions_addclose:
31171         * modules/posix_spawn_file_actions_adddup2:
31172         * modules/posix_spawn_file_actions_addopen:
31173         * modules/posix_spawn_file_actions_destroy:
31174         * modules/posix_spawn_file_actions_init:
31175         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
31176         * modules/posix_spawnattr_getpgroup:
31177         * modules/posix_spawnattr_getschedparam:
31178         * modules/posix_spawnattr_getschedpolicy:
31179         * modules/posix_spawnattr_getsigdefault:
31180         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
31181         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
31182         * modules/posix_spawnattr_setschedparam:
31183         * modules/posix_spawnattr_setschedpolicy:
31184         * modules/posix_spawnattr_setsigdefault:
31185         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
31186         * modules/pow, modules/powf, modules/printf-frexp:
31187         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
31188         * modules/progname, modules/propername, modules/pselect:
31189         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
31190         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
31191         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
31192         * modules/read, modules/readdir, modules/readlink:
31193         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
31194         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
31195         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
31196         * modules/relocatable-script, modules/remainder:
31197         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
31198         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
31199         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
31200         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
31201         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
31202         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
31203         * modules/setlocale, modules/sh-quote, modules/shutdown:
31204         * modules/signal, modules/signbit, modules/sigpipe:
31205         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
31206         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
31207         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
31208         * modules/snippet/link-warning, modules/snippet/unused-parameter:
31209         * modules/snprintf, modules/snprintf-posix, modules/spawn:
31210         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
31211         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
31212         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
31213         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
31214         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
31215         * modules/streq, modules/strerror_r-posix, modules/striconv:
31216         * modules/striconveh, modules/striconveha, modules/strncat:
31217         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
31218         * modules/sublist, modules/sys_resource, modules/sys_utsname:
31219         * modules/sys_wait, modules/system-posix, modules/system-quote:
31220         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
31221         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
31222         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
31223         * modules/truncf, modules/truncf-ieee, modules/truncl:
31224         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
31225         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
31226         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
31227         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
31228         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
31229         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
31230         * modules/wait-process, modules/waitpid, modules/wcpcpy:
31231         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
31232         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
31233         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
31234         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
31235         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
31236         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
31237         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
31238         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
31239         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
31240         * modules/write, modules/xconcat-filename, modules/xlist:
31241         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
31242         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
31243         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
31244         * modules/y0, modules/y1, modules/yn:
31245         Remove Bruno Haible as maintainer; if he's the sole maintainer,
31246         change the maintainer to 'all'.  Let's hope someone volunteers.
31248 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
31250         mktime: merge #if/#ifdef usage from glibc
31251         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
31252         as that works with both Glibc's and Gnulib's style.
31253         See thread starting at Siddhesh Poyarekar's bug report at:
31254         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
31256 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
31258         git-version-gen: improve option descriptions
31259         * build-aux/git-version-gen: Mention that --prefix and --fallback
31260         have a mandatory argument.
31262 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
31264         regex: fix memory leak in compiler
31265         Fix by Andreas Schwab in:
31266         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
31267         * lib/regcomp.c (parse_expression): Deallocate partially
31268         constructed tree before returning error.
31270         regex: merge patch from libc
31271         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
31272         Combine __USE_BSD and __USE_SVID into __USE_MISC.
31273         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
31275 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
31277         acl: port to gcc -Wredundant-decls
31278         From a request by Dmitry Antipov in:
31279         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
31280         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
31281         "#ifndef _GL_ACL_H".
31283 2014-06-11  Bruce Korb  <bkorb@gnu.org>
31284         Jim Meyering  <meyering@fb.com>
31286         parse-duration: eliminate 68-year duration limit
31287         * lib/parse-duration.c: Include "intprops.h".
31288         (TIME_MAX): Rename to MAX_DURATION and define to
31289         TYPE_MAXIMUM(time_t).
31290         * modules/parse-duration (Depends-on): Add intprops.
31291         Reported by Jonas 'Sortie' Termansen.
31293 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31295         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
31296         * modules/pthread (Depends-on): Add 'extensions', as it defines
31297         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
31298         (configure.ac-early): New section.
31299         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
31300         it is no longer needed.
31302 2014-06-14  Pádraig Brady  <P@draigBrady.com>
31304         pthread: define thread-safe macros on some platforms
31305         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
31306         for thread-safe operation on some platforms.
31308 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
31310         regex: don't be multithreaded if USE_UNLOCKED_IO.
31311         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
31312         * lib/regex_internal.h: Do not use multithreaded version if
31313         USE_UNLOCKED_IO is defined.  This is a hack, but it works
31314         around a porting bug with coreutils 8.22 on AIX 7.1.
31316 2014-06-11  Daiki Ueno  <ueno@gnu.org>
31318         gettext: update macros to version 0.19
31319         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
31320         depend on gl_EXTERN_INLINE and drop support for older Bison
31321         versions.
31323 2014-06-10  Pádraig Brady  <P@draigBrady.com>
31325         select,poll: fix console handle check on windows 8
31326         lib/poll.c (IsConsoleHandle): Change from testing the lower
31327         2 bits of the handle to the more expensive but accurate syscall.
31328         lib/select.c: Likewise.
31330 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
31332         select: fix waiting on anonymous pipes on MS-Windows
31333         * lib/select.c (rpl_select): Fall back to polling when select()
31334         indicates there is nothing to check, while due to the timeout not
31335         expiring, activity is indicated on one of the handles.
31336         Also clear the TIMEOUT argument if the timer does expire.
31338 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
31340         times: fix to return non constant value on MS-Windows
31341         * lib/times.c (times): Don't use the process creation time,
31342         rather clock() which on windows returns the number of
31343         clock ticks since the process started.
31345 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
31347         isatty: fix to work on windows 8
31348         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
31349         2 bits of the handle to the more expensive but accurate syscall.
31351 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
31353         maint: fix typo in fdl.texi
31354         * doc/fdl.texi: Fix typo (missing '@').
31355         Somehow this was in fdl.texi but not fdl-1.3.texi.
31357 2014-06-06  Ben Walton  <bdwalton@gmail.com>
31359         mountlist: avoid hasmntopt const type warning on solaris
31360         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
31361         with char * instead of const char *.  Passing the constant string
31362         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
31363         to avoid the warning.
31365 2014-06-04  Eric Blake  <eblake@redhat.com>
31367         maintainer-makefile: delete obsolete code
31368         * top/maint.mk (build_aux): Drop old code, as threatened.
31370         maintainer-makefile: avoid spurious error messages
31371         * top/maint.mk (syntax-check): Guard definition and use of
31372         $(shell) by whether Makefile is present.
31374 2014-06-03  Ben Walton  <bdwalton@gmail.com>
31376         rename: avoid unused-but-set-variable compiler warning
31377         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
31378         it is possible that dst_exists may be set but not used.  Mark it with
31379         the unused attribute to avoid compiler warnings.
31381 2014-06-02  Ben Walton  <bdwalton@gmail.com>
31383         rename: mark a label as potentially unused
31384         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
31385         by marking the out label as potentially unused.
31386         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
31388 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31390         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
31391         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
31393 2014-06-02  Ben Walton  <bdwalton@gmail.com>
31395         acl: apply pure attribute to two functions
31396         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
31397         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
31399 2014-06-01  Pádraig Brady  <P@draigBrady.com>
31401         gnulib-common.m4: add _GL_UNUSED_LABEL
31402         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
31403         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
31405 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31407         dup2, fcntl, fcntl-h: port to AIX 7.1
31408         This fixes some porting problems discovered when testing the latest
31409         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
31410         in grep but it could be important for other applications.
31411         * doc/posix-functions/dup2.texi:
31412         * doc/posix-functions/fcntl.texi:
31413         * doc/posix-headers/fcntl.texi:
31414         Document AIX bugs.
31415         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
31416         Define to 0 if outside 'int' range.
31417         * m4/dup2.m4 (gl_FUNC_DUP2):
31418         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31419         Check for getdtablesize.  If it's available, test a value just
31420         outside its range instead of testing 1000000.  When cross-compiling,
31421         guess that AIX will fail this improved test.
31423 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31425         printf, config.rpath: Port to FreeBSD 10.
31426         Problem reported by Tijl Coosemans in:
31427         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
31428         * build-aux/config.rpath (hardcode_libdir_flag_spec)
31429         (hardcode_direct): Simplify FreeBSD configuration.
31430         (library_names_spec): Don't mishandle FreeBSD 10+.
31431         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
31432         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
31433         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
31434         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
31435         Don't mishandle FreeBSD 10+ when cross-compiling.
31437         ftoastr: work around compiler bug in IBM xlc 12.1
31438         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
31439         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
31440         around a compiler bug in IBM xlc 12.1.0.0: it complains
31441         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
31442         _GL_FLT_PREC_BOUND.'
31444 2014-05-30  Kieran Colford  <colfordk@gmail.com>
31446         valgrind-tests: fixed misleading help message
31447         * m4/valgrind-tests.m4: The help message generated by configure
31448         implied that valgrind was disabled by default, which it wasn't.
31449         Adjusted the help message using s/enable/disable/ to clarify.
31451 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
31453         isfinite, isinf, isnan tests: fix for little-endian PowerPC
31454         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
31455         first double of a PowerPC "double double" pair.
31456         * tests/test-isinf.c (test_isinfl): Likewise.
31457         * tests/test-isnan.c (test_long_double): Likewise.
31458         * tests/test-isnanl.h (main): Likewise.
31459         * tests/test-signbit.c (test_signbitl): Likewise.
31461 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31463         exclude-tests: port to AIX 7.1
31464         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
31465         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
31466         the regex code uses locks.
31468 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
31470         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
31471         Without this fix, Emacs would sometimes call sigprocmask instead
31472         of pthread_sigmask, which is a no-no in multithreaded applications.
31473         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
31474         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31475         Suppress check for pthread_sigmask working without -lpthread if
31476         the application always links with -lpthread.  Do not link with
31477         $LIBMULTITHREAD if gl_THREADLIB is not defined.
31478         * m4/timer_time.m4 (gl_TIMER_TIME):
31479         Require gl_THREADLIB only if it is defined.  Do not append
31480         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
31482 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
31484         gnulib-tool: wget translations using --no-verbose rather than --quiet
31485         This allows the user to see error messages if any (--quiet hides them)
31486         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
31488 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
31490         gnulib-tool: adjust translation wget to avoid a https redirection
31491         Context: http://translationproject.org/latest/gnulib redirects to
31492            https://translationproject.org/latest/gnulib/
31493         Rationale: if the user falls back to wget, she doesn't have rsync and
31494         is probably in a minimal build environment, where packages such as
31495         'ca-certificates' are missing as well, resulting in a failed (and
31496         difficult to detect since ignored) translation initial fetch.
31497         Consequently let's avoid https if possible, and add the missing
31498         trailing slash.  This also avoids an unnecessary 302 redirection.
31499         * gnulib-tool: Add trailing slash to gnulib URL.
31501 2014-05-22  Pádraig Brady  <P@draigBrady.com>
31503         getlogin_r-tests: check return value rather than errno
31504         * tests/test-getlogin_r.c (main): As per POSIX we should be
31505         verifying the return value from getlogin_r() rather than errno.
31507 2014-05-22  Pádraig Brady  <P@draigBrady.com>
31509         getlogin_r-tests: fix various issues in recent change
31510         * tests/test-getlogin_r.c: Include required headers that were
31511         missed in recent commit eec20b4e.
31512         Also consistently check the errno rather than the return value from
31513         getlogin_r as POSIX only specifies that non zero is returned on error.
31514         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
31516 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
31518         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
31519         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
31520         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
31521         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
31522         * lib/spawn-pipe.c:
31523         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
31524         and then 'int open64(const char *, int, ...);', which means the
31525         declaration for 'open' gets lost if we later '#undef open'.
31526         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
31527         where the compilation reported the non-fatal error "In function
31528         'openat_proc_name' ... warning: implicit declaration of function
31529         'open'".  In this case the error is relatively harmless, but in
31530         other cases it might not be so minor.
31532 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31534         xalloc: don't potentially generate invalid code for xmemdup calls
31535         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
31536         this function can initialize the newly-allocated storage with new
31537         pointers, which means this function is not malloc-like.  See:
31538         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
31540 2014-05-19  Pádraig Brady  <P@draigBrady.com>
31542         getlogin_r-tests: avoid false failure under sudo/ssh etc.
31543         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
31544         changes from commit 97249cf29 to not depend on environment variables.
31546 2014-05-18  Pádraig Brady  <P@draigBrady.com>
31548         getlogin-tests: avoid false failure under cron
31549         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
31550         since that's not what's under test.  Centos 6 was seen to return
31551         EINVAL for ttyname() when run from cron.
31553 2014-05-16  Jim Meyering  <meyering@fb.com>
31555         mbrtowc.m4: fix a comment typo
31556         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
31557         emitted documentation string.
31559 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31561         mbrlen, mbrtowc: fix bug with empty input
31562         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
31563         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
31564         so this is mainly for documentation.
31565         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
31566         (gl_FUNC_MBRTOWC): Use it.
31567         * tests/test-mbrtowc.c (main): Test for the bug.
31569 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31571         doc: document mbrtowc and mbrlen problem with empty input
31572         * doc/posix-functions/mbrlen.texi (mbrlen):
31573         * doc/posix-functions/mbrtowc.texi (mbrtowc):
31574         Document portability problem when the input string is empty.  See:
31575         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
31577         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
31578         Problem reported by Eli Zaretskii in:
31579         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
31580         * doc/posix-functions/execl.texi (execl):
31581         * doc/posix-functions/execle.texi (execle):
31582         * doc/posix-functions/execlp.texi (execlp):
31583         * doc/posix-functions/execv.texi (execv):
31584         * doc/posix-functions/execve.texi (execve):
31585         * doc/posix-functions/execvp.texi (execvp):
31586         Mention spawn+exit problem on non-Cygwin Windows platforms.
31588 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
31590         getlogin-tests: avoid false failure under sudo/ssh etc.
31591         * modules/getlogin-tests (configure.ac): Check for ttyname().
31592         * tests/test-getlogin.c (main): Don't depend on environment variables
31593         to correlate with getlogin(), since sudo and ssh etc. can tamper
31594         with the LOGNAME and USER env vars.  Instead lookup the name from
31595         the uid associated with the stdin tty.
31597 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31599         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
31600         These were found when building the latest grep snapshot on IRIX 6.5.
31601         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
31602         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
31603         never used later.
31604         * lib/quotearg.c (quoting_options_from_style):
31605         * lib/xstrtol.c (__xstrtol):
31606         Use enum instead of 0, to pacify IRIX 6.5 cc.
31608 2014-04-18  Pádraig Brady  <P@draigBrady.com>
31610         gitlog-to-changelog: revert inclusion of git-log-fix file
31611         * build-aux/git-log-fix: Delete dummy file.
31612         * modules/gitlog-to-changelog: Don't reference (overwrite)
31613         the project specific git-log-fix file.
31615 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
31617         maint.mk: Relax the copyright check to cater for non FSF projects
31618         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
31619         to not require the "Free" suffix after the copyright years.
31621 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
31623         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
31624         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
31625         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
31626         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
31627         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
31629 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
31631         exclude: port to strict C99
31632         Strict C does not allow converting a function pointer to void *
31633         and vice versa.  Pass a pointer to a function pointer instead.
31634         * lib/exclude.c (add_exclude_file):
31635         Pass the address of the function pointer.
31636         (call_addfn): And deference the address here, to match.
31638 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31640         regex: do not depend on malloc-gnu
31641         * modules/regex (Depends-on): Remove malloc-gnu.
31642         It's no longer needed, because of the 2012-12-29 patch
31643         "regex: port to hosts where malloc (0) == NULL".
31644         Reported by Nathan Kennedy in:
31645         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
31647 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
31649         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
31650         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
31651         * doc/posix-functions/expl.texi: Mention the workaround.
31653 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31655         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
31656         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
31657         size to be zero even when the pointer is nonnull.  This
31658         accommodates the use case where P is malloc (0) and *PN is 0 on a
31659         host where malloc (0) yields nonnull.
31661 2014-04-09  Eric Blake  <eblake@redhat.com>
31663         fts: avoid unnecessary strlen calls
31664         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
31666 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31668         fts: avoid unnecessary strlen calls
31669         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
31670         when that can be faster than strlen.
31672 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
31674         fts: avoid unnecessary strlen calls
31675         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
31676         (fts_build): Store the length of the dp->d_name entry in a local variable
31677         instead of calling strlen() several times via the above, removed macro.
31678         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
31679         run by ~4%, yet this reduces the execution time by about a third if run
31680         via "ltrace -c rm -rf some-dir".
31682 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
31684         obstack: Remove ancient NeXTSTEP gcc support conditional
31685         This change will ease merging with glibc.  The "#if ... __NEXT__"
31686         causes a warning with -Wundef which glibc now enables by default.
31687         Problem reported by Will Newton in
31688         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
31689         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
31690         so go with that.
31691         * lib/obstack.h (__extension__):
31693 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
31695         obstack: merge with glibc changes
31696         * lib/obstack.c, lib/obstack.h: Merge from glibc.
31697         This is mostly indenting and commentary changes.
31698         Instances of 'register' have been removed.
31700 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
31702         strftime: wrap macros in "do {...} while(0)"
31703         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
31704         this macro in "do {...} while(0)" to prevent false use as a
31705         single statement, e.g., in an un-braced "{}" else-block.
31706         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
31707         (strftime_case_): Remove 'else' after 'goto' - which was the
31708         only non-fatal, un-braced use of one of the above macros.
31709         Spotted by coverity (NESTING_INDENT_MISMATCH).
31711 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
31713         modechange: avoid memory leaks for invalid octal modes
31714         * lib/modechange.c (mode_compile): During the parsing of
31715         notations like +40, free the 'mc' buffer for invalid mode
31716         strings like +17777 (greater than the maximum octal mode),
31717         =18 (bad octal mode characters) or u=1 ('affected' with
31718         octal modes).
31719         Reproducer, e.g.:
31720             $ valgrind --leak-check=full chmod +17777 file
31721         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
31722         add notations +40, 00440, etc.".
31723         Spotted by coverity (RESOURCE_LEAK).
31725 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
31727         gitlog-to-changelog: include a dummy git-log-fix file
31728         Problem reported by Nathan Stratton Treadway in:
31729         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
31730         * build-aux/git-log-fix: New file.
31732 2014-03-13  Jim Meyering  <meyering@fb.com>
31734         gitlog-to-changelog: also include the file, git-log-fix
31735         * modules/gitlog-to-changelog (Files): Add git-log-fix.
31736         Reported by Assaf Gordon.
31738 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
31740         regex: port to OS X 10.8.5 en_US.UTF-8 locale
31741         This fixes a bug when ignoring case and when comparing the
31742         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
31743         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
31744         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
31745         titlecase letter is neither lowercase nor uppercase, but
31746         uppercasing the titlecase letter (via towupper) yields the
31747         uppercase letter, so the two letters should match when ignoring case.
31748         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
31749         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
31750         Don't test whether a character is lowercase before uppercasing it.
31752 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
31754         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
31755         This is basically one of the options Bruno Haible proposed in:
31756         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
31757         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
31758         * lib/stdint.in.h: Use it.
31759         * modules/stdint (Depends-on): Add sys_types.
31761 2014-02-26  Pádraig Brady  <P@draigBrady.com>
31763         parse-datetime: fix crash or infloop in TZ="" parsing
31764         * lib/parse-datetime.y (parse_datetime): Break out of the
31765         TZ="" parsing loop once the second significant " is found.
31766         Also skip over any subsequent whitespace to be consistent
31767         with the non TZ= case.
31768         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
31770 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31772         savedir: new symbol for fast-read version
31773         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
31774         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
31775         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
31776         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
31778 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
31780         unistd: port readlink to Mac OS X 10.3.9
31781         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
31782         around self-include problem in Mac OS X 10.3.9 when combined with
31783         readlink module.  Problem reported by Klaus Zietler in
31784         <http://bugs.gnu.org/16825>.
31786 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31788         diffseq: remove TOO_EXPENSIVE heuristic
31789         Problem with diffutils reported by Vincent Lefevre in
31790         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
31791         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
31792         Although appropriate for circa-1993 hardware, these days the heuristic
31793         seems to be more trouble than it's worth.
31794         * lib/diffseq.h: Modernize citations.
31795         (struct context): Remove member too_expensive.
31796         All uses changed.
31797         (struct partition): Remove members lo_minimal, hi_minimal.
31798         All uses changed.
31799         (diag, compareseq): Remove arg find_minimal.  All uses changed.
31800         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
31801         1993 to make 'diff' run faster (but not as well) on large inputs.
31802         These days, computers are fast enough that it's typically better
31803         to run slower but more accurately.
31804         * lib/fstrcmp.c: Remove duplicate comment.
31805         * lib/fstrcmp.c (strcmp_bounded):
31806         * lib/git-merge-changelog.c (compute_differences):
31807         Adjust to diffseq.h changes.
31808         * NEWS: Document the change.
31810         savedir: simplify by using stpcpy
31811         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
31812         (streamsavedir): Use stpcpy instead.
31813         * modules/savedir (Depends-on): Add stpcpy.
31815 2014-02-21  Pádraig Brady  <P@draigBrady.com>
31817         spawn: fix link error on uclibc
31818         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
31819         to incorporate -lrt if needed (on uclibc for example).
31820         * modules/posix_spawn: Reference the substituted LIB.
31822 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
31823         timer: fix uClibc detection of threading
31824         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
31825         enabled in uClibc.
31827 2014-02-21  Eric Blake  <eblake@redhat.com>
31829         maintainer-makefiles: provide AC_PROG_SED for older autoconf
31830         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
31832 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
31834         exclude: add support for posix regexps
31836         This commit adds support for POSIX extended regular expressions
31837         and fixes a long-standing memory leak (pattern buffer was never
31838         freed).  It also implements a new interface function to read
31839         exclude patterns from a FILE, which passes an additional parameter
31840         to its callback function, thereby allowing to preserve its state
31841         between invocations.
31843         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
31844         (pattern_buffer): New struct.
31845         (exclude): New member patbuf.
31846         (exclude_add_pattern_buffer): New function.
31847         (free_exclude_segment): Free regexps.
31848         (free_exclude): Free allocated pattern buffers.
31849         (exclude_patopts): New function.
31850         (file_pattern_matches): Use exclude_patopts.
31851         (add_exclude): support regexps.
31852         (add_exclude_fp): New function.
31853         (add_exclude_file): Rewrite using add_exclude_fp.
31854         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
31855         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
31856         (add_exclude_fp)
31857         (add_exclude_file): Rewrite using add_exclude_fp.
31858         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
31859         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
31860         (add_exclude_fp)
31861         (exclude_add_pattern_buffer): New prototypes.
31862         * modules/exclude: Depends on regex and filename.
31864 2014-02-20  Eric Blake  <eblake@redhat.com>
31866         maintainer-makefiles: use $(SED) for syntax check
31867         * modules/maintainer-makefile (configure.ac): Check for sane sed.
31868         * top/maint.mk: Change sed to $(SED).
31870 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
31871             Paul Eggert  <eggert@cs.ucla.edu>
31873         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
31874         Patch based on an idea by Dick Streefland in
31875         <https://savannah.gnu.org/patch/?7892>.
31876         * NEWS: Document this.
31877         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
31878         (direntry_t, comparison_function): New types.
31879         (direntry_cmp_name): New function.
31880         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
31881         (streamsavedir, savedir): New arg OPTION.
31882         (streamsavedir): Simplify memory allocation.
31883         (fdsavedir): Remove.
31884         * lib/savedir.h (enum savedir_option): New type.
31885         (streamsavedir, savedir): New arg OPTION.
31886         (fdsavedir): Remove.
31888 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
31890         file-type: add support for doors and other less-common file types
31891         Problem with S_ISDOOR reported by Rich Burridge.
31892         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
31893         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
31894         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
31896 2014-01-23  Eric Blake  <eblake@redhat.com>
31898         pthread: work around winpthread header pollution on mingw
31899         * lib/time.in.h: Move pthread workarounds...
31900         * lib/pthread.in.h: ...here.
31901         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
31902         detect macro pollution on mingw.
31903         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
31905 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31907         qacl: check for fchmod
31908         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
31909         and qset-acl.c both use HAVE_FCHMOD.
31911 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31913         fdopen-tests: port to Tru64
31914         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
31915         descriptor that is not open, as POSIX doesn't specify the
31916         resulting behavior and the test does not work on Tru64.
31917         Problem reported by Steven M. Schweda in:
31918         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
31920         stdalign: port to HP-UX compilers
31921         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
31922         if __HP_cc or __HP_aCC are nonzero.
31924 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31926         strtoimax: port to platforms lacking 'long long'
31927         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
31928         check whether strtoll is declared, which causes the C file to
31929         wrongly report an error.  Problem reported by Steven M. Schweda in:
31930         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
31931         * lib/strtoimax.c (strtoull):
31932         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
31933         (strtoll): Declare only if HAVE_LONG_LONG_INT.
31935 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
31937         relocatable-perl: fix texi syntax
31938         * doc/relocatable-maint.texi: Escape braces.
31940 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
31942         relocatable-perl: like relocatable-script, but for Perl scripts
31943         * build-aux/relocatable.pl.in: Add.
31944         * doc/relocatable-maint.texi: Add documentation.
31945         * modules/relocatable-perl: Add.
31947 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
31949         tests: fix export bug in previous patch
31950         Problem reported by Jim Meyering.
31951         * tests/init.sh (re_shell): New var, which is exported instead of
31952         re_shell_.
31954         tests: simplify porting to Solaris 10 /bin/sh
31955         Some test cases in 'grep' need a shell that groks '$(';
31956         export re_shell_ for their benefit.  Problem reported for 'grep'
31957         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
31958         * tests/init.sh (re_shell_): Export if it's used.
31960 2014-01-06  Eric Blake  <eblake@redhat.com>
31962         md5, sha1, sha256, sha512: support older autoconf
31963         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
31964         for autoconf < 2.63b.
31966         include_next: port to autoconf 2.63
31967         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
31969 2014-01-04  Jim Meyering  <meyering@fb.com>
31971         maint: add a gnulib-local rule to keep non-ascii out of .texi files
31972         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
31973         so that "make sc_maint" will ding anyone who puts non-ascii
31974         in any of gnulib's .texi files.
31976 2014-01-03  Jim Meyering  <meyering@fb.com>
31978         freadable, fwritable, fwriting: declare with the "pure" attribute
31979         * lib/freadable.h (freadable): Declare with the "pure" attribute.
31980         * lib/fwritable.h (fwritable): Likewise.
31981         * lib/fwriting.h (fwriting): Likewise.
31982         Suggested by Bruno Haible.
31984         maint.mk: adapt openat.h-include-without-use test
31985         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
31986         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
31987         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
31988         With this change, running "make sc_maint" in gnulib's top-level
31989         directory now passes for me.
31991 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31993         doc: use ASCII in .texi files where UTF-8 isn't needed
31994         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
31995         * doc/posix-functions/setkey.texi, doc/regex.texi:
31996         Use ASCII input, not UTF-8.
31998 2014-01-02  Jim Meyering  <meyering@fb.com>
32000         freading: declare with the "pure" attribute
32001         * lib/freading.h (freading): Declare with the "pure" attribute.
32003         manywarnings: remove -Wmudflap
32004         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
32005         it is no longer supported in gcc-4.9-to-be.
32007 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32009         relocatable-script: remove unused code
32010         Problem reported by Reuben Thomas in:
32011         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
32012         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
32014 2014-01-01  Jim Meyering  <meyering@fb.com>
32016         maint: fix public-submodule-commit to work with newer git
32017         * top/maint.mk (public-submodule-commit): Remove excess quoting.
32018         We were over-quoting the test arguments, and somewhere prior to
32019         version 1.8.5.2.229, git stopped removing those excess quotes,
32020         which made the test fail, since the unexpanded strings would
32021         always differ; using GIT_TRACE=1 confirmed that the git merge-base
32022         command wasn't even being run.
32024 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32026         doc: update main copyright year
32027         * doc/gnulib.texi: Update copyright date.
32029 2014-01-01  Eric Blake  <eblake@redhat.com>
32031         version-etc: new year
32032         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
32033         * all files: run 'make update-copyright'
32035 2013-12-24  Eric Blake  <eblake@redhat.com>
32037         passfd: give nicer error for recvfd at eof
32038         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
32039         * tests/test-passfd.c (main): Enhance test to cover this.
32041 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32043         gettimeofday: port recent C++ fix to Emacs
32044         Without this further patch, Emacs won't build due to
32045         the portcheck failing.  Also, this simplifies the patch a bit.
32046         * lib/time.in.h (localtime, gmtime): Don't replace unless
32047         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
32048         * lib/time.in.h (localtime, gmtime):
32049         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
32050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32051         * modules/time (time.h):
32052         Don't worry about the possibility of localtime and gmtime
32053         being absent; they're present in all C libraries we know about.
32054         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32055         Don't assume sys_time is present and has been initialized.
32056         Instead, use a hack that should work even if it hasn't been.
32057         Don't use a portcheck for gmtime or localtime; this supports
32058         the hack.
32059         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
32061 2013-12-17  John W. Eaton  <jwe@gnu.org>
32063         gettimeofday: fix C++ crosscompilation
32065         Never replace gmtime and localtime by macros when compiling with
32066         C++, this prevents <ctime> from being included.
32068         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
32069         define gmtime and localtime as preprocessor macros.  Instead
32070         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
32071         REPLACE_LOCALTIME substitutions.
32072         * lib/time.in.h: Declare gmtime and localtime when needed.
32073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
32074         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
32075         * modules/time: Depend on gettimeofday, and substitute the above
32076         variables in time.h.
32078 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32080         qacl: port to Windows better
32081         See Eli Zaretskii in
32082         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
32083         * lib/file-has-acl.c (acl_access_nontrivial):
32084         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
32085         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
32087 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
32089         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
32090         * lib/gl_openssl.h: Cast void pointers to a specific type.
32092 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32094         open-tests: fix build failure with -Werror=old-style-declaration
32095         * tests/test-open.h: Reorder the inline to avoid the issue.
32097 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32099         md5, sha1, sha256, sha512: fix link error with partial libcrypto
32100         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
32101         init time, so that if early checks find crypto routines,
32102         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
32103         avoiding link failures.
32105 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32107         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
32108         This provides a new way to specify the default for
32109         gl_CRYPTO_CHECK, one that is reflected in the --help message.
32110         Emacs uses this, as well as the old way.
32111         This attempts to implement a suggestion by Pádraig Brady in
32112         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
32113         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
32114         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
32116         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
32117         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
32118         Add support for a new option, --with-openssl=auto, which causes
32119         the library to be used if available and silently ignored if not.
32120         Add support to allow configure.ac to specify its own
32121         default, by setting with_openssl_default before invoking gl_INIT.
32123 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32125         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
32126         Problem reported by Daiki Ueno in:
32127         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
32128         * tests/test-open.h (__always_inline):
32129         New macro, if not already defined.
32130         (test_open): Use it.
32132 2013-12-04  Eric Blake  <eblake@redhat.com>
32134         include_next: minimize code duplication
32135         * modules/include_next (Depends-on): Add absolute-header.
32136         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
32137         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
32139 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32141         getcwd: fix compile error in configure check
32142         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
32144 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32146         regex: suppress core dumps from detection code
32147         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
32148         to suppress core dumps that may well occur on glibc systems.
32149         These core dumps might not be cleaned up automatically, or could
32150         trigger some system core dump handling logic.
32152 2013-12-03  Pádraig Brady  <P@draigBrady.com>
32154         md5, sha1, sha256, sha512: support mandating use of openssl
32155         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
32156         description, to list the now 3 separate options.  also don't
32157         mention the default=no, since this is implicit given the option
32158         is described as --with-openssl rather than --without-openssl.
32159         If projects change the default they're free to document that.
32160         with --with-openssl[=yes] we now error out when the specified
32161         hash algorithm is not available in libcrypto.
32163 2013-12-03  Ivailo  <xakepa10@gmail.com>
32165         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
32166         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
32167         -Wformat-nonliteral checks, as these edge cases are part of the test.
32169 2013-12-03  Eric Blake  <eblake@redhat.com>
32171         regex: avoid glibc deadlock during configure
32172         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
32173         glibc bug 15078 in turn triggers bug 16159.
32174         Reported by Michal Privoznik.
32176 2013-12-02  Pádraig Brady  <P@draigBrady.com>
32178         md5, sha1, sha256, sha512: use openssl routines if available.
32179         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
32180         routines will be used if available, requiring apps to link @LIB_CRYPTO@
32181         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
32182         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
32183         in the standard system location.
32184         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
32185         * m4/sha256.m4: Likewise with SHA256.
32186         * m4/sha512.m4: Likewise with SHA512.
32187         * m4/md5.m4: Likewise with MD5.
32188         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
32189         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
32190         * lib/sha256.h: Likewise with SHA256.
32191         * lib/sha512.h: Likewise with SHA512.
32192         * lib/md5.h: Likewise with MD5.
32193         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
32194         * lib/sha256.c: Likewise with SHA256.
32195         * lib/sha512.c: Likewise with SHA512.
32196         * lib/md5.c: Likewise with MD5.
32197         * modules/crypto/sha1 (Link:): Add the new optional lib.
32198         (Depends-on:): Add dependency on extern-inline.
32199         * modules/crypto/sha256: Likewise.
32200         * modules/crypto/sha512: Likewise.
32201         * modules/crypto/md5: Likewise.
32202         * modules/crypto/sha1-tests: Reference the lib here too.
32203         * modules/crypto/md5-tests: Likewise.
32204         * modules/crypto/gc-des-tests: Likewise.
32205         * modules/crypto/gc-hmac-md5-tests: Likewise.
32206         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32207         * modules/crypto/gc-hmac-sha256-tests: Likewise.
32208         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32209         * modules/crypto/gc-md5-tests: Likewise.
32210         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32211         * modules/crypto/gc-sha1-tests: Likewise.
32212         * modules/crypto/gc-tests: Likewise.
32213         * modules/crypto/hmac-md5-tests: Likewise.
32214         * modules/crypto/hmac-sha1-tests: Likewise.
32215         * modules/crypto/hmac-sha256-tests: Likewise.
32216         * modules/crypto/hmac-sha512-tests: Likewise.
32218 2013-11-29  RV1971  <rv1971@web.de>
32220         base64: (trivial) fix compilation regression on some compilers
32221         * lib/base64.c: Don't return the void function,
32222         instead split to a separate return statement.
32224 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32226         ignore-value: revert previous code change
32227         * lib/ignore-value.h (ignore_value): Use __extension__ and
32228         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
32229         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
32230         Change the comment to try to explain this better.
32232 2013-11-27  Pádraig Brady  <P@draigBrady.com>
32234         selinux-h: improve stub types and add more stub functions
32236         * lib/se-selinux.in.h: Change security_context_t to a typedef
32237         rather than a define, as it's a pointer type and so is better
32238         as a typedef to avoid issues declaring multiple variables
32239         with the comma operator.  Also add stub for string_to_security_class().
32240         * lib/se-context.in.h: Add stub functions for
32241         context_{type,range,role,user}_get().
32243 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32245         ignore-value: prefer GCC version back through 2.0
32246         The code didn't match the comments, so I did a bit of software
32247         archaeology.  GCC 2.0 seems to support __extension__ and
32248         __typeof__, so fix both code and comments to use 2.0.
32249         * lib/ignore-value.h (ignore_value): Use __extension__ and
32250         __typeof__ for GCC 2.0 through 3.3, too.
32252 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
32254         pty: Activate the signature wrapper of forkpty.
32255         The intended preprocessor macro HAVE_FORKPTY is
32256         never defined, yet `lib/forkpty.c' depends on it.
32258         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
32259         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
32260         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
32262 2013-11-18  Jim Meyering  <meyering@fb.com>
32263         and Paul Eggert  <eggert@cs.ucla.edu>
32265         quotearg: don't attempt to store 1 << 31 into an "int"
32266         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
32267         gcc's new -fsanitize=undefined and running its tests triggered some
32268         new test failures due to undefined behavior, all with this diagnostic:
32269           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
32270             cannot be represented in type int
32271         Rather than shifting "1" left to form a mask, shift the bits right and
32272         simply use "1" as the mask.
32274 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
32276         error: depend on stdio
32277         Problem reported by Nikos Mavrogiannopoulos in
32278         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
32279         * modules/error (Depends-on): Add stdio.
32281 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
32283         * doc/relocatable-maint.texi (Supporting Relocation): Improve
32284         wording.
32285         Reported by Reuben Thomas <rrt@sc3d.org>.
32287 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
32289         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
32290         New function and macro, to work around _DARWIN_C_SOURCE problem.
32291         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
32293 2013-11-11  Pádraig Brady  <P@draigBrady.com>
32295         base64: provide a fast path for encoding well sized buffers
32296         Avoid conditionals in the base64 encoding loop,
32297         which was seen to give 60% better throughput.
32298         * lib/base64.c (base64_encode_fast): A new function to be called
32299         when we don't want to NUL terminate, and we have enough space
32300         in the output to encode the given input.
32301         (base64_encode): Call the _fast() version when appropriate.
32302         Also remove a redundant mask with 0x3F on the first encoded byte.
32304 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32306         extern-inline: port better to OS X 10.9
32307         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
32308         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
32309         OS X 10.9, except for g++ where the bug is still present.
32310         See <http://trac.macports.org/ticket/41033>.
32312 2013-11-08  Eric Blake  <eblake@redhat.com>
32314         fpending: fix regression on DragonFly BSD
32315         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
32316         * lib/fpending.h (__fpending): Don't declare twice.
32317         Reported by GW in
32318         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
32320 2013-11-05  Jim Meyering  <meyering@fb.com>
32322         hash: relax license to LGPLv2+, for libguestfs
32323         * modules/hash (License): Change from GPL to LGPLv2+.
32325 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32327         intprops: port to Oracle Studio c99
32328         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
32329         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
32331 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32333         obstack: pacify HP C
32334         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
32335         warning "conversion from pointer to smaller integer" from HP
32336         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
32337         C89 or later nowadays, so cast to void instead of int.  Privately
32338         reported by H.Merijn Brand.  Also, change header to match glibc's,
32339         to make checking against glibc easier.
32341 2013-10-29  Jim Meyering  <meyering@fb.com>
32343         maint.mk: prefer gpgv2 over gpgv
32344         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
32345         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
32346         Reported by Gary Vaughan.
32348 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32350         isnan: port to VAX
32351         Reported by John Klos for NetBSD-5/VAX in
32352         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
32353         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
32354         (FUNC): Use it.
32356 2013-10-28  Jim Meyering  <meyering@fb.com>
32358         gnulib-tool: protect against CDPATH
32359         * gnulib-tool: Many "cd" built-in functions print a directory name
32360         to stdout when CDPATH is set, e.g.,
32361           $ bash -c 'CDPATH=/; cd tmp'
32362           /tmp
32363         Unset it, when possible.  Prompted by a comment from Bruce Korb.
32365         maint.mk: restore functionality removed by recent change...
32366         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
32367         the context of a shallow-cloned gnulib repository: "git describe"
32368         would fail in such a directory.  However, that change made it so
32369         the reported gnulib revision no longer includes the version number
32370         or a commit count, even when run from a full clone.
32371         * top/maint.mk (gnulib-version): Use the full "git describe"
32372         output when possible, e.g., the form above, rather than the
32373         abbreviated, no-tag, no-commit-count string, and fall back to
32374         using a 10-byte hash, rather than the default minimal-length
32375         hash prefix, since while the minimal-length one may be fine today,
32376         it is likely not to be unique for very long.
32378 2013-10-26  Jim Meyering  <meyering@fb.com>
32380         maint.mk: fix "release" target to build _version
32381         This fixes a bug in README-release whereby following the outlined
32382         steps, one would publish a tarball whose programs would report
32383         --version output not consistent with the package version number.
32384         This bug caused grep-2.15 to produce a grep program whose
32385         --version option made it print 2.14.56-1e3d rather than 2.15.
32386         * top/maint.mk (release): Making this target build "_version"
32387         ensures that the new version number is reflected in configure.
32389 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
32391         install-reloc: Support multi-binary installation.
32392         * build-aux/install-reloc: Support installing multiple programs in
32393         one invocation, as done by Automake starting with commit
32394         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
32395         Haible <bruno@clisp.org>, archived at
32396         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
32397         Reported by Sylvain <beuc@gnu.org>.
32399 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32401         selinux-h: Really build without selinux when library is missing.
32402         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
32403         continue without selinux, as already told in the warning message.
32405 2013-10-21  Jim Meyering  <meyering@fb.com>
32407         regex: also remove dependency on HAVE_WCSCOLL
32408         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
32410 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
32412         xfreopen: Fix typo. s/frepoen/freopen/
32413         * lib/xfreopen.c: Fix description.
32414         * modules/xfreopen: Likewise.
32416 2013-10-21  Jim Meyering  <meyering@fb.com>
32418         regex: don't depend on wcscoll
32419         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
32420         It is no longer used.
32422 2013-10-20  Jim Meyering  <meyering@fb.com>
32424         error: add the printf attribute to a static function
32425         * lib/error.c (error_tail): Add the printf attribute, to placate
32426         gcc's -Werror=suggest-attribute=format option.
32428 2013-09-30  Jim Meyering  <meyering@fb.com>
32430         fpending, obstack, strerror-override: use pure+const function attrs
32431         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
32432         * lib/obstack.c (_obstack_allocated_p): Likewise.
32433         * lib/obstack.h (_obstack_memory_used): Likewise.
32434         (_obstack_memory_used): Likewise.
32435         * lib/strerror-override.h (strerror_override): Declare with
32436         the "const" attribute.
32438 2013-10-18  Eric Blake  <eblake@redhat.com>
32440         extern-inline: make safe for -Wundef usage
32441         Reported by Vladimir 'phcoder' Serbinenko in
32442         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
32443         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
32445 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32447         mkfifo-tests, etc.: allow HP-UX 11.11 bug
32448         Problem reported by Daniel Richard G. in
32449         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
32450         * doc/posix-functions/mkfifo.texi (mkfifo):
32451         * doc/posix-functions/mkfifoat.texi (mkfifoat):
32452         * doc/posix-functions/mknod.texi (mknod):
32453         * doc/posix-functions/mknodat.texi (mknodat):
32454         Document the HP-UX 11.11 bug.
32455         * tests/test-mkfifo.h (test_mkfifo):
32456         Allow the HP-UX 11.11 bug.
32458 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32460         acl: allow cross-compilation to Gentoo
32461         Problem reported by Gabriel Marcano in
32462         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
32463         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
32464         test only whether it links.
32466 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
32468         mgetgroups: remove dependency on realloc-gnu
32469         The dependency violates the comment in realloc-gnu, which
32470         says that tests can't depend on realloc-gnu; some tests depend
32471         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
32472         Problem reported by Daniel Richard G. in
32473         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
32474         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
32475         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
32476         not realloc-gnu.
32478 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32480         regex-tests: port to HP-UX 11.11
32481         Problem reported by Daniel Richard G. in
32482         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
32483         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
32485 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32487         verify: document some 'assume' pitfalls
32488         * doc/verify.texi (Compile-time Assertions):
32489         Mention that 'assume (E)' can sometimes slow things down.
32490         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
32492 2013-10-10  Eric Blake  <eblake@redhat.com>
32494         strtoumax: fix typo in previous commit.
32495         * modules/strtoumax (Depends-on): Fix typo.
32496         * modules/strtoimax (Depends-on): Likewise.
32498 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32500         strtoumax: port to Solaris 8
32501         This problem was introduced in the recent HP-UX patch.
32502         Reported by Tom G. Christensen in
32503         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
32504         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
32505         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
32507 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
32509         strtoimax, strtoumax: port to HP-UX 11.11
32510         Problem reported by Daniel Richard G. in
32511         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
32512         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
32513         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
32514         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
32515         REPLACE_STRTOUMAX.
32516         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
32517         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
32518         Replace the function if defined as a macro but not as a function.
32519         * modules/inttypes-incomplete (inttypes.h): Substitute
32520         REPLACE_STRTOUMAX.
32521         * modules/strtoumax (configure.ac): Replace strtoumax if
32522         REPLACE_STRTOUMAX.
32524 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
32526         strtoimax: port to HP-UX 11.11
32527         Problem reported by Daniel Richard G.
32528         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
32529         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
32530         they might clash with inttypes.h.
32532 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32534         New module 'count-trailing-zeros'.
32535         * MODULES.html.sh: Mention it.
32536         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
32537         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
32538         * modules/count-trailing-zeros-tests:
32539         * tests/test-count-trailing-zeros.c:
32540         New files.
32542         count-leading-zeros: port to MSC; support types wider than 64 bits
32543         The ideas behind the MSC port are stolen from Emacs.
32544         * lib/count-leading-zeros.h:
32545         Don't include verify.h: it's no longer needed, as types wider than
32546         64 bits are now supported.
32547         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
32548         performance with MSC.  All uses changed.  Do not assume that TYPE
32549         has at most 64 bits.
32550         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
32551         All uses changed.  Fold the subtraction from 31 into the table.
32553         count-one-bits: port to MSC; support types wider than 64 bits
32554         The ideas behind the MSC port are stolen from Emacs.
32555         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
32556         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
32557         Don't include verify.h: it's no longer needed, as types wider than
32558         64 bits are now supported.
32559         (COUNT_ONE_BITS_GENERIC): New macro.
32560         (popcount_supported) [_MSC_VER]: New inline function.
32561         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
32562         performance with MSC.  All uses changed.  Do not assume that TYPE
32563         has at most 64 bits.
32564         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
32566 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
32568         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
32569         * lib/mountlist.c (read_file_system_list): fix leak of directory
32570         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
32572 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32574         tests: improve diagnostic when an assertion fails
32575         * tests/macros.h (ASSERT): Report the assertion that failed.
32577 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
32579         verify: new macro 'assume'
32580         This is taken from Emacs, and should be generally useful.
32581         * doc/verify.texi (assume): Document it.
32582         * lib/verify.h (assume): New macro.
32583         (__has_builtin): Expand to 0 if not defined.
32585 2013-09-26  Eric Blake  <eblake@redhat.com>
32587         dup2, dup3: work around another cygwin crasher
32588         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
32589         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
32590         * tests/test-dup2.c (main): Likewise.
32591         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
32592         * lib/dup3.c (dup3): Likewise.
32593         * doc/posix-functions/dup2.texi (dup2): Document it.
32594         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32596         getdtablesize: work around cygwin issue
32597         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
32598         * modules/getdtablesize (configure.ac): Build replacement.
32599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
32600         * modules/unistd (Makefile.am): Expose the witness.
32601         * lib/unistd.in.h (getdtablesize): Declare replacement.
32602         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
32603         * tests/test-getdtablesize.c (main): Test it.
32604         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
32606 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
32608         pmccabe2html: escaping of special characters
32609         Escape all '<', '>', and '&' in HTML output.
32610         * build-aux/pmccabe2html (html_fnc): Call gsub()
32611         instead of sub() to capture all '<', '>', and '&'.
32612         Neither of '<' and '>' is special in a regexp,
32613         so first arguments to gsub() are corrected. Also,
32614         in replacement strings, ampersand must be escaped.
32615         Finally, '&' must be handled first, then '<' and '>'.
32617 2013-09-24  Eric Blake  <eblake@redhat.com>
32619         manywarnings: enable nicer gcc warning messages
32620         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
32621         some -f options for optimal warnings.
32623 2013-09-21  Jim Meyering  <meyering@fb.com>
32625         timespec: use the new TIMESPEC_RESOLUTION in a few more places
32626         * lib/timespec-add.c (timespec_add): Also replace 999999999
32627         with TIMESPEC_RESOLUTION - 1.
32628         * lib/timespec-sub.c (timespec_sub): Likewise.
32630 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32632         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
32633         Problem reported by Dagobert Michelsen via Eric Blake in
32634         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
32635         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
32636         not AC_COMPILE_IFELSE.
32638 2013-09-23  Eric Blake  <eblake@redhat.com>
32640         configmake: support new --runstatedir option
32641         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
32642         even if autoconf was too old to provide the command line option.
32643         * modules/configmake (Makefile.am): Propagate it to .h file.
32645 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32647         ctype, string: depend on extern-inline
32648         This is needed to complete the recent OS X fixes.
32649         Also, fix related documentation as suggested by Eric Blake.
32650         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
32651         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
32652         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
32653         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
32654         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
32655         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
32656         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
32657         * doc/posix-functions/toupper.texi:
32658         List the 'ctype' gnulib module.
32659         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
32660         * doc/posix-functions/strncpy.texi:
32661         List the 'string' gnulib module.
32662         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
32663         Add string.
32664         * modules/ctype, modules/string (Depends-on): Add extern-inline.
32666 2013-09-19  Pádraig Brady  <P@draigBrady.com>
32668         userspec: support optional parameters to parse_user_spec()
32669         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
32670         then avoid group processing and treat the full spec as a user.
32671         (parse_with_separator): Allow the USERNAME and GROUPNAME to
32672         be optional params (NULL), in which case they're ignored.
32674 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
32676         timespec: new function make_timespec, and new constants
32677         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
32678         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
32679         (make_timespec): New function.
32680         * lib/dtotimespec.c (dtotimespec):
32681         * lib/timespec-add.c (timespec_add):
32682         * lib/timespec-sub.c (timespec_sub):
32683         * lib/utimens.c (validate_timespec):
32684         * lib/utimensat.c (rpl_utimensat):
32685         Use these new constants and functions.
32687         stdio: OS X port of putc_unlocked + extern inline
32688         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
32689         * doc/posix-functions/putc_unlocked.texi:
32690         * doc/posix-functions/putchar_unlocked.texi:
32691         Document this portability problem.
32693         signal: OS X port of sigaddset etc. + extern inline
32694         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
32695         (sigismember): #undef on problematic Apple platforms.
32696         * doc/posix-functions/sigaddset.texi:
32697         * doc/posix-functions/sigdelset.texi:
32698         * doc/posix-functions/sigemptyset.texi:
32699         * doc/posix-functions/sigfillset.texi:
32700         * doc/posix-functions/sigismember.texi:
32701         Document this portability problem.
32703         extern-inline: do not always suppress extern inline on OS X
32704         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
32705         extern inline on Apple only if the particular compile-time
32706         configuration is known to have the problem.
32707         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
32708         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
32709         other Gnulib modules.
32711         extern-inline: document fixes for ctype and wctype macros
32712         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
32713         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
32714         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
32715         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
32716         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
32717         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
32718         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
32719         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
32720         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
32721         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
32722         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
32723         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
32724         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
32725         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
32726         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
32727         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
32728         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
32729         * doc/posix-functions/strncpy.texi:
32730         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
32731         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
32732         Document that Gnulib fixes portability problems with these
32733         functions on OS X 10.8 and earlier when called from plain inline
32734         or extern inline functions.
32736 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
32738         fflush, freadahead, fseeko: Fix for Android
32739         Suggested by Bruno Haible in:
32740         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
32741         * lib/stdio-impl.h: Use local __sfileext definition.
32743 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
32745         pmccabe2html: Portability to other awk versions.
32746         The functions systime() and strftime() are available
32747         in Gawk only.  Properly close two HTML-tags 'style'
32748         and 'span'.
32749         * build-aux/pmccabe2html (BEGIN): Store timing
32750         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
32751         systime() in HTML_COMMENT.
32752         (html_header): Correctly close tag 'style'.
32753         (END): Replace strftime() by CHRONOS_TIME.  Close
32754         tag 'span' correctly, not as 'div'.
32756 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32758         getgroups: statement without effect
32759         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
32760         Change equality conditional to expected assignment.
32762 2013-09-09  Eric Blake  <eblake@redhat.com>
32764         glob: fix compilation
32765         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
32767 2013-09-07  Eric Blake  <eblake@redhat.com>
32769         glob: fix build for platforms without __THROW
32770         * lib/glob.in.h (__THROW): Add definition again.
32772 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
32774         regex-quote: fix buffer access out of bounds
32775         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
32776         * lib/regex-quote.c (regex_quote_spec_pcre):
32777         Fix typo that resulted in an out-of-bounds read.
32779 2013-09-04  Eric Blake  <eblake@redhat.com>
32781         glob: avoid -Wattribute warnings on glibc
32782         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
32783         __THROWNL, not __THROW, on static functions.
32784         * lib/glob.in.h (__THROW): Adjust...
32785         (__THROWNL): ...accordingly.
32787 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32789         headers: check that _GL_INLINE_HEADER_BEGIN is defined
32790         Suggested by Bruce Korb in:
32791         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
32792         * doc/extern-inline.texi (extern inline):
32793         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
32794         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
32795         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
32796         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
32797         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
32798         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
32799         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
32800         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
32801         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
32802         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
32803         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
32804         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
32805         * lib/xtime.h:
32806         Check that _GL_INLINE_HEADER_BEGIN is defined.
32808 2013-08-29  Pádraig Brady  <P@draigBrady.com>
32810         bootstrap: remove the --version requirement from ancillary tools
32811         * build-aux/bootstrap (check_exists): A new refactored function to
32812         determine if a command exists.
32813         (find_tool): Use the new function which does not require the
32814         --version option to be supported.
32815         (check_versions): Use the new function.
32817 2013-08-26  Simon Josefsson  <simon@josefsson.org>
32819         gc: support HMAC-SHA256 and HMAC-SHA512.
32820         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
32821         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
32822         functions.
32823         (gc_hmac_md5): Use symbolic constant.
32824         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
32825         (gc_hmac_sha256, gc_hmac_sha512): New functions.
32826         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
32827         * m4/sha256.m4: Protect against empty expansion.
32828         * m4/sha512.m4: Likewise.
32829         * lib/hmac-sha256.c: New file.
32830         * lib/hmac-sha512.c: Likewise.
32831         * m4/gc-hmac-sha256.m4: Likewise.
32832         * m4/gc-hmac-sha512.m4: Likewise.
32833         * m4/gc-sha256.m4: Likewise.
32834         * m4/gc-sha512.m4: Likewise.
32835         * modules/crypto/gc-hmac-sha256: Likewise.
32836         * modules/crypto/gc-hmac-sha256-tests: Likewise.
32837         * modules/crypto/gc-hmac-sha512: Likewise.
32838         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32839         * modules/crypto/hmac-sha256: Likewise.
32840         * modules/crypto/hmac-sha256-tests: Likewise.
32841         * modules/crypto/hmac-sha512: Likewise.
32842         * modules/crypto/hmac-sha512-tests: Likewise.
32843         * tests/test-gc-hmac-sha256.c: Likewise.
32844         * tests/test-gc-hmac-sha512.c: Likewise
32845         * tests/test-hmac-sha256.c: Likewise.
32846         * tests/test-hmac-sha512.c: Likewise
32848 2013-08-24  Daiki Ueno  <ueno@gnu.org>
32850         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
32851         of AC_CHECK_DECLS.
32853 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32855         selinux-at: omit unnecessary include
32856         * lib/selinux-at.c: Don't include dosname.h; not needed, since
32857         this source file doesn't use its macros, and subsidiary files that
32858         use the macros already include it.
32860 2013-08-21  Eric Blake  <eblake@redhat.com>
32862         d-ino: avoid false negative on symlink
32863         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
32864         Reported by Stephane Chazelas.
32866 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
32868         bootstrap: port to OpenBSD sed
32869         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
32870         does not interpret `-' as a file argument to mean stdin.
32872 2013-08-15  Eric Blake  <eblake@redhat.com>
32874         warnings: minor optimization
32875         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
32877         warnings: check -Wfoo rather than -Wno-foo
32878         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
32879         -Wno-, test if the compiler recognizes the positive form instead.
32881 2013-08-15  Karl Berry  <karl@gnu.org>
32883         * config/srclist-update: add option "doclicense" to placate
32884         pulling *.texi files from Emacs.  Write terse usage
32885         documentation at the top.
32887 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
32889         xvasprintf-tests: port to GCC with hardening flags
32890         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
32891         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
32892         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
32894 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32896         fpending: port to recent Cygwin change to stdio_ext.h
32897         Reported by LRN in
32898         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
32899         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
32900         just declare __fpending unless it's a macro.
32901         A duplicate decl shouldn't hurt.
32902         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
32903         call compiles and links, instead of separately checking for
32904         decl and lib function.
32905         * modules/fpending (configure-ac):
32906         Adjust to fpending.m4's renaming of shell variable.
32908 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32910         sys_time: port to OpenBSD
32911         * lib/sys_time.in.h: Simply delegate to the system's header
32912         in the BSDish cases as well.  Problem reported by Mike Miller in
32913         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
32914         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
32915         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
32916         wider than time_t.
32918 2013-08-09  Pádraig Brady  <P@draigBrady.com>
32920         bootstrap: support checksum utils having -c but not --status
32921         * build-aux/bootstrap: Only look for sha1sum if updating po files.
32922         Add sha1 to the list of supported checksum utils since it's now
32923         supported through adjustments below.
32924         (update_po_files): Remove the use of --status
32925         in a way that will suppress all error messages, but since this is
32926         only used to minimize updates, it shouldn't cause an issue.
32927         Exit early if there is a problem updating the po file checksums.
32928         (find_tool): Remove the check for --version support as this
32929         is optional as per commit 86186b17.  Don't even check for the
32930         presence of the command as if that is needed, it's supported
32931         through configuring prerequisites in bootstrap.conf.
32932         Prompt that when a tool isn't found, one can define an environment
32933         variable to add to the hardcoded search list.
32935 2013-08-05  Jim Meyering  <meyering@fb.com>
32937         regex: port to non-glibc/lock-using systems
32938         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
32939         system with GNULIB_LOCK would fail due to absence of the
32940         included "glthread/lock.h".  This would affect any package
32941         for which the "lock" module is used only by the regex module,
32942         and not explicitly used.
32943         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
32944         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
32945         Add a dependency on the "lock" module.
32947 2013-07-20  Daiki Ueno  <ueno@gnu.org>
32949         localecharset: make locale_charset thread-safe on Mac OS X
32950         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
32951         instead of MB_CUR_MAX.
32953 2013-07-20  Daiki Ueno  <ueno@gnu.org>
32955         gettext: update to version 0.18.3
32956         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
32957         require AC_PROG_SED to allow user to specify custom sed command when
32958         generating en@quot PO file.
32960 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
32962         bootstrap: use correct source when copying build-aux files
32963         * build-aux/bootstrap (gnulib_extra_files): This variable is
32964         relative to upstream gnulib layout, not downstream.
32966 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
32968         tmpdir: fix bug in VMS port
32969         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
32970         See Steven M. Schweda in
32971         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
32973 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32975         tmpdir: port to VMS, to // != /, and to long dirs
32976         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
32977         __secure_getenv, so that we're more like the glibc version.
32978         All uses changed.
32979         (path_search): Don't put slash after directory if __VMS.
32980         Problem reported by Steven M. Schweda in
32981         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
32982         Simplify code to add slash; no need for a loop.
32983         Do not remove trailing slash from "//".
32984         Do not assume dlen <= INT_MAX.
32986 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32988         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
32989         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
32990         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
32991         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
32993         accept4, dup3, pipe2: port to Cygwin
32994         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
32995         * lib/accept4.c (accept4) [O_BINARY]:
32996         * lib/dup3.c (dup3) [O_BINARY]:
32997         * lib/pipe2.c (pipe2) [O_BINARY]:
32998         Use set_binary_mode, not setmode.
32999         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
33000         * modules/binary-io (Depends-on): Remove module indicator.
33001         These last two bits undo the previous change to pipe2 and binary-io.
33003 2013-07-09  Pádraig Brady  <P@draigBrady.com>
33005         mountlist: add support for deallocating returned list entries
33006         * lib/mountlist.c (free_mount_entry): A new exported function
33007         to deallocate a mount list entry.
33008         (read_file_system_list): Refactor to use the new deallocation function.
33009         Suggested by Anton Ovchinnikov.
33011 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
33013         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
33014         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
33015         * lib/stdalign.in.h (_Alignas, _Alignof):
33016         Port to FreeBSD 9.1, and to C11 and C++11.
33017         (_Alignas): Also support ICC.
33018         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
33019         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
33021 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33023         fnmatch: don't goto over declaration
33024         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
33025         undefined behavior for goto over a declaration.
33026         Problem reported by Charlie Brown in
33027         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
33029         pipe2: decouple from binary-io a bit
33030         This is for Emacs, which needs pipe2 but not binary-io.
33031         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
33032         * modules/binary-io (Depends-on): Add module indicator.
33034 2013-07-03  Eric Blake  <eblake@redhat.com>
33036         mgetgroups: relax license to LGPLv2+
33037         * modules/getugroups (License): Change from GPLv3+.
33038         * modules/mgetgroups (License): Likewise.
33039         * modules/getgroups (License): Change from LGPLv3+.
33041         xalloc-oversized: relax license to LGPLv2+
33042         * modules/xalloc-oversized (License): Change from GPLv3+.
33044         nproc: relax license to LGPLv2+
33045         * modules/nproc (License): Change from LGPLv3+.
33047         bootstrap: honor --no-git
33048         * build-aux/bootstrap: Don't even try to use git when user is
33049         pointing to a static checkout.
33051 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33053         ignore-value: port to gcc -pedantic
33054         * lib/ignore-value.h (ignore_value):
33055         Port to gcc -pedantic, by using __extension__.
33056         Reindent as per usual gnulib style nowadays.
33057         Simplify GCC version check.
33059 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33061         extern-inline: port to gcc -std=c89
33062         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33063         Do not use __gnu_inline__ if pedantic and pre-C99.
33065 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33067         doc: document extern-inline
33068         * doc/extern-inline.texi: New file.
33069         * doc/gnulib.texi (alloca-opt): Include it.
33070         * m4/extern-inline.m4: Move some comments to documentation,
33071         and others closer to what they describe.
33073         doc: chatter less
33074         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
33075         (updated-stamp): Use it.  This causes 'make' to output just
33076         one file name rather than zillions.
33078         fflush, fseeko: port to musl cross-compiles
33079         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
33080         on some implementation that (1) is not known to be buggy,
33081         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
33082         cross-compiled to so we can't easily check for lack of
33083         conformance.  This is for cross-compiling to musl.
33084         Reported by Rich Felker in
33085         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
33086         * m4/fclose.m4 (gl_FUNC_FCLOSE):
33087         * m4/fflush.m4 (gl_FUNC_FFLUSH):
33088         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
33089         Adjust to above change.
33090         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
33091         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
33092         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
33093         known not to work, or unknown.
33095 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33097         msvc-inval: port to mingw-w64
33098         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
33099         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
33100         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
33102 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
33104         getcwd-lgpl: port to Tru64
33105         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
33106         Problem reported by Steven M. Schweda in
33107         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
33109         tests: port large-fd POSIX spawn tests to OS X
33110         Problem reported by Daiki Ueno in
33111         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
33112         * tests/test-posix_spawn_file_actions_addclose.c:
33113         * tests/test-posix_spawn_file_actions_adddup2.c:
33114         * tests/test-posix_spawn_file_actions_addopen.c:
33115         Include <limits.h>, for OPEN_MAX, if available.
33116         (big_fd): New static function.
33117         (main): Use it.
33119 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
33121         tests/nap.h: use an adaptive delay to avoid ctime update issues
33122         The recent change in nap.h (5191133e) decreased the probability of lost
33123         races to about a third, however such problems could still be observed
33124         in virtual machines and openSUSE's OBS.
33125         Before, nap() detected the needed time once empirically and then used
33126         that delay (together with a small correction multiplier) in further
33127         calls.  This problem has been reported and discussed several times,
33128         including guesses about possible kernel issues:
33129         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
33130         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
33131         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
33132         http://bugs.gnu.org/12820
33133         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
33134         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
33135         Now, nap() avoids the race alltogether by verifying on a reference
33136         file whether a timestamp difference has happened.
33137         * tests/nap.h (nap_fd): Define file descriptor variable for the
33138         witness file.
33139         (nap_works): Change return value to bool.  Change passing
33140         the old file's status by value instead of by reference as this function
33141         does no longer update that timestamp; rename the function argument from
33142         st to old_st.  Remove the local variables cdiff and mdiff because that
33143         function now returns true/false instead of the precise delay.
33144         (guess_delay): Remove function.
33145         (clear_tmp_file): Add new function to close and unlink the witness file.
33146         (nap): Instead of re-using the delay which has been calculated during
33147         the first call, avoid the race by actually verifying that a timestamp
33148         difference can be observed on the current file system.  Use an adaptive
33149         approach for the delay to minimize execution time.  Assert that the
33150         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
33151         = 2^31 - 1 = 2.1s.
33152         Use atexit to call clear_tmp_file when the process terminates.
33154 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33156         sig2str: port to C++
33157         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
33158         Reported by Daniel J Sebald in
33159         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
33161 2013-05-30  Eric Blake  <eblake@redhat.com>
33163         docs: mention cygwin shortcoming in <sys/un.h>
33164         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
33166         vasnprintf: silence mingw compiler warning
33167         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
33169 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33171         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
33172         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
33173         This fixes a porting bug I recently reintroduced in regex, and
33174         some other instances that I discovered while testing the fix.
33175         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
33176         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
33177         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
33178         with an empty argument if this is a pedantic pre-C99 GCC.
33179         * lib/verify.h: Do not use _Static_assert if this is a pedantic
33180         pre-C11 GCC.
33182         regex: adapt to locking regime instead of depending on pthread
33183         Instead of depending on pthread, adapt to whatever thread
33184         modules are in use.  Problem reported by Ludovic Courtès in
33185         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
33186         and by Mats Erik Andersson in
33187         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
33188         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33189         Support either the 'lock' module, or the 'pthread' module, or
33190         no module.
33191         (lock_lock, lock_unlock): New macros.
33192         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
33193         * modules/lock, modules/pthread (configure.ac): Add module indicator.
33194         * modules/regex (Depends-on): Remove pthread.
33196 2013-05-22  Eric Blake  <eblake@redhat.com>
33198         getgroups: document portability issues
33199         * doc/glibc-functions/initgroups.texi (initgroups): Mention
33200         multithread safety.
33201         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
33202         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
33203         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
33204         getugroups.
33205         * doc/posix-functions/getgroups.texi (getgroups): Mention
33206         multithread safety and mgetgroups.
33208 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
33210         test-lchown, test-chown: also skip test if chown fails with EPERM
33211         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
33212         skip this test, to handle FAT file systems.
33213         * tests/test-chown.h (test_chown): Likewise.
33215 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33217         regex: fix dfa race in multithreaded uses
33218         Problem reported by Ludovic Courtès in
33219         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
33220         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33221         New macros.  All uses of __libc_lock_define, __libc_lock_init
33222         changed to use the first two of these.
33223         (__libc_lock_lock, __libc_lock_unlock): New macros, for
33224         non-glibc platforms.
33225         (struct re_dfa_t): Define the lock unconditionally.
33226         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
33227         '#ifdef _LIBC"s.
33228         * modules/regex (Depends-on): Add pthread, if we use the
33229         included regex.
33231         * lib/regcomp.c: Do actions that are not needed for glibc,
33232         but may be needed elsewhere.
33233         (regfree, re_compile_internal): Destroy the lock.
33234         (re_compile_internal): Check for lock-initialization failure.
33236         malloca: port to compilers that reject size-zero arrays
33237         This fixes a bug introduced in my previous patch.
33238         * lib/malloca.c (struct preliminary_header): Use an int
33239         rather than a character array of size int; that's simpler.
33240         (struct header): Remove, replacing with ...
33241         (union header): New type.  This avoids the need for declaring a
33242         character array of size zero, which is not allowed on some platforms.
33243         All uses changed.
33245 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
33247         parse-datetime, tests: don't use "string" + int
33248         Recent versions of 'clang' complain about C source code that
33249         uses expressions of the form '"string literal" + integer',
33250         I guess on the theory that it's confusing for readers who are
33251         used to C++.  On those grounds I suppose it's OK to make this
33252         minor style change.
33253         * lib/parse-datetime.y (parse_datetime):
33254         * tests/test-fchdir.c (main):
33255         * tests/test-snprintf-posix.h (test_function):
33256         * tests/test-snprintf.c (main):
33257         * tests/test-vasnprintf-posix.c (test_function):
33258         * tests/test-vasnprintf.c (test_function):
33259         * tests/test-vsnprintf.c (main):
33260         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
33261         Rewrite '"str" + E' to '&"str"[E]'.
33263 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33265         argmatch: port to C++
33266         * lib/argmatch.h [__cplusplus]: Add extern "C".
33268         argp: typo fix
33269         * lib/argp-help.c: Typo in comment.
33271 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33273         manywarnings: update for GCC 4.8.0
33274         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
33275         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
33276         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
33277         -Wmissing-noreturn, as they are duplicates of other warnings.
33278         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
33279         was documented to be flaky in earlier versions of GCC.
33281         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
33282         * tests/test-spawn.c (main):
33283         * tests/test-sys_socket.c (main):
33284         * tests/test-sys_wait.c (main):
33285         Don't have a switch value that isn't covered by a case.
33287         getaddrinfo-tests: port --enable-gcc-warnings to clang
33288         * tests/test-getaddrinfo.c (simple):
33289         Avoid casts from looser to stricter-aligned pointers.
33291         thread: port --enable-gcc-warnings to clang
33292         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
33293         Include <signal.h>, to pacify a warning about pthread_sigmask.
33295         stdio: use __REDIRECT for fwrite, fwrite_unlocked
33296         * lib/stdio.in.h (fwrite):
33297         When working around bug 11959, use __REDIRECT rather than '#define
33298         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
33299         fix the -Wunused-value issue with clang, and it works with GCC too.
33300         Problem with targeting reported by Eric Blake in
33301         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
33302         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
33303         debugging the fwrite issue.
33305         stdio: port --enable-gcc-warnings to clang
33306         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
33307         since the GCC workaround for fwrite does not pacify clang.
33309         sig2str: port --enable-gcc-warnings to clang
33310         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
33312         obstack: port --enable-gcc-warnings to clang
33313         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
33314         Avoid casts from looser to stricter-aligned pointers.
33316         memchr2: port --enable-gcc-warnings to clang
33317         * lib/memchr2.c (memchr2):
33318         Avoid casts from looser to stricter-aligned pointers.
33320         mbsstr: port --enable-gcc-warnings to clang
33321         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
33322         Avoid casts from looser to stricter-aligned pointers.
33324         malloca: port --enable-gcc-warnings to clang
33325         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
33326         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
33328         inttostr: port --enable-gcc-warnings to clang
33329         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
33331         warnings: port to clang
33332         Problem reported by Daniel P. Berrange via Eric Blake in
33333         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
33334         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
33335         (gl_WARN_ADD): Use it.
33337 2013-05-11  Jim Meyering  <meyering@fb.com>
33339         quotearg: do not read beyond end of buffer
33340         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
33341         end of an ARG for which no length was specified.  With an N-byte
33342         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
33343         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
33344         via coreutils' misc/sort-debug-keys.sh test and detected by running
33345         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
33346         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
33347         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
33348         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
33349         characters correctly."
33351 2013-05-11  Daiki Ueno  <ueno@gnu.org>
33353         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
33354         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
33355         compilation target is Mac OS X 10.6.
33356         Problem reported by parafin and Andoni Morales in
33357         <http://savannah.gnu.org/bugs/?37844> and
33358         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
33360 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33362         mkdir-p: remove assumptions about umask and mode
33363         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
33364         umask is 0, or that MODE is a subset of MODE_BITS.
33366 2013-05-10  Eric Blake  <eblake@redhat.com>
33368         maint.mk: catch more abuse of HAVE_DECL in syntax-check
33369         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
33371 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
33373         deps: require Automake >= 1.9.6 in generated Makefile fragments
33375         That is the same minimal version required in the DEPENDENCIES file.
33376         Moreover, the old code generated a requirement of Automake >= 1.5,
33377         and that is an insanely outdated version.
33379         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
33380         * tests/havelib/rpathlx/Makefile.am: Likewise.
33381         * tests/havelib/rpathly/Makefile.am: Likewise.
33382         * tests/havelib/rpathlyx/Makefile.am: Likewise.
33383         * tests/havelib/rpathlz/Makefile.am: Likewise.
33384         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
33385         * tests/havelib/rpathx/Makefile.am: Likewise.
33386         * tests/havelib/rpathy/Makefile.am: Likewise.
33387         * tests/havelib/rpathz/Makefile.am: Likewise.
33389 2013-05-08  Eric Blake  <eblake@redhat.com>
33391         bootstrap: AC_INIT may have more than four parameters
33392         * build-aux/bootstrap (extract_package_name): Correctly extract
33393         non-empty tarname field.  Avoid range in regex.
33394         Based on a report by Sami Kerola <kerolasa@iki.fi>.
33396 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33398         qacl: port to MS-Windows port of GNU Emacs
33399         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
33400         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
33401         port of GNU Emacs.  Problem reported by Eli Zaretskii in
33402         <http://bugs.gnu.org/14295#14>.
33404 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
33406         acl: include quote.h
33407         * lib/copy-acl.c: Include quote.h.
33408         * lib/set-acl.c: Likewise.
33410 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
33412         fchownat, renameat, unlinkat: update statat dependencies
33413         These modules use statat and lstatat, not fstatat; so depend on
33414         the statat module, which was split out recently from fstatat.
33415         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
33416         * modules/renameat: Likewise.  Also delete fstat.
33417         URL: http://bugs.gentoo.org/468790
33419 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
33421         Assume gnulib is checked out from Git, not CVS
33423         In fact, access to the gnulib repository through CVS has been
33424         disabled, or more precisely, got broken and was never restored; see:
33425         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
33427         Note that support for CVS is not removed completely and unthinkingly
33428         by this change: only support for CVS checkouts of gnulib itself is
33429         removed.  For example, the 'bootstrap' script still cater to .cvsingore
33430         files and CVS directories, for the benefit of those poor gnulib clients
33431         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
33433         * gnulib-tool: Simplify accordingly.
33434         * posix-modules: Likewise.
33435         * MODULES.html.sh: Likewise.
33436         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
33437         repository.
33438         * doc/gnulib-intro.texi: Likewise.
33439         * doc/gnulib-readme.texi: Likewise.
33440         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
33441         sample '.gitignore' file rather than a sample '.cvsignore'.
33442         * NEWS: Update.
33443         * m4/extensions.m4: While at it, remove a comment mistakenly referring
33444         to "CVS Autoconf" rather than "git Autoconf".
33446 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
33448         utimensat-tests, etc.: try to fix some races
33449         Problem reported by Bernhard Voelker in
33450         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
33451         I don't know whether this patch fixes that race condition, but it
33452         fixes *some* race conditions, so it should be a win.
33453         * modules/chown-tests (Depends-on):
33454         * modules/fchownat-tests (Depends-on):
33455         * modules/fdutimensat-tests (Depends-on):
33456         * modules/futimens-tests (Depends-on):
33457         * modules/lchown-tests (Depends-on):
33458         * modules/stat-time-tests (Depends-on):
33459         * modules/utimens-tests (Depends-on):
33460         * modules/utimensat-tests (Depends-on):
33461         Depend on nanosleep, not usleep.
33462         * modules/chown-tests (test_chown_LDADD):
33463         * modules/lchown-tests (test_lchown_LDADD):
33464         * modules/stat-time-tests (test_stat_time_LDADD):
33465         New macro.
33466         * modules/fchownat-tests (test_fchownat_LDADD):
33467         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
33468         * modules/futimens-tests (test_futimens_LDADD):
33469         * modules/utimens-tests (test_utimens_LDADD):
33470         * modules/utimensat-tests (test_utimensat_LDADD):
33471         Add $(LIB_NANOSLEEP).
33472         * modules/stat-time-tests (Files): Add tests/nap.h.
33473         * tests/nap.h: Include <limits.h>, for INT_MAX.
33474         (lt_mtime): Remove.
33475         (diff_timespec): New function.
33476         (get_stat): Rename from get_mtime.  All callers changed.
33477         (nap_works): Determine the needed delay by inspecting the
33478         file system's timestamp jumps; this should be more reliable.
33479         Look at both mtime and ctime, and take the maximum of the two jumps.
33480         (nap_works, guess_delay):
33481         Return a nanosecond count, not a microsecond count.
33482         All callers changed.
33483         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
33484         failure.
33485         (nap): Multiply the guess by 1.125, to accommodate the case where
33486         the file system's clock is a bit slower than nanosleep's clock.
33487         * tests/test-stat-time.c (BASE): New macro.
33488         Include nap.h.
33489         (nap): Remove; nap.h now defines this.  This removes a duplicate
33490         implementation of 'nap'.
33492         utimens, utimensat: work around Solaris UTIME_OMIT bug
33493         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
33494         Linux kernel 2.6.32 does.  Work around it in the same way.
33495         * doc/posix-functions/futimens.texi (futimens):
33496         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
33497         * lib/utimens.c (fdutimens, lutimens):
33498         * lib/utimensat.c (rpl_utimensat): Work around the bug.
33500         gettext: now it's your responsibility to add -I$(top_builddir)/intl
33501         Formerly, it was your responsibility to do this for all Makefile.ams
33502         other than Gnulib's.  Now it's your responsibility to do it for
33503         Gnulib's Makefile.am, too.
33504         * NEWS: Document this.
33505         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
33507         acl: include errno.h to get errno
33508         Reported by Daiki Ueno in
33509         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
33510         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
33512 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
33514         tests: don't assume getdtablesize () <= 10000000
33515         * modules/cloexec-tests:
33516         * modules/dup2-tests:
33517         * modules/dup3-tests:
33518         * modules/nonblocking-tests:
33519         * modules/posix_spawn_file_actions_addclose-tests:
33520         * modules/posix_spawn_file_actions_adddup2-tests:
33521         * modules/posix_spawn_file_actions_addopen-tests:
33522         * modules/unistd-safer-tests:
33523         Depend on the getdtablesize module.
33524         * tests/test-cloexec.c:
33525         * tests/test-dup-safer.c:
33526         * tests/test-dup2.c:
33527         * tests/test-dup3.c:
33528         * tests/test-fcntl.c:
33529         * tests/test-nonblocking.c:
33530         * tests/test-posix_spawn_file_actions_addclose.c:
33531         * tests/test-posix_spawn_file_actions_adddup2.c:
33532         * tests/test-posix_spawn_file_actions_addopen.c:
33533         Don't assume getdtablesize () <= 10000000.
33535 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
33537         extern-inline: work around bug in Sun c99
33538         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
33539         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
33541 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
33543         qacl: new module, broken out from the acl module
33544         This is for GNU Emacs, which wants the acl functions but does
33545         not want 'error' invoked when they fail.
33546         * lib/acl-internal.h: Do not include error.h, quote.h.
33547         (ENOSYS, ENOTSUP): Remove; no longer needed.
33548         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
33549         * lib/acl.h: Include <stdbool.h>.
33550         (acl_errno_valid): New function.
33551         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
33552         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
33553         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
33554         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
33555         (ACL_INTERNAL_INLINE): Remove; no longer needed.
33556         * lib/file-has-acl.c (file_has_acl):
33557         * lib/qcopy-acl.c (qcopy_acl):
33558         * lib/qset-acl.c (qset_acl):
33559         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
33560         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
33561         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
33562         lib/file-has-acl.c, m4/acl.m4 to qacl module.
33563         Add lib/set-acl.c.
33564         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
33565         Add qacl.
33566         (configure.ac): Move gl_FUNC_ACL to qacl module.
33567         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
33568         Rename set-mode-acl.c to set-acl.c.
33569         * lib/acl-errno-valid.c: New file.
33570         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
33571         copy_acl function remains in copy-acl.c.
33572         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
33573         (_): Remove; not needed.
33574         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
33575         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
33576         * modules/qacl: New file, moved from the old modules/acl.
33577         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
33578         Remove set-mode-acl.c, copy-acl.c.
33579         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
33581         alignof, intprops, malloca: port better to IBM's C compiler
33582         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
33583         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
33584         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
33586 2013-04-25  Daiki Ueno  <ueno@gnu.org>
33588         wctype-h: fix gettext link error on mingw
33589         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
33590         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
33591         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
33592         rpl_towupper and rpl_towupper.
33594 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
33596         regex-tests, regex: allow glibc re_search behavior
33597         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
33598         re_search input data to make the multi-character collating element
33599         in it clearly visible, and treat re_search return code 0 as valid.
33600         * m4/regex.m4 (gl_REGEX): Likewise.
33602 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33604         stdalign: doc fix
33605         * doc/posix-headers/stdalign.texi (stdalign.h):
33606         Gnulib doesn't support '_Alignof expr'.
33608 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33610         stdalign: port to stricter ISO C11
33611         ISO C11 says that _Alignof's operand must be a parenthesized type.
33612         Problem reported by Eli Zaretskii in
33613         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
33614         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
33615         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
33617 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33619         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
33620         Problem reported by Marco Atzeri in
33621         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
33622         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
33623         Simply delegate to the system <sys/select.h> in this case too.
33624         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
33625         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
33626         be needed on Solaris either.
33627         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
33628         Simply delegate to the system <sys/time.h> in this case.
33630 2013-03-19  Karl Berry  <karl@gnu.org>
33632         * build-aux/gnupload: check for erroneous (with gnupload) use of
33633         ftp-upload.gnu.org, tweak help.
33635 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33637         copy-file, rpmatch: fix problems found by cppcheck
33638         Reported by Arno Onken in
33639         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
33640         * lib/rpmatch.c (try): Fix memory leak.
33641         * lib/copy-file.c: Include "ignore-value.h".
33642         (qcopy_file_preserving): Ignore chown value.
33643         * modules/copy-file (Depends-on): Add ignore-value.
33645 2013-01-27  Jim Meyering  <jim@meyering.net>
33647         prefix-gnulib-mk: give better diagnostics
33648         * build-aux/prefix-gnulib-mk: Don't just "die".
33649         Give better diagnostics upon failure.
33651 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
33653         putenv: port to Solaris 10
33654         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
33655         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
33656         is not what is wanted here.
33657         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
33658         declaration, not for its existence.
33660 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
33662         mktime: fix configure typo
33663         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
33665 2013-03-12  Eric Blake  <eblake@redhat.com>
33667         regex-tests: skip UTF-8 test on mingw
33668         * modules/regex-tests (Depends-on): Add localcharset.
33669         * tests/test-regex.c (main): Use it to skip test on mingw.
33671 2013-03-11  Eric Blake  <eblake@redhat.com>
33673         tests: make it easier to bypass alarm time in debugger
33674         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
33675         * tests/test-memmem.c (main): Likewise.
33676         * tests/test-passfd.c (main): Likewise.
33677         * tests/test-ptsname.c (main): Likewise.
33678         * tests/test-ptsname_r.c (main): Likewise.
33679         * tests/test-strcasestr.c (main): Likewise.
33680         * tests/test-strstr.c (main): Likewise.
33682         regex: port to mingw's recent addition of undeclared alarm
33683         * doc/posix-functions/alarm.texi (alarm): Document that alarm
33684         exists but still doesn't work in newer mingw.
33685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
33686         not existence.  Ensure SIGALRM is not trapped.
33687         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
33688         * m4/regex.m4 (gl_REGEX): Likewise.
33689         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
33690         * tests/test-regex.c (main): Use correct probe for alarm.
33692         putenv: avoid compilation warning on mingw
33693         * lib/putenv.c (_unsetenv): Protect variable declaration.
33694         (putenv): Fix indentation.
33696 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
33698         unistd: don't prevent Tru64 Unix from using gnulib strtod.
33699         * lib/unistd.in.h: be careful not to include un-needed system
33700         stdlib.h from here, because that prevents gnulib stdlib.h from
33701         defining rpl_strtod correctly.
33703 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
33705         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
33706         changesets, but for the 'precision 0' test.
33707         * tests/test-vasprintf-posix.c (test_function): Don't insist on
33708         round-to-even, since POSIX says rounding is implementation-defined
33709         and OS X 10.8.2 rounds 1.51 to 1 here.
33711         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
33712         changeset.
33713         * tests/test-vasprintf-posix.c (test_function): Don't insist on
33714         round-to-even, since POSIX says rounding is implementation-defined
33715         and OS X 10.8.2 rounds 1.5 to 1 here.
33717 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
33719         vasnprintf-posix-tests: allow rounding 1.5 to 1
33720         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
33721         round-to-even, since POSIX says rounding is implementation-defined
33722         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
33723         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
33725         bootstrap: port to FreeBSD
33726         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
33727         that treat '--' differently.  Reported by Mats Erik Andersson in
33728         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
33730 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
33732         regex: rename remaining __attribute calls to __attribute__.
33733         2012-02-25 changed definition of __attribute, but left some uses
33734         unchanged, preventing compilation of regex module on most non-gcc
33735         environments.
33736         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
33737         (lookup_collation_sequence_value, build_range_exp)
33738         (build_collating_symbol): Set attributes with newly renamed
33739         __attribute__ decorator.
33740         * lib/regex_internal.c (re_string_peek_byte_case)
33741         (re_node_set_compare, re_node_set_contains): Likewise.
33742         * lib/regexec.c (acquire_init_state_context): Likewise.
33744 2013-03-06  Bruno Haible  <bruno@clisp.org>
33746         execute: Revert last change, but use a different condition.
33747         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
33748         on Windows.
33750 2013-03-05  Eric Blake  <eblake@redhat.com>
33752         execute: drop dead code
33753         * lib/execute.c (nonintr_close, nonintr_open): Delete.
33755 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
33757         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
33758         * m4/non-recursive-gnulib-prefix-hack.m4
33759         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
33760         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
33761         <http://bugs.gnu.org/10305#237>.
33763 2013-03-04  Eric Blake  <eblake@redhat.com>
33765         test-getsockopt: avoid compiler warning
33766         * tests/test-getsockopt.c (includes): Ensure close is declared.
33768 2013-03-02  Bruno Haible  <bruno@clisp.org>
33770         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
33771         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
33773 2013-03-02  Bruno Haible  <bruno@clisp.org>
33775         gettext: Update to version 0.18.2.
33776         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
33777         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
33778                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
33780 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33782         regex: merge patches from libc
33784         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
33785         * lib/regex_internal.h (__attribute__): Rename from __attribute.
33786         All uses changed.
33787         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
33788         (re_string_wchar_at, re_string_elem_size_at):
33789         Mark function as possibly unused.
33791         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
33792         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
33793         elements compare against the byte sequence of it, not its name.
33795 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
33797         putenv: port better to native Windows
33798         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
33799         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
33800         (_unsetenv): Use _putenv if available.
33801         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
33802         a bit less likely to cause damage.
33803         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
33804         Fix the wrong value with SetEnvironmentVariable.
33805         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
33806         code better.
33808 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33810         regex: ignore old-style-definition warnings
33811         * lib/regex.c: Add pragma to ignore these warnings.
33812         Problem reported for GNU tar by Pavel Raiskup.
33814 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
33816         getcwd: support coreutils better
33817         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
33818         but this might not be correct in coreutils, which disables
33819         the raw decl checks.  Problem reported by Nagendra in
33820         <http://bugs.gnu.org/10305#192>.
33821         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
33822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33823         Test the getcwd function, not any macro, since getcwd.c wants the
33824         function.
33825         * m4/getcwd.m4 (gl_FUNC_GETCWD):
33826         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
33827         compile, as might happen if there's a macro but no function.
33829         strtod: support coreutils better
33830         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
33831         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
33832         disables the raw decl checks.  This assumes there is an underlying
33833         strtod, but that's a safe assumption these days.
33834         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
33836         mountlist: port to HP NonStop
33837         Reported by Joachim Schmitz in
33838         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
33839         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
33840         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
33842 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
33844         extern-inline: avoid compilation error with HP-UX cc
33845         Reported by Richard Lloyd in
33846         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
33847         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
33848         Suppress extern inline with HP-UX cc.  This should be safe,
33849         though it may hurt performance.  Perhaps someone with some HP-UX
33850         experience can come up with a higher-performance fix.
33852 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33854         putenv: fix heap corruption with mixed putenv/_putenv
33855         Problem reported by Michael Goffioul in
33856         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
33857         * lib/putenv.c (putenv) [HAVE__PUTENV]:
33858         Rely on _putenv to allocate the new environment.
33859         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
33860         * modules/putenv (configure.ac): Use it.
33862 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
33864         unsetenv etc.: port to Solaris 11 + GNU Emacs
33865         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
33866         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
33867         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
33868         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
33869         idea but is too painful to fix right now), and without this gnulib
33870         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
33871         compiling unsetenv.c on Solaris 11.  Fix the problem for
33872         unsetenv.c, and fix other similar occurrences.
33874 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
33876         secure_getenv: fix C++ declaration typo
33877         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
33878         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
33879         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
33881 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
33883         careadlinkat: stop exporting careadlinkatcwd
33884         Only Emacs used it directly, and Emacs no longer needs it.
33885         * NEWS: Document this simplification.
33886         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
33887         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
33888         for readlink.
33889         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
33890         Don't include stdlib.h; no longer needed.
33891         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
33892         * lib/relocwrapper.c: Adjust comment to match new dependencies.
33893         * modules/areadlink (Depends-on): Add readlink.
33894         (Maintainer): Add self.
33895         * modules/careadlinkat (Depends-on): Remove readlink.
33897         extensions: port better to HP-UX
33898         This is merged from git Autoconf.
33899         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33900         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
33901         so that it's compatible with the value used when compiling.
33903         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
33904         Problem reported by Mats Erik Andersson in
33905         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
33906         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
33907         openpty function exists, not merely when we intend to replace it.
33908         This corrects the 2013-01-31 patch, which mistakenly defined
33909         HAVE_OPENPTY even on hosts that lacked it.
33911 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33913         secure_getenv: fix include typo
33914         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
33916         secure_getenv: port better to FreeBSD and Solaris
33917         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
33918         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
33919         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
33920         This works better on BSDish platforms.
33921         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
33922         Test for issetugid if __secure_getenv is missing.
33924 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
33926         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
33927         Some of these changes are merged in from git Autoconf.
33928         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33929         When deciding whether to define _XOPEN_SOURCE, inspect the
33930         preprocessor macro __hpux instead of the more-heavyweight
33931         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
33932         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
33933         as the key for __EXTENSIONS__.
33935         unistd: avoid namespace pollution on non-glibc systems
33936         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
33937         This avoids namespace pollution on non-glibc systems, by causing
33938         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
33939         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
33940         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
33942 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
33944         tmpdir: use secure_getenv
33945         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
33946         Define to secure_getenv, not getenv.
33947         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
33948         as that's now secure_getenv's job.
33949         * modules/tmpdir (Depends-on): Add secure_getenv.
33951         tempname: use secure_getenv
33952         * lib/tempname.c (__secure_getenv) [!_LIBC]:
33953         Define to secure_getenv, not getenv.
33954         * modules/tempname (Depends-on):
33955         Add secure_getenv.
33957         secure_getenv: new module
33958         * MODULES.html.sh (Extra functions based on ANSI C 89):
33959         Add secure_getenv.
33960         * doc/glibc-functions/secure_getenv.texi: New file.
33961         * doc/gnulib.texi: Include it.
33962         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
33963         New files.
33964         * lib/stdlib.in.h (secure_getenv): New decl.
33965         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
33966         * modules/stdlib (stdlib.h):
33967         Add secure_getenv checks.
33969 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33971         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
33972         Reported for OS X 10.8.2 by Assaf Gordon in
33973         <http://bugs.gnu.org/13516>.
33974         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
33975         !HAVE_OPENAT && !HAVE_FDOPENDIR.
33976         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
33977         so that they can be kept in sync more easily.  Avoid PATH_MAX
33978         test on the Hurd.  Sync from test-getcwd.c for errno tests after
33979         mkdir or chdir failure.
33980         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
33981         lib/getcwd.c.
33982         (test_abort_bug): Do not test for the deep directory bug unless we
33983         have openat support.  Avoid PATH_MAX test on the Hurd.
33985         regex-tests, regex: fix bug: memset undeclared
33986         * tests/test-regex.c: Don't include regex.h twice.  Include
33987         string.h, to declare memset.  Christensen's report also mentioned
33988         this issue.
33989         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
33990         test-regex.c, to avoid future problems like this.  Remove
33991         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
33992         twice.
33994         regex-tests: fix link errors on older Solaris
33995         These need to link with @LIBINTL@ to get libintl_gettext.
33996         Problem reported by Tom G. Christensen in
33997         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
33998         * modules/regex-tests (test_regex_LDADD): New macro.
34000 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
34002         regex-tests: new module
34003         * modules/regex-tests, tests/test-regex.c: New files.
34005         regex: fix off-by-one error in configure test
34006         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
34008 2013-01-31  Eric Blake  <eblake@redhat.com>
34010         regex: avoid infinite configure test
34011         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
34013 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
34015         openpty: fix bug where HAVE_OPENPTY wasn't defined
34016         See the thread starting at:
34017         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
34018         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34019         openpty function exists, not merely when we intend to replace it.
34021 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
34023         sys_time: port to Solaris 2.6
34024         There is a circularity problem on Solaris 2.6, where <time.h> includes
34025         <sys/time.h> for struct timespec.  The include nesting is gnulib
34026         <time.h>, system <time.h>, gnulib <sys/time.h>, system
34027         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
34028         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
34029         <sys/siginfo.h>; the last, innermost file needs struct
34030         timestruc_t, which is defined in <sys/time.h>, which has not been
34031         fully parsed.  Problem reported by Tom G. Christensen in
34032         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
34033         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
34034         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
34035         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
34036         uses split double-inclusion guards.
34038 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34040         regex: test for buffer overrun
34041         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
34042         for the just-fixed regex bug.
34044 2013-01-29  Andreas Schwab  <schwab@suse.de>
34046         regex: fix buffer overrun in regexp matcher [BZ #15078]
34047         * lib/regexec.c (extend_buffers): Add parameter min_len.
34048         (check_matching): Pass minimum needed length.
34049         (clean_state_log_if_needed): Likewise.
34050         (get_subexp): Likewise.
34052 2013-01-28  Pádraig Brady  <P@draigBrady.com>
34054         mountlist: don't consider "devtmpfs" as dummy
34055         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
34056         as there is storage associcated with it.
34058 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34060         futimens-tests, utimens-tests: Depend on gettext.
34061         This works around a problem introduced in my 2013-01-12 patch,
34062         which added @LIBINTL@ to these modules.
34063         * modules/futimens-tests (Depends-on):
34064         * modules/utimens-tests (Depends-on): Add gettext.
34066 2013-01-26  Eric Blake  <eblake@redhat.com>
34068         test-getpeername: fix typo
34069         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
34071 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
34073         bootstrap: remove the need for a sorted .gitignore file
34074         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
34075         rename to insert_if_absent(), so that we don't need or generate
34076         a sorted .gitignore file.  We do require a .gitignore with no
34077         existing duplicate entries and enforce that.
34078         (sort_patterns): Remove this function as we now use the simpler
34079         technigue of inserting blacklist entries at the top of the file,
34080         assuming gnulib won't be inserting !whitelist entries.
34082 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34084         readlinkat: don't depend on gl_FUNC_OPENAT
34085         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
34086         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
34087         renameat.m4, symlinkat.m4; but one thing at a time.
34089         statat: new module, split out from fstatat
34090         GNU Emacs needs the POSIX-specified fstatat, but not the
34091         gnulib-specified statat and lstat.  Split the latter two into a
34092         new module 'statat'.
34093         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
34094         * lib/openat.h, lib/statat.c (STATAT_INLINE):
34095         Rename from FSTATAT_INLINE. All uses changed.
34096         * modules/fstatat (Files): Remove lib/statat.c.
34097         (gl_MODULE_INDICATOR([fstatat])): Remove.
34098         (lib_SOURCES): Remove.
34099         (Maintainer): Add self.
34100         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
34101         * tests/test-fstatat.c (BASE): Don't define if already defined.
34102         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
34104 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34106         tests: don't assume fd 99 is closed
34107         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
34108         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
34109         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
34110         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
34111         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
34112         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
34113         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
34114         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
34115         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
34116         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
34117         * tests/test-fwrite.c, tests/test-getpeername.c:
34118         * tests/test-getsockname.c, tests/test-getsockopt.c:
34119         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
34120         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
34121         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
34122         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
34123         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
34124         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
34125         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
34126         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
34127         * tests/test-unlinkat.c, tests/test-unlockpt.c:
34128         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
34129         Close file descriptor 99, instead of assuming it's already closed.
34131 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34133         stpncpy: port to OS X 10.8
34134         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
34135         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
34137 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34139         unistd: port to recent mingw
34140         * lib/unistd.in.h: Remove special invocation convention for mingw,
34141         which breaks for the latest mingw version.  See John W. Eaton in
34142         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
34144         largefile: port better to Mac OS X 10.5
34145         This patch is backported from Autoconf git.
34146         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
34147         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
34148         with ino_t size being different for configuration time versus
34149         build/run time.  Problem reported by PHO in
34150         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
34152 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34154         doc: clarify -Werror
34155         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
34156         clarify that it's intended for developers, not for ordinary builds,
34157         and mention --enable-gcc-warnings as one possible use.
34159 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
34161         stdint: fix build with Android's Bionic fox x86
34162         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
34163         was already included as _SSIZE_T_DEFINED_ might also be defined
34164         in include/machine/_types.h, which is included by stdio.h
34166 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
34168         net_if-tests: port to Solaris 7 + GCC 3.4.6
34169         Problem reported by Tom G. Christensen in
34170         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
34171         * tests/test-net_if.c (ni): Move to next the code that uses it,
34172         so that it's declared only if needed.
34174 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
34176         net_if-tests: port to older Solaris
34177         Problem reported by Tom G. Christensen in
34178         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34179         * modules/net_if-tests (NET_IF_LIB): New substitution.
34180         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
34181         (HAVE_IF_NAMEINDEX): New C macro.
34182         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
34184         system-quote-tests: port to older Solaris
34185         Problem reported by Tom G. Christensen in
34186         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34187         * tests/test-system-quote-child.c (fopen, fread): Undef.
34189         c-xvasprintf etc.: fix link errors on older Solaris
34190         These need to link with @LIBINTL@ to get libintl_gettext.
34191         Problem reported by Tom G. Christensen in
34192         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34193         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
34194         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
34195         * modules/futimens-tests (test_futimens_LDADD):
34196         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
34198 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34200         locale: port to Solaris 2.6 and 7 + GNU gettext
34201         * lib/locale.in.h: Just include_next <locale.h> when
34202         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
34203         when combining the localename module with GNU gettext 0.18.2.
34204         Problem reported by Tom G. Christensen in
34205         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
34207 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34209         stdlib: port to Solaris 2.6
34210         Also, the code worked on Solaris 7 through 9 only by accident.
34211         Problem reported by Tom G. Christensen in
34212         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
34213         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
34214         simply include the system stdlib.h.
34215         * lib/getopt.in.h (__need_system_stdlib_h):
34216         * lib/pthread.in.h (__need_system_stdlib_h):
34217         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
34218         Define when including <stdlib.h>, to avoid problems at least for
34219         the pthread case on Solaris 2.6 and 7.  These .h files can get by
34220         with the system stdlib.h.
34222 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
34224         doc: update main copyright year
34225         * doc/gnulib.texi: Update copyright date.
34227         doc: improve ISO 8601 discussion
34228         * doc/parse-datetime.texi (Combined date and time of day items):
34229         Specify more carefully what formats are supported and what is
34230         done with excess precision.
34232 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
34234         doc: avoid small caps
34235         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
34236         they're more trouble than they're worth.  Suggested by Karl Berry
34237         in <http://bugs.gnu.org/13360>.
34239         regex: conform to strict C
34240         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
34241         From Aharon Robbins.
34243         gnulib-tool: fix incompatibility with autopoint 0.18.2
34244         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
34245         Problem reported by Tom G. Christensen in
34246         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
34248 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34250         fprintftime: bring back and reword fwrite comment
34251         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
34253         stdio: remove now-unnecessary stdio.c
34254         Since stdio.in.h no longer uses inline functions, we no longer
34255         need to compile the extern versions.
34256         * lib/stdio.c: Remove.
34257         * modules/stdio (Files): Remove lib/stdio.c.
34258         (lib_SOURCES): Remove.
34260         unicodeio: depend on stdio, not ignore-value
34261         * lib/unicodeio.c: Do not include ignore-value.h.
34262         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
34263         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
34265         fprintftime: depend on stdio, not ignore-value
34266         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
34267         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
34268         since the stdio module arranges to silence that warning now.
34269         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
34271 2012-10-04  Simon Josefsson  <simon@josefsson.org>
34273         stdint-tests: Fix expanded-before-required-warning.
34274         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
34276 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34278         fwrite: silence __wur only for older glibc versions
34279         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
34280         This will help us remove this workaround some time in the far future.
34282 2013-01-03  Eric Blake  <eblake@redhat.com>
34284         fwrite: silence __wur without using inline
34285         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
34286         just gcc, and in a way that avoids inline issues.
34287         * modules/stdio (Depends-on): Drop extern-inline.
34289 2013-01-03  Jim Meyering  <jim@meyering.net>
34291         update-copyright: avoid copyright notice date corruption
34292         Given a sequence of copyright year numbers in which the final
34293         one was a two-digit number that happened to be a substring of
34294         a preceding four-digit year number, we would mistakenly update
34295         the substring (from two- to four-digit) rather than the two-digit
34296         number at the end, which, combined with the addition of the current
34297         4-digit year number would yield two 5-digit year numbers, e.g.,
34298         here, it would convert the first "99" to "1999, 2013" rather than
34299         the final one:
34300           1991, 99
34301           11999, 20131, 1999
34302         * build-aux/update-copyright: Tighten a regexp.
34303         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
34304         Reported by Joseph Myers in
34305         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
34307 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34309         regex: omit needless signed-pointer casts
34310         * lib/regcomp.c (build_charclass, build_charclass_op):
34311         Use char *, not unsigned char *, for class name and extra.
34312         The char values are always nonnegative so there's no need to
34313         insist on unsigned char * here, and using char * removes the need
34314         for casts.  Reported by Aharon Robbins in
34315         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34317         regex: support Gawk, which never uses alloca
34318         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
34319         Do not include in this case.  Gawk doesn't supply a substitute
34320         alloca.h and doesn't need one.
34322         regex: port __libc_lock_define usage to C89
34323         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
34324         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
34325         does not conform to C89, as it has an empty macro argument.
34326         Reported by Aharon Robbins in
34327         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34329 2013-01-01  Eric Blake  <eblake@redhat.com>
34331         maint: update all copyright year number ranges
34332         Run "make update-copyright".
34334         version-etc: bump copyright year reported in --version
34335         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
34337 2012-12-31  Eric Blake  <eblake@redhat.com>
34339         sigprocmask-tests: skip test if pid is unexpectedly large
34340         * tests/test-sigprocmask.c (main): Add range check.
34342         git-version-gen: avoid test -z portability glitch
34343         * build-aux/git-version-gen: Prefer portable test spelling, since
34344         git-version-gen is run on more than just developer machines.
34346 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
34348         git-version-gen: add --fallback option to use if git is not present
34349         * build-aux/git-version-gen: Add support for the new option --fallback,
34350         which comes into play when there is no $tarball_version_file and
34351         git is not working.
34352         (scriptversion): Update.
34354         maint.mk: handle missing git with more grace
34355         * top/maint.mk (no-submodule-changes, public-submodule-commit):
34356         Quietly proceed if git is not present.
34358 2012-12-31  Eric Blake  <eblake@redhat.com>
34360         dup2: work around cygwin bug
34361         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
34362         * lib/dup2.c (rpl_dup2): Work around it.
34363         * doc/posix-functions/dup2.texi (dup2): Document it.
34365 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
34367         regex: remove unnecessary dependency on localcharset.h
34368         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
34369         hasn't been needed for years.
34370         * modules/regex (Depends-on): Remove localcharset.
34372         regex: revert single-byte change
34373         * lib/regexec.c (check_node_accept_bytes): Revert previous change
34374         to this function.  This was alredy fixed in a different way, at
34375         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
34376         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
34377         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
34379         regex: simplify based on Gawk version
34380         * lib/regex_internal.c (re_dfa_add_node): Simplify.
34381         Reported by Aharon Robbins in
34382         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34384 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34386         regex: check that pattern char is single-byte
34387         Reported by Aharon Robbins in
34388         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34389         * lib/regexec.c (check_node_accept_bytes):
34390         Return 0 if the pattern string has a multibyte character here.
34392         regex: implement rational ranges
34393         Reported by Aharon Robbins in
34394         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34395         * lib/regcomp.c (build_range_exp) [!_LIBC]:
34396         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
34397         Implement rational ranges.
34399         regex: avoid redefining __wctype
34400         Reported by Aharon Robbins in
34401         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34402         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
34403         #undef before defining.
34405         regex: port to hosts where malloc (0) == NULL
34406         Reported by Aharon Robbins in
34407         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34408         * lib/regex_internal.c (re_node_set_alloc):
34409         Don't assume that malloc (0) yields nonnull.
34410         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
34411         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
34412         * modules/regex (Files): Add m4/eealloc.m4.
34414         regex: port to C89
34415         Reported by Aharon Robbins in
34416         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34417         * lib/regcomp.c (init_word_char): Declaration before statement.
34419         regex: merge glibc changes
34420         Also, copy the license wording from glibc.  This simplifies
34421         merging changes.  gnulib-tool will change the wording to GPL as
34422         appropriate, when importing it to other packages.  The only
34423         glibc change made since the last merge, which needs merging, is:
34424         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
34425         * lib/regex_internal.h (gettext): Remove use of INTUSE.
34427         * users.txt: Add Emacs.
34429         doc: omit mention of version when not needed
34430         * doc/gnulib-intro.texi (Portability and Application Code):
34431         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
34432         Don't mention particular dates or versions when not necessary, so
34433         that the documentation won't go out of date so quickly.
34435         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
34437 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
34439         bootstrap: pass --force to autoreconf.
34440         * build-aux/bootstrap (AUTORECONFFLAGS): New.
34441         Add "--force" so that Automake's ylwrap and other such tools
34442         be updated at each bootstrap invocation.
34443         Use it.
34445 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
34447         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
34448         The earlier patch forgot to update one of the #if conditions, causing
34449         a problem on Debian testing i386 reported by Mats Erik Andersson
34450         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
34451         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
34452         (__argp_fmtstream_puts, argp_fmtstream_puts)
34453         (__argp_fmtstream_write, argp_fmtstream_write)
34454         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
34456         * doc/gnulib-readme.texi: Minor fixups.
34457         (Portability guidelines): Modernize URLs.  Remove some repetition.
34458         (Indent with spaces not TABs): Reword to avoid too-long lines.
34459         Remove some '@ifset standalone' stuff that isn't used.
34461         * doc/gnulib-readme.texi (Portability guidelines):
34462         ctype.h, not ctime.h.
34464         Correct name of POSIX.1-2001.
34465         * doc/posix-functions/fgetc.texi (fgetc):
34466         * doc/posix-functions/fgets.texi (fgets):
34467         * doc/posix-functions/fread.texi (fread):
34468         * doc/posix-functions/fscanf.texi (fscanf):
34469         * doc/posix-functions/getc.texi (getc):
34470         * doc/posix-functions/getchar.texi (getchar):
34471         * doc/posix-functions/scanf.texi (scanf):
34472         POSIX.1-2001, not POSIX-2001.
34474         doc: move README into manual
34475         * README: Move contents to new file doc/gnulib-readme.texi.
34476         Replace with a one-line summary.
34477         * doc/gnulib.texi (Brief Overview): New section,
34478         with old intro preface.  Include gnulib-readme.texi for contents.
34479         (Philosophy): Rename from "Introduction", since this
34480         section no longer introduces the rest.  Write a new preface.
34481         * doc/gnulib-readme.texi: New file, with the old contents of
34482         README texinfo-ized.  This way, the README info appears
34483         in the online and printed manual.
34485 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
34487         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
34488         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
34489         c_vasprintf() prototype.
34491 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
34493         c-vasprintf: Fix "empty declaration" warning reported by GCC.
34494         * lib/c-vasprintf.h: Remove stray semicolon.
34496 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34498         gettext: avoid obsolete macro AM_PROG_MKDIR_P
34499         It is obsolete and is planned to be removed from Automake 1.14; see
34500         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
34501         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
34502         (installdirs-data, installdirs-data-yes):
34503         Use $(MKDIR_P), not $(mkdir_p).
34504         * m4/intl.m4 (AM_INTL_SUBDIR):
34505         * m4/po.m4 (AM_PO_SUBDIRS):
34506         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
34508 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
34510         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
34511         On this platform, we are not optimizing but we are using
34512         the substitute for extern inlines, so compile as if
34513         C99-style extern inline, or a substitute, is available.
34514         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
34515         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
34516         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
34517         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
34518         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
34519         Declare as ARGP_FS_EI, not as extern.
34520         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
34521         (__option_is_short, _option_is_end, __option_is_end)
34522         [!_LIBC && __USE_EXTERN_INLINES]:
34523         Declare as ARGP_EI, not as extern.
34525 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
34527         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
34528         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
34529         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
34530         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
34531         ...), as the latter is fatal with older Autoconfs.
34532         Problem reported and fix suggested by Eric Blake in thread starting at
34533         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
34535 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
34537         AC_PROG_MKDIR_P: don't workaround if not buggy
34538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
34539         Define only for Autoconf versions before 2.62.
34540         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
34541         undocumented m4_PACKAGE_VERSION, for consistency with the
34542         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
34543         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
34544         was introduced in 2.62.
34546 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
34548         New 'c-*printf' modules for formatted output in C locale.
34550         New module 'c-vasnprintf'.
34551         * modules/c-vasnprintf: New file.
34552         * lib/c-vasnprintf.c: New file.
34553         * lib/c-vasnprintf.h: New file.
34555         New module 'c-snprintf'.
34556         * modules/c-snprintf: New file.
34557         * modules/c-snprintf-tests: New file.
34558         * lib/c-snprintf.c: New file.
34559         * lib/c-snprintf.h: New file.
34560         * tests/test-c-snprintf.c: New file.
34561         * tests/test-c-snprintf.sh: New file.
34563         New module 'c-vsnprintf'.
34564         * modules/c-vsnprintf: New file.
34565         * modules/c-vsnprintf-tests: New file.
34566         * lib/c-vsnprintf.c: New file.
34567         * lib/c-vsnprintf.h: New file.
34568         * tests/test-c-vsnprintf.c: New file.
34569         * tests/test-c-vsnprintf.sh: New file.
34571         New module 'c-vasprintf'.
34572         * modules/c-vasprintf: New file.
34573         * modules/c-vasprintf-tests: New file.
34574         * lib/c-asprintf.c: New file.
34575         * lib/c-vasprintf.c: New file.
34576         * lib/c-vasprintf.h: New file.
34577         * tests/test-c-vasprintf.c  +: New file.
34578         * tests/test-c-vasprintf.sh: New file.
34580         New module 'c-xvasprintf'.
34581         * modules/c-xvasprintf: New file.
34582         * modules/c-xvasprintf-tests: New file.
34583         * lib/c-xasprintf.c: New file.
34584         * lib/c-xvasprintf.c: New file.
34585         * lib/c-xvasprintf.h: New file.
34586         * tests/test-c-xvasprintf.c: New file.
34587         * tests/test-c-xvasprintf.sh: New file.
34589 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34591         argp: better 'inline'
34592         Use extern-inline module to declare extern inline functions.
34593         This avoids some bogus warning diagnostics.  Problem discovered
34594         when modifying GNU tar to use the manywarnings module.
34595         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
34596         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
34597         Define based on extern-inline.
34598         * modules/argp (Depends-on): Add extern-inline.
34600 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34602         filemode, sys_stat: Handle MPX files a la AIX.
34603         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
34604         * lib/sys_stat.in.h (S_ISMPX): New macro.
34605         * tests/test-sys_stat.c: Add tests for MPX files.
34607 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34609         x-to-1: honor $PERL
34610         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
34611         a chance to use his preferred version of Perl.  This is typically
34612         required by Darwin users whose default /usr/bin/perl does not have all
34613         the libraries required by help2man, and who need to use their MacPorts
34614         installation of Perl instead.
34616 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
34618         gnu-web-doc-update: add all the new files, even in new directories
34619         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
34620         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
34621         Use it.
34622         (main): Don't use cvsutils to get the list of unknown files,
34623         just add all the existing files and directories.
34625 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
34627         gnu-web-doc-update: improve --help
34628         * build-aux/gnu-web-doc-update: Move comments into --help.
34630 2012-12-07  Eric Wong  <normalperson@yhbt.net>
34632         mountlist: recognize more "dummy" file systems
34633         * lib/mountlist.c (ME_DUMMY_0):
34634         Add these dummy FS names to the list:
34635         - "debugfs" virtual filesystem for kernel debugging
34636         - "devpts" PTY slave filesystem
34637         - "devtmpfs" device filesystem on top of tmpfs/ramfs
34638         - "fusectl" control filesystem for FUSE
34639         - "mqueue" enumerates POSIX message queues
34640         - "rpc_pipefs" kernel <-> userspace bridge for NFS
34641         - "sysfs" is for exporting kernel objects
34642         - "devfs" device filesystem for Linux 2.4 and FreeBSD
34644 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
34646         extern-inline: avoid incompatibility with Darwin Libc
34647         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
34648         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
34649         Problem reported by Akim Demaille in
34650         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
34652 2012-12-11  Simon Josefsson  <simon@josefsson.org>
34654         gnupload: Work with GnuPG using gpg-agent (for smartcards).
34655         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
34656         let it handle password prompting.
34658 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
34660         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
34661         * lib/canonicalize.c (canonicalize_filename_mode):
34662         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
34663         fetching the current directory.  Don't overrun the beginning of
34664         rpath if there's no slashes after the MS-Windows drive letter.
34666 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
34668         maint.mk: avoid extra forks
34669         * top/maint.mk (_cfg_mk): The GNU make manual documents that
34670         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
34671         So use that instead of "$(shell test -f FILE && echo FILE)".
34673 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34675         vasnprintf: fix ASCII_ONLY typo
34676         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
34677         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
34678         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
34679         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
34680         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
34682 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34684         list, oset, xlist, xoset: fix extern inline issue with C99
34685         This was introduced by my recent changes for 'inline'.
34686         Problem reported for gettext by Daiki Ueno in
34687         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
34688         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
34689         (gl_list_nx_create, gl_list_size, gl_list_node_value)
34690         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
34691         (gl_list_previous_node, gl_list_get_at)
34692         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
34693         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
34694         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
34695         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
34696         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
34697         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
34698         (gl_list_iterator_free, gl_sortedlist_search)
34699         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
34700         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
34701         (gl_sortedlist_remove):
34702         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
34703         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
34704         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
34705         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
34706         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
34707         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
34708         (gl_list_add_at, gl_sortedlist_add):
34709         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
34710         Wrap these extern decls inside "#if 0", because they are implemented
34711         as inline functions, and extern inline is not what's wanted here.
34712         It would simplify these .h files to remove the extern decls entirely,
34713         although a downside would be less-clear separation between
34714         specification and implementation.
34716 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34718         sys_stat: no 'static inline'
34719         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
34720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
34722         extern-inline: no 'static inline'
34723         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34724         Do not require AC_C_INLINE.
34725         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
34726         'static inline', for older compilers.
34728         snippet/warn-on-use: no 'static inline'
34729         * build-aux/snippet/warn-on-use.h:
34730         Remove unnecessary 'inline' in comment.
34732         rbtree-list, rbtreehash-list: no 'static inline'
34733         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
34734         * lib/gl_anytree_list2.h (node_at):
34735         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
34736         (gl_oset_first, add_nodes_to_buckets):
34737         Now static, not static inline.
34739         regex: no 'static inline'
34740         * lib/regex_internal.c (calc_state_hash):
34741         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
34742         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
34743         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
34744         Now static, not static inline.
34745         (inline) [__GNUC__ < 3 && _LIBC]:
34746         Remove macro; no longer needed.
34748         xvasprintf: no 'static inline'
34749         * lib/xvasprintf.c (xstrcat):
34750         Now static, not static inline.
34751         * m4/xvasprintf.m4 (gl_XVASPRINTF):
34752         Do not require AC_C_INLINE.
34754         parse-datetime, parse-duration: no 'static inline'
34755         * lib/parse-datetime.y (to_uchar):
34756         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
34757         (scale_n_add):
34758         Now static, not static inline.
34759         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
34760         * modules/parse-duration (configure.ac):
34761         Do not require AC_C_INLINE.
34763         getaddrinfo: no 'static inline'
34764         * lib/getaddrinfo.c (validate_family):
34765         Now static, not static inline.
34766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
34767         Do not require AC_C_INLINE.
34769         ftruncate, fts, lstat, openat, raise: no 'static inline'
34770         * lib/ftruncate.c (chsize_nothrow):
34771         * lib/fts.c (opendirat, diropen):
34772         * lib/lstat.c (orig_lstat):
34773         * lib/openat.c (orig_openat):
34774         * lib/raise.c (raise_nothrow):
34775         Now static, not static inline.
34776         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
34777         * m4/fts.m4 (gl_FUNC_FTS_CORE):
34778         * m4/lstat.m4 (gl_PREREQ_LSTAT):
34779         * m4/openat.m4 (gl_PREREQ_OPENAT):
34780         * m4/raise.m4 (gl_PREREQ_RAISE):
34781         Do not require AC_C_INLINE.
34783         fflush, stat: no 'static inline'
34784         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34785         (clear_ungetc_buffer, disable_seek_optimization)
34786         (restore_seek_optimization, update_fpos_cache):
34787         * lib/stat.c (orig_stat):
34788         Now static, not static inline.
34789         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
34790         (update_fpos_cache):
34791         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
34792         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
34793         * m4/stat.m4 (gl_PREREQ_STAT):
34794         Do not require AC_C_INLINE.
34796         error, filevercmp: no 'static inline'
34797         * lib/error.c (is_open, flush_stdout):
34798         * lib/filevercmp.c (order):
34799         Now static, not static inline.
34800         * m4/error.m4 (gl_PREREQ_ERROR):
34801         * modules/filevercmp (configure.ac):
34802         Do not require AC_C_INLINE.
34804         dup, execute, fatal-signal, etc.: no 'static inline'
34805         * lib/dup.c (dup_nothrow):
34806         * lib/execute.c (nonintr_close, nonintr_open):
34807         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
34808         * lib/fopen.c (orig_fopen):
34809         * lib/freadseek.c (freadptrinc):
34810         * lib/freopen.c (orig_freopen):
34811         * lib/fstat.c (orig_fstat, fstat_nothrow):
34812         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
34813         (get_rusage_as_via_iterator):
34814         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
34815         * lib/getdtablesize.c (_setmaxstdio_nothrow):
34816         * lib/isatty.c (_isatty_nothrow):
34817         * lib/open.c (orig_open):
34818         * lib/read.c (read_nothrow):
34819         * lib/sigprocmask.c (signal_nothrow):
34820         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
34821         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
34822         * lib/wait-process.c (unregister_slave_subprocess):
34823         * lib/write.c (write_nothrow):
34824         Now static, not static inline.
34825         * lib/spawn-pipe.c (nonintr_open): Define only if
34826         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
34827         * m4/dup.m4 (gl_PREREQ_DUP):
34828         * m4/execute.m4 (gl_EXECUTE):
34829         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
34830         * m4/fopen.m4 (gl_PREREQ_FOPEN):
34831         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
34832         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
34833         * m4/fstat.m4 (gl_PREREQ_FSTAT):
34834         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
34835         * m4/isatty.m4 (gl_PREREQ_ISATTY):
34836         * m4/open.m4 (gl_PREREQ_OPEN):
34837         * m4/read.m4 (gl_PREREQ_READ):
34838         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
34839         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
34840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
34841         * m4/wait-process.m4 (gl_WAIT_PROCESS):
34842         * m4/write.m4 (gl_PREREQ_WRITE):
34843         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
34844         Do not require AC_C_INLINE.
34846         c-strtod, memcoll, readutmp: no 'static inline'
34847         * lib/c-strtod.c (c_locale):
34848         * lib/memcoll.c (strcoll_loop):
34849         * lib/readutmp.c (desirable_utmp_entry):
34850         Now static, not static inline.
34851         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
34852         * m4/memcoll.m4 (gl_MEMCOLL):
34853         * m4/readutmp.m4 (gl_READUTMP):
34854         Do not require AC_C_INLINE.
34856         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
34857         * lib/arctwo.c (to_uchar):
34858         * lib/md4.c (set_uint32):
34859         * lib/md5.c (set_uint32):
34860         * lib/sha1.c (set_uint32):
34861         * lib/sha256.c (set_uint32):
34862         * lib/sha512.c (set_uint64):
34863         Now static, not static inline.  This is a bit simpler, and doesn't
34864         affect performance with GCC and default optimization.
34865         * m4/arctwo.m4 (gl_ARCTWO):
34866         * m4/md4.m4 (gl_MD4):
34867         * m4/md5.m4 (gl_MD5):
34868         * m4/sha1.m4 (gl_SHA1):
34869         * m4/sha256.m4 (gl_SHA256):
34870         * m4/sha512.m4 (gl_SHA512):
34871         Do not require AC_C_INLINE.
34873         cond, lock, thread: better 'inline'
34874         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
34875         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
34876         New macros.  Use them instead of static inline, for header functions.
34877         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
34878         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
34879         * lib/glthread/lock.c (gl_waitqueue_init)
34880         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
34881         * lib/glthread/thread.c (get_current_thread_handle):
34882         Change 'static inline' to 'inline'.
34883         * lib/glthread/cond.h, lib/glthread/thread.h:
34884         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34885         * m4/cond.m4 (gl_COND):
34886         * m4/lock.m4 (gl_PREREQ_LOCK):
34887         * m4/thread.m4 (gl_THREAD):
34888         Do not require AC_C_INLINE.
34889         * modules/cond, modules/thread (Depends-on): Add extern-inline.
34891         chdir-long, cycle-check, savewd: better 'inline'
34892         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
34893         (find_non_slash):
34894         * lib/cycle-check.c (is_zero_or_power_of_two):
34895         * lib/savewd.c (savewd_delegating):
34896         Change 'static inline' to 'inline'.
34897         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
34898         Replace all remaining uses of 'static inline' with it.
34899         * lib/savewd.h:
34900         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34901         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
34902         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
34903         * m4/savewd.m4 (gl_SAVEWD):
34904         Do not require AC_C_INLINE.
34905         * modules/savewd (Depends-on): Add extern-inline.
34907         base32, base64: no need for 'inline'
34908         * lib/base32.c (to_uchar, get_8, decode_8):
34909         * lib/base64.c (to_uchar, get_4, decode_4):
34910         Change 'static inline' to 'inline'.
34911         * m4/base32.m4 (gl_PREREQ_BASE32):
34912         * m4/base64.m4 (gl_PREREQ_BASE64):
34913         Do not require AC_C_INLINE.
34915         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
34916         * lib/gl_array_oset.c (gl_array_nx_add_at):
34917         (gl_array_remove_at):
34918         * lib/gl_linkedhash_list.c (hash_resize_after_add)
34919         (add_to_bucket, remove_from_bucket):
34920         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
34921         Change 'static inline' to 'static', as it's simpler to omit
34922         'inline' unless there's a significant performance advantage.
34924         list, oset, xlist, xoset, xsublist: simplify via extern inline
34925         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
34926         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
34927         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
34928         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
34929         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
34930         New macro.  Replace all uses of 'static inline' with it.
34931         [HAVE_INLINE]: Implement functions as *_INLINE functions,
34932         instead of as macros FOO that are defined to static inline
34933         functions FOO_inline.
34934         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
34935         * lib/gl_xsublist.c:
34936         Reimplement from scratch, by defining the corresponding *_INLINE
34937         macro and including the corresponding .h file.  This is simpler.
34938         * modules/list, modules/oset, modules/xlist, modules/xoset:
34939         (Files): Remove m4/gl_list.m4.
34940         (configure.ac): Remove gl_LIST.
34941         * m4/gl_list.m4: Remove.
34942         * modules/list, modules/oset, modules/xlist, modules/xoset:
34943         * modules/xsublist:
34944         (Depends-on): Depend on extern-inline, not inline.
34946         xalloc: better 'inline'
34947         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
34948         New macro.  Replace all uses of 'static inline' with it.
34949         (static_inline): Remove.
34950         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
34951         Let 'extern inline' do the work automatically, instead of doing
34952         it by hand.
34953         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
34954         Remove.  All uses removed.
34955         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
34957         gethrxtime: better 'inline'
34958         * lib/xtime.c: New file.
34959         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
34960         * lib/xtime.h (XTIME_INCLUDE):
34961         New macros.  Replace all uses of 'static inline' with them.
34962         * lib/gethrxtime.c (gethrxtime): Define only if
34963         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
34964         this source file is now always compiled, because of the extern inline.
34965         * lib/gethrxtime.h, lib/xtime.h:
34966         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34967         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
34968         if gethrtime works, as they're not needed in that case.
34969         (gl_XTIME): Do not require AC_C_INLINE.
34970         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
34971         compiled now.  Move the check into gl_GETHRXTIME.
34972         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
34973         (Depends-on): Add extern-inline.
34974         (configure.ac): gethrxtime is always compiled now.
34975         (lib_SOURCES): Add gethrxtime.c.
34977         wctype-h: better 'inline'
34978         * lib/wctype-h.c: New file.
34979         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
34980         New macro.  Replace all uses of 'static inline' with it.
34981         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34982         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
34983         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
34984         (Depends-on): Add extern-inline.
34986         unistd: better 'inline'
34987         * lib/unistd.c: New file.
34988         * lib/unistd.in.h (_GL_UNISTD_INLINE):
34989         New macro.  Replace all uses of 'static inline' with it.
34990         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34991         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
34992         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
34993         (Depends-on): Add extern-inline.
34995         sys_socket: better 'inline'
34996         * lib/sys_socket.c: New file.
34997         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
34998         New macro.  Replace all uses of 'static inline' with it.
34999         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
35001         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
35002         (Depends-on): Add extern-inline.
35004         stdio: better 'inline'
35005         * lib/stdio.c: New file.
35006         * lib/stdio.in.h (_GL_STDIO_INLINE):
35007         New macro.  Replace all uses of 'static inline' with it.
35008         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35009         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
35010         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
35011         (Depends-on): Add extern-inline.
35013         sigaction: better 'inline'
35014         * lib/sig-handler.c: New file.
35015         * lib/sig-handler.h (SIG_HANDLER_INLINE):
35016         New macro.  Replace all uses of 'static inline' with it.
35017         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35018         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
35019         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
35020         (Depends-on): Add extern-inline.
35022         selinux-h: better 'inline'
35023         * lib/se-context.c, lib/se-selinux.c: New files.
35024         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
35025         * lib/se-context.in.h (SE_CONTEXT_INLINE):
35026         New macro.  Replace all uses of 'static inline' with it.
35027         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35028         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
35029         New macro.  Replace all uses of 'static inline' with it.
35030         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35031         * modules/selinux-h (Files, lib_SOURCES):
35032         Add lib/se-context.c, lib/se-selinux.c.
35033         (Depends-on): Add extern-inline.
35034         (configure.ac): Do not require AC_C_INLINE.
35036         pthread: better 'inline'
35037         * lib/pthread.c: New file.
35038         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
35039         New macro.  Replace all uses of 'static inline' with it.
35040         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35041         * m4/pthread.m4 (gl_PTHREAD_CHECK):
35042         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
35043         * modules/pthread (Files): Add lib/pthread.c.
35044         (Depends-on): Add extern-inline.
35046         math: better 'inline'
35047         * lib/math.c: New file.
35048         * lib/math.in.h (_GL_MATH_INLINE):
35049         New macro.  Replace all uses of 'static inline' with it.
35050         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35051         * m4/math_h.m4 (gl_MATH_H):
35052         Do not require AC_C_INLINE.
35053         * modules/math (Files, lib_SOURCES):
35054         Add lib/math.c.
35055         (Depends-on): Add extern-inline.
35057         count-one-bits: better 'inline'
35058         * lib/count-one-bits.c: New file.
35059         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
35060         New macro.  Replace all uses of 'static inline' with it.
35061         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35062         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
35063         Do not require AC_C_INLINE.
35064         * modules/count-one-bits (Files, lib_SOURCES):
35065         Add lib/count-one-bits.c.
35066         (Depends-on): Add extern-inline.
35068         count-leading-zeros: better 'inline'
35069         * lib/count-leading-zeros.c: New file.
35070         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
35071         New macro.  Replace all uses of 'static inline' with it.
35072         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35073         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
35074         Do not require AC_C_INLINE.
35075         * modules/count-leading-zeros (Files, lib_SOURCES):
35076         Add lib/count-leading-zeros.c.
35077         (Depends-on): Add extern-inline.
35079         bitrotate: better 'inline'
35080         * lib/bitrotate.c: New file.
35081         * lib/bitrotate.h (BITROTATE_INLINE):
35082         New macros.
35083         Replace all uses of 'static inline' with them.
35084         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35085         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
35086         (Depends-on): Add extern-inline.
35087         (configure.ac): Do not require AC_C_INLINE.
35089 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
35091         maint.mk: avoid gratuitous failure
35092         Reported by Stefano Lattarini in
35093         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
35094         * top/maint.mk (public-submodule-commit): Quote more safely.
35096 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
35098         canonicalize, canonicalize-lgpl: support MS-Windows file names
35099         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
35100         for test cases, which it'd be nice to add at some point.
35101         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
35102         * lib/canonicalize.c (canonicalize_filename_mode):
35103         * lib/canonicalize-lgpl.c (__realpath):
35104         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
35105         slash is at the beginning of the file name.  Use ISSLASH, instead
35106         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
35107         the first character with '/'.  Test for
35108         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
35109         with a drive letter.
35110         * lib/canonicalize.c (SLASHES): New macro.
35111         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
35113 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
35115         fts: introduce FTS_VERBATIM
35116         * lib/fts_.h (FTS_VERBATIM): New bit flag.
35117         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
35118         * lib/fts.c (fts_open): Honor it.
35120 2012-11-09  Pádraig Brady  <P@draigBrady.com>
35122         getlogin-tests: allow errno == ENXIO
35123         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35124         with errno == ENXIO (No controlling tty).
35125         getlogin_r-tests: Likewise. Also allow errno == ENOENT
35126         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
35127         with errno == ENOENT.  This was reported to happen in various
35128         situations on GNU/Linux.
35130 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35132         getlogin-tests: allow errno == ENOENT
35133         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35134         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
35135         when running a test in an Emacs shell buffer.
35137 2012-11-08  Jim Meyering  <jim@meyering.net>
35139         tests/nap.h: avoid warning about unused variable
35140         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
35142         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
35143         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
35144         white space before each of the special-cased file names, to avoid
35145         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
35146         in http://bugs.gnu.org/12830.
35148 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35150         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
35151         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
35152         fails with errno == EBADF when fd is opened with O_PATH.
35153         Reported by Jim Meyering in
35154         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
35155         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35156         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
35158 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35160         test-utimens: speed up by taking shorter naps
35161         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
35162         New functions.
35163         (nap): Use them, to do a better job of guessing the delay.
35164         On Fedora 17 with ext4 atop md atop hard disks, this made
35165         test-utimens run 10x faster, because the test napped for
35166         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
35167         <http://bugs.gnu.org/12820#11>.
35169 2012-11-07  Jim Meyering  <jim@meyering.net>
35171         mountlist.c: fix a compilation failure
35172         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
35173         I introduced while transforming commit v0.0-7683-g613bcb6
35175 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35177         errno: port to LynxOS 178 2.2.2
35178         Problem reported by Joel Brobecker in
35179         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
35180         * doc/posix-headers/errno.texi (errno.h): Document this.
35181         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
35182         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
35183         Supply a string for EILSEQ.
35184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
35186 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35188         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
35189         Linux kernel 2.6.39 introduced O_PATH (see
35190         <http://lwn.net/Articles/433854/>) and this is a better fallback
35191         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
35192         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35193         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
35194         * lib/fcntl.in.h (O_ACCMODE):
35195         * tests/test-fcntl-h.c (main):
35196         Do not reject O_ACCMODE merely because it has more than the
35197         minimal number of bits, as POSIX allows extensions here.
35199 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
35201         mountlist: do not classify a bind-mounted dir entry as "dummy"
35202         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
35203         the "none"-testing clause.
35204         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
35205         exception for bind-mounted directories.
35207 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
35209         quote: provide a means to escape strings with nul characters
35210         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
35211         (quote, quote_n): Rename formal arguments for consistency with
35212         quotearg.
35214 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35216         test-raise: don't assume 199 is an invalid signal
35217         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
35219         sh-quote-tests: port to Solaris 9
35220         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
35221         Problem reported by Dagobert Michelsen in
35222         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
35224 2012-10-28  Jim Meyering  <jim@meyering.net>
35226         maint.mk: rename a new configurable variable
35227         * top/maint.mk (_gl_translatable_string_re): Rename from
35228         translation-markers: _gl_ prefix to insulate from user Makefile code,
35229         and the _re suffix to inform that it's a regular expression.
35231 2012-10-26  Eric Blake  <eblake@redhat.com>
35233         maint.mk: let packages tweak sc_po_check pattern
35234         * top/maint.mk (sc_po_check): Add translation-markers, to allow
35235         finding files with other translation markers.
35237 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35239         euidaccess: speed up 'configure' on GNU hosts
35240         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
35241         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
35242         it's needed only in this case.  Use AC_CHECK_DECLS, not
35243         AC_CHECK_DECLS_ONCE.
35244         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
35245         or AC_REQUIRE for AC_FUNC_GETGROUPS.
35247         * lib/regexec.c (re_search_internal): Fix grammar in comment.
35249 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35251         fchmodat, fchownat, fstatat: port to non-inlining compilers
35252         Problem reported for FreeBSD 9 by Jim Meyering in
35253         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
35254         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
35255         New files, which define FCHMODAT_INLINE etc.
35256         * lib/fchmodat.c (FCHMODAT_INLINE):
35257         * lib/fchownat.c (FCHOWNAT_INLINE):
35258         * lib/fstatat.c (FSTATAT_INLINE):
35259         Remove, as chmodat.c etc. now do this.
35260         * modules/fchmodat (Files): Add lib/chmodat.c.
35261         * modules/fchownat (Files): Add lib/chownat.c.
35262         * modules/fstatat (Files): Add lib/statat.c.
35264 2012-10-15  Jim Meyering  <jim@meyering.net>
35266         fchmodat.c, fchownat.c: compile-impeding typos
35267         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
35268         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
35269         Introduced in commit v0.0-7636-gd202279.
35271 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35273         fcntl-h: support GNU flags like O_IGNORE_CTTY
35274         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
35275         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
35276         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
35277         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
35278         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
35279         Define to 0 if not already defined.
35280         * tests/test-fcntl-h.c: Test these new flags.
35282 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35284         faccessat, etc.: support AT_FDCWD-only use
35285         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
35286         this function only if its first argument is AT_FDCWD.
35287         Emacs wants faccessat for AT_EACCESS but not for any first-arg
35288         values other than AT_FDCWD, so it doesn't want all the openat
35289         machinery with fchdir etc.
35290         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
35291         * modules/fstatat, modules/mkdirat, modules/openat (Files):
35292         * modules/unlinkat (Files):
35293         Remove lib/openat-priv.h, as at-internal supplies this file.
35294         Removing this file here allows us to support programs like Emacs
35295         that avoid at-internal.
35297         faccessat: speed up 'configure' on mainstream hosts
35298         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
35299         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
35300         since it's only on unusual platforms that we need to check for
35301         'access', and it's better not to slow 'configure' down on all
35302         platforms.
35304         faccessat: port to Solaris 10
35305         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
35306         Needed on Solaris 10, which doesn't have AT_EACCESS,
35307         so we need the Gnulib fcntl.h, which defines it.
35309 2012-10-14  Pádraig Brady  <P@draigBrady.com>
35310         canonicalize: fix C89 compilation
35311         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
35312         declarations so C89 is supported.  Also remove the comment
35313         referencing memorty allocation as the suggested feature could
35314         not be implemented as suggested.
35315         Reported by Michael Goffioul.
35317 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35319         group-member: omit unnecessary dependencies
35320         This is for Emacs, which has its own allocator and where we
35321         don't want to use xalloc.
35322         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
35323         since we no longer use xmalloc.  Do not include stdbool.h, since
35324         the changes below happen to remove the only use of bool.
35325         (GROUPBUF_SIZE): New constant.
35326         (struct group_info): Remove n_groups member.  Add groupbuf member.
35327         This lets us get the groups without using malloc, usually.
35328         (free_group_info, get_group_info): Adjust to this.
35329         (get_group_info): Return the number of groups found, or -1 on error.
35330         Use plain malloc not xmalloc, and treat its failure as if there
35331         are no groups, as the user already loses in case of error.
35332         (group_member): Simplify, based on changes to get_group_info.
35333         * modules/group-member (Depends-on): Remove dependencies on
35334         xalloc and stdbool.  Add dependency on xalloc-oversized.
35336 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
35338         gethrxtime: port to C++
35339         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
35341 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35343         ptsname: fix macro-name typo
35344         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
35346 2012-10-03  Simon Josefsson  <simon@josefsson.org>
35348         inttostr: Relax license.
35349         * modules/inttostr (License): Change from LGPL to LGPLv2+.
35351 2012-10-03  Eric Blake  <eblake@redhat.com>
35353         ptsname_r: support ptys returned by FreeBSD posix_openpt
35354         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
35355         lives in /dev/pts/.
35357 2012-10-02  Eric Blake  <eblake@redhat.com>
35359         pselect: reject invalid file descriptors
35360         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
35361         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
35362         * modules/pselect (Depends-on): Add dup2.
35363         * doc/posix-functions/pselect.texi (pselect): Document this.
35365         select: reject invalid file descriptors
35366         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
35367         * lib/select.c (rpl_select) [!win32]: Work around it.
35368         * modules/select (Depends-on): Add dup2.
35369         * doc/posix-functions/select.texi (select): Document this.
35371         select: enhance test
35372         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
35373         New functions.
35374         (test_function): Enhance test.
35375         (do_select_bad_fd): Avoid any stale errno values.
35377         ptsname: reject invalid file descriptors
35378         http://www.austingroupbugs.net/view.php?id=503
35379         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
35380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
35381         * modules/stdlib (Makefile.am): Replace witness.
35382         * lib/stdlib.in.h (ptsname): Allow for replacement.
35383         * modules/ptsname (configure.ac): Trigger replacement.
35384         * doc/posix-functions/ptsname.texi (ptsname): Document this.
35386 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
35388         hash-pjw-bare: new module
35389         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
35390         * lib/hash-pjw-bare.h: Likewise.
35391         * modules/hash-pjw-bare: New file.
35392         * MODULES.html.sh (Misc): Add it.
35394 2012-10-02  Eric Blake  <eblake@redhat.com>
35396         manywarnings: cater to more gcc infelicities
35397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
35398         -Wuninitialized without -O.
35400 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
35402         select, poll tests: Make setsockopt invocation effective.
35403         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
35404         the bind() call.
35405         * tests/test-select.h (open_server_socket): Likewise.
35407 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35409         sockets, sys_stat: restore AC_C_INLINE
35410         This undoes the 2012-09-22 patch.
35411         * m4/sockets.m4 (gl_SOCKETS):
35412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
35413         Restore AC_C_INLINE, since MSVC requires __inline or _inline
35414         and does not support plain 'inline'.  Reported by Bruno Haible in
35415         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
35417 2012-09-30  Bruno Haible  <bruno@clisp.org>
35419         localeconv tests: Avoid test failure on OpenIndiana.
35420         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
35421         skip the 'grouping' and 'mon_grouping' tests.
35422         Reported by Jim Meyering.
35424 2012-09-30  Bruno Haible  <bruno@clisp.org>
35426         havelib: Follow libtool developments.
35427         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
35428         Suggested by Simon Josefsson.
35430 2012-09-29  Jim Meyering  <meyering@redhat.com>
35432         fstatat.c: fix a compile-impeding typo
35433         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
35434         Introduced in commit v0.0-7636-gd202279.
35435         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
35437 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
35439         extern-inline: provide a -Wundef safe config.h
35440         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
35441         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
35442         to produce a -Wundef warning free config.h.
35444 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35446         hash-pjw: relax license to LGPLv2+
35447         * modules/hash-pjw (License): Relax, with consent of author.
35449 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
35451         maint.mk: fix strict vs. lazy variable issues with RELEASE
35452         * top/maint.mk (_equal): New function.
35453         (member_check): Strip the result to avoid spurious spaces.
35454         (url_dir_list): Do not use ifeq, which is strict, as it will
35455         require RELEASE_TYPE to be defined.
35456         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
35457         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
35458         (announcement_Cc_alpha,announcement_mail_headers_alpha)
35459         (announcement_Cc_beta,announcement_mail_headers_beta)
35460         (announcement_Cc_stable,announcement_mail_headers_stable): these.
35461         (release): Do not depend on $(release-type), as it forces its
35462         evaluation.  Bounce to it.
35464 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
35466         maint.mk: formatting changes
35467         * top/maint.mk: Indent bodies of if's.
35469 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
35471         maint.mk: factor the validation of RELEASE_TYPE
35472         With help from Jim Meyering.
35473         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
35474         * top/maint.mk (_empty, _sp): Move their definition earlier.
35475         (member-check, release-type): New.
35476         Use the latter instead of $(RELEASE_TYPE).
35477         Remove now useless local checks.
35479 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
35481         maint.mk: provide "make upload" to ease uploading
35482         See
35483         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
35484         Do not depend simply on the current $(VERSION), as there may have been
35485         new commits since the tarball generation.  Rather, rely on $(RELEASE),
35486         as "make release-commit" already does.
35488         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
35489         "make TYPE".
35491         * top/maint.mk (upload_command, upload, release): New.
35492         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
35493         (VERSION): first word of $(RELEASE) is always right.
35494         (emit_upload_commands): Adjust.
35495         * top/README-release: Update.
35497 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
35499         maint.mk: silent rules
35500         With help from Stefano Lattarini.
35501         * top/maint.mk (writable-files): Use $(AM_V_GEN).
35502         (announcement): Use $(AM_V_at).
35504 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35506         localename: port gl_locale_name_thread_unsafe to FreeBSD
35507         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
35508         and use the simpler FreeBSD implementation on Mac OS X as well.
35509         Original idea suggested by Ed Maste in
35510         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
35512 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35514         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
35515         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
35516         * lib/mbuiter.c, lib/xsize.c: New files.
35517         * lib/binary-io.h (BINARY_IO_INLINE):
35518         * lib/eealloc.h (EEALLOC_INLINE):
35519         * lib/mbfile.h (MBFILE_INLINE):
35520         * lib/mbiter.h (MBITER_INLINE):
35521         * lib/mbuiter.h (MBUITER_INLINE):
35522         * lib/xsize.h (XSIZE_INLINE):
35523         New macros.
35524         Replace all uses of 'static inline' with them.
35525         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35526         * m4/eealloc.m4 (gl_EEALLOC):
35527         * m4/mbfile.m4 (gl_MBFILE):
35528         * m4/mbiter.m4 (gl_MBITER):
35529         * m4/xsize.m4 (gl_XSIZE):
35530         Do not require AC_C_INLINE.
35531         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
35532         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
35533         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
35534         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
35535         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
35536         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
35537         * modules/binary-io, modules/eealloc, modules/mbfile:
35538         * modules/mbiter, modules/mbuiter:
35539         (Depends-on): Add extern-inline.
35541         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
35542         * lib/pipe-filter-aux.c: New file.
35543         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
35544         Replace all uses of 'static inline' with it.
35545         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35546         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
35547         (filter_retcode): No real need for inline here.
35548         * modules/pipe-filter-gi, modules/pipe-filter-ii:
35549         (Files): Add lib/pipe-filter-aux.c.
35550         (Depends-on): Add extern-inline.
35551         (configure.ac): Do not require AC_C_INLINE.
35552         (lib_SOURCES): Add pipe-filter-aux.c.
35554         fdutimensat: omit unnecessary AC_C_INLINE
35555         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
35557         fchmodat, fchownat, fstatat: use extern-inline
35558         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
35559         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
35560         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
35561         New macros.
35562         * lib/openat.h:
35563         Replace all uses of 'static inline' with them.
35564         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35565         * modules/fchmodat, modules/fchownat, modules/fstatat:
35566         * modules/openat-h:
35567         (Depends-on):
35568         Add extern-inline.
35569         (configure.ac): Remove AC_C_INLINE.
35571         acl, mbchar, priv-set: use extern-inline
35572         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
35573         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
35574         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
35575         New macros.
35576         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
35577         Replace all uses of 'static inline' with it.
35578         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35579         * m4/acl.m4 (gl_FUNC_ACL):
35580         * m4/mbchar.m4 (gl_MBCHAR):
35581         * m4/priv-set.m4 (gl_PRIV_SET):
35582         Remove AC_C_INLINE, since 'inline' is no longer used directly.
35583         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
35584         Add extern-inline.
35586         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
35587         * m4/sockets.m4 (gl_SOCKETS):
35588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
35589         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
35590         environments where it's already guaranteed to work, so we needn't
35591         check for it at 'configure'-time.
35593         tls-tests: omit unnecessary 'inline'
35594         * tests/test-tls.c (perhaps_yield): No longer inline.
35595         Simplicity and portability trump efficiency in test cases.
35597         utimens-tests: avoid unnecessary 'inline'
35598         * modules/fdutimensat-tests (configure.ac):
35599         * modules/futimens-tests (configure.ac):
35600         * modules/utimens-tests (configure.ac):
35601         * modules/utimensat-tests (configure.ac):
35602         Remove AC_C_INLINE.
35603         * tests/test-utimens-common.h (ctime_compare):
35604         No longer inline.  Simplicity and portability trump efficiency here.
35606         misc: don't limit commentary to inline functions
35607         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
35608         * lib/xalloc-oversized.h, lib/xsize.h:
35609         Contrast macros to functions in general, not just to inline functions,
35610         when the commentary does not apply only to inline functions.
35612 2012-09-20  Jim Meyering  <meyering@redhat.com>
35614         non-recursive-gnulib-prefix-hack: new module
35615         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
35616         the file that originated in Bison.
35617         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
35618         largely copied from a snippet that resided in bison's configure.ac.
35619         * modules/non-recursive-gnulib-prefix-hack: New file.
35620         * MODULES.html.sh (Support for maintaining and releasing projects):
35621         Add it.
35623 2012-09-18  Jim Meyering  <meyering@redhat.com>
35625         maint.mk: generalize _gl_tight_scope for non-recursive make
35626         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
35627         that *.h would describe additional .h files in the directory
35628         specified by $(_gl_TS_dir).  I.e., add this...
35629         (_gl_TS_other_headers): New variable.
35631         maint.mk: exempt trailing blanks found in "binary" files
35632         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
35633         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
35634         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
35636 2012-09-17  Jim Meyering  <meyering@redhat.com>
35638         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
35639         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
35640         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
35641         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
35643 2012-09-17  Jim Meyering  <meyering@redhat.com>
35645         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
35646         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
35647         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
35648         It is not in the same category as "exit (0)" or "exit (1)", and
35649         besides, I know of no symbolic name for that 77.  Reported by
35650         Richard W.M. Jones in
35651         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
35653 2012-09-17  Jim Meyering  <meyering@redhat.com>
35655         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
35656         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
35657         all uses of #define, not just those that start in column 1.
35658         Richard W.M. Jones reported a false positive in
35659         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
35661 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35663         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
35664         * lib/localcharset.c (locale_charset) [DARWIN7]:
35665         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
35666         as these two values are incompatible.  Problem reported by Max Horn.
35667         For more discussion, please see
35668         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
35670         doc: document sticky-EOF issue
35671         * doc/posix-functions/fgetc.texi (fgetc):
35672         * doc/posix-functions/fgets.texi (fgets):
35673         * doc/posix-functions/fread.texi (fread):
35674         * doc/posix-functions/fscanf.texi (fscanf):
35675         * doc/posix-functions/getc.texi (getc):
35676         * doc/posix-functions/getchar.texi (getchar):
35677         * doc/posix-functions/scanf.texi (scanf):
35678         Mention that glibc and default Solaris do not conform to
35679         C99 and POSIX-2001 or later, with respect to how getchar
35680         etc. behave when feof reports nonzero.
35682 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
35684         poll: fix poll(0, NULL, msec)
35685         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
35686         but nfd is 0.  In that case poll should behave like select.
35688 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
35689             Paolo Bonzini  <bonzini@gnu.org>
35691         poll: fix for systems that can't recv() on a non-socket
35692         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
35693         is readable.  In this case POLLHUP will not be supported.
35694         * doc/posix-functions/poll.texi: Document this.
35696 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
35698         poll/select: document portability problems not fixed by Gnulib.
35699         * doc/posix-functions/poll.texi: poll does not work well on
35700         pipes under Windows.  It has the same limitations as select on
35701         BeOS.
35702         * doc/posix-functions/select.texi: select does not work well
35703         on pipes under Windows.
35705 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
35707         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
35708         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
35709         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
35710         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
35712 2012-09-06  Eric Blake  <eblake@redhat.com>
35714         net_if: give more details about the bug being fixed
35715         * doc/posix-headers/net_if.texi: Add clarification.
35717 2012-09-05  Eric Blake  <eblake@redhat.com>
35719         net_if: new module
35720         * modules/net_if: New module, borrowing ideas from netinet_in.
35721         * m4/net_if_h.m4: New file.
35722         * lib/net_if.in.h: Likewise.
35723         * doc/posix-headers/net_if.texi (net/if.h): Document it.
35724         * MODULES.html.sh (lacking POSIX:2008): Likewise.
35725         * tests/test-net_if.c: Make function checks conditional.
35726         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
35728 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
35730         readutmp: fix non-portable UT_PID use
35731         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
35732         Use `UT_PID (u) > 0' as absolute condition.
35734 2012-09-04  Jim Meyering  <meyering@redhat.com>
35736         fts: reduce two or more trailing spaces to just one, usually
35737         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
35738         or more slashes, trim all but the final one.  But if a name consists
35739         solely of two slashes, don't modify it.  If it consists solely of
35740         three or more slashes, strip all but one.
35742         This is part of the solution to a minor problem with rm:
35743         it would print a bogus ELOOP diagnostic when failing to remove
35744         the slash-decorated name of a symlink-to-directory:
35746             $ mkdir d && ln -s d s && env rm -r s/
35747             rm: cannot remove 's': Too many levels of symbolic links
35749         With the change below and a trivial don't-trim-trailing-slashes
35750         adjustment to remove.c, it does this:
35752             $ env rm -r s/
35753             rm: cannot remove 's/': Not a directory
35755         Improved by: Eric Blake
35757         fts: when there is no risk of overlap, use memcpy, not memmove
35758         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
35760 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35762         stdbool: be more compatible with mixed C/C++ compiles
35763         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
35764         Define to bool, true, false, respectively, as GCC's builtin
35765         stdbool.h does.  Problem reported by Michael Goffioul in
35766         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
35768 2012-08-28  Jim Meyering  <meyering@redhat.com>
35770         revert last change: it was not needed
35771         * tests/test-vc-list-files-git.sh: There's already a test for
35772         a working git, just below.
35774 2012-08-28  Jim Meyering  <meyering@redhat.com>
35776         tests: test-vc-list-files-git.sh: skip if git is not available
35777         * tests/test-vc-list-files-git.sh: Skip this test when git is
35778         not available.
35780 2012-08-26  Bruno Haible  <bruno@clisp.org>
35782         gnulib-tool: Remove no-op option --no-changelog.
35783         * gnulib-tool (func_usage): Don't mention --no-changelog.
35784         (do_changelog): Remove variable.
35785         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35787 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35789         doc: remove fdl-1.2.texi
35790         It is no longer used or maintained, and its use of @acronym
35791         is problematic.  See the thread containing
35792         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
35793         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
35794         * doc/old-licenses/fdl-1.2.texi: Remove.
35796         execinfo: port to FreeBSD
35797         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
35798         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
35799         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
35800         * modules/execinfo (Link): Add $(LIB_EXECINFO).
35802 2012-08-23  Jim Meyering  <meyering@redhat.com>
35804         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
35805         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
35806         to placate gcc's -Wold-style-declaration.
35808 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35810         doc: do not use @acronym
35811         * doc/inet_ntoa.texi (inet_ntoa):
35812         * doc/parse-datetime.texi (Seconds since the Epoch)
35813         (Specifying time zone rules):
35814         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
35815         Don't use @acronym.  Problem reported by John Darlington in
35816         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
35818 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35820         stdnoreturn: port to newer GCCs
35821         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
35822         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
35823         Problem reported by Jim Meyering in
35824         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
35825         Also, rename the 'test' function to a void a clash with the
35826         already-supplied 'main' function; this fixes a bug that incorrectly
35827         rejected GCC 4.7.1's <stdnoreturn.h>.
35828         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
35829         Document GCC problem.
35831 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
35833         pipe-filter: fix comment typo
35834         * lib/pipe-filter.h: Mention correct function.
35836 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35838         execinfo: new module
35839         This is for Emacs.  Currently, it provides a no-effect stub
35840         on all platforms where it does not already work.
35841         It already works on glibc-based systems, and on Solaris 11.
35842         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
35843         New files.
35844         * doc/glibc-headers/execinfo.texi (execinfo.h):
35845         * MODULES.html.sh (Misc): Document it.
35847 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35849         extern-inline: support old GCC 'inline'
35850         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
35851         if available.  This applies to GCC versions 2.7 through 4.2, or
35852         when newer GCC is using -fgnu89-inline.  The goal is to address
35853         some of the performance issues mentioned by Bruno Haible in
35854         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
35856 2012-08-20  Eric Blake  <eblake@redhat.com>
35858         maint.mk: avoid redundant file name in message
35859         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
35860         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
35861         (sc_makefile_path_separator_check): Remove bogus $(ME).
35863 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
35865         timer-time: fix link order when static linking on glibc
35866         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
35867         _after_ -lrt so that it's significant.
35869 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35871         timespec: omit unnecessary AC_C_INLINE
35872         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
35874         stat-time: omit unnecessary AC_C_INLINE
35875         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35876         Do not require AC_C_INLINE.
35878         ignore-value: omit unnecessary AC_C_INLINE
35879         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
35881         sys_select: avoid 'static inline'
35882         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
35884         mktime: avoid 'static inline'
35885         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
35886         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
35888 2012-08-19  Bruno Haible  <bruno@clisp.org>
35890         gnulib-tool: Improve coding style.
35891         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
35892         func_emit_lib_Makefile_am.
35893         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35895 2012-08-19  Bruno Haible  <bruno@clisp.org>
35897         gnulib-tool: Fix indentation.
35898         * gnulib-tool (func_import): Fix indentation.
35900 2012-08-19  Bruno Haible  <bruno@clisp.org>
35902         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
35903         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
35904         on the list of removed files.
35906 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35908         test-parse-datetime: avoid glibc leap-second glitch
35909         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
35910         with the 2012 rules.  Problem reported by Bruce Dubbs in
35911         <http://bugs.gnu.org/12206>.
35913 2012-08-14  Bruno Haible  <bruno@clisp.org>
35915         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
35916         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
35917         from argument.
35918         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35920 2012-08-14  Eric Blake  <eblake@redhat.com>
35922         ldexp: relax license
35923         * modules/ldexp (License): Trivial relax, since the module only
35924         provides a permissively licensed m4 file.
35926 2012-08-13  Bruno Haible  <bruno@clisp.org>
35928         gnulib-tool: Fix persistence of --witness-c-macro option.
35929         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
35930         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35932 2012-08-11  Eric Blake  <eblake@redhat.com>
35934         count-leading-zeros: use a lookup table on non-gcc compilers
35935         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
35936         alternate implementation, suggested by Jim Meyering.
35938 2012-08-10  Eric Blake  <eblake@redhat.com>
35940         count-leading-zeros: new module
35941         * modules/count-leading-zeros: New module.
35942         * m4/count-leading-zeros.m4: New file.
35943         * lib/count-leading-zeros.h: Likewise.
35944         * modules/count-leading-zeros-tests: New test.
35945         * tests/test-count-leading-zeros.c: New file.
35946         * MODULES.html.sh (Integer arithmetic functions): Document it.
35948 2012-08-07  Simon Josefsson  <simon@josefsson.org>
35949             Jim Meyering  <meyering@redhat.com>
35951         maintainer-makefile: Fix syntax error with dash.
35952         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
35953         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
35955 2012-08-05  Jim Meyering  <meyering@redhat.com>
35957         extern-inline: also ignore -Wmissing-declarations
35958         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
35959         required with gcc-4.8.0-to-be.
35961         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
35962         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
35963         for /error ?([^,]*)/.  This avoids false-positives for strings like
35964         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
35966 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
35968         gnumakefile: better interaction with Automake-NG
35969         * modules/gnumakefile [Makefile.am]: The makefiles generated by
35970         Automake-NG always contain a definition of VPATH, even in non-VPATH
35971         builds (its value being simply '.' in that case).  So, in the
35972         'clean-GNUmakefile' rule, to determine whether running under a
35973         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
35974         '$(VPATH)' expands to the empty string.
35976 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
35978         base64: Use extern C scope in header file, for C++.
35979         * lib/base64.h: Add C++ namespace protection.
35981 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
35983         stat-time, timespec, u64: support naive out-of-dir builds
35984         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
35985         Use '#include "foo.h"', not '#include <foo.h>', when including
35986         one's own interface.  This works better when configuring with
35987         out-of-directory builds, since packages need not add an
35988         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
35990 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
35992         utimens: use extern-inline
35993         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
35994         * lib/utimens.h: Add copyright notice, since this is now large enough
35995         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35996         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
35997         * modules/utimens (Depends-on): Add extern-inline.
35999         u64: use extern-inline
36000         * lib/u64.c: New file.
36001         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36002         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
36003         * modules/u64 (Files): Add lib/u64.c.
36004         (Depends-on): Add extern-inline.
36005         (configure.ac): No need to require AC_C_INLINE, since extern-inline
36006         does that now.
36007         (lib_SOURCES): Add u64.c.
36009         timespec: use extern-inline
36010         * lib/timespec.c: New file.
36011         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36012         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
36013         * modules/timespec (Files): Add lib/timespec.c.
36014         (Depends-on): Add extern-inline.
36015         (lib_SOURCES): Add timespec.c.
36017         stat-time: use extern-inline
36018         * lib/stat-time.c: New file.
36019         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36020         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
36021         * modules/stat-time (Files): Add lib/stat-time.c.
36022         (Depends-on): Add extern-inline.
36023         (lib_SOURCES): Add stat-time.c.
36025         extern-inline: new module
36026         * modules/extern-inline, m4/extern-inline.m4: New files.
36027         This is for better support of 'extern inline' a la ISO C99,
36028         with a portable alternative on compilers that do not support
36029         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
36030         of the Emacs executable, when compiled with debugging disabled,
36031         which is a typical way that Emacs is built while developing.
36033 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
36035         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
36036         * build-aux/do-release-commit-and-tag: Move variable definitions
36037         together.
36038         ($branch): Instead of defaulting to "master", default to the current
36039         branch (as gnu-web-doc-update does).
36040         (help): Display the current values of the option arguments.
36041         * top/maint.mk (release-commit): New.
36042         * top/README-release: Simplify the corresponding step.
36044 2012-07-30  Eric Blake  <eblake@redhat.com>
36046         passfd: fix comment on recvfd
36047         * lib/passfd.c (recvfd): Fix comment.
36048         Reported by Jann Horn <jannhorn@googlemail.com>.
36050 2012-07-30  Jim Meyering  <meyering@redhat.com>
36052         maint.mk: avoid a sub-shell
36053         * top/maint.mk (release-prep): Remove unneeded sub-shell.
36055 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36057         maint.mk: use silent-rules support from Automake
36058         * top/maint.mk (news-check, vc-diff-check, announcement)
36059         (no-submodule-changes, alpha beta stable, release-prep)
36060         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
36062 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36064         maint.mk: provide a web-manual-update target
36065         * top/maint.mk: here.
36066         * top/README-release: Use it to simplify the web manual update step.
36068 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36070         README-release: shorten the circuit to post a news
36071         * top/README-release: Point directly to the news submission form.
36073 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36075         gnu-web-doc-update: fix --help
36076         * build-aux/gnu-web-doc-update: The information "top level" was written
36077         twice.
36079 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36081         maint.mk: absolute VPATH issue
36082         * top/maint.mk (release-prep): Help Git find .git/.
36083         From Jim Meyering.
36085 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36087         gitlog-to-changelog: fix previous change
36088         * build-aux/gitlog-to-changelog: Fix condition.
36089         Add missing ";".
36091 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36093         gitlog-to-changelog: don't expect .git to be in $srcdir
36094         Reported by Bruno Haible.
36095         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
36096         * build-aux/gitlog-to-changelog (&git_dir_option): New.
36097         Use it.
36099 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36101         maint.mk: absolute VPATH build fix
36102         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
36103         $(srcdir) is not a parent of $(builddir).
36105 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
36107         clean-temp: Fix memory leak.
36108         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
36109         'files' members of tmpdir.
36111 2012-07-27  Jim Meyering  <meyering@redhat.com>
36113         maint.mk: new rule: refresh-gnulib-patches
36114         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
36115         Use this rule to refresh them.
36116         * top/maint.mk (refresh-gnulib-patches): New rule.
36118 2012-07-24  Bruno Haible  <bruno@clisp.org>
36120         gnulib-tool: Fix handling of inctests variable.
36121         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
36122         Reported by Nick Bowler <nbowler@elliptictech.com>.
36124 2012-07-22  Bruno Haible  <bruno@clisp.org>
36126         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
36127         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
36128         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36129         Remove exemption for getpass.h.
36130         Suggested by Eric Blake.
36132 2012-07-20  Eric Blake  <eblake@redhat.com>
36134         verify: document conflict with -Wnested-externs
36135         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
36137         maint.mk: forbid exit(-1)
36138         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
36140 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36142         fsusage: port back to Solaris
36143         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
36144         error (fsd not declared) on Solaris 10.  Reported privately by
36145         Andrew Borodin.
36147 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
36149         gnu-web-doc-update: fix error messages
36150         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
36152         gnu-web-doc-update: check the requirements.
36153         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
36154         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
36155         * build-aux/bootstrap (find_tool): Comment change.
36157 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
36159         maint.mk: minor simplication.
36160         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
36161         for default values.
36163 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
36165         gitlog-to-changelog: VPATH build issues
36166         If builddir is not a subdirectory of srcdir, running git from it will
36167         fail.
36168         * build-aux/gitlog-to-changelog (--srcdir): New option.
36170 2012-07-15  Bruno Haible  <bruno@clisp.org>
36172         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
36173         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
36174         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
36175         Remove exemption for fpending.h.
36176         Suggested by Eric Blake.
36178 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36180         pthread_sigmask: fix bug on FreeBSD 9
36181         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
36182         Include string.h.
36183         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
36184         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
36185         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
36186         but pthread_sigmask (1729, NULL, NULL) returns zero.
36187         See <http://bugs.gnu.org/11884>.
36188         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
36189         by inspecting whether the main call changed the old mask.
36191 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
36193         README-release: make it more legible
36194         * top/README-release: Improve typography slightly.
36196 2012-07-15  Jim Meyering  <meyering@redhat.com>
36198         maint: require that each sc_... command start with "@"
36199         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
36200         "make sc_maint" helps us avoid this nit.
36202 2012-07-15  Jim Meyering  <meyering@redhat.com>
36204         maint.mk: add leading "@" to quiet new "make syntax-check" rule
36205         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
36207 2012-07-13  Eric Blake  <eblake@redhat.com>
36209         maint.mk: new syntax check for HAVE_DECL checks
36210         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
36211         * cfg.mk
36212         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36213         Exempt some false positives.
36214         Based on a report by Karel Zak.
36216         argp: make HAVE_DECL usage consistent
36217         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
36218         macros, not whether they are defined.
36219         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
36220         convention with other declaration checks.
36221         Reported by Karel Zak, with suggestions from Paul Eggert.
36223         stat-time: relax license to LGPLv2+
36224         * modules/stat-time (License): Relax, with consent of all authors.
36226         strndup: fix m4 usage error
36227         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
36228         defined, to either 0 or 1.
36229         Reported by Karel Zak.
36231 2012-07-11  Jim Meyering  <meyering@redhat.com>
36233         maint: enable the sc_avoid_if_before_free syntax-check rule
36234         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
36235         (if_before_free_offenders_): Define.
36236         (if_before_free_basename_re_): Define.
36237         Exempt current files with useless if-before-free.
36239 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36241         gettext: do not assume '#define ... defined ...' behavior
36242         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
36243         Do not use '#define FOO ... defined BAR ...', as the C standard says
36244         it's not portable to expect that this works after macro expansion.
36245         Problem reported for gzip by Steven M. Schweda in
36246         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
36248 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36250         getloadavg: clean out old Emacs and Autoconf cruft
36251         See Glenn Morris in <http://bugs.gnu.org/11905>.
36252         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
36253         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
36254         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
36255         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
36257 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
36259         bootstrap: let warn be like tests/init.sh's warn_
36260         Reported by Jim Meyering.
36261         * build-aux/bootstrap (warn): Remove, replaced by...
36262         (warnf_, warn_): these.
36263         Adjust callers.
36264         Shorten messages that no longer fit in 80 columns.
36266 2012-07-09  Bruno Haible  <bruno@clisp.org>
36268         getopt: Simplify after Emacs changed.
36269         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
36270         (gl_GETOPT_IFELSE): Remove macro.
36272 2012-07-09  Jim Meyering  <meyering@redhat.com>
36274         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
36275         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
36277         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
36278         Bugs in both of those conspired to make the
36279         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
36280         _sc_search_regexp's handling of non-empty $in_files would filter
36281         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
36282         choice of in_files value meant there would be no match in most
36283         projects, due to the presence of two or more Makefile.in files.
36284         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
36285         Fix a bug in how a non-empty $$in_files was processed:
36286         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
36287         in spite of the name, it's a regexp, not a list of file names.
36289 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
36291         getloadavg, getopt: fix commentary re configure.in
36292         Autoconf is deprecating the name 'configure.in', so change it to
36293         to the new name 'configure.ac' in a couple of places.
36294         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
36295         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
36296         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
36297         Emacs has renamed it to configure.ac, and it no longer refers
36298         to these macros anyway.
36300         timespec: mark functions with const attributes
36301         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
36302         Mark with _GL_ATTRIBUTE_CONST.
36304 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
36306         canonicalize[-lgpl]: handle "guessing" values when cross-building
36307         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36308         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
36309         matches "*yes" instead of just "yes".  Regression introduced in commit
36310         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
36312 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
36313             Bruno Haible  <bruno@clisp.org>
36315         canonicalize: make the right guess when cross-compiling to GNU
36316         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
36317         determine whether cross-compiling to glibc systems, so as to
36318         include GNU/Hurd.
36320 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36322         timespec-sub: avoid duplicate include
36323         * lib/timespec-sub.c: Do not include <config.h> twice.
36324         Reported by Juanma Barranquero.
36326 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
36328         bootstrap: use a more consistent error reporting scheme
36329         * build-aux/bootstrap (warn, die): New.
36330         Use them.
36332 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
36334         sys_time: allow too-wide tv_sec
36335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
36336         timeval even if tv_sec is wider than time_t.  This allows
36337         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
36338         as without this patch gnulib replaces struct timeval
36339         and OpenBSD futimes therefore has a type mismatch.
36340         * doc/posix-headers/sys_time.texi: Mention this.
36342         pthread: check for both pthread_create and pthread_join
36343         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
36344         alter the check so that it tests for both pthread_create and
36345         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
36346         Suggested by Bruno Haible and Richard Yao in
36347         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
36349         parse-datetime: doc tuneup
36350         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
36351         spacing issues.
36353 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
36355         do-release-commit-and-tag: fix the previous commit
36356         * build-aux/do-release-commit-and-tag: Actually the test was right,
36357         but the comment and the error message were misleading.
36358         Fix comment, and improve error message.
36359         Perform check first, so that NEWS is not modified uselessly.
36361         do-release-commit-and-tag: fix typo
36362         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
36363         _not_ start with a stub.
36365 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
36367         pthread: check for pthread_create, not pthread_join
36368         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
36369         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
36370         pthread_join in libc.  I hope this removes the need for all the
36371         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
36372         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
36374 2012-07-04  Jim Meyering  <meyering@redhat.com>
36376         parse-datetime: fix failure to diagnose invalid input
36377         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
36378         rather than diagnosing the invalid input.  Now it reports this:
36379         date: invalid date '\260'
36380         * lib/parse-datetime.y (to_uchar): Define.
36381         (yylex): Don't sign-extend "other" bytes.
36382         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
36383         Thanks to Bruno Haible for the patch to this file.
36384         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
36385         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
36387 2012-07-03  Jim Meyering  <meyering@redhat.com>
36389         bootstrap: do not require now-removed build-aux/missing
36390         Now that build-aux/missing is, er, missing, bootstrap would
36391         silently fail.
36392         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
36393         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
36394         no longer part of gnulib.
36395         Diagnose the failure.
36397 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36399         alloca: add support for HP NonStop TNS/E native
36400         * lib/alloca.in.h (alloca): Support the new host.
36401         From a suggestion by Joachim Schmitz in
36402         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
36404 2012-07-02  Pádraig Brady  <P@draigBrady.com>
36406         fsusage: remove code not needed on non GNU/Linux systems.
36408         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
36409         Don't include headers no longer needed in this case.
36410         * lib/fsusage.c [STAT_STATVFS &&
36411         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
36412         STAT_STATFS2_FRSIZE to exclude code not used in this case.
36414 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36416         fsusage: include files needed for glibc 2.6 fallback
36417         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
36418         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
36419         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
36420         Problem reported by Ludovic Courtès in
36421         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
36423         fsusage: avoid needless check on GNU/Linux
36424         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
36425         on GNU/Linux systems, since it can't possibly work.
36427 2012-07-01  Bruno Haible  <bruno@clisp.org>
36429         log: Fix an autoconf >= 2.64 warning.
36430         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
36431         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
36433 2012-06-28  Bruno Haible  <bruno@clisp.org>
36435         log10f: Fix possible configuration problem.
36436         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
36437         $LOGF_LIBM.
36438         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
36440 2012-06-28  Bruno Haible  <bruno@clisp.org>
36442         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
36443         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
36444         not gl_cv_func_unlink_works.
36445         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
36447 2012-06-27  Eric Blake  <eblake@redhat.com>
36449         config: drop scripts that automake says are not independent
36450         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
36451         * build-aux/elisp-comp: Delete.
36452         * build-aux/missing: Likewise.
36453         * build-aux/ylwrap: Likewise.
36454         * modules/elisp-comp: Likewise.
36455         * MODULES.html.sh: Drop mention of elisp-comp.
36456         * NEWS: Mention this.
36458 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
36460         root-uid: new module
36461         This is for portability to Tandem's NonStop Kernel.
36462         * lib/root-uid.h, modules/root-uid: New files.
36463         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
36464         * lib/write-any-file.c, tests/test-sethostname2.c:
36465         Include "root-uid.h".
36466         * lib/euidaccess.c (euidaccess):
36467         * lib/pt_chown.c (main):
36468         * lib/unlinkdir.c (cannot_unlink_dir):
36469         * lib/write-any-file.c (can_write_any_file):
36470         * m4/mknod.m4 (gl_FUNC_MKNOD):
36471         * tests/test-sethostname2.c (geteuid, main):
36472         Don't assume ROOT_UID == 0.
36473         * modules/euidaccess (Depends-on):
36474         * modules/pt_chown (Depends-on):
36475         * modules/sethostname-tests (Depends-on):
36476         * modules/unlinkdir (Depends-on):
36477         * modules/write-any-file (Depends-on):
36478         Add root-uid.
36480         regex: use locale-independent comparison for codeset name
36481         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
36482         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
36483         for codeset name.
36484         * lib/regex_internal.h: Do not include <strings.h>, since we
36485         no longer use strcasecmp.
36486         * modules/regex (Depends-on): Remove strcase.
36488 2012-06-23  Bruno Haible  <bruno@clisp.org>
36490         getopt-posix: No longer guarantee that option processing is resettable.
36491         * doc/posix-functions/getopt.texi: Drop description of problem with
36492         internal state. Fix info about mingw and msvc9.
36493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
36494         option processing by getopt(). Run three test programs instead of one.
36495         Simplify cross-compilation guess.
36496         * NEWS: Mention the change.
36497         Reported by Rich Felker <dalias@aerifal.cx>.
36499 2012-06-26  Bruno Haible  <bruno@clisp.org>
36501         argp, regex: Ensure strcasecmp gets declared.
36502         * lib/argp-help.c: Include <strings.h>.
36503         * lib/regex_internal.h: Likewise.
36504         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
36506 2012-06-24  Bruno Haible  <bruno@clisp.org>
36508         ptsname_r: Make it consistent with ptsname on AIX.
36509         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
36510         implementation as for OSF/1.
36511         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
36512         a pty master.
36514         ptsname_r: Make it consistent with ptsname on OSF/1.
36515         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
36516         OSF/1.
36518 2012-06-24  Bruno Haible  <bruno@clisp.org>
36520         ttyname_r: Fix result on OSF/1, Solaris.
36521         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
36523 2012-06-24  Bruno Haible  <bruno@clisp.org>
36525         ptsname_r: Add support for Solaris.
36526         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
36527         Solaris.
36529         ptsname_r: Fix test failure on native Windows.
36530         * modules/ptsname_r (Depends-on): Add isatty.
36532         ptsname_r: Fix test failures on IRIX, Solaris.
36533         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
36534         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
36535         accordingly.
36536         * lib/ptsname_r.c: Include <fcntl.h>.
36537         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
36538         set errno if fd is invalid.
36539         * tests/test-isatty.c (main): Update comments.
36541 2012-06-24  Bruno Haible  <bruno@clisp.org>
36543         ptsname test: Extend test.
36544         * tests/test-ptsname.c: Include <errno.h>.
36545         (main): Test behaviour with invalid file descriptor.
36547 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36549         time: fix obsolete comment
36550         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
36551         reference to HAVE_STRUCT_TIMESPEC in comment.
36553 2012-06-23  Bruno Haible  <bruno@clisp.org>
36555         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
36556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
36557         does not handle abbreviated long options with equivalent
36558         disambiguations, set gl_replace_getopt to yes.
36559         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
36561 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
36563         time_r: fix typo that always overrode localtime_r decl
36564         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
36565         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
36566         not in a standard include.
36568 2012-06-22  Bruno Haible  <bruno@clisp.org>
36570         Write "Mac OS X" instead of "MacOS X".
36571         * README: Write "Mac OS X" instead of "MacOS X".
36572         * build-aux/bootstrap: Likewise.
36573         * build-aux/install-reloc: Likewise.
36574         * lib/acl-internal.h: Likewise.
36575         * lib/acl_entries.c: Likewise.
36576         * lib/argp-ba.c: Likewise.
36577         * lib/argp-pv.c: Likewise.
36578         * lib/config.charset: Likewise.
36579         * lib/copy-acl.c: Likewise.
36580         * lib/csharpexec.c: Likewise.
36581         * lib/euidaccess.c: Likewise.
36582         * lib/fbufmode.c: Likewise.
36583         * lib/fflush.c: Likewise.
36584         * lib/file-has-acl.c: Likewise.
36585         * lib/filemode.h: Likewise.
36586         * lib/fpurge.c: Likewise.
36587         * lib/freadable.c: Likewise.
36588         * lib/freadahead.c: Likewise.
36589         * lib/freading.c: Likewise.
36590         * lib/freadptr.c: Likewise.
36591         * lib/freadseek.c: Likewise.
36592         * lib/fseeko.c: Likewise.
36593         * lib/fseterr.c: Likewise.
36594         * lib/fsusage.c: Likewise.
36595         * lib/fwritable.c: Likewise.
36596         * lib/fwriting.c: Likewise.
36597         * lib/get-rusage-as.c: Likewise.
36598         * lib/get-rusage-data.c: Likewise.
36599         * lib/getdomainname.c: Likewise.
36600         * lib/idpriv-drop.c: Likewise.
36601         * lib/idpriv-droptemp.c: Likewise.
36602         * lib/localcharset.c: Likewise.
36603         * lib/locale.in.h: Likewise.
36604         * lib/localename.c: Likewise.
36605         * lib/mbsrtowcs-state.c: Likewise.
36606         * lib/nproc.c: Likewise.
36607         * lib/passfd.c: Likewise.
36608         * lib/posix_openpt.c: Likewise.
36609         * lib/printf-parse.c: Likewise.
36610         * lib/progreloc.c: Likewise.
36611         * lib/safe-read.h: Likewise.
36612         * lib/safe-write.h: Likewise.
36613         * lib/sched.in.h: Likewise.
36614         * lib/set-mode-acl.c: Likewise.
36615         * lib/signal.in.h: Likewise.
36616         * lib/stdint.in.h: Likewise.
36617         * lib/stdio-impl.h: Likewise.
36618         * lib/stdlib.in.h: Likewise.
36619         * lib/strtod.c: Likewise.
36620         * lib/sys_select.in.h: Likewise.
36621         * lib/tcgetsid.c: Likewise.
36622         * lib/unistd.in.h: Likewise.
36623         * lib/unlockpt.c: Likewise.
36624         * lib/vasnprintf.c: Likewise.
36625         * lib/vma-iter.c: Likewise.
36626         * lib/wcsrtombs-state.c: Likewise.
36627         * m4/acl.m4: Likewise.
36628         * m4/acosl.m4: Likewise.
36629         * m4/asinl.m4: Likewise.
36630         * m4/atanl.m4: Likewise.
36631         * m4/c-stack.m4: Likewise.
36632         * m4/cosl.m4: Likewise.
36633         * m4/expl.m4: Likewise.
36634         * m4/extensions.m4: Likewise.
36635         * m4/fdatasync.m4: Likewise.
36636         * m4/fmal.m4: Likewise.
36637         * m4/frexp.m4: Likewise.
36638         * m4/frexpf.m4: Likewise.
36639         * m4/frexpl.m4: Likewise.
36640         * m4/fsusage.m4: Likewise.
36641         * m4/getdomainname.m4: Likewise.
36642         * m4/getloadavg.m4: Likewise.
36643         * m4/getopt.m4: Likewise.
36644         * m4/gettext.m4: Likewise.
36645         * m4/gnulib-common.m4: Likewise.
36646         * m4/intdiv0.m4: Likewise.
36647         * m4/intlmacosx.m4: Likewise.
36648         * m4/largefile.m4: Likewise.
36649         * m4/ldexpl.m4: Likewise.
36650         * m4/link-follow.m4: Likewise.
36651         * m4/locale-ar.m4: Likewise.
36652         * m4/locale-fr.m4: Likewise.
36653         * m4/locale-ja.m4: Likewise.
36654         * m4/locale-tr.m4: Likewise.
36655         * m4/locale-zh.m4: Likewise.
36656         * m4/locale_h.m4: Likewise.
36657         * m4/lock.m4: Likewise.
36658         * m4/logl.m4: Likewise.
36659         * m4/mathfunc.m4: Likewise.
36660         * m4/minus-zero.m4: Likewise.
36661         * m4/mktime.m4: Likewise.
36662         * m4/mmap-anon.m4: Likewise.
36663         * m4/multiarch.m4: Likewise.
36664         * m4/nanosleep.m4: Likewise.
36665         * m4/nocrash.m4: Likewise.
36666         * m4/poll.m4: Likewise.
36667         * m4/printf-frexpl.m4: Likewise.
36668         * m4/printf.m4: Likewise.
36669         * m4/signbit.m4: Likewise.
36670         * m4/sinl.m4: Likewise.
36671         * m4/sqrtl.m4: Likewise.
36672         * m4/strerror_r.m4: Likewise.
36673         * m4/tanl.m4: Likewise.
36674         * m4/threadlib.m4: Likewise.
36675         * m4/ttyname_r.m4: Likewise.
36676         * m4/unlink.m4: Likewise.
36677         * m4/visibility.m4: Likewise.
36678         * m4/wcwidth.m4: Likewise.
36679         * tests/minus-zero.h: Likewise.
36680         * tests/test-alloca-opt.c: Likewise.
36681         * tests/test-copy-acl.sh: Likewise.
36682         * tests/test-copy-file.sh: Likewise.
36683         * tests/test-fdatasync.c: Likewise.
36684         * tests/test-file-has-acl.sh: Likewise.
36685         * tests/test-flock.c: Likewise.
36686         * tests/test-fsync.c: Likewise.
36687         * tests/test-localename.c: Likewise.
36688         * tests/test-malloca.c: Likewise.
36689         * tests/test-nonblocking-pipe.h: Likewise.
36690         * tests/test-nonblocking-socket.h: Likewise.
36691         * tests/test-openpty.c: Likewise.
36692         * tests/test-posix_openpt.c: Likewise.
36693         * tests/test-ptsname.c: Likewise.
36694         * tests/test-ptsname_r.c: Likewise.
36695         * tests/test-sameacls.c: Likewise.
36696         * tests/test-select.h: Likewise.
36697         * tests/test-set-mode-acl.sh: Likewise.
36698         * tests/test-snprintf-posix.h: Likewise.
36699         * tests/test-sprintf-posix.h: Likewise.
36700         * tests/test-strtod.c: Likewise.
36701         * tests/test-time.c: Likewise.
36702         * tests/test-vasnprintf-posix.c: Likewise.
36703         * tests/test-vasprintf-posix.c: Likewise.
36704         * doc/acl-resources.txt: Likewise.
36705         * doc/**/*.texi: Likewise.
36706         Reported by Max Horn <max@quendi.de>.
36708 2012-06-22  Bruno Haible  <bruno@clisp.org>
36710         grantpt: Relax requirement regarding invalid file descriptors.
36711         * lib/grantpt.c: Don't include <fcntl.h>.
36712         (grantpt): Don't verify the validity of the file descriptor.
36713         * modules/grantpt (Depends-on): Remove fcntl-h.
36714         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
36715         file descriptors.
36716         * doc/posix-functions/grantpt.texi: Document more platforms on which
36717         grantpt succeeds for invalid file descriptors.
36718         Reported by Rich Felker <dalias@aerifal.cx>.
36720 2012-06-22  Bruno Haible  <bruno@clisp.org>
36722         fbufmode test: Don't test unportable behaviour.
36723         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
36724         (main): Invoke it three times.
36725         Reported by Szabolcs Nagy <nsz@port70.net>
36726         and Rich Felker <dalias@aerifal.cx>.
36728 2012-06-21  Bruno Haible  <bruno@clisp.org>
36730         gnulib-tool: Refactor inctests variable.
36731         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
36732         (func_modules_transitive_closure,
36733         func_modules_transitive_closure_separately,
36734         func_import, func_create_testdir): Update.
36736         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
36737         * gnulib-tool: Accept option --without-tests.
36738         (func_usage): Document --without-tests option. Rearrange.
36739         (inctests): Normalize according to the mode.
36740         * NEWS: Mention the change.
36741         Suggested by Simon Josefsson.
36743 2012-06-21  Bruce Korb  <bkorb@gnu.org>
36745         parse-duration test: Avoid spurious output.
36746         * tests/test-parse-duration.sh: Reindent with leading tabs.
36748 2012-06-21  Jim Meyering  <meyering@redhat.com>
36750         maint: disable the strncpy prohibition
36751         * cfg.mk: Do not prohibit strncpy here.
36753 2012-06-21  Bruno Haible  <bruno@clisp.org>
36755         nonblocking: Avoid compilation error on mingw64.
36756         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
36757         fscanf.
36758         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
36759         * modules/vfscanf (configure.ac): Likewise.
36760         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
36761         definition only if stdio.h has prepared it.
36762         Reported by Daniel P. Berrange <berrange@redhat.com>.
36764 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
36766         gnulib-tool: Use readlink if it is available.
36767         * gnulib-tool (func_readlink): Choose function more appropriately.
36769 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36771         posixtm-tests: port to buggy compiler
36772         Problem reported by Simon Josefsson in
36773         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
36774         * modules/posixtm-tests (Depends-on): Add stdint.
36775         * tests/test-posixtm.c (struct posixtm_test.t_expected):
36776         Now of type int_least64_t, not int64_t, both because that's
36777         what INT64_C returns and because int_least64_t works even
36778         on 72-bit hosts.
36779         (T): Use INT64_C on constants outside the traditional int range,
36780         to work around compiler bug noted by Simon.
36782         mktime: fix integer overflow in 'configure'-time test
36783         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
36784         after integer overflow.  Problem reported by Rich Felker in
36785         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
36786         Also, don't look for further instances of a bug if we've already
36787         found one instance; this helps 'configure' run faster.
36789 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
36791         tmpfile, clean-temp: Fix invocation of GetVersionEx.
36792         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
36793         GetVersionEx correctly.
36794         * lib/clean-temp.c (supports_delete_on_close): Likewise.
36796 2012-06-20  Bruno Haible  <bruno@clisp.org>
36798         fdopen: Allow implementations that don't reject invalid fd arguments.
36799         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
36800         succeeds.
36801         Reported by Rich Felker <dalias@aerifal.cx>.
36803 2012-06-20  Simon Josefsson  <simon@josefsson.org>
36805         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
36806         bring in LIBINTL.
36808 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36810         init.sh: do not rely on autoupated PWD
36811         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
36812         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
36813         Although Nelson's bug was not necessarily fixed by this patch,
36814         it seems wise to make the change for safety.
36815         * tests/init.sh (path_prepend_): Do not rely on PWD updating
36816         automagically after 'cd'; this is not reliable on older shells.
36817         (setup_): Fail if we cannot cd to temporary directory.
36819 2012-06-19  Bruno Haible  <bruno@clisp.org>
36821         stat, fstat: Avoid warnings on mingw64.
36822         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
36823         redefining.
36824         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
36825         Reported by Daniel P. Berrange <berrange@redhat.com>.
36827 2012-06-19  Bruno Haible  <bruno@clisp.org>
36829         stdioext: Add support for musl libc.
36831         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
36832         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
36834         * m4/fseterr.m4: New file.
36835         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
36836         function exists.
36837         * modules/fseterr (Files): Add m4/fseterr.m4.
36838         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
36839         __fseterr does not exist.
36840         (Makefile.am): Remove fseterr.c from lib_SOURCES.
36842         * lib/freadable.h: Update comment.
36844         * lib/fwritable.h: Update comment.
36846         * lib/freading.h: Update comment.
36848         * lib/fwriting.h: Update comment.
36850         * m4/freadahead.m4: New file.
36851         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
36852         that function exists.
36853         * modules/freadahead (Files): Add m4/freadahead.m4.
36854         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
36855         __freadahead does not exist.
36856         (Makefile.am): Remove freadahead.c from lib_SOURCES.
36858         * m4/freadptr.m4: New file.
36859         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
36860         function exists.
36861         * modules/freadptr (Files): Add m4/freadptr.m4.
36862         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
36863         __freadptr does not exist.
36864         (Makefile.am): Remove freadptr.c from lib_SOURCES.
36866         * m4/freadseek.m4: New file.
36867         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
36868         exists.
36869         * modules/freadseek (Files): Add m4/freadseek.m4.
36870         (configure.ac): Invoke gl_FUNC_FREADSEEK.
36872         * lib/fpurge.c (fpurge): Update comment.
36874         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
36876 2012-06-19  Bruno Haible  <bruno@clisp.org>
36878         *printf-posix: Put more info into config.log.
36879         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
36880         exit code into config.log.
36882 2012-06-19  Bruno Haible  <bruno@clisp.org>
36884         getopt-gnu: Fix exit code overflow in autoconf test.
36885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
36886         to keep them below < 128.
36888 2012-06-17  Jim Meyering  <meyering@redhat.com>
36890         maint.mk: fix typo in code to derive GPG key at release time
36891         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
36893 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
36895         regex: avoid warning when pointers are not long
36896         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
36897         and uintptr_t, not long, for portability to hosts where pointers and
36898         long have different sizes.  Issue noted by Daniel P. Berrange in
36899         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
36900         and fix suggested by Bruno Haible in
36901         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
36903 2012-06-17  Bruno Haible  <bruno@clisp.org>
36905         dummy: Relicense into the public domain.
36906         * modules/dummy (License): Set to "public domain".
36907         Suggested by Reuben Thomas.
36909 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
36911         announce-gen: VPATH issues
36912         * build-aux/announce-gen (--srcdir): New option, used to trim the
36913         $srcdir part of the path from $builddir to NEWS.
36914         * top/maint.mk (announcement): Adjust.
36916 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
36918         gnu-web-doc-update: VPATH builds
36919         * build-aux/gnu-web-doc-update (--builddir): New option.
36920         Revamp the handling of options.
36921         Prefer $(...) to `...`.
36922         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
36923         the template, and it is GNU mktemp specific.
36924         Prefer set -e to long series of &&.
36925         Restore the initial git branch, not "master".
36926         Properly initialize submodules (don't rely only on bootstrap).
36927         Do not reconfigure blindly, use config.status.
36928         * top/README-release: Update instructions for gnu-web-doc-update.
36930 2012-06-11  Jim Meyering  <meyering@redhat.com>
36932         maint.mk: revert most of the previous change re "all these"
36933         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
36934         For rationale, see the discussion at
36935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
36937 2012-06-10  Karl Berry  <karl@gnu.org>
36939         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
36941         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
36943 2012-06-10  Bruce Korb  <bkorb@gnu.org>
36945         parse-duration: Relicense under LGPLv2+.
36946         * modules/parse-duration (License): Change to LGPLv2+.
36948 2012-06-10  Jim Meyering  <meyering@redhat.com>
36950         maint.mk: prohibit common grammar error: "all these"
36951         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
36952         the list of prohibited word sequences.  It should be "all of these".
36953         * lib/tempname.c (__gen_tempname): Fix one of them.
36955 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
36957         do-release-commit-and-tag: support VPATH builds
36958         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
36959         (noteworthy): Defined earlier to factor its value.
36960         (noteworthy_stub): New.
36961         Use it to factor.
36962         (help_version): Split into...
36963         (help, version): these.
36964         Adjust the option processing part.
36965         Support "--option=value" in addition to "--option value".
36966         (builddir): New.
36967         (--builddir): New option.
36968         * top/README-release: Document this.
36969         Reword slightly so that the reader cannot understand that he
36970         has to do these steps before calling do-release-commit-and-tag.
36972 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
36974         readme-release: also require announce-gen and maintainer-makefile
36975         * modules/readme-release (Depends-on): here.
36976         * modules/announce-gen, modules/do-release-commit-and-tag,
36977         modules/gnu-web-doc-update, modules/maintainer-makefile
36978         (Description): Point to readme-release.
36980 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
36982         maint.mk: fix VPATH issues.
36983         * top/maint.mk (news-check): GNU Make understand $< very well.
36984         (release-prep): NEWS is in $(srcdir).
36986 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
36988         readme-release: require the promoted modules.
36989         * modules/readme-release (Depends-on): Add
36990         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
36991         in this text.
36993 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
36994             Bruno Haible  <bruno@clisp.org>
36996         error, strerror-override: Support mingw64 from Fedora 17.
36997         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
36998         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
36999         EINPROGRESS.
37000         * lib/strerror-override.h (strerror_override): Test it.
37001         * lib/strerror-override.c (strerror_override): Likewise.
37002         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
37004 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37005             Bruno Haible  <bruno@clisp.org>
37007         error, strerror-override: Support mingw64 from Fedora 17.
37008         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
37009         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
37010         * lib/strerror-override.h (strerror_override): Test it.
37011         * lib/strerror-override.c (strerror_override): Likewise.
37013 2012-06-03  Bruno Haible  <bruno@clisp.org>
37015         error, strerror-override: Support new errno values from POSIX:2008.
37016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
37017         ENOTRECOVERABLE.
37018         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
37019         platforms.
37020         * lib/strerror-override.c (strerror_override): Conditionalize the
37021         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
37022         * lib/strerror-override.h (strerror_override): Declare also if
37023         GNULIB_defined_EOWNERDEAD is defined.
37024         * tests/test-errno.c (e130, e131): New variables.
37025         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
37026         ENOTRECOVERABLE.
37027         Reported by Paolo Bonzini.
37029 2012-05-31  Jim Meyering  <meyering@redhat.com>
37031         savewd: add missing dependency on sys_wait module
37032         * modules/savewd (Depends-on): Add sys_wait, needed at least
37033         for MSVC.  Report and suggested change by Michael Goffioul.
37035 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
37037         system-quote-tests: port to CentOS 5
37038         Problem reported by Tom G. Christensen in
37039         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
37040         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
37042 2012-05-29  Jim Meyering  <meyering@redhat.com>
37044         maint: fix typos in comments and ChangeLog
37045         Culprits identified and fixed mostly automatically using these commands:
37046         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
37047         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
37048         using http://github.com/lyda/misspell-check
37049         * ChangeLog: Fix typos.
37050         * doc/solaris-versions: Likewise.
37051         * lib/regexec.c (re_search_stub): Likewise.
37052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37054 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37056         manywarnings: remove duplicate -Wmultichar entry
37057         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
37058         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
37059         so keep the entry marked as documented.
37061 2012-05-27  Karl Berry  <karl@gnu.org>
37063         * config/srclist.txt (mktime.c): remove last libc sync,
37064         perhaps just temporarily.
37066 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37068         regex: don't assume uint64_t or uint32_t
37069         * lib/regcomp.c (init_word_char): Don't assume that the types
37070         uint64_t and uint32_t exist.  The C standard doesn't guarantee
37071         them, and on some 32-bit compilers there is no uint64_t.
37072         Problem reported by Gianluigi Tiesi in
37073         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
37075 2012-05-25  Jim Meyering  <meyering@redhat.com>
37077         maint.mk: add strncpy-prohibiting syntax-check rule
37078         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
37080 2012-05-24  Jim Meyering  <meyering@redhat.com>
37082         maint.mk: compute $(gpg_key_ID) more portably
37083         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
37084         That use of sed is not portable to some fringe systems.
37085         Reported by Paul Eggert in
37086         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
37088 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37090         mktime: sync from glibc
37091         * config/srclist.txt: Uncomment mktime.c.
37092         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
37093         First, indent with tabs, since glibc uses tabs and doesn't want to
37094         change and we'd rather be identical to glibc.  Also, two small
37095         coding changes:
37096         (isdst_differ): Use &&, not &, as && is the usual style.
37097         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
37098         for clarity.
37100 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37102         announce-gen: du -h is more portable than du --human
37103         * build-aux/announce-gen (sizes): Invoke du with -h instead
37104         of --human.  Accept leading white space in its output.
37106 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37108         announce-gen: Improve diagnostics.
37109         * build-aux/announce-gen: When parsing command line options,
37110         prefer "announce-gen: option --release-type requires an argument"
37111         to "Option release-type requires an argument".
37113 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37115         maint.mk: gpg_key_ID: use sed more portably
37116         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
37117         the closing brace.
37118         (refresh-po): Fuse two sed invocations into one.
37120 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
37122         gitlog-to-changelog: support the log message format used in Bison.
37123         * build-aux/gitlog-to-changelog: Support --strip-tab and
37124         --strip-cherry-picked.
37126 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37128         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
37129         the rest of the current time slice to another thread in the current
37130         process. So if the thread that feeds the file decscriptor we're
37131         polling is not in the current process, we get busy-waiting.
37132         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
37133         Patch from Theodore Leblond.
37134         * lib/select.c: Split polling out of the loop that sets the output
37135         fd_sets.  Check for zero result and loop if the wait timeout is
37136         infinite.
37138 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37140         select: Fix build error on IRIX 6.5.
37141         * lib/select.c: Include stddef.h for NULL.
37143 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37145         gc: fix libgcrypt detection on older machines.
37146         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
37147         copyright years because the file has been distributed every year
37148         since it was created.
37150 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37152         crypto: fix bug in large buffer handling
37153         Problem reported by Serge Belyshev for glibc in
37154         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
37155         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
37156         * lib/md4.c (md4_process_block):
37157         * lib/md5.c (md5_process_block):
37158         * lib/sha1.c (sha1_process_block):
37159         * lib/sha256.c (sha256_process_block):
37160         Don't assume the buffer length is less than 2**32.
37161         * lib/sha512.c (sha512_process_block): Likewise.
37162         Here, the bug is present only in the rare case where the host does
37163         not support uint64_t or where size_t is wider than 64 bits.
37164         Use u64size to work around the problems.
37165         * lib/u64.h (u64size): New macro.
37167 2012-05-15  Pádraig Brady  <P@draigBrady.com>
37169         fsusage: fix block size returned on older Linux 2.6
37171         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
37172         which is available since Linux 2.6.
37173         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
37174         when the member is available so it can be used as a fallback.
37175         * doc/posix-functions/statvfs.texi: Mention the hang issue
37176         on Linux < 2.6.36.
37178 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37180         bootstrap: suppress stderr chatter
37181         * build-aux/bootstrap (insert_sorted_if_absent, main program):
37182         Omit unnecessary chatter to stderr.  The main program chatter
37183         was there only inadvertantly.
37185         bootstrap: .gitignore files created by autopoint, libtool
37186         I ran into this problem when bootstrapping the latest diffutils.
37187         After './bootstrap', 'git status' reported lots of untracked files
37188         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
37189         autopoint and do not need to be version-controlled.
37190         * build-aux/bootstrap: Put into .gitignore the files that
37191         autopoint and libtool create, by keeping track of files that exist
37192         after but not before these programs are run.
37193         (version_controlled_file): Move up.  2nd arg is now full file
37194         name, not base name; this is more convenient.  Put CVS at the end,
37195         as it's now somewhat deprecated.
37197 2012-05-14  Jim Meyering  <meyering@redhat.com>
37199         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
37200         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
37201         definition.  Reported by Bruno Haible.
37203 2012-05-13  Bruno Haible  <bruno@clisp.org>
37204             Paul Eggert  <eggert@cs.ucla.edu>
37206         binary-io: Define set_binary_mode function.
37207         * lib/binary-io.h (set_binary_mode): New function.
37208         (SET_BINARY): Define in terms of set_binary_mode.
37209         * modules/binary-io (configure.ac): Require AC_C_INLINE.
37210         * tests/test-binary-io.c (main): Accept an argument, and test either
37211         set_binary_mode or SET_BINARY depending on the argument.
37212         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
37213         argument. Clean up also t-bin-out0.tmp.
37215 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
37217         bootstrap: take advantage of POSIX shell features
37219         The 'bootstrap' script offered by Gnulib script already uses POSIX
37220         shell features (like $((...)) arithmetic expansions) that are not
37221         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
37222         means that bootstrap must already be run using a proper POSIX shell,
37223         which will thus provide more features, like ${var#pattern} parameter
37224         expansion or inversion of a command exit status with '!'.  We can
37225         thus use these features to improve the clarity and the performances
37226         of the bootstrap script.
37228         Suggested by Eric Blake.
37230         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
37231         of sed/expr plus command substitutions, to save some forks.  While
37232         we are at it, prefer the POSIX $(...) form of command substitution,
37233         rather than the legacy form `...` (since the former is visually
37234         clearer and interacts better with quoting), and prefer the idiom:
37235           "if ! CMD; then ACTION ..."
37236         over the idiom:
37237           "if CMD; then :; else ACTION ..."
37238         which was required by legacy Bourne shells not supporting '!'.
37240 2012-05-12  Bruno Haible  <bruno@clisp.org>
37242         system-quote: Add more comments.
37243         * lib/system-quote.h: Add more comments about wilcards and limitations.
37244         Suggested by Eli Zaretskii <eliz@gnu.org>.
37246         sh-quote, system-quote: Add comments about wildcards.
37247         * lib/sh-quote.h: Clarify what happens with wildcard characters.
37248         * lib/system-quote.h: Likewise.
37249         Reported by Eli Zaretskii <eliz@gnu.org>.
37251 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37253         fsusage: check for GNU/Linux statvfs problem dynamically
37254         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
37255         Define STAT_STATFS2_BSIZE too, since in this case the code now
37256         checks dynamically whether statvfs is reliable, falling back on
37257         Linux-style statfs otherwise.
37258         (statvfs_works): New function, for dynamically testing statvfs.
37259         (get_fs_usage) [STAT_STATVFS]: Use it.
37260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
37261         statvfs on GNU/Linux hosts, since it's now done dynamically.
37263 2012-05-10  Bruno Haible  <bruno@clisp.org>
37265         system-quote, execute, spawn-pipe: Escape '?' on Windows.
37266         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
37267         '?' character.
37268         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
37269         * tests/test-system-quote-main.c (check_all): Check also strings like
37270         "??????????".
37271         Reported by Eli Zaretskii <eliz@gnu.org>.
37273 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
37275         _Noreturn: port config.h to gcc -Wundef
37276         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
37277         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
37278         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
37280 2012-05-10  Bruno Haible  <bruno@clisp.org>
37282         system-quote: Refactor.
37283         * lib/system-quote.h (system_quote_copy): Fix comment.
37284         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
37285         New functions, extracted from system_quote_copy.
37286         (system_quote_length, system_quote_copy): Use these functions.
37287         Reported by Paul Eggert.
37289 2012-05-08  Bruno Haible  <bruno@clisp.org>
37291         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
37292         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
37294 2012-05-08  Bruno Haible  <bruno@clisp.org>
37296         Tests for module 'system-quote'.
37297         * modules/system-quote-tests: New file.
37298         * tests/test-system-quote.sh: New file.
37299         * tests/test-system-quote-main.c: New file.
37300         * tests/test-system-quote-child.c: New file.
37302         New module 'system-quote'.
37303         * lib/system-quote.h: New file.
37304         * lib/system-quote.c: New file.
37305         * modules/system-quote: New file.
37307 2012-05-08  Bruno Haible  <bruno@clisp.org>
37309         sh-quote: Make C++ safe and allow multiple inclusion.
37310         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
37311         declarations in extern "C".
37313 2012-05-08  Bruno Haible  <bruno@clisp.org>
37315         sh-quote tests: Make tests stricter.
37316         * tests/test-sh-quote.c (check_one): Check the return value of
37317         shell_quote_copy.
37318         (main): Check a string with a CR character. Check a string that
37319         contains UCHAR_MAX.
37321 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
37323         warnings.m4: provide a means to specify the program to compile.
37324         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
37325         (gl_WARN_ADD): here.
37326         Use gl_AS_VAR_APPEND.
37327         Support an argument to specify the program to compile.
37328         (gl_WARN_ADD): Accept an argument to specify the program to compile.
37329         AC_SUBST the WARN_CFLAGS when they are used.
37330         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
37331         leave this to gl_WARN_ADD.
37333 2012-05-08  Eric Blake  <eblake@redhat.com>
37335         doc: recommendations on gettext version
37336         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
37337         choice between versions.
37338         * DEPENDENCIES (gettext): Cover both approaches.
37340 2012-05-08  Jim Meyering  <meyering@redhat.com>
37342         init.sh: explain why EXEEXT support uses aliases rather than functions
37343         * tests/init.sh: Add a comment.
37345         init.sh: don't let bash aliases interfere with tests
37346         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
37347         is bash.  This avoids problems for those who alias standard commands to
37348         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
37349         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
37351 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37353         stdint: be more consistent with glibc, SunOS libc
37354         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
37355         (gl_int_fast16_t, gl_uint_fast16_t)
37356         (gl_int_fast32_t, gl_uint_fast32_t)
37357         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
37358         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
37359         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37360         Be consistent with glibc by default, and with SunOS 5.10 and later
37361         if __sun is defined.  This lessens the likelihood of clashes if
37362         code compiled for older hosts is combined with code compiled for
37363         newer ones.  Problem reported by Niels Möller in
37364         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
37366 2012-05-07  Eric Blake  <eblake@redhat.com>
37368         isatty: relax license to LGPLv2+
37369         * modules/isatty (License): Relax license.
37371 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37373         stat-size: comment fix
37374         * lib/stat-size.h: Remove obsolete comment about indenting.
37376 2012-05-06  Bruno Haible  <bruno@clisp.org>
37378         Tests for module 'sh-quote'.
37379         * modules/sh-quote-tests: New file.
37380         * tests/test-sh-quote.c: New file.
37382 2012-05-06  Bruno Haible  <bruno@clisp.org>
37384         sh-quote: Improve shell_quote_argv's signature.
37385         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
37386         * lib/sh-quote.c (shell_quote_argv): Likewise.
37388 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37390         stdint: document issues with int_fast8_t etc.
37391         * doc/posix-headers/stdint.texi (stdint.h): Say that other
37392         stdint.h substitutes may define these types differently.  See
37393         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
37395 2012-05-05  Bruno Haible  <bruno@clisp.org>
37397         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
37398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
37399         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
37400         or 'guessing no (mishandles large arguments)'.
37402 2012-05-05  Bruno Haible  <bruno@clisp.org>
37404         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
37405         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
37406         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
37407         set gl_cv_func_link_follows_symlink to "guessing no".
37409 2012-05-05  Bruno Haible  <bruno@clisp.org>
37411         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
37412         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
37413         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
37414         "guessing no".
37415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
37417 2012-05-05  Bruno Haible  <bruno@clisp.org>
37419         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
37420         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
37421         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
37422         set gl_cv_struct_dirent_d_ino to "guessing yes".
37424 2012-05-05  Bruno Haible  <bruno@clisp.org>
37426         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
37427         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
37428         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
37429         "guessing yes".
37431 2012-05-05  Bruno Haible  <bruno@clisp.org>
37433         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
37434         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
37435         compiling to a glibc system, set gl_cv_func_signbit and
37436         gl_cv_func_signbit_gcc to "guessing yes".
37438 2012-05-05  Bruno Haible  <bruno@clisp.org>
37440         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
37441         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
37442         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
37443         to "guessing yes".
37444         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
37445         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
37447 2012-05-05  Bruno Haible  <bruno@clisp.org>
37449         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
37450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
37451         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
37452         gl_cv_func_realpath_works to "guessing yes".
37454 2012-05-05  Bruno Haible  <bruno@clisp.org>
37456         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
37457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
37458         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
37460 2012-05-04  Bruno Haible  <bruno@clisp.org>
37462         Tweak last commit.
37463         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
37464         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37466 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
37468         unistd_h: make it easier to avoid sys_types_h
37469         This is useful for Emacs, which has its own method of porting to
37470         Windows, and which therefore does not need the sys_types_h module.
37471         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
37472         code moved here from gl_SYS_TYPES_H.
37473         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
37474         using the code directly.
37475         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
37476         gl_SYS_TYPES_H.
37477         * modules/sys_types (Files):
37478         * modules/unistd (Files): Add m4/off_t.m4.
37480 2012-05-03  Bruno Haible  <bruno@clisp.org>
37482         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
37483         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
37484         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
37485         "guessing yes" or "guessing no".
37486         (gl_FUNC_LSTAT): Update.
37487         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
37488         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37489         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
37491 2012-05-03  Bruno Haible  <bruno@clisp.org>
37493         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
37494         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
37495         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
37496         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
37497         cross-compiling, choose the first alternative on glibc systems.
37498         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
37500 2012-05-03  Bruno Haible  <bruno@clisp.org>
37502         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
37503         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
37504         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
37506 2012-05-03  Bruno Haible  <bruno@clisp.org>
37508         chown: Avoid "guessing no" when cross-compiling to glibc systems.
37509         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
37511 2012-05-03  Bruno Haible  <bruno@clisp.org>
37513         Avoid "guessing no" guesses when cross-compiling to glibc systems.
37514         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
37515         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
37516         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
37517         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
37518         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
37519         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
37520         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
37521         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
37522         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
37523         compiling to glibc systems, set gl_cv_func_chown_slash_works,
37524         gl_cv_func_chown_ctime_works to "guessing yes".
37525         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
37526         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
37527         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
37528         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
37529         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
37530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
37531         compiling to glibc systems, set gl_cv_func_open_directory_works to
37532         "guessing yes".
37533         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
37534         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
37535         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
37536         "guessing yes".
37537         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
37538         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
37539         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
37540         compiling to glibc systems, set gl_cv_func_floorf_ieee to
37541         "guessing yes".
37542         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
37543         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
37544         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
37545         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
37546         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
37547         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
37548         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
37549         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
37550         "guessing yes".
37551         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
37552         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
37553         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
37554         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
37555         "guessing yes".
37556         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
37557         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
37558         "guessing yes".
37559         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
37560         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
37561         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
37562         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
37563         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
37564         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
37565         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
37566         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
37567         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
37568         compiling to glibc systems, set gl_cv_func_log10f_ieee to
37569         "guessing yes".
37570         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
37571         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
37572         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
37573         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
37574         "guessing yes".
37575         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
37576         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
37577         "guessing yes".
37578         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
37579         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
37580         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
37581         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
37582         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
37583         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
37584         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
37585         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
37586         compiling to glibc systems, set gl_cv_func_mkfifo_works to
37587         "guessing yes".
37588         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
37589         compiling to glibc systems, set gl_cv_func_mknod_works to
37590         "guessing yes".
37591         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
37592         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
37593         "guessing yes".
37594         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
37595         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
37596         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
37597         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
37598         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
37599         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
37600         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
37601         compiling to glibc systems, set gl_cv_func_svid_putenv to
37602         "guessing yes".
37603         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
37604         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
37605         "guessing yes".
37606         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
37607         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
37608         "guessing yes".
37609         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
37610         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
37611         to "guessing yes".
37612         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
37613         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
37614         to "guessing yes".
37615         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
37616         compiling to glibc systems, set gl_cv_func_rmdir_works to
37617         "guessing yes".
37618         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
37619         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
37620         gl_cv_func_unlink_parent_fails to "guessing yes".
37621         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
37622         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
37623         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
37624         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
37625         gl_cv_func_rename_dest_works to "guessing yes".
37626         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
37627         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
37628         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
37629         compiling to glibc systems, set gl_cv_func_roundf_ieee to
37630         "guessing yes".
37631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
37632         compiling to glibc systems, set gl_cv_func_roundl_ieee to
37633         "guessing yes".
37634         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
37635         compiling to glibc systems, set gl_cv_func_setenv_works to
37636         "guessing yes".
37637         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
37638         compiling to glibc systems, set gl_cv_func_unsetenv_works to
37639         "guessing yes".
37640         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
37641         compiling to glibc systems, set gl_cv_func_sleep_works to
37642         "guessing yes".
37643         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
37644         compiling to glibc systems, set gl_cv_func_stat_file_slash to
37645         "guessing yes".
37646         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
37647         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
37648         "guessing yes".
37649         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
37650         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
37651         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
37652         compiling to glibc systems, set gl_cv_func_truncf_ieee to
37653         "guessing yes".
37654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
37655         compiling to glibc systems, set gl_cv_func_truncl_ieee to
37656         "guessing yes".
37657         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
37658         compiling to glibc systems, set gl_cv_func_usleep_works to
37659         "guessing yes".
37660         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
37661         compiling to glibc systems, set gl_cv_func_futimesat_works to
37662         "guessing yes".
37664 2012-05-03  Bruno Haible  <bruno@clisp.org>
37666         Say "guessing yes" or "guessing no" when cross-compiling.
37667         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
37668         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
37669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
37670         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
37671         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
37672         am_cv_func_working_getline to "guessing yes" or "guessing no".
37673         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
37674         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
37675         (gl_FUNC_MEMMEM): When cross-compiling, set
37676         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
37677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
37678         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
37679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
37680         set gl_cv_func_strcasestr_works_always to "guessing yes" or
37681         "guessing no".
37682         (gl_FUNC_STRCASESTR): When cross-compiling, set
37683         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
37684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
37685         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
37686         (gl_FUNC_STRSTR): When cross-compiling, set
37687         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
37688         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
37689         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
37690         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
37691         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
37693 2012-05-01  Bruno Haible  <bruno@clisp.org>
37695         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
37696         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
37697         * build-aux/reloc-ldflags: Likewise.
37698         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
37700 2012-05-01  Bruno Haible  <bruno@clisp.org>
37702         gnulib-tool: Remove transitional code.
37703         * gnulib-tool: Don't warn about --import with 0 arguments any more.
37704         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37706 2012-05-01  Bruno Haible  <bruno@clisp.org>
37708         getcwd: Fix misindentation.
37709         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
37711 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
37713         exclude: process exclude and include directives in order
37714         This restores the pre-2009 behavior, and is part of a fix of a
37715         grep bug reported by Quentin Arce in
37716         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
37717         * lib/exclude.c (struct exclude): Remove 'tail' member.
37718         (new_exclude_segment): Prepend the new segment instead of appending.
37719         Return void, since that's now more convenient.
37720         (file_pattern_matches): Renamed from excluded_file_pattern_p.
37721         (file_name_matches): Renamed from excluded_file_name_p.
37722         (file_pattern_matches, file_name_matches):
37723         Return true if the pattern matches, not if it excludes.
37724         All callers changed.
37725         (excluded_file_name): Process the list in reverse order;
37726         since the list is now reversed this restores the pre-2009 behavior.
37727         (add_exclude): Adjust to new reversed-order list.  Use local var
37728         rather than macro, for clarity.
37729         * tests/test-exclude7.sh: Adjust to corrected behavior.
37731         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
37732         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
37733         it's not possible here.  Handle the case of \ at end of pattern
37734         without dumping core.
37735         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
37737         _Noreturn: future-proof non-GNU and non-MSVC compilers
37738         * build-aux/snippet/_Noreturn.h (_Noreturn):
37739         * m4/gnulib-common.m4 (gl_COMMON_BODY):
37740         Do not define _Noreturn if __STDC_VERSION__ indicates this is
37741         C11 or later.  This is more likely to work with random future C
37742         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
37743         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
37745         exclude: handle wildcards with FNM_EXTMATCH
37746         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
37747         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
37748         comment that "has wildcards" really means "has or may have
37749         wildcards".  Simplify by avoiding the need to call strcspn.
37751 2012-04-29  Bruno Haible  <bruno@clisp.org>
37753         gnulib-tool: Fix list of authors.
37754         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
37756 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
37758         bootstrap: support Automake-NG in $buildreq
37759         * bootstrap (check_versions): Handle automake and aclocal from
37760         Automake-NG specially.  They can be specified as respectively
37761         the "automake-ng" and "aclocal-ng" requirements.
37763 2012-04-25  Eric Blake  <eblake@redhat.com>
37765         bootstrap: only force latest Makefile.in.in for gettext module
37766         * build-aux/bootstrap (with_gettext): Only install latest
37767         Makefile.in.in for projects requesting bleeding edge gettext.
37769 2012-04-22  Bruno Haible  <bruno@clisp.org>
37771         doc: Mention reason for replacement on glibc/Linux systems.
37772         * doc/posix-functions/dprintf.texi: Mention the problem with special
37773         'long double' values.
37774         * doc/posix-functions/fprintf.texi: Likewise.
37775         * doc/posix-functions/printf.texi: Likewise.
37776         * doc/posix-functions/snprintf.texi: Likewise.
37777         * doc/posix-functions/sprintf.texi: Likewise.
37778         * doc/posix-functions/vdprintf.texi: Likewise.
37779         * doc/posix-functions/vfprintf.texi: Likewise.
37780         * doc/posix-functions/vprintf.texi: Likewise.
37781         * doc/posix-functions/vsnprintf.texi: Likewise.
37782         * doc/posix-functions/vsprintf.texi: Likewise.
37783         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
37784         platforms with F_DUPFD_CLOEXEC problems.
37785         * doc/posix-functions/glob.texi: Mention which platforms are affected
37786         by the problem with symbolic links.
37787         * doc/posix-functions/linkat.texi: Mention the problem with
37788         AT_SYMLINK_FOLLOW on Linux.
37790 2012-04-22  Bruno Haible  <bruno@clisp.org>
37792         pwrite: Don't replace on all platforms.
37793         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
37795 2012-04-22  Bruno Haible  <bruno@clisp.org>
37797         rint* tests: Avoid gcc warnings.
37798         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
37799         * tests/test-rintf.c (INFINITY, NAN): Likewise.
37800         * tests/test-rintl.c (INFINITY, NAN): Likewise.
37802 2012-04-21  Bruno Haible  <bruno@clisp.org>
37804         users.txt: Update.
37805         * users.txt: Add freedink, wdiff. Update URLs for projects that have
37806         switched from CVS to git, bzr, or svn.
37808 2012-04-21  Bruno Haible  <bruno@clisp.org>
37810         Large File Support for native Windows platforms.
37812         * m4/largefile.m4 (gl_LARGEFILE): New macro.
37813         * modules/largefile (configure.ac): Require gl_LARGEFILE.
37815         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
37816         type.
37817         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
37818         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
37819         * doc/posix-headers/sys_types.texi: Mention the effect of the
37820         'largefile' module.
37822         * lib/fcntl.in.h: Add comments about off_t.
37823         * modules/fcntl-h (Depends-on): Add sys_types.
37825         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
37826         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
37827         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
37828         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
37829         * modules/unistd (Depends-on): Add sys_types.
37830         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
37832         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
37833         instead of lseek.
37834         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
37835         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
37836         * modules/lseek (Depends-on): Add sys_types.
37838         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
37839         msvc-nothrow.h.
37840         (SetFileSize): New function.
37841         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
37842         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
37843         if Large File Support is requested.
37844         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
37845         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
37847         * lib/stdio.in.h: Add comments about off_t.
37848         * modules/stdio (Depends-on): Add sys_types.
37850         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
37851         instead of ftello.
37852         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
37853         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
37854         (gl_PREREQ_FTELLO): New macro.
37855         * modules/ftello (Depends-on): Add sys_types.
37856         (configure.ac): Incoke gl_PREREQ_FTELLO.
37858         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
37859         instead of fseeko.
37860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
37861         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
37862         (gl_PREREQ_FSEEKO): New macro.
37863         * modules/fseeko (Depends-on): Add sys_types.
37864         (configure.ac): Invoke gl_PREREQ_FSEEKO.
37866         * lib/sys_stat.in.h: Add comments about off_t.
37867         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
37868         64-bit integer for st_size in 'struct stat'.
37869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
37870         Define _GL_WINDOWS_64_BIT_ST_SIZE.
37871         * modules/sys_stat (Depends-on): Add sys_types.
37872         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
37874         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
37875         instead of stat or _stat.
37877         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
37878         'struct _stati64' instead of fstat and 'struct stat'.
37879         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
37880         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
37882         Reported by Ray Satiro <raysatiro@yahoo.com>.
37884 2012-04-19  Eric Blake  <eblake@redhat.com>
37886         bootstrap: accommodate older libtool
37887         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
37888         Reported by Daniel P. Berrange.
37890 2012-04-19  Jim Meyering  <meyering@redhat.com>
37892         announce-gen: avoid failure due to lack of Digest::SHA1
37893         Even with the preferred Digest::SHA available, this script
37894         would fail when the backup module, Digest::SHA1, was not installed.
37895         * build-aux/announce-gen: Quote the conditional use of "use".
37896         Reported by Reuben Thomas in:
37897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
37899         bootstrap: don't let a user's CDPATH setting affect this script
37900         When CDPATH is set, cd will sometimes generate output.
37901         When "cd" is run in a subshell whose output matters, that
37902         surprising-to-some output can cause malfunction.
37903         Unsetting CDPATH turns off this shell "feature."
37904         * build-aux/bootstrap (CDPATH): Unset.
37905         Reported by Reuben Thomas in:
37906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
37907         and inspired by his patch here:
37908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
37910 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
37911         and Jim Meyering  <meyering@redhat.com>
37913         maint.mk: catch "see @xref{}" and similar
37914         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
37915         prohibit "See also @xref{", "Also see @pxref{", and similar.
37917 2012-04-16  Jim Meyering  <meyering@redhat.com>
37919         bootstrap: really use gnulib's po/Makefile.in.in
37920         * build-aux/bootstrap: Correct the source file name in previous change.
37921         Reported by Akim Demaille.
37923         configmake: correct minor inconsistency in Makefile rule
37924         * modules/configmake (Makefile.am): All other rules like this one
37925         run the final "mv -f ..." in the same backslash-continued command
37926         as the one that does everything else.  This one put the mv -f ...
37927         command on a separate, non-backslash-continued line.
37928         Make it like the others.
37930         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
37931         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
37932         the one from gettext.  Reported by Akim Demaille.
37934 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
37936         Fix recursion of install-* into po directories.
37937         Bison's install-pdf bug reported by Hans Aberg at
37938         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
37939         * build-aux/po/Makefile.in.in (install-dvi, install-html)
37940         (install-info, install-pdf, install-ps): New targets.
37942 2012-04-16  Jim Meyering  <meyering@redhat.com>
37944         maint: avoid spurious "make sc_maint" failure
37945         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
37946         exempt all *.class file names, for lib/javaversion.class.
37948 2012-04-15  Bruno Haible  <bruno@clisp.org>
37950         lseek: Make configure test independent of environment.
37951         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
37952         Windows, we know that lseek() on pipes is broken; skip the runtime
37953         test.
37955 2012-04-14  Bruno Haible  <bruno@clisp.org>
37957         stat: Bypass buggy override in mingw64.
37958         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
37959         * lib/stat.c (stat) [mingw64]: Define to _stat.
37960         * doc/posix-functions/stat.texi: Mention mingw64 bug.
37962 2012-04-14  Bruno Haible  <bruno@clisp.org>
37964         pathmax: Fix compilation error on MSVC 9.
37965         * modules/pathmax (Depends-on): Add unistd.
37967 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
37969         README: document pointer comparison assumption
37970         * README (Portability guidelines): Document assumption about
37971         pointer comparisons, in response to a recent bug-gnulib comment by
37972         Jeffrey Kegler.
37974 2012-04-12  Bruno Haible  <bruno@clisp.org>
37976         Tests for module 'getrusage'.
37977         * modules/getrusage-tests: New file.
37978         * tests/test-getrusage.c: New file.
37980         New module 'getrusage'.
37981         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
37982         warn-on-use.h.
37983         (getrusage): New declaration.
37984         * lib/getrusage.c: New file.
37985         * m4/getrusage.m4: New file.
37986         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
37987         is declared.
37988         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
37989         HAVE_GETRUSAGE.
37990         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
37991         snippet/c++defs, snippet/warn-on-use.
37992         (Makefile.am): Update generation of sys/resource.h. Substitute
37993         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
37994         * modules/getrusage: New file.
37995         * doc/posix-functions/getrusage.texi: Mention the new module.
37997 2012-04-12  Bruno Haible  <bruno@clisp.org>
37999         Tests for module 'sys_resource'.
38000         * modules/sys_resource-tests: New file.
38001         * tests/test-sys_resource.c: New file.
38003         New module 'sys_resource'.
38004         * lib/sys_resource.in.h: New file.
38005         * m4/sys_resource_h.m4: New file.
38006         * modules/sys_resource: New file.
38007         * doc/posix-headers/sys_resource.texi: Mention the new module.
38009 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
38011         ioctl: Fix compilation error on mingw.
38012         * lib/ioctl.c: Include <windows.h>.
38013         Also reported by Ray Satiro <raysatiro@yahoo.com>.
38015 2012-04-04  Jim Meyering  <meyering@redhat.com>
38017         regex: correct #pragma guard expression
38018         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
38019         not 4.3.  Correct its cpp guard expression.
38021 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38023         regex: remove unnecessary type punning
38024         Problem reported by Vladimir Serbinenko in
38025         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
38026         * lib/regex.h (struct re_pattern_buffer): Change the type of
38027         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
38028         Fix comment to match code.
38029         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
38030         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
38031         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38032         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
38033         (set_regs):
38034         Omit no-longer-necessary casts.
38036 2012-04-03  Bruno Haible  <bruno@clisp.org>
38038         Tests for module 'ilogbl'.
38039         * modules/ilogbl-tests: New file.
38040         * tests/test-ilogbl.c: New file.
38042         New module 'ilogbl'.
38043         * lib/math.in.h (ilogbl): New declaration.
38044         * lib/ilogbl.c: New file.
38045         * m4/ilogbl.m4: New file.
38046         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
38047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
38048         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
38049         Split sed invocation, to avoid the limit of 100 substitutions of
38050         HP-UX 'sed'.
38051         * modules/ilogbl: New file.
38052         * tests/test-math-c++.cc: Check the declaration of ilogbl.
38053         * doc/posix-functions/ilogbl.texi: Mention the new module.
38055 2012-04-03  Bruno Haible  <bruno@clisp.org>
38057         Tests for module 'ilogbf'.
38058         * modules/ilogbf-tests: New file.
38059         * tests/test-ilogbf.c: New file.
38061         New module 'ilogbf'.
38062         * lib/math.in.h (ilogbf): New declaration.
38063         * lib/ilogbf.c: New file.
38064         * m4/ilogbf.m4: New file.
38065         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
38066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
38067         REPLACE_ILOGBF.
38068         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
38069         REPLACE_ILOGBF.
38070         * modules/ilogbf: New file.
38071         * tests/test-math-c++.cc: Check the declaration of ilogbf.
38072         * doc/posix-functions/ilogbf.texi: Mention the new module.
38074 2012-04-03  Bruno Haible  <bruno@clisp.org>
38076         Tests for module 'ilogb'.
38077         * modules/ilogb-tests: New file.
38078         * tests/test-ilogb.c: New file.
38079         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
38080         tests/test-logb-ieee.h.
38082         New module 'ilogb'.
38083         * lib/math.in.h (ilogb): New declaration.
38084         * lib/ilogb.c: New file.
38085         * m4/ilogb.m4: New file.
38086         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
38087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
38088         REPLACE_ILOGB.
38089         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
38090         REPLACE_ILOGB.
38091         * modules/ilogb: New file.
38092         * tests/test-math-c++.cc: Check the declaration of ilogb.
38093         * doc/posix-functions/ilogb.texi: Mention the new module.
38095 2012-04-03  Bruno Haible  <bruno@clisp.org>
38097         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
38098         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
38099         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
38100         (main): Check their values.
38101         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
38102         problem.
38104 2012-04-03  Bruno Haible  <bruno@clisp.org>
38106         Tests for module 'logbl-ieee'.
38107         * modules/logbl-ieee-tests: New file.
38108         * tests/test-logbl-ieee.c: New file.
38110         New module 'logbl-ieee'.
38111         * modules/logbl-ieee: New file.
38113         Tests for module 'logb-ieee'.
38114         * modules/logb-ieee-tests: New file.
38115         * tests/test-logb-ieee.c: New file.
38117         New module 'logb-ieee'.
38118         * modules/logb-ieee: New file.
38120         Tests for module 'logbf-ieee'.
38121         * modules/logbf-ieee-tests: New file.
38122         * tests/test-logbf-ieee.c: New file.
38123         * tests/test-logb-ieee.h: New file.
38125         New module 'logbf-ieee'.
38126         * modules/logbf-ieee: New file.
38128 2012-04-03  Bruno Haible  <bruno@clisp.org>
38130         Tests for module 'logbl'.
38131         * modules/logbl-tests: New file.
38132         * tests/test-logbl.c: New file.
38134         New module 'logbl'.
38135         * lib/math.in.h (logbl): New declaration.
38136         * lib/logbl.c: New file.
38137         * m4/logbl.m4: New file.
38138         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
38139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
38140         REPLACE_LOGBL.
38141         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
38142         REPLACE_LOGBL.
38143         * modules/logbl: New file.
38144         * tests/test-math-c++.cc: Check the declaration of logbl.
38145         * doc/posix-functions/logbl.texi: Mention the new module.
38147 2012-04-02  Bruno Haible  <bruno@clisp.org>
38149         Tests for module 'logbf'.
38150         * modules/logbf-tests: New file.
38151         * tests/test-logbf.c: New file.
38153         New module 'logbf'.
38154         * lib/math.in.h (logbf): New declaration.
38155         * lib/logbf.c: New file.
38156         * m4/logbf.m4: New file.
38157         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
38158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
38159         REPLACE_LOGBF.
38160         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
38161         REPLACE_LOGBF.
38162         * modules/logbf: New file.
38163         * tests/test-math-c++.cc: Check the declaration of logbf.
38164         * doc/posix-functions/logbf.texi: Mention the new module.
38166 2012-04-02  Bruno Haible  <bruno@clisp.org>
38168         logb tests: More tests.
38169         * tests/test-logb.h: New file, based on tests/test-logb.c and
38170         tests/test-frexp.h.
38171         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
38172         (main): Just invoke test_function.
38173         * modules/logb-tests (Files): Add tests/test-logb.h,
38174         tests/minus-zero.h, tests/randomd.c.
38175         (Makefile.am): Add randomd.c to test_logb_SOURCES.
38177         logb: Provide replacement and workarounds.
38178         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
38179         is 1.
38180         * lib/logb.c: New file.
38181         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
38182         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
38183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
38184         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
38185         * modules/logb (Files): Add lib/logb.c.
38186         (Depends-on): Add isfinite, frexp, isnand.
38187         (configure.ac): Compile the replacement code logb.c if needed.
38188         * tests/test-math-c++.cc: Check the declaration of logb.
38189         * doc/posix-functions/logb.texi: Mention the replacement and the bug
38190         with subnormal numbers.
38192 2012-04-02  Bruno Haible  <bruno@clisp.org>
38194         log10* tests: Speed up.
38195         * tests/test-log10.h (test_function): Reduce amount of random numbers
38196         to test.
38198 2012-04-01  Bruno Haible  <bruno@clisp.org>
38200         logf-ieee: Fix test whether logf works.
38201         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
38203 2012-04-01  Bruno Haible  <bruno@clisp.org>
38205         log10l: Work around log10l-ieee test failure on IRIX 6.5.
38206         * lib/log10l.c: Include <float.h>
38207         (log10l): On IRIX, normalize the +Infinity value.
38208         * modules/log10l (Depends-on): Add 'float'.
38209         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
38210         +Infinity.
38212         log10f-ieee: Work around test failure on NetBSD 5.1.
38213         * m4/log10f-ieee.m4: New file.
38214         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
38215         test whether log10f works with a negative argument. Replace it if not.
38216         * lib/log10f.c (log10f): For negative arguments, return NaN.
38217         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
38218         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
38219         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
38221         log10f-ieee: Work around test failure on Solaris 9.
38222         * modules/log10f-ieee (Depends-on): Add log10-ieee.
38223         (configure.ac): Require gl_FUNC_LOG10F.
38225         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38226         * m4/log10-ieee.m4: New file.
38227         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
38228         whether log10 works with a negative argument. Replace it if not.
38229         * lib/log10.c (log10): For negative arguments, return NaN.
38230         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
38231         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
38232         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
38234         Tests for module 'log10l-ieee'.
38235         * modules/log10l-ieee-tests: New file.
38236         * tests/test-log10l-ieee.c: New file.
38238         New module 'log10l-ieee'.
38239         * modules/log10l-ieee: New file.
38241         Tests for module 'log10-ieee'.
38242         * modules/log10-ieee-tests: New file.
38243         * tests/test-log10-ieee.c: New file.
38245         New module 'log10-ieee'.
38246         * modules/log10-ieee: New file.
38248         Tests for module 'log10f-ieee'.
38249         * modules/log10f-ieee-tests: New file.
38250         * tests/test-log10f-ieee.c: New file.
38251         * tests/test-log10-ieee.h: New file.
38253         New module 'log10f-ieee'.
38254         * modules/log10f-ieee: New file.
38256 2012-04-01  Bruno Haible  <bruno@clisp.org>
38258         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
38259         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
38260         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
38261         workaround.
38262         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
38263         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
38264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
38265         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
38266         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
38267         (Depends-on): Update conditions.
38268         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
38269         IRIX 6.5, OSF/1 5.1 problems.
38271 2012-04-01  Bruno Haible  <bruno@clisp.org>
38273         log10f: Work around OSF/1 5.1 bug.
38274         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
38275         * lib/log10f.c (log10f): If logf exists, use it and provide just the
38276         workaround.
38277         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
38278         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
38279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
38280         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
38281         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
38282         (Depends-on): Update conditions.
38283         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
38285 2012-04-01  Bruno Haible  <bruno@clisp.org>
38287         log10: Work around OSF/1 5.1 bug.
38288         * lib/math.in.h (log10): New declaration.
38289         * lib/log10.c: New file.
38290         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
38291         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
38292         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
38293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
38294         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
38295         * modules/log10 (Files): Add lib/log10.c.
38296         (Depends-on): Add math.
38297         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
38298         * tests/test-math-c++.cc: Check the declaration of log10.
38299         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
38301 2012-03-31  Bruno Haible  <bruno@clisp.org>
38303         log10l tests: More tests.
38304         * modules/log10l-tests (Files): Add tests/test-log10l.h,
38305         tests/minus-zero.h, tests/randoml.c.
38306         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
38307         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
38308         (main): Invoke test_function.
38310         log10f tests: More tests.
38311         * modules/log10f-tests (Files): Add tests/test-log10.h,
38312         tests/minus-zero.h, tests/randomf.c.
38313         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
38314         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
38315         (main): Invoke test_function.
38317         log10 tests: More tests.
38318         * tests/test-log10.h: New file.
38319         * modules/log10-tests (Files): Add tests/test-log10.h,
38320         tests/minus-zero.h, tests/randomd.c.
38321         (Makefile.am): Add randomd.c to test_log10_SOURCES.
38322         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
38323         (main): Invoke test_function.
38325 2012-03-31  Simon Josefsson  <simon@josefsson.org>
38327         fflush: Fix syntax error.
38328         * lib/fflush.c: Include unused-parameter.h, needed for
38329         _GL_UNUSED_PARAMETER.
38330         * modules/fflush (Depends-on): Add snippet/unused-parameter.
38332 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38334         regex: pacify GCC when compiling GRUB
38335         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
38336         a diagnostic.  Reported by Vladimir Serbinenko in
38337         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
38339 2012-03-29  Eric Blake  <eblake@redhat.com>
38341         stdio: don't assume gets any more
38342         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
38343         support.
38344         * modules/stdio (Makefile.am): Likewise.
38345         * lib/stdio-read.c (gets): Likewise.
38346         * tests/test-stdio-c++.cc: Likewise.
38347         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
38348         * lib/stdio.in.h (gets): Make warning occur in more places.
38349         * doc/posix-functions/gets.texi (gets): Update documentation.
38350         Reported by Christer Solskogen.
38352         maint.mk: fix syntax checks without exclusions
38353         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
38354         Reported by Daniel P. Berrange.
38356         strerror_r: avoid compiler warning
38357         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
38358         level.
38360         fflush: avoid compiler warning
38361         * lib/fflush.c (update_fpos_cache): Mark variables that are
38362         potentially unused.
38364 2012-03-25  Bruno Haible  <bruno@clisp.org>
38366         Tests for module 'localeconv'.
38367         * modules/localeconv-tests: New file.
38368         * tests/test-localeconv.c: New file.
38370         New module 'localeconv'.
38371         * lib/locale.in.h (localeconv): New declaration.
38372         * lib/localeconv.c: New file.
38373         * m4/localeconv.m4: New file.
38374         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
38375         REPLACE_LOCALECONV.
38376         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
38377         REPLACE_LOCALECONV.
38378         * modules/localeconv: New file.
38379         * modules/nl_langinfo (Depends-on): Add localeconv.
38380         * modules/human (Depends-on): Likewise.
38381         * doc/posix-functions/localeconv.texi: Mention the new module.
38383 2012-03-25  Bruno Haible  <bruno@clisp.org>
38385         locale: Provide a complete 'struct lconv'.
38386         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
38387         'struct lconv' does not contain int_p_cs_precedes.
38388         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
38389         * doc/posix-headers/locale.texi: Update.
38391         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
38392         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
38393         * doc/posix-headers/locale.texi: Update.
38395         locale: Provide a working 'struct lconv'.
38396         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
38397         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
38398         'struct lconv' does not even contain decimal_point.
38399         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
38400         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
38401         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
38402         * doc/posix-headers/locale.texi: Mention the problems with
38403         'struct lconv'.
38404         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
38406 2012-03-24  Bruno Haible  <bruno@clisp.org>
38408         Enable common subexpression optimization in GCC.
38409         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
38410         macros.
38411         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
38412         GCC attribute 'const'.
38413         (uc_locale_language): Declare with GCC attribute 'pure'.
38414         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
38415         with GCC attribute 'const'.
38416         * lib/unictype.in.h (uc_is_general_category_withtable,
38417         uc_combining_class, uc_combining_class_name,
38418         uc_combining_class_long_name, uc_bidi_class_name,
38419         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
38420         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
38421         uc_decimal_value, uc_digit_value, uc_numeric_value,
38422         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
38423         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
38424         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
38425         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
38426         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
38427         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
38428         Declare with GCC attribute 'const'.
38429         (uc_general_category_name, uc_general_category_long_name,
38430         uc_general_category_byname, uc_general_category,
38431         uc_is_general_category, uc_combining_class_byname,
38432         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
38433         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
38434         Declare with GCC attribute 'pure'.
38435         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
38436         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
38437         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
38438         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
38439         with GCC attribute 'pure'.
38440         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
38441         'const'.
38442         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
38443         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
38444         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
38445         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
38446         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
38447         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
38448         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
38449         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
38450         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
38451         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
38452         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
38453         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
38454         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
38455         GCC attribute 'pure'.
38456         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
38457         'const'.
38458         * lib/uniwidth.in.h (uc_width): Simplify declaration.
38459         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
38460         u32_strwidth): Declare with GCC attribute 'pure'.
38462         Enable common subexpression optimization in GCC.
38463         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
38464         (alphasort): Declare with GCC attribute 'pure'.
38465         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
38466         (atoll): Declare with GCC attribute 'pure'.
38467         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38468         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38469         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
38470         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
38471         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
38472         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
38473         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
38475 2012-03-24  Bruno Haible  <bruno@clisp.org>
38477         gnulib-tool: Avoid unintended error output from 'cmp'.
38478         * gnulib-tool (func_add_file, func_update_file, func_import): Use
38479         "cmp -s", not "cmp > /dev/null".
38481 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
38483         gnulib-tool: fix imprecise comments w.r.t. an automake bug
38485         It's not just Automake versions < 1.9b that creates an empty
38486         pkgdatadir at installation time if pkgdata_DATA is specified
38487         to empty; modern automake versions do this as well, at least
38488         until automake 1.11.4 (not yet released at the moment of writing,
38489         but soon to appear).  That behaviour was generally considered a
38490         feature rather than a bug, at least until this discussion:
38491         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
38493         See also automake bugs #10997 and #11030.
38495         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
38496         reference to relevant automake bug numbers.
38497         (func_emit_tests_Makefile_am): Likewise.
38499 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
38501         announce-gen: use Digest::SHA when possible
38502         * build-aux/announce-gen: Use Digest::SHA when possible, falling
38503         back to Digest::SHA1 if necessary.
38505 2012-03-20  Jim Meyering  <meyering@redhat.com>
38507         tests: avoid gcc warnings about argv vs. const initializers
38508         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
38509         warnings about discarding 'const' qualifier from pointer target type.
38510         * tests/test-posix_spawn2.c (main): Likewise.
38512 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
38514         README-release: simplify slightly
38515         * top/README-release: Run "git checkout master" only once.
38517 2012-03-15  Mark Wielaard  <mark@klomp.org>
38519         git-merge-changelog: add specific example on how to use with hg.
38520         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
38522 2012-03-18  Mark Wielaard  <mark@klomp.org>
38524         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
38526 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
38528         git-version-gen: don't let "prefix" envvar cause trouble
38529         * build-aux/git-version-gen (prefix): Initialize properly,
38530         so as not to use a value specified via the environment.
38531         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
38533 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38535         regex: diagnose too-large repeat counts in EREs
38536         Previously, the code did not diagnose the too-large repeat count
38537         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
38538         as if it were 'b\{1000000000}', which is unexpected.
38539         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
38540         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
38541         is a reasonable one for this problem.  Another option would be to
38542         create a new REG_OVERFLOW error for repeat counts that are too large.
38543         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
38544         count is too large, so that the caller can distinguish the two cases.
38545         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
38546         "Too large" return code, and that repeat counts are one example of this.
38548 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38550         doc: some glibc x32 integer width issues
38551         * doc/posix-headers/sys_types.texi (sys/types.h):
38552         * doc/posix-headers/time.texi (time.h):
38553         Mention that glibc x32 does not conform to POSIX in a couple of
38554         areas related to integer widths.
38556 2012-03-15  Bruno Haible  <bruno@clisp.org>
38558         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
38559         * lib/fma.c (VOLATILE): New macro.
38560         (FUNC): Use it to work around a GCC compiler bug.
38562 2012-03-13  Bruno Haible  <bruno@clisp.org>
38564         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38565         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
38566         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
38567         REPLACE_HYPOTL to 1.
38568         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
38570 2012-03-13  Bruno Haible  <bruno@clisp.org>
38572         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38573         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
38574         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
38575         REPLACE_REMAINDERL to 1.
38576         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
38577         bug.
38579 2012-03-13  Bruno Haible  <bruno@clisp.org>
38581         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38582         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
38583         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
38584         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
38585         too big rounding errors.
38586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
38587         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
38588         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
38589         (Depends-on): Update conditions.
38590         * tests/test-sqrtl.c (my_ldexpl): New function.
38591         (main): Add test of a particular value.
38592         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
38594 2012-03-13  Pádraig Brady  <P@draigBrady.com>
38596         doc: Update timer_* platform portability notes.
38597         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
38598         that always return ENOSYS.
38599         * doc/posix-functions/timer_delete.texi: Likewise.
38600         * doc/posix-functions/timer_gettime.texi: Likewise.
38601         * doc/posix-functions/timer_settime.texi: Likewise.
38603 2012-03-13  Bruno Haible  <bruno@clisp.org>
38605         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38606         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
38607         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
38608         REPLACE_CBRTL to 1.
38609         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
38611 2012-03-13  Bruno Haible  <bruno@clisp.org>
38613         remainderl: Avoid compilation error on AIX >= 5.2.
38614         * lib/math.in.h (remainderl): Undefine macro from the system header.
38616 2012-03-13  Bruno Haible  <bruno@clisp.org>
38618         Avoid compilation errors with MSVC option -fp:strict.
38619         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
38620         * lib/cbrtf.c: Likewise.
38621         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38623 2012-03-12  Bruno Haible  <bruno@clisp.org>
38625         uninorm: Don't crash in out-of-memory conditions.
38626         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
38627         gracefully.
38628         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
38629         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
38631 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
38633         quote: fix syntax-check
38634         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
38635         also exports quote_quoting_options.
38637 2012-03-12  Simon Josefsson  <simon@josefsson.org>
38639         Collapse list of copyright years to ranges.  See
38640         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
38641         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
38642         build-aux/csharpexec.sh.in, build-aux/gnupload,
38643         build-aux/install-reloc, build-aux/javacomp.sh.in,
38644         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
38645         build-aux/move-if-change, build-aux/reloc-ldflags,
38646         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
38648 2012-03-11  Bruno Haible  <bruno@clisp.org>
38650         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
38651         * m4/log2f-ieee.m4: New file.
38652         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
38653         whether log2f works with a minus zero argument. Replace it if not.
38654         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
38655         (Depends-on): Add log2-ieee.
38656         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
38657         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
38659         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
38660         * m4/log2-ieee.m4: New file.
38661         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
38662         whether log2 works with a minus zero argument. Replace it if not.
38663         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
38664         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
38665         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
38667         Tests for module 'log2l-ieee'.
38668         * modules/log2l-ieee-tests: New file.
38669         * tests/test-log2l-ieee.c: New file.
38671         New module 'log2l-ieee'.
38672         * modules/log2l-ieee: New file.
38674         Tests for module 'log2-ieee'.
38675         * modules/log2-ieee-tests: New file.
38676         * tests/test-log2-ieee.c: New file.
38678         New module 'log2-ieee'.
38679         * modules/log2-ieee: New file.
38681         Tests for module 'log2f-ieee'.
38682         * modules/log2f-ieee-tests: New file.
38683         * tests/test-log2f-ieee.c: New file.
38684         * tests/test-log2-ieee.h: New file.
38686         New module 'log2f-ieee'.
38687         * modules/log2f-ieee: New file.
38689 2012-03-11  Bruno Haible  <bruno@clisp.org>
38691         Tests for module 'log2l'.
38692         * modules/log2l-tests: New file.
38693         * tests/test-log2l.c: New file.
38695         New module 'log2l'.
38696         * lib/math.in.h (log2l): New declaration.
38697         * lib/log2l.c: New file.
38698         * m4/log2l.m4: New file.
38699         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
38700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
38701         REPLACE_LOG2L.
38702         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
38703         REPLACE_LOG2L.
38704         * modules/log2l: New file.
38705         * tests/test-math-c++.cc: Check the declaration of log2l.
38706         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
38707         and OSF/1 problems.
38709 2012-03-11  Bruno Haible  <bruno@clisp.org>
38711         Tests for module 'log2f'.
38712         * modules/log2f-tests: New file.
38713         * tests/test-log2f.c: New file.
38715         New module 'log2f'.
38716         * lib/math.in.h (log2f): New declaration.
38717         * lib/log2f.c: New file.
38718         * m4/log2f.m4: New file.
38719         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
38720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
38721         REPLACE_LOG2F.
38722         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
38723         REPLACE_LOG2F.
38724         * modules/log2f: New file.
38725         * tests/test-math-c++.cc: Check the declaration of log2f.
38726         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
38727         and OSF/1 and Cygwin problems.
38729 2012-03-11  Bruno Haible  <bruno@clisp.org>
38731         Tests for module 'log2'.
38732         * modules/log2-tests: New file.
38733         * tests/test-log2.c: New file.
38734         * tests/test-log2.h: New file.
38736         New module 'log2'.
38737         * lib/math.in.h (log2): New declaration.
38738         * lib/log2.c: New file.
38739         * m4/log2.m4: New file.
38740         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
38741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
38742         REPLACE_LOG2.
38743         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
38744         REPLACE_LOG2.
38745         * modules/log2: New file.
38746         * tests/test-math-c++.cc: Check the declaration of log2.
38747         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
38748         and OSF/1 and Cygwin problems.
38750 2012-03-11  Bruno Haible  <bruno@clisp.org>
38752         exp2* tests: More tests.
38753         * tests/test-exp2.h (test_function): Test all integral arguments that
38754         don't need to overflow or denormalized numbers.
38755         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
38756         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
38757         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
38759 2012-03-10  Bruno Haible  <bruno@clisp.org>
38761         log1pl-ieee: Work around test failure on AIX 7.1.
38762         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
38764         log1pl-ieee: Work around test failure on IRIX 6.5.
38765         * m4/log1pl-ieee.m4: New file.
38766         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
38767         test whether log1pl works with a minus zero argument. Replace it if
38768         not.
38769         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
38770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
38771         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
38772         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
38773         (Depends-on): Update conditions.
38774         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
38775         m4/signbit.m4.
38776         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
38777         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
38779         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
38780         * m4/log1pf-ieee.m4: New file.
38781         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
38782         test whether log1pf works with a minus zero argument. Replace it if
38783         not.
38784         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
38785         m4/signbit.m4.
38786         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
38787         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
38789         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
38790         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
38791         (configure.ac): Require gl_FUNC_LOG1PF.
38793         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
38794         * m4/log1p-ieee.m4: New file.
38795         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
38796         whether log1p works with a minus zero argument. Replace it if not.
38797         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
38798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
38799         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
38800         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
38801         (Depends-on): Update conditions.
38802         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
38803         m4/signbit.m4.
38804         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
38805         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
38807         Tests for module 'log1pl-ieee'.
38808         * modules/log1pl-ieee-tests: New file.
38809         * tests/test-log1pl-ieee.c: New file.
38811         New module 'log1pl-ieee'.
38812         * modules/log1pl-ieee: New file.
38814         Tests for module 'log1p-ieee'.
38815         * modules/log1p-ieee-tests: New file.
38816         * tests/test-log1p-ieee.c: New file.
38818         New module 'log1p-ieee'.
38819         * modules/log1p-ieee: New file.
38821         Tests for module 'log1pf-ieee'.
38822         * modules/log1pf-ieee-tests: New file.
38823         * tests/test-log1pf-ieee.c: New file.
38824         * tests/test-log1p-ieee.h: New file.
38826         New module 'log1pf-ieee'.
38827         * modules/log1pf-ieee: New file.
38829 2012-03-10  Bruno Haible  <bruno@clisp.org>
38831         Tests for module 'log1pl'.
38832         * modules/log1pl-tests: New file.
38833         * tests/test-log1pl.c: New file.
38835         New module 'log1pl'.
38836         * lib/math.in.h (log1pl): New declaration.
38837         * lib/log1pl.c: New file.
38838         * m4/log1pl.m4: New file.
38839         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
38840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
38841         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
38842         * modules/log1pl: New file.
38843         * tests/test-math-c++.cc: Check the declaration of log1pl.
38844         * doc/posix-functions/log1pl.texi: Mention the new module.
38846 2012-03-10  Bruno Haible  <bruno@clisp.org>
38848         Tests for module 'log1pf'.
38849         * modules/log1pf-tests: New file.
38850         * tests/test-log1pf.c: New file.
38852         New module 'log1pf'.
38853         * lib/math.in.h (log1pf): New declaration.
38854         * lib/log1pf.c: New file.
38855         * m4/log1pf.m4: New file.
38856         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
38857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
38858         REPLACE_LOG1PF.
38859         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
38860         REPLACE_LOG1PF.
38861         * modules/log1pf: New file.
38862         * tests/test-math-c++.cc: Check the declaration of log1pf.
38863         * doc/posix-functions/log1pf.texi: Mention the new module.
38865 2012-03-10  Bruno Haible  <bruno@clisp.org>
38867         log1p tests: More tests.
38868         * tests/test-log1p.h: New file.
38869         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
38870         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
38871         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
38872         (main): Invoke test_function.
38874         log1p: Provide replacement for Minix and MSVC.
38875         * lib/math.in.h (log1p): New declaration.
38876         * lib/log1p.c: New file.
38877         * m4/log1p.m4: New file.
38878         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
38879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
38880         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
38881         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
38882         (Depends-on): Add math, isnand, log, round.
38883         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
38884         HAVE_LOG1P is 0.
38885         * tests/test-math-c++.cc: Check the declaration of log1p.
38886         * doc/posix-functions/log1p.texi: Mention the replacement.
38888 2012-03-10  Bruno Haible  <bruno@clisp.org>
38890         math tests: Small simplification.
38891         * tests/test-exp.h (test_function): Use the same err_bound for
38892         'double' on platforms with sizeof (long double) == sizeof (double)
38893         than on platforms with sizeof (long double) > sizeof (double).
38894         * tests/test-exp2.h (test_function): Likewise.
38895         * tests/test-expm1.h (test_function): Likewise.
38896         * tests/test-log.h (test_function): Likewise.
38898 2012-03-10  Bruno Haible  <bruno@clisp.org>
38900         Fix some comments.
38901         * lib/expl.c: Fix an ambiguous comment.
38902         * lib/expm1.c: Likewise.
38903         * lib/expm1l.c: Likewise.
38904         * lib/exp2.c: Likewise.
38905         * lib/exp2l.c: Likewise.
38907 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
38909         regex: allow inclusion of <regex.h> before <limits.h>
38910         Without this patch, portable programs had to include <limits.h> before
38911         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
38912         I ran into this problem with a test version of GNU grep on Solaris 8.
38913         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
38914         This is done conditionally so that this change can be merged
38915         back to glibc.
38916         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
38917         using the included regex.
38919         fts: depend on fdopendir
38920         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
38921         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
38922         problem was introduced when fdopendir was split out.
38924 2012-03-10  Bruno Haible  <bruno@clisp.org>
38926         Remove unused variables.
38927         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
38928         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
38930 2012-03-10  Bruno Haible  <bruno@clisp.org>
38932         isnanf-nolibm: Fix last commit.
38933         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
38935         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
38936         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
38938 2012-03-10  Bruno Haible  <bruno@clisp.org>
38940         logf-ieee: Work around test failure on NetBSD 5.1.
38941         * m4/logf-ieee.m4: New file.
38942         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
38943         whether logf works with a negative argument. Replace it if not.
38944         * lib/logf.c (logf): For negative arguments, return NaN.
38945         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
38946         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
38947         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
38949         logf-ieee: Work around test failure on Solaris 9.
38950         * modules/logf-ieee (Depends-on): Add log-ieee.
38951         (configure.ac): Require gl_FUNC_LOGF.
38953         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38954         * m4/log-ieee.m4: New file.
38955         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
38956         log works with a negative argument. Replace it if not.
38957         * lib/log.c (log): For negative arguments, return NaN.
38958         * modules/log-ieee (Files): Add m4/log-ieee.m4.
38959         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
38960         * doc/posix-functions/log.texi: Mention the log-ieee module.
38962         Tests for module 'logl-ieee'.
38963         * modules/logl-ieee-tests: New file.
38964         * tests/test-logl-ieee.c: New file.
38966         New module 'logl-ieee'.
38967         * modules/logl-ieee: New file.
38969         Tests for module 'log-ieee'.
38970         * modules/log-ieee-tests: New file.
38971         * tests/test-log-ieee.c: New file.
38973         New module 'log-ieee'.
38974         * modules/log-ieee: New file.
38976         Tests for module 'logf-ieee'.
38977         * modules/logf-ieee-tests: New file.
38978         * tests/test-logf-ieee.c: New file.
38979         * tests/test-log-ieee.h: New file.
38981         New module 'logf-ieee'.
38982         * modules/logf-ieee: New file.
38984 2012-03-10  Bruno Haible  <bruno@clisp.org>
38986         log: Fix bug introduced on 2012-03-09.
38987         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
38989 2012-03-10  Pádraig Brady  <P@draigBrady.com>
38991         timer-time: link explicitly with pthreads on glibc
38992         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38993         to support static linking, when newer glibc is
38994         detected, as that contains pthread emulation of
38995         POSIX timer functions where required.
38996         * modules/timer-time: Depend on threadlib to
38997         pull in the appropriate library to link.
38999 2012-03-10  Bruno Haible  <bruno@clisp.org>
39001         log* tests: More tests.
39002         * tests/test-log.h: New file.
39003         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
39004         (main): Invoke test_function.
39005         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
39006         (main): Invoke test_function.
39007         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
39008         (main): Invoke test_function.
39009         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39010         tests/randomd.c.
39011         (Makefile.am): Add randomd.c to test_log_SOURCES.
39012         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39013         tests/randomf.c.
39014         (Makefile.am): Add randomf.c to test_logf_SOURCES.
39015         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39016         tests/randoml.c.
39017         (Depends-on): Add 'float'.
39018         (Makefile.am): Add randoml.c to test_logl_SOURCES.
39020 2012-03-09  Bruno Haible  <bruno@clisp.org>
39022         logl: Work around OSF/1 5.1 bug.
39023         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
39024         * lib/logl.c (logl): If logl exists, use it and provide just the
39025         workaround.
39026         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
39027         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
39028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
39029         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
39030         * modules/logl (configure.ac): Consider REPLACE_LOGL.
39031         (Depends-on): Update conditions.
39032         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
39034 2012-03-09  Bruno Haible  <bruno@clisp.org>
39036         logf: Work around OSF/1 5.1 bug.
39037         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
39038         * lib/logf.c (logf): If logf exists, use it and provide just the
39039         workaround.
39040         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
39041         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
39042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
39043         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
39044         * modules/logf (configure.ac): Consider REPLACE_LOGF.
39045         (Depends-on): Update conditions.
39046         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
39048 2012-03-09  Bruno Haible  <bruno@clisp.org>
39050         log: Work around OSF/1 5.1 bug.
39051         * lib/math.in.h (log): New declaration.
39052         * lib/log.c: New file.
39053         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
39054         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
39055         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
39056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
39057         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
39058         * modules/log (Files): Add lib/log.c.
39059         (Depends-on): Add math.
39060         (configure.ac): If REPLACE_LOG is 1, compile an override.
39061         * tests/test-math-c++.cc: Check the declaration of log.
39062         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
39064 2012-03-09  Jim Meyering  <meyering@redhat.com>
39066         readtokens.c: adjust wording in a comment
39067         * lib/readtokens.c: Insert omitted "that" in a comment.
39069 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39071         modechange: add notations +40, 00440, etc.
39072         * lib/modechange.c (mode_compile): Support new notations
39073         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
39075 2012-03-08  Bruno Haible  <bruno@clisp.org>
39077         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
39078         * m4/exp2l-ieee.m4: New file.
39079         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
39080         test whether exp2l works with a NaN argument and with a negative
39081         infinity argument. Replace it if not.
39082         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
39083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
39084         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
39085         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
39086         (Depends-on): Update conditions.
39087         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
39088         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
39089         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
39091         Tests for module 'exp2l-ieee'.
39092         * modules/exp2l-ieee-tests: New file.
39093         * tests/test-exp2l-ieee.c: New file.
39095         New module 'exp2l-ieee'.
39096         * modules/exp2l-ieee: New file.
39098         Tests for module 'exp2-ieee'.
39099         * modules/exp2-ieee-tests: New file.
39100         * tests/test-exp2-ieee.c: New file.
39102         New module 'exp2-ieee'.
39103         * modules/exp2-ieee: New file.
39105         Tests for module 'exp2f-ieee'.
39106         * modules/exp2f-ieee-tests: New file.
39107         * tests/test-exp2f-ieee.c: New file.
39108         * tests/test-exp2-ieee.h: New file.
39110         New module 'exp2f-ieee'.
39111         * modules/exp2f-ieee: New file.
39113 2012-03-08  Bruno Haible  <bruno@clisp.org>
39115         Tests for module 'exp2l'.
39116         * modules/exp2l-tests: New file.
39117         * tests/test-exp2l.c: New file.
39119         New module 'exp2l'.
39120         * lib/math.in.h (exp2l): New declaration.
39121         * lib/exp2l.c: New file.
39122         * lib/expl-table.c: New file, extracted from lib/expl.c.
39123         * lib/expl.c (gl_expl_table): New declaration.
39124         (expl): Remove expl_table. Update reference.
39125         * m4/exp2l.m4: New file.
39126         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
39127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
39128         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
39129         * modules/exp2l: New file.
39130         * modules/expl (Files): Add lib/expl-table.c.
39131         (configure.ac): Compile also expl-table.c.
39132         * tests/test-math-c++.cc: Check the declaration of exp2l.
39133         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
39134         problem.
39136 2012-03-08  Bruno Haible  <bruno@clisp.org>
39138         Tests for module 'exp2f'.
39139         * modules/exp2f-tests: New file.
39140         * tests/test-exp2f.c: New file.
39142         New module 'exp2f'.
39143         * lib/math.in.h (exp2f): New declaration.
39144         * lib/exp2f.c: New file.
39145         * m4/exp2f.m4: New file.
39146         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
39147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
39148         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
39149         * modules/exp2f: New file.
39150         * tests/test-math-c++.cc: Check the declaration of exp2f.
39151         * doc/posix-functions/exp2f.texi: Mention the new module and the
39152         IRIX problem.
39154 2012-03-08  Bruno Haible  <bruno@clisp.org>
39156         Tests for module 'exp2'.
39157         * modules/exp2-tests: New file.
39158         * tests/test-exp2.c: New file.
39159         * tests/test-exp2.h: New file.
39161         New module 'exp2'.
39162         * lib/math.in.h (exp2): New declaration.
39163         * lib/exp2.c: New file.
39164         * m4/exp2.m4: New file.
39165         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
39166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
39167         REPLACE_EXP2.
39168         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
39169         REPLACE_EXP2.
39170         * modules/exp2: New file.
39171         * tests/test-math-c++.cc: Check the declaration of exp2.
39172         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
39173         and OpenBSD problems.
39175 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39177         savedir: fix comment typo
39178         * lib/savedir.c (savedirstream): Fix typo in comment.
39180 2012-03-08  Bruno Haible  <bruno@clisp.org>
39182         test-readtokens.c: use const; remove unwarranted cast
39183         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
39185 2012-03-08  Bruno Haible  <bruno@clisp.org>
39187         fmal: Avoid compilation error on AIX.
39188         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
39189         AIX 5.2..7.1.
39191 2012-03-08  Bruno Haible  <bruno@clisp.org>
39193         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
39194         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
39195         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
39196         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
39197         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
39198         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
39199         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
39201 2012-03-08  Bruno Haible  <bruno@clisp.org>
39203         remainderf: Override buggy system function on IRIX 6.5.
39204         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
39205         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
39206         when it exists.
39207         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
39209 2012-03-08  Jim Meyering  <meyering@redhat.com>
39211         test-readtokens.c: avoid const-related compilation warnings
39212         * tests/test-readtokens.c: Avoid const-related compilation warnings.
39214 2012-03-07  Jim Meyering  <meyering@redhat.com>
39215             Bruno Haible  <bruno@clisp.org>
39217         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
39218         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
39219         tests/randomd.c.
39220         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
39221         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
39222         tests/randoml.c.
39223         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
39225 2012-03-07  Bruno Haible  <bruno@clisp.org>
39227         expm1l: Avoid compilation error on AIX.
39228         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
39229         AIX 5.2..7.1.
39231 2012-03-07  Bruno Haible  <bruno@clisp.org>
39233         expm1l: Don't override undeclared system function on IRIX 6.5.
39234         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
39235         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
39236         it exists. Set HAVE_DECL_EXPM1L.
39237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
39238         HAVE_EXPM1L.
39239         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
39240         HAVE_EXPM1L.
39241         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
39243 2012-03-07  Bruno Haible  <bruno@clisp.org>
39245         remainderl: Don't override undeclared system function on IRIX 6.5.
39246         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
39247         HAVE_REMAINDERL.
39248         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
39249         declared when it exists. Set HAVE_DECL_REMAINDERL.
39250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
39251         not HAVE_REMAINDERL.
39252         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
39253         HAVE_REMAINDERL.
39254         * doc/posix-functions/remainderl.texi: Mention missing declaration
39255         problem.
39257 2012-03-07  Bruno Haible  <bruno@clisp.org>
39259         rintf: Don't override undeclared system function on IRIX 6.5.
39260         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
39261         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
39262         exists. Set HAVE_DECL_RINTF.
39263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
39264         HAVE_RINTF.
39265         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
39266         HAVE_RINTF.
39267         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
39269 2012-03-07  Bruno Haible  <bruno@clisp.org>
39271         roundl: Avoid compilation error on AIX.
39272         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
39273         AIX 5.2..7.1.
39275 2012-03-07  Bruno Haible  <bruno@clisp.org>
39277         roundl: Don't override undeclared system function on IRIX 6.5.
39278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
39279         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
39280         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
39281         * modules/roundl (configure.ac): For replacement code, test
39282         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
39283         (Depends-on): Update conditions.
39284         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
39286 2012-03-07  Bruno Haible  <bruno@clisp.org>
39288         roundf: Don't override undeclared system function on IRIX 6.5.
39289         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
39290         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
39291         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
39292         * modules/roundf (configure.ac): For replacement code, test
39293         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
39294         (Depends-on): Update conditions.
39295         * modules/roundf-ieee (Depends-on): Update conditions.
39296         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
39298 2012-03-07  Bruno Haible  <bruno@clisp.org>
39300         round: Don't override undeclared system function on IRIX 6.5.
39301         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
39302         argument.
39303         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
39304         also when it is not declared. Set HAVE_ROUND. For replacement code,
39305         test HAVE_ROUND, not HAVE_DECL_ROUND.
39306         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
39307         not HAVE_DECL_ROUND.
39308         (Depends-on): Update conditions.
39309         * modules/round-ieee (Depends-on): Update conditions.
39310         * doc/posix-functions/round.texi: Mention the IRIX problem.
39312 2012-03-07  Bruno Haible  <bruno@clisp.org>
39314         copysignf: Don't override undeclared system function on IRIX 6.5.
39315         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
39316         HAVE_COPYSIGNF.
39317         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
39318         declared when it exists. Set HAVE_DECL_COPYSIGNF.
39319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
39320         not HAVE_COPYSIGNF.
39321         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
39322         HAVE_COPYSIGNF.
39323         * doc/posix-functions/copysignf.texi: Mention missing declaration
39324         problem.
39326 2012-03-07  Jim Meyering  <meyering@redhat.com>
39328         readtokens: add tests
39329         * modules/readtokens-tests: New file.
39330         * tests/test-readtokens.c: New file.
39332 2012-03-07  Jim Meyering  <meyering@redhat.com>
39334         quotearg: the module must now include quote.h
39335         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
39336         So must the module.
39337         * modules/quotearg (Files): Add quote.h.
39339 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
39341         readtokens: avoid core dumps with unusual calling patterns
39342         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
39343         * lib/readtokens.c: Include limits.h.
39344         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
39345         (readtoken): Don't cache the delimiters; the cache code was buggy
39346         if !delim && saved_delim, or if the new n_delim differs from the old.
39347         Also, it wasn't thread-safe.
39349 2012-03-07  Bruno Haible  <bruno@clisp.org>
39351         quote: Adhere to common module description layout.
39352         * modules/quote (Makefile.am): Add back empty section.
39354 2012-03-06  Akim Demaille  <demaille@gostai.com>
39356         quote: fuse into quotearg
39357         This patch is made for the benefit of Bison.
39358         quote does not leave the choice of the quoting style to the user.
39359         quoting_style provides poor customizability, yet quoting_options,
39360         which is very rich, is hidden inside quotearg.c.  So in order to
39361         allow quote customization, move its implementation to quotearg.c.
39362         * lib/quote.c: Remove.
39363         * modules/quote: Adjust.
39364         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
39365         warning: provide all the members of literal structs.
39366         (quote_quoting_options): New.
39367         (quote, quote_n): Import implementation from quote.c.
39368         * lib/quote.h: Import the comments from quote.c.
39369         (quote_quoting_options): New.
39371 2012-03-06  Bruno Haible  <bruno@clisp.org>
39373         Tests for module 'expm1l-ieee'.
39374         * modules/expm1l-ieee-tests: New file.
39375         * tests/test-expm1l-ieee.c: New file.
39377         New module 'expm1l-ieee'.
39378         * modules/expm1l-ieee: New file.
39380         Tests for module 'expm1f-ieee'.
39381         * modules/expm1f-ieee-tests: New file.
39382         * tests/test-expm1f-ieee.c: New file.
39384         New module 'expm1f-ieee'.
39385         * modules/expm1f-ieee: New file.
39387         Tests for module 'expm1-ieee'.
39388         * modules/expm1-ieee-tests: New file.
39389         * tests/test-expm1-ieee.c: New file.
39390         * tests/test-expm1-ieee.h: New file.
39392         New module 'expm1-ieee'.
39393         * modules/expm1-ieee: New file.
39394         * m4/expm1-ieee.m4: New file.
39395         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
39396         whether expm1 works with a minus zero argument. Replace it if not.
39397         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
39398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
39399         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
39400         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
39401         (Depends-on): Update conditions.
39402         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
39403         AIX problem.
39405 2012-03-06  Bruno Haible  <bruno@clisp.org>
39407         Work around expm1f bug on IRIX 6.5.
39408         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
39409         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
39410         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
39411         not work.
39412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
39413         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
39414         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
39415         (Depends-on): Update conditions.
39416         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
39418 2012-03-06  Bruno Haible  <bruno@clisp.org>
39420         Tests for module 'expm1l'.
39421         * modules/expm1l-tests: New file.
39422         * tests/test-expm1l.c: New file.
39424         New module 'expm1l'.
39425         * lib/math.in.h (expm1l): New declaration.
39426         * lib/expm1l.c: New file.
39427         * m4/expm1l.m4: New file.
39428         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
39429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
39430         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
39431         * modules/expm1l: New file.
39432         * tests/test-math-c++.cc: Check the declaration of expm1l.
39433         * doc/posix-functions/expm1l.texi: Mention the new module.
39435 2012-03-06  Bruno Haible  <bruno@clisp.org>
39437         Tests for module 'expm1f'.
39438         * modules/expm1f-tests: New file.
39439         * tests/test-expm1f.c: New file.
39441         New module 'expm1f'.
39442         * lib/math.in.h (expm1f): New declaration.
39443         * lib/expm1f.c: New file.
39444         * m4/expm1f.m4: New file.
39445         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
39446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
39447         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
39448         * modules/expm1f: New file.
39449         * tests/test-math-c++.cc: Check the declaration of expm1f.
39450         * doc/posix-functions/expm1f.texi: Mention the new module.
39452 2012-03-06  Bruno Haible  <bruno@clisp.org>
39454         Tests for module 'expm1'.
39455         * modules/expm1-tests: New file.
39456         * tests/test-expm1.c: New file.
39457         * tests/test-expm1.h: New file.
39459         New module 'expm1'.
39460         * lib/math.in.h (expm1): New declaration.
39461         * lib/expm1.c: New file.
39462         * m4/expm1.m4: New file.
39463         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
39464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
39465         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
39466         * modules/expm1: New file.
39467         * tests/test-math-c++.cc: Check the declaration of expm1.
39468         * doc/posix-functions/expm1.texi: Mention the new module.
39470 2012-03-06  Bruno Haible  <bruno@clisp.org>
39472         math: Ensure declarations of math functions.
39473         * modules/acosf (Depends-on): Add 'extensions'.
39474         * modules/asinf (Depends-on): Likewise.
39475         * modules/atan2f (Depends-on): Likewise.
39476         * modules/atanf (Depends-on): Likewise.
39477         * modules/cbrt (Depends-on): Likewise.
39478         * modules/cbrtf (Depends-on): Likewise.
39479         * modules/cbrtl (Depends-on): Likewise.
39480         * modules/copysignf (Depends-on): Likewise.
39481         * modules/copysignl (Depends-on): Likewise.
39482         * modules/cosf (Depends-on): Likewise.
39483         * modules/coshf (Depends-on): Likewise.
39484         * modules/expf (Depends-on): Likewise.
39485         * modules/fabsf (Depends-on): Likewise.
39486         * modules/fabsl (Depends-on): Likewise.
39487         * modules/fmaf (Depends-on): Likewise.
39488         * modules/fmal (Depends-on): Likewise.
39489         * modules/fmodf (Depends-on): Likewise.
39490         * modules/fmodl (Depends-on): Likewise.
39491         * modules/frexpf (Depends-on): Likewise.
39492         * modules/frexpl (Depends-on): Likewise.
39493         * modules/hypot (Depends-on): Likewise.
39494         * modules/hypotf (Depends-on): Likewise.
39495         * modules/hypotl (Depends-on): Likewise.
39496         * modules/ldexpf (Depends-on): Likewise.
39497         * modules/ldexpl (Depends-on): Likewise.
39498         * modules/log10f (Depends-on): Likewise.
39499         * modules/log10l (Depends-on): Likewise.
39500         * modules/log1p (Depends-on): Likewise.
39501         * modules/logb (Depends-on): Likewise.
39502         * modules/logf (Depends-on): Likewise.
39503         * modules/modff (Depends-on): Likewise.
39504         * modules/modfl (Depends-on): Likewise.
39505         * modules/powf (Depends-on): Likewise.
39506         * modules/remainderf (Depends-on): Likewise.
39507         * modules/remainderl (Depends-on): Likewise.
39508         * modules/rintf (Depends-on): Likewise.
39509         * modules/rintl (Depends-on): Likewise.
39510         * modules/sinf (Depends-on): Likewise.
39511         * modules/sinhf (Depends-on): Likewise.
39512         * modules/sqrtf (Depends-on): Likewise.
39513         * modules/tanf (Depends-on): Likewise.
39514         * modules/tanhf (Depends-on): Likewise.
39515         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
39516         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
39517         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
39518         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
39519         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
39520         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
39521         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
39522         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
39523         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
39524         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
39525         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
39526         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
39527         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
39528         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
39529         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
39530         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
39531         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
39532         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
39533         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
39534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
39535         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
39536         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
39537         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
39538         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
39539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
39540         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
39541         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
39542         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
39543         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
39544         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
39545         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
39546         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
39547         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39548         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
39549         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
39550         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
39551         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
39552         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
39553         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
39554         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
39555         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
39557 2012-03-06  Bruno Haible  <bruno@clisp.org>
39559         math: Update module names in warnings.
39560         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39561         tanl): Use specific module name in warn-on-use warning.
39563 2012-03-06  Bruno Haible  <bruno@clisp.org>
39565         expl: Simplify computation.
39566         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
39568 2012-03-05  Bruno Haible  <bruno@clisp.org>
39570         exp* tests: More tests.
39571         * tests/test-exp.h: New file.
39572         * tests/test-exp.c: Include <float.h> and test-exp.h.
39573         (main): Invoke test_function.
39574         * tests/test-expf.c: Include <float.h> and test-exp.h.
39575         (main): Invoke test_function.
39576         * tests/test-expl.c: Include <float.h> and test-exp.h.
39577         (main): Invoke test_function.
39578         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
39579         (Makefile.am): Add randomd.c to test_exp_SOURCES.
39580         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
39581         (Makefile.am): Add randomf.c to test_expf_SOURCES.
39582         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
39583         (Depends-on): Add 'float'.
39584         (Makefile.am): Add randoml.c to test_expl_SOURCES.
39586         expl: Fix precision of computed result.
39587         * lib/expl.c: Completely rewritten.
39588         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
39589         (Maintainer): Add me.
39590         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
39592 2012-03-05  Bruno Haible  <bruno@clisp.org>
39594         cbrt* tests: More tests.
39595         * tests/test-cbrt.h: New file.
39596         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
39597         (main): Invoke test_function.
39598         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
39599         (main): Invoke test_function.
39600         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
39601         (main): Invoke test_function.
39602         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
39603         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
39604         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
39605         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
39606         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
39607         (Depends-on): Add 'float'.
39608         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
39610 2012-03-05  Bruno Haible  <bruno@clisp.org>
39612         hypot* tests: More tests.
39613         * tests/test-hypot.h: New file, partially extracted from
39614         tests/test-hypotl.c.
39615         * tests/test-hypot.c: Include test-hypot.h.
39616         (main): Invoke test_function.
39617         * tests/test-hypotf.c: Include test-hypot.h.
39618         (main): Invoke test_function.
39619         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
39620         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
39621         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
39622         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
39623         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
39624         tests/randomf.c.
39625         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
39626         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
39627         tests/randoml.c.
39628         (Depends-on): Add 'fpucw', 'float'.
39629         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
39631 2012-03-05  Bruno Haible  <bruno@clisp.org>
39633         fpucw: Doc about FreeBSD.
39634         * lib/fpucw.h: Mention FreeBSD in comments.
39636 2012-03-04  Bruno Haible  <bruno@clisp.org>
39638         sqrt* tests: More tests.
39639         * tests/test-sqrt.h: New file.
39640         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
39641         (main): Invoke test_function.
39642         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
39643         (main): Invoke test_function.
39644         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
39645         (main): Invoke test_function.
39646         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
39647         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
39648         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
39649         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
39650         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
39651         (Depends-on): Add 'float'.
39652         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
39654 2012-03-04  Bruno Haible  <bruno@clisp.org>
39656         remainder* tests: More tests.
39657         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
39658         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
39659         (main): Invoke test_function.
39660         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
39661         (main): Invoke test_function.
39662         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
39663         (main): Invoke test_function.
39664         * modules/remainder-tests (Files): Add tests/test-remainder.h,
39665         tests/randomd.c.
39666         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
39667         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
39668         tests/randomf.c.
39669         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
39670         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
39671         tests/randoml.c.
39672         (Depends-on): Add 'float'.
39673         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
39675 2012-03-04  Bruno Haible  <bruno@clisp.org>
39677         remainder, remainderf, remainderl: Fix computation for large quotients.
39678         * lib/remainder.c: Completely rewritten.
39679         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
39680         USE_FLOAT.
39681         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
39682         USE_LONG_DOUBLE.
39683         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
39684         isnand, isinf. Remove round, fma.
39685         * modules/remainderf (Files): Add lib/remainder.c.
39686         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
39687         Remove roundf, fmaf.
39688         * modules/remainderl (Files): Add lib/remainder.c.
39689         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
39690         isinf. Remove roundl, fmal.
39691         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
39692         REMAINDER_LIBM.
39693         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
39694         REMAINDERF_LIBM.
39695         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
39696         REMAINDERL_LIBM.
39698 2012-03-04  Bruno Haible  <bruno@clisp.org>
39700         fmod* tests: More tests.
39701         * tests/test-fmod.h (my_ldexp): New function.
39702         (test_function): Reduce amount of random numbers to test. Add tests
39703         of very large quotients x / y.
39704         * tests/test-fmod.c (MAX_EXP): New macro.
39705         * tests/test-fmodf.c (MAX_EXP): Likewise.
39706         * tests/test-fmodl.c (MAX_EXP): Likewise.
39708 2012-03-04  Bruno Haible  <bruno@clisp.org>
39710         fmod, fmodl: Fix computation for large quotients x / y.
39711         * lib/fmod.c: Completely rewritten.
39712         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
39713         USE_LONG_DOUBLE.
39714         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
39715         isnand. Remove fma.
39716         * modules/fmodl (Files): Add lib/fmod.c.
39717         (Depends-on): Add float, isfinite, signbit, fabsl,
39718         frexpl, ldexpl, isnanl. Remove fma.
39719         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
39720         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
39722 2012-03-03  Bruno Haible  <bruno@clisp.org>
39724         fmod* tests: More tests.
39725         * tests/test-fmod.h: New file.
39726         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
39727         (main): Invoke test_function.
39728         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
39729         (main): Invoke test_function.
39730         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
39731         (main): Invoke test_function.
39732         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
39733         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
39734         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
39735         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
39736         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
39737         (Depends-on): Add 'float'.
39738         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
39740 2012-03-03  Bruno Haible  <bruno@clisp.org>
39742         rint* tests: More tests.
39743         * tests/test-rint.h: New file, partially extracted from
39744         tests/test-rintl.c.
39745         * tests/test-rint.c: Include test-rint.h.
39746         (main): Invoke test_function.
39747         * tests/test-rintf.c: Include test-rint.h.
39748         (main): Invoke test_function.
39749         * tests/test-rintl.c: Include test-rint.h.
39750         (main): Invoke test_function.
39751         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
39752         (Makefile.am): Add randomd.c to test_rint_SOURCES.
39753         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
39754         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
39755         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
39756         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
39758 2012-03-03  Bruno Haible  <bruno@clisp.org>
39760         modf* tests: More tests.
39761         * tests/test-modf.h: New file.
39762         * tests/test-modf.c: Include <float.h> and test-modf.h.
39763         (main): Invoke test_function.
39764         * tests/test-modff.c: Include <float.h> and test-modf.h.
39765         (main): Invoke test_function.
39766         * tests/test-modfl.c: Include <float.h> and test-modf.h.
39767         (main): Invoke test_function.
39768         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
39769         (Makefile.am): Add randomd.c to test_modf_SOURCES.
39770         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
39771         (Makefile.am): Add randomf.c to test_modff_SOURCES.
39772         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
39773         (Depends-on): Add 'float'.
39774         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
39776 2012-03-03  Bruno Haible  <bruno@clisp.org>
39778         fabs* tests: More tests.
39779         * tests/test-fabs.h: New file, partially extracted from
39780         tests/test-fabsl.c.
39781         * tests/test-fabs.c (RANDOM): New macro.
39782         * tests/test-fabsf.c (RANDOM): New macro.
39783         * tests/test-fabsl.c (RANDOM): New macro.
39784         * modules/fabs-tests (Files): Add tests/randomd.c.
39785         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
39786         * modules/fabsf-tests (Files): Add tests/randomf.c.
39787         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
39788         * modules/fabsl-tests (Files): Add tests/randoml.c.
39789         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
39791 2012-03-03  Bruno Haible  <bruno@clisp.org>
39793         ldexp* tests: More tests.
39794         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
39795         * tests/test-ldexp.c (RANDOM): New macro.
39796         * tests/test-ldexpf.c (RANDOM): New macro.
39797         * tests/test-ldexpl.c (RANDOM): New macro.
39798         * modules/ldexp-tests (Files): Add tests/randomd.c.
39799         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
39800         * modules/ldexpf-tests (Files): Add tests/randomf.c.
39801         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
39802         * modules/ldexpl-tests (Files): Add tests/randoml.c.
39803         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
39805 2012-03-03  Bruno Haible  <bruno@clisp.org>
39807         frexp* tests: More tests.
39808         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
39809         * tests/test-frexp.c (RANDOM): New macro.
39810         * tests/test-frexpf.c (RANDOM): New macro.
39811         * tests/test-frexpl.c (RANDOM): New macro.
39812         * modules/frexp-tests (Files): Add tests/randomd.c.
39813         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
39814         * modules/frexpf-tests (Files): Add tests/randomf.c.
39815         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
39816         * modules/frexpl-tests (Files): Add tests/randoml.c.
39817         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
39819 2012-03-03  Bruno Haible  <bruno@clisp.org>
39821         Support for pseudo-random numbers in tests.
39822         * tests/randomf.c: New file.
39823         * tests/randomd.c: New file.
39824         * tests/randoml.c: New file.
39825         * tests/macros.h (randomf, randomd, randoml): New declarations.
39827 2012-03-03  Bruno Haible  <bruno@clisp.org>
39829         frexp* tests: Refactor.
39830         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
39831         * tests/test-frexp.c: Include and use it.
39832         * tests/test-frexpf.c: Likewise.
39833         * tests/test-frexpl.c: Likewise.
39834         * modules/frexp-tests (Files): Add tests/test-frexp.h.
39835         * modules/frexpf-tests (Files): Likewise.
39836         * modules/frexpl-tests (Files): Likewise.
39838 2012-03-02  Jim Meyering  <meyering@redhat.com>
39840         maint: don't specify XZ_OPT=-9ev in dist-related rule
39841         Using xz's -9 option is warranted only if you have a very large
39842         tarball (see xz's documentation for the sizes vs. presets), and
39843         requires 64MiB of memory at decompression time.
39844         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
39845         Automake's default of just "-e" is fine.  Override on a
39846         per-package basis by setting XZ_OPT e.g., in cfg.mk.
39848 2012-03-01  Eric Blake  <eblake@redhat.com>
39850         maint.mk: allow announcement for non-gnulib project
39851         * maint.mk (announcement): Skip gnulib version if not used.
39853 2012-03-01  Jim Meyering  <meyering@redhat.com>
39855         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
39856         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
39857         envvar settings cannot interfere.  Otherwise, setting envvars like
39858         prohibit=foo require=bar, etc. would cause spurious test failures.
39860 2012-03-01  Eric Blake  <eblake@redhat.com>
39862         maint.mk: add per-line exclusions to prohibitions
39863         * maint.mk (_sc_search_regexp): Add $exclude parameter.
39864         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
39865         (sc_const_long_option): Use it.
39867 2012-03-01  Bruno Haible  <bruno@clisp.org>
39869         Tests for module 'expl-ieee'.
39870         * modules/expl-ieee-tests: New file.
39871         * tests/test-expl-ieee.c: New file.
39873         New module 'expl-ieee'.
39874         * modules/expl-ieee: New file.
39876         Tests for module 'exp-ieee'.
39877         * modules/exp-ieee-tests: New file.
39878         * tests/test-exp-ieee.c: New file.
39880         New module 'exp-ieee'.
39881         * modules/exp-ieee: New file.
39883         Tests for module 'expf-ieee'.
39884         * modules/expf-ieee-tests: New file.
39885         * tests/test-expf-ieee.c: New file.
39886         * tests/test-exp-ieee.h: New file.
39888         New module 'expf-ieee'.
39889         * modules/expf-ieee: New file.
39891 2012-02-29  Bruno Haible  <bruno@clisp.org>
39893         cbrtl-ieee: Work around test failure on IRIX 6.5.
39894         * m4/cbrtl-ieee.m4: New file.
39895         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
39896         test whether cbrtl works with a minus zero argument. Replace it if not.
39897         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
39898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
39899         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
39900         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
39901         (Depends-on): Update conditions.
39902         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
39903         m4/signbit.m4.
39904         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
39905         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
39906         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
39908         Tests for module 'cbrtl-ieee'.
39909         * modules/cbrtl-ieee-tests: New file.
39910         * tests/test-cbrtl-ieee.c: New file.
39912         New module 'cbrtl-ieee'.
39913         * modules/cbrtl-ieee: New file.
39915         Tests for module 'cbrt-ieee'.
39916         * modules/cbrt-ieee-tests: New file.
39917         * tests/test-cbrt-ieee.c: New file.
39919         New module 'cbrt-ieee'.
39920         * modules/cbrt-ieee: New file.
39922         Tests for module 'cbrtf-ieee'.
39923         * modules/cbrtf-ieee-tests: New file.
39924         * tests/test-cbrtf-ieee.c: New file.
39925         * tests/test-cbrt-ieee.h: New file.
39927         New module 'cbrtf-ieee'.
39928         * modules/cbrtf-ieee: New file.
39930 2012-02-29  Bruno Haible  <bruno@clisp.org>
39932         cbrtf: Work around bug in IRIX 6.5 system function.
39933         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
39934         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
39935         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
39936         work.
39937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
39938         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
39939         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
39940         (Depends-on): Update conditions.
39941         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
39943 2012-02-29  Bruno Haible  <bruno@clisp.org>
39945         Tests for module 'cbrtl'.
39946         * modules/cbrtl-tests: New file.
39947         * tests/test-cbrtl.c: New file.
39949         New module 'cbrtl'.
39950         * lib/math.in.h (cbrtl): New declaration.
39951         * lib/cbrtl.c: New file.
39952         * m4/cbrtl.m4: New file.
39953         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
39954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
39955         HAVE_DECL_CBRTL.
39956         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
39957         HAVE_DECL_CBRTL.
39958         * modules/cbrtl: New file.
39959         * tests/test-math-c++.cc: Check the declaration of cbrtl.
39960         * doc/posix-functions/cbrtl.texi: Mention the new module.
39962 2012-02-29  Bruno Haible  <bruno@clisp.org>
39964         Tests for module 'cbrtf'.
39965         * modules/cbrtf-tests: New file.
39966         * tests/test-cbrtf.c: New file.
39968         New module 'cbrtf'.
39969         * lib/math.in.h (cbrtf): New declaration.
39970         * lib/cbrtf.c: New file.
39971         * m4/cbrtf.m4: New file.
39972         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
39973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
39974         HAVE_DECL_CBRTF.
39975         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
39976         HAVE_DECL_CBRTF.
39977         * modules/cbrtf: New file.
39978         * tests/test-math-c++.cc: Check the declaration of cbrtf.
39979         * doc/posix-functions/cbrtf.texi: Mention the new module.
39981 2012-02-29  Bruno Haible  <bruno@clisp.org>
39983         cbrt: Provide replacement on MSVC and Minix.
39984         * lib/math.in.h (cbrt): New declaration.
39985         * lib/cbrt.c: New file.
39986         * m4/cbrt.m4: New file.
39987         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
39988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
39989         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
39990         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
39991         (Depends-on): Add dependencies.
39992         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
39993         * tests/test-math-c++.cc: Check the declaration of cbrt.
39994         * doc/posix-functions/cbrt.texi: Mention that the module provides a
39995         replacement.
39997 2012-02-29  Bruno Haible  <bruno@clisp.org>
39999         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
40000         * m4/hypotl-ieee.m4: New file.
40001         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
40002         test whether hypotl works with mixed NaN and Infinity arguments.
40003         Replace it if not.
40004         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
40005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
40006         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
40007         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
40008         (Depends-on): Update conditions.
40009         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
40010         (Depends-on): Add hypot-ieee.
40011         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
40012         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
40014         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
40015         * m4/hypotf-ieee.m4: New file.
40016         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
40017         test whether hypotf works with mixed NaN and Infinity arguments.
40018         Replace it if not.
40019         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
40020         (Depends-on): Add hypot-ieee.
40021         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
40022         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
40024         hypot-ieee: Work around test failure on OSF/1 and native Windows.
40025         * lib/math.in.h (hypot): New declaration.
40026         * lib/hypot.c: New file.
40027         * m4/hypot-ieee.m4: New file.
40028         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
40029         whether hypot works with mixed NaN and Infinity arguments. Replace it
40030         if not.
40031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
40032         REPLACE_HYPOT.
40033         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
40034         * modules/hypot (Files): Add lib/hypot.c.
40035         (Depends-on): Add dependencies.
40036         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
40037         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
40038         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
40039         * tests/test-math-c++.cc: Check the declaration of hypot.
40040         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
40042         Tests for module 'hypotl-ieee'.
40043         * modules/hypotl-ieee-tests: New file.
40044         * tests/test-hypotl-ieee.c: New file.
40046         New module 'hypotl-ieee'.
40047         * modules/hypotl-ieee: New file.
40049         Tests for module 'hypot-ieee'.
40050         * modules/hypot-ieee-tests: New file.
40051         * tests/test-hypot-ieee.c: New file.
40053         New module 'hypot-ieee'.
40054         * modules/hypot-ieee: New file.
40056         Tests for module 'hypotf-ieee'.
40057         * modules/hypotf-ieee-tests: New file.
40058         * tests/test-hypotf-ieee.c: New file.
40059         * tests/test-hypot-ieee.h: New file.
40061         New module 'hypotf-ieee'.
40062         * modules/hypotf-ieee: New file.
40064 2012-02-29  Bruno Haible  <bruno@clisp.org>
40066         Remove unused variables.
40067         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
40068         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40069         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
40070         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40072 2012-02-29  Eric Blake  <eblake@redhat.com>
40074         termios: fix pid_t always, not just for tcgetsid
40075         * doc/posix-headers/termios.texi (termios.h): Mention problem.
40076         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
40077         just when building tcgetsid.
40079 2012-02-29  Bruno Haible  <bruno@clisp.org>
40081         Tests for module 'hypotl'.
40082         * modules/hypotl-tests: New file.
40083         * tests/test-hypotl.c: New file.
40085         New module 'hypotl'.
40086         * lib/math.in.h (hypotl): New declaration.
40087         * lib/hypotl.c: New file.
40088         * m4/hypotl.m4: New file.
40089         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
40091         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
40092         * modules/hypotl: New file.
40093         * tests/test-math-c++.cc: Check the hypotl declaration.
40094         * doc/posix-functions/hypotl.texi: Mention the new module.
40096 2012-02-29  Eric Blake  <eblake@redhat.com>
40098         tcgetsid: fix cygwin header bug
40099         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
40101         docs: update cygwin progress
40102         * doc/posix-functions/llround.texi (llround): Added in cygwin
40103         1.7.8.
40104         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
40105         * doc/glibc-functions/program_invocation_name.texi
40106         (program_invocation_name): Likewise.
40107         * doc/glibc-functions/program_invocation_short_name.texi
40108         (program_invocation_short_name): Likewise.
40109         * doc/glibc-functions/madvise.texi (madvise): Likewise.
40110         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
40111         Likewise.
40112         * doc/posix-functions/pthread_spin_destroy.texi
40113         (pthread_spin_destroy): Added in cygwin 1.7.10.
40114         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
40115         Likewise.
40116         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
40117         Likewise.
40118         * doc/posix-functions/pthread_spin_trylock.texi
40119         (pthread_spin_trylock): Likewise.
40120         * doc/posix-functions/pthread_spin_unlock.texi
40121         (pthread_spin_unlock): Likewise.
40122         * doc/posix-functions/pthread_setschedprio.texi
40123         (pthread_setschedprio): Likewise.
40124         * doc/posix-functions/pthread_attr_getstack.texi
40125         (pthread_attr_getstack): Likewise.
40126         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
40127         (pthread_attr_getstackaddr): Likewise.
40128         * doc/glibc-functions/pthread_getattr_np.texi
40129         (pthread_getattr_np): Likewise.
40130         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
40131         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
40132         * doc/posix-functions/clock_settime.texi (clock_settime):
40133         Likewise.
40134         * doc/posix-functions/pthread_attr_getguardsize.texi
40135         (pthread_attr_getguardsize): Likewise.
40136         * doc/posix-functions/pthread_attr_setguardsize.texi
40137         (pthread_attr_setguardsize): Likewise.
40138         * doc/posix-functions/pthread_attr_setstack.texi
40139         (pthread_attr_setstack): Likewise.
40140         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
40141         (pthread_attr_setstackaddr): Likewise.
40142         * doc/posix-functions/clock_getcpuclockid.texi
40143         (clock_getcpuclockid): Likewise.
40144         * doc/posix-functions/pthread_getcpuclockid.texi
40145         (pthread_getcpuclockid): Likewise.
40146         * doc/glibc-functions/error.texi (error): Likewise.
40147         * doc/glibc-functions/error_at_line.texi (error_at_line):
40148         Likewise.
40149         * doc/glibc-functions/error_message_count.texi
40150         (error_message_count): Likewise.
40151         * doc/glibc-functions/error_one_per_line.texi
40152         (error_one_per_line): Likewise.
40153         * doc/glibc-functions/error_print_progname.texi
40154         (error_print_progname): Likewise.
40155         * doc/posix-functions/pthread_condattr_getclock.texi
40156         (pthread_condattr_getclock): Likewise.
40157         * doc/posix-functions/pthread_condattr_setclock.texi
40158         (pthread_condattr_setclock): Likewise.
40159         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
40160         Likewise.
40161         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
40162         * doc/glibc-functions/getpt.texi (getpt): Likewise.
40163         * doc/glibc-functions/get_current_dir_name.texi
40164         (get_current_dir_name): Likewise.
40165         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
40166         Likewise.
40167         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
40168         wrong return type.
40169         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
40170         1.7.11.
40172 2012-02-29  Bruno Haible  <bruno@clisp.org>
40174         Tests for module 'hypotf'.
40175         * modules/hypotf-tests: New file.
40176         * tests/test-hypotf.c: New file.
40178         New module 'hypotf'.
40179         * lib/math.in.h (hypotf): New declaration.
40180         * lib/hypotf.c: New file.
40181         * m4/hypotf.m4: New file.
40182         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
40184         REPLACE_HYPOTF.
40185         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
40186         REPLACE_HYPOTF.
40187         * modules/hypotf: New file.
40188         * tests/test-math-c++.cc: Check the hypotf declaration.
40189         * doc/posix-functions/hypotf.texi: Mention the new module.
40191         hypot: Prepare for hypotf module.
40192         * m4/hypot.m4: New file.
40193         * modules/hypot (Files): Add m4/hypot.m4.
40194         (configure.ac): Invoke gl_FUNC_HYPOT.
40196 2012-02-29  Bruno Haible  <bruno@clisp.org>
40198         hypot tests: More tests.
40199         * tests/test-hypot.c: Include <float.h>.
40200         (main): Add tests about overflow and underflow.
40202 2012-02-29  Bruno Haible  <bruno@clisp.org>
40204         math code: Add comments.
40205         * lib/acosl.c: Add comment about related glibc source files.
40206         * lib/asinl.c: Likewise.
40207         * lib/atanl.c: Likewise.
40208         * lib/expl.c: Likewise.
40209         * lib/logl.c: Likewise.
40210         * lib/sincosl.c: Likewise.
40211         * lib/sinl.c: Likewise.
40212         * lib/tanl.c: Likewise.
40213         * lib/trigl.c: Likewise.
40214         * lib/cosl.c: Likewise. Fix comments.
40216 2012-02-28  Bruno Haible  <bruno@clisp.org>
40218         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
40219         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
40220         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
40221         HUGE_VALL are defined.
40222         (numeric_equald): Renamed from numeric_equal.
40223         (numeric_equalf, numeric_equall): New functions.
40224         (main): Check also HUGE_VALF, HUGE_VALL.
40225         * modules/math-tests (Files): Add tests/macros.h.
40226         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
40227         HUGE_VALL.
40229 2012-02-28  Bruno Haible  <bruno@clisp.org>
40231         doc: Move ISO C11 feature notes into POSIX chapters.
40232         * doc/posix-functions/aligned_alloc.texi: Renamed from
40233         doc/glibc-functions/aligned_alloc.texi.
40234         * doc/posix-functions/quick_exit.texi: Renamed from
40235         doc/glibc-functions/quick_exit.texi.
40236         * doc/posix-headers/uchar.texi: Renamed from
40237         doc/glibc-headers/uchar.texi.
40238         * doc/posix-functions/c16rtomb.texi: Renamed from
40239         doc/glibc-functions/c16rtomb.texi.
40240         * doc/posix-functions/c32rtomb.texi: Renamed from
40241         doc/glibc-functions/c32rtomb.texi.
40242         * doc/posix-functions/mbrtoc16.texi: Renamed from
40243         doc/glibc-functions/mbrtoc16.texi.
40244         * doc/posix-functions/mbrtoc32.texi: Renamed from
40245         doc/glibc-functions/mbrtoc32.texi.
40246         * doc/gnulib.texi: Update.
40247         (Glibc uchar.h): Remove section.
40248         Suggested by Eric Blake.
40250 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
40252         stdnoreturn: port to MSVC better
40253         MSVC standard headers use __declspec(noreturn), so #define noreturn
40254         to empty on that platform.  Reported by Bruno Haible in
40255         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
40256         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
40257         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
40259 2012-02-28  Bruno Haible  <bruno@clisp.org>
40261         doc: Mention new glibc headers and functions.
40262         * doc/glibc-headers/uchar.texi: New file.
40263         * doc/glibc-functions/aligned_alloc.texi: New file.
40264         * doc/glibc-functions/c16rtomb.texi: New file.
40265         * doc/glibc-functions/c32rtomb.texi: New file.
40266         * doc/glibc-functions/clock_adjtime.texi: New file.
40267         * doc/glibc-functions/fanotify_init.texi: New file.
40268         * doc/glibc-functions/fanotify_mark.texi: New file.
40269         * doc/glibc-functions/inet6_opt_append.texi: New file.
40270         * doc/glibc-functions/inet6_opt_find.texi: New file.
40271         * doc/glibc-functions/inet6_opt_finish.texi: New file.
40272         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
40273         * doc/glibc-functions/inet6_opt_init.texi: New file.
40274         * doc/glibc-functions/inet6_opt_next.texi: New file.
40275         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
40276         * doc/glibc-functions/inet6_rth_add.texi: New file.
40277         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
40278         * doc/glibc-functions/inet6_rth_init.texi: New file.
40279         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
40280         * doc/glibc-functions/inet6_rth_segments.texi: New file.
40281         * doc/glibc-functions/inet6_rth_space.texi: New file.
40282         * doc/glibc-functions/login.texi: New file.
40283         * doc/glibc-functions/mbrtoc16.texi: New file.
40284         * doc/glibc-functions/mbrtoc32.texi: New file.
40285         * doc/glibc-functions/name_to_handle_at.texi: New file.
40286         * doc/glibc-functions/ntp_gettimex.texi: New file.
40287         * doc/glibc-functions/open_by_handle_at.texi: New file.
40288         * doc/glibc-functions/prlimit.texi: New file.
40289         * doc/glibc-functions/process_vm_readv.texi: New file.
40290         * doc/glibc-functions/process_vm_writev.texi: New file.
40291         * doc/glibc-functions/recvmmsg.texi: New file.
40292         * doc/glibc-functions/scandirat.texi: New file.
40293         * doc/glibc-functions/sendmmsg.texi: New file.
40294         * doc/glibc-functions/setns.texi: New file.
40295         * doc/glibc-functions/timespec_get.texi: New file.
40296         * doc/gnulib.texi: Include them.
40297         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
40298         sections.
40299         Reported by Eric Blake.
40301 2012-02-28  Bruno Haible  <bruno@clisp.org>
40303         Avoid compilation errors with MSVC option -fp:strict.
40304         * lib/floor.c: Use MSVC specific pragma fenv_access.
40305         * lib/ceil.c: Likewise.
40306         * lib/trunc.c: Likewise.
40307         * lib/round.c: Likewise.
40308         * lib/rint.c: Likewise.
40309         * lib/fma.c: Likewise.
40310         * lib/integer_length.c: Likewise.
40311         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40313         * tests/test-floor2.c: Likewise.
40314         * tests/test-floorf2.c: Likewise.
40315         * tests/test-ceil2.c: Likewise.
40316         * tests/test-ceilf2.c: Likewise.
40317         * tests/test-trunc2.c: Likewise.
40318         * tests/test-truncf2.c: Likewise.
40319         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40321 2012-02-27  Bruno Haible  <bruno@clisp.org>
40323         Tests for module 'sqrtl-ieee'.
40324         * modules/sqrtl-ieee-tests: New file.
40325         * tests/test-sqrtl-ieee.c: New file.
40327         New module 'sqrtl-ieee'.
40328         * modules/sqrtl-ieee: New file.
40330         Tests for module 'sqrt-ieee'.
40331         * modules/sqrt-ieee-tests: New file.
40332         * tests/test-sqrt-ieee.c: New file.
40334         New module 'sqrt-ieee'.
40335         * modules/sqrt-ieee: New file.
40337         Tests for module 'sqrtf-ieee'.
40338         * modules/sqrtf-ieee-tests: New file.
40339         * tests/test-sqrtf-ieee.c: New file.
40340         * tests/test-sqrt-ieee.h: New file.
40342         New module 'sqrtf-ieee'.
40343         * modules/sqrtf-ieee: New file.
40345 2012-02-27  Bruno Haible  <bruno@clisp.org>
40347         remainderl-ieee: Work around test failure on OSF/1.
40348         * m4/remainderl-ieee.m4: New file.
40349         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
40350         present, test whether remainderl works with a zero second argument.
40351         Replace it if not.
40352         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
40353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
40354         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
40355         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
40356         (Depends-on): Update conditions.
40357         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
40358         (Depends-on): Add remainder-ieee.
40359         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
40360         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
40361         module.
40363         remainderf-ieee: Work around test failure on OSF/1.
40364         * m4/remainderf-ieee.m4: New file.
40365         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
40366         present, test whether remainderf works with a zero second argument.
40367         Replace it if not.
40368         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
40369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
40370         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
40371         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
40372         (Depends-on): Update conditions.
40373         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
40374         (Depends-on): Add remainder-ieee.
40375         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
40376         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
40377         module.
40379         remainder-ieee: Work around test failure on OSF/1.
40380         * m4/remainder-ieee.m4: New file.
40381         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
40382         present, test whether remainder works with a zero second argument.
40383         Replace it if not.
40384         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
40385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
40386         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
40387         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
40388         (Depends-on): Update dependencies.
40389         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
40390         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
40391         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
40393         Tests for module 'remainderl-ieee'.
40394         * modules/remainderl-ieee-tests: New file.
40395         * tests/test-remainderl-ieee.c: New file.
40397         New module 'remainderl-ieee'.
40398         * modules/remainderl-ieee: New file.
40400         Tests for module 'remainder-ieee'.
40401         * modules/remainder-ieee-tests: New file.
40402         * tests/test-remainder-ieee.c: New file.
40404         New module 'remainder-ieee'.
40405         * modules/remainder-ieee: New file.
40407         Tests for module 'remainderf-ieee'.
40408         * modules/remainderf-ieee-tests: New file.
40409         * tests/test-remainderf-ieee.c: New file.
40410         * tests/test-remainder-ieee.h: New file.
40412         New module 'remainderf-ieee'.
40413         * modules/remainderf-ieee: New file.
40415 2012-02-27  Bruno Haible  <bruno@clisp.org>
40417         modff, modfl: Fix configure syntax error.
40418         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
40419         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40421 2012-02-27  Bruno Haible  <bruno@clisp.org>
40423         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
40424         * m4/fmodl-ieee.m4: New file.
40425         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
40426         whether fmodl works with zero arguments. Replace it if not.
40427         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
40428         (Depends-on): Add fmod-ieee.
40429         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
40430         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
40432         fmodf-ieee: Work around test failure on OSF/1.
40433         * m4/fmodf-ieee.m4: New file.
40434         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
40435         whether fmodf works with zero arguments. Replace it if not.
40436         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
40437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
40438         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
40439         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
40440         (Depends-on): Update dependencies.
40441         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
40442         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
40443         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
40445         fmodf-ieee: Work around test failure on MSVC 9.
40446         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
40447         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
40449         fmod-ieee: Work around test failures on OSF/1, mingw.
40450         * m4/fmod-ieee.m4: New file.
40451         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
40452         whether fmod works with zero arguments. Replace it if not.
40453         * lib/math.in.h (fmod): New declaration.
40454         * lib/fmod.c: New file.
40455         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
40456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
40457         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
40458         * modules/fmod (Files): Add lib/fmod.c.
40459         (Depends-on): Add math, isinf, trunc, fma.
40460         (configure.ac): Arrange to compile lib/fmod.c if needed.
40461         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
40462         m4/signbit.m4.
40463         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
40464         * tests/test-math-c++.cc: Check the declaration of fmod.
40465         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
40467         fmodl-ieee: Fix test failures.
40468         * lib/fmodl.c (fmodl): Treat Inf specially.
40469         * modules/fmodl (Depends-on): Add isinf.
40471         Tests for module 'fmodl-ieee'.
40472         * modules/fmodl-ieee-tests: New file.
40473         * tests/test-fmodl-ieee.c: New file.
40475         New module 'fmodl-ieee'.
40476         * modules/fmodl-ieee: New file.
40478         Tests for module 'fmod-ieee'.
40479         * modules/fmod-ieee-tests: New file.
40480         * tests/test-fmod-ieee.c: New file.
40482         New module 'fmod-ieee'.
40483         * modules/fmod-ieee: New file.
40485         Tests for module 'fmodf-ieee'.
40486         * modules/fmodf-ieee-tests: New file.
40487         * tests/test-fmodf-ieee.c: New file.
40488         * tests/test-fmod-ieee.h: New file.
40490         New module 'fmodf-ieee'.
40491         * modules/fmodf-ieee: New file.
40493 2012-02-27  Bruno Haible  <bruno@clisp.org>
40495         Tests for module 'rintl-ieee'.
40496         * modules/rintl-ieee-tests: New file.
40497         * tests/test-rintl-ieee.c: New file.
40499         New module 'rintl-ieee'.
40500         * modules/rintl-ieee: New file.
40502         Tests for module 'rint-ieee'.
40503         * modules/rint-ieee-tests: New file.
40504         * tests/test-rint-ieee.c: New file.
40506         New module 'rint-ieee'.
40507         * modules/rint-ieee: New file.
40509         Tests for module 'rintf-ieee'.
40510         * modules/rintf-ieee-tests: New file.
40511         * tests/test-rintf-ieee.c: New file.
40512         * tests/test-rint-ieee.h: New file.
40514         New module 'rintf-ieee'.
40515         * modules/rintf-ieee: New file.
40517 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
40519         regex: re_search etc. should return -2 when memory exhausted
40520         This bug was uncovered when testing 'grep'.  Without the fix,
40521         re_search and friends return -1 when memory is exhausted, but -1
40522         means no match, and this causes grep to falsely report no-match
40523         instead of memory-exhaustion.  See
40524         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
40525         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
40526         trouble; this can occur if re_search_internal ran out of memory.
40528 2012-02-26  Bruno Haible  <bruno@clisp.org>
40530         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
40531         * m4/modfl-ieee.m4: New file.
40532         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
40533         whether modfl works with Inf. Replace it if not.
40534         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
40535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
40536         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
40537         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
40538         (Depends-on): Update dependencies.
40539         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
40540         m4/signbit.m4.
40541         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
40542         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
40544         modfl-ieee: Fix dependencies.
40545         * modules/modfl-ieee (Depends-on): Add modf-ieee.
40547         modfl-ieee: Fix test failures.
40548         * lib/modfl.c (modfl): Treat NaN and Inf specially.
40549         * modules/modfl (Depends-on): Add isfinite, isinf.
40551         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
40552         * m4/modff-ieee.m4: New file.
40553         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
40554         whether modff works with NaN and Inf. Replace it if not.
40555         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
40556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
40557         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
40558         * modules/modff (configure.ac): Consider REPLACE_MODFF.
40559         (Depends-on): Update dependencies.
40560         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
40561         m4/signbit.m4.
40562         (Depends-on): Add modf-ieee.
40563         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
40564         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
40566         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
40567         * m4/modf-ieee.m4: New file.
40568         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
40569         whether modf works with NaN and Inf. Replace it if not.
40570         * lib/math.in.h (modf): New declaration.
40571         * lib/modf.c: New file.
40572         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
40573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
40574         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
40575         * modules/modf (Files): Add lib/modf.c.
40576         (Depends-on): Add math, isfinite, trunc, isinf.
40577         (configure.ac): Addrange to compile lib/modf.c if needed.
40578         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
40579         m4/signbit.m4.
40580         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
40581         * tests/test-math-c++.cc: Check the declaration of modf.
40582         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
40584         Tests for module 'modfl-ieee'.
40585         * modules/modfl-ieee-tests: New file.
40586         * tests/test-modfl-ieee.c: New file.
40588         New module 'modfl-ieee'.
40589         * modules/modfl-ieee: New file.
40591         Tests for module 'modf-ieee'.
40592         * modules/modf-ieee-tests: New file.
40593         * tests/test-modf-ieee.c: New file.
40595         New module 'modf-ieee'.
40596         * modules/modf-ieee: New file.
40598         Tests for module 'modff-ieee'.
40599         * modules/modff-ieee-tests: New file.
40600         * tests/test-modff-ieee.c: New file.
40601         * tests/test-modf-ieee.h: New file.
40603         New module 'modff-ieee'.
40604         * modules/modff-ieee: New file.
40606 2012-02-26  Bruno Haible  <bruno@clisp.org>
40608         Tests for module 'fabsl-ieee'.
40609         * modules/fabsl-ieee-tests: New file.
40610         * tests/test-fabsl-ieee.c: New file.
40612         New module 'fabsl-ieee'.
40613         * modules/fabsl-ieee: New file.
40615         Tests for module 'fabs-ieee'.
40616         * modules/fabs-ieee-tests: New file.
40617         * tests/test-fabs-ieee.c: New file.
40619         New module 'fabs-ieee'.
40620         * modules/fabs-ieee: New file.
40622         Tests for module 'fabsf-ieee'.
40623         * modules/fabsf-ieee-tests: New file.
40624         * tests/test-fabsf-ieee.c: New file.
40625         * tests/test-fabs-ieee.h: New file.
40627         New module 'fabsf-ieee'.
40628         * modules/fabsf-ieee: New file.
40630 2012-02-26  Bruno Haible  <bruno@clisp.org>
40632         Tests for module 'fmal-ieee'.
40633         * modules/fmal-ieee-tests: New file.
40634         * tests/test-fmal-ieee.c: New file.
40636         New module 'fmal-ieee'.
40637         * modules/fmal-ieee: New file.
40639         Tests for module 'fma-ieee'.
40640         * modules/fma-ieee-tests: New file.
40641         * tests/test-fma-ieee.c: New file.
40643         New module 'fma-ieee'.
40644         * modules/fma-ieee: New file.
40646         Tests for module 'fmaf-ieee'.
40647         * modules/fmaf-ieee-tests: New file.
40648         * tests/test-fmaf-ieee.c: New file.
40649         * tests/test-fma-ieee.h: New file.
40651         New module 'fmaf-ieee'.
40652         * modules/fmaf-ieee: New file.
40654 2012-02-26  Bruno Haible  <bruno@clisp.org>
40656         Tests for module 'ldexpl-ieee'.
40657         * modules/ldexpl-ieee-tests: New file.
40658         * tests/test-ldexpl-ieee.c: New file.
40660         New module 'ldexpl-ieee'.
40661         * modules/ldexpl-ieee: New file.
40663         Tests for module 'ldexp-ieee'.
40664         * modules/ldexp-ieee-tests: New file.
40665         * tests/test-ldexp-ieee.c: New file.
40667         New module 'ldexp-ieee'.
40668         * modules/ldexp-ieee: New file.
40670         Tests for module 'ldexpf-ieee'.
40671         * modules/ldexpf-ieee-tests: New file.
40672         * tests/test-ldexpf-ieee.c: New file.
40673         * tests/test-ldexp-ieee.h: New file.
40675         New module 'ldexpf-ieee'.
40676         * modules/ldexpf-ieee: New file.
40678 2012-02-26  Bruno Haible  <bruno@clisp.org>
40680         Refactor frexp*-ieee tests.
40681         * tests/test-frexp-ieee.h: New file.
40682         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
40683         (main): Just call test_function.
40684         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
40685         (main): Just call test_function.
40686         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
40687         (main): Just call test_function.
40688         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
40689         * modules/frexp-ieee-tests (Files): Likewise.
40690         * modules/frexpl-ieee-tests (Files): Likewise.
40692         Tests for module 'frexpl-ieee'.
40693         * modules/frexpl-ieee-tests: New file.
40694         * tests/test-frexpl-ieee.c: New file.
40696         New module 'frexpl-ieee'.
40697         * modules/frexpl-ieee: New file.
40699         Tests for module 'frexp-ieee'.
40700         * modules/frexp-ieee-tests: New file.
40701         * tests/test-frexp-ieee.c: New file.
40703         New module 'frexp-ieee'.
40704         * modules/frexp-ieee: New file.
40706         Tests for module 'frexpf-ieee'.
40707         * modules/frexpf-ieee-tests: New file.
40708         * tests/test-frexpf-ieee.c: New file.
40710         New module 'frexpf-ieee'.
40711         * modules/frexpf-ieee: New file.
40713 2012-02-26  Bruno Haible  <bruno@clisp.org>
40715         roundl-ieee tests: More tests.
40716         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
40717         (main): Add tests for [MX] shaded specification in POSIX.
40718         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40719         (Depends-on): Add isnanl-nolibm.
40721         round-ieee tests: More tests.
40722         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
40723         (main): Add tests for [MX] shaded specification in POSIX.
40724         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40725         (Depends-on): Add isnand-nolibm.
40727         roundf-ieee tests: More tests.
40728         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
40729         (main): Add tests for [MX] shaded specification in POSIX.
40730         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40731         (Depends-on): Add isnanf-nolibm.
40733         truncl-ieee tests: More tests.
40734         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
40735         (main): Add tests for [MX] shaded specification in POSIX.
40736         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40737         (Depends-on): Add isnanl-nolibm.
40739         trunc-ieee tests: More tests.
40740         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
40741         (main): Add tests for [MX] shaded specification in POSIX.
40742         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40743         (Depends-on): Add isnand-nolibm.
40745         truncf-ieee tests: More tests.
40746         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
40747         (main): Add tests for [MX] shaded specification in POSIX.
40748         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40749         (Depends-on): Add isnanf-nolibm.
40751         ceill-ieee tests: More tests.
40752         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
40753         (main): Add tests for [MX] shaded specification in POSIX.
40754         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40755         (Depends-on): Add isnanl-nolibm.
40757         ceil-ieee tests: More tests.
40758         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
40759         (main): Add tests for [MX] shaded specification in POSIX.
40760         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40761         (Depends-on): Add isnand-nolibm.
40763         ceilf-ieee tests: More tests.
40764         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
40765         (main): Add tests for [MX] shaded specification in POSIX.
40766         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40767         (Depends-on): Add isnanf-nolibm.
40769         floorl-ieee tests: More tests.
40770         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
40771         (main): Add tests for [MX] shaded specification in POSIX.
40772         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40773         (Depends-on): Add isnanl-nolibm.
40775         floor-ieee tests: More tests.
40776         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
40777         (main): Add tests for [MX] shaded specification in POSIX.
40778         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40779         (Depends-on): Add isnand-nolibm.
40781         floorf-ieee tests: More tests.
40782         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
40783         (main): Add tests for [MX] shaded specification in POSIX.
40784         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
40785         (Depends-on): Add isnanf-nolibm.
40787 2012-02-26  Bruno Haible  <bruno@clisp.org>
40789         fpieee: More comments.
40790         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
40792 2012-02-25  Bruno Haible  <bruno@clisp.org>
40794         Tests for module 'log10l'.
40795         * modules/log10l-tests: New file.
40796         * tests/test-log10l.c: New file.
40797         * tests/test-math-c++.cc: Check the declaration of log10l.
40799         New module 'log10l'.
40800         * lib/math.in.h (log10l): New declaration.
40801         * lib/log10l.c: New file.
40802         * m4/log10l.m4: New file.
40803         * modules/log10l: New file.
40804         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
40805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
40806         HAVE_DECL_LOG10L.
40807         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
40808         HAVE_DECL_LOG10L.
40809         * doc/posix-functions/log10l.texi: Mention the new module.
40811 2012-02-25  Bruno Haible  <bruno@clisp.org>
40813         fmodl, remainder*: Avoid wrong results due to rounding errors.
40814         * lib/fmodl.c (fmodl): Correct the result if it is not within the
40815         expected bounds.
40816         * lib/remainderf.c (remainderf): Likewise.
40817         * lib/remainder.c (remainder): Likewise.
40818         * lib/remainderl.c (remainderl): Likewise.
40820 2012-02-25  Bruno Haible  <bruno@clisp.org>
40822         Tests for module 'remainderl'.
40823         * modules/remainderl-tests: New file.
40824         * tests/test-remainderl.c: New file.
40825         * tests/test-math-c++.cc: Check the declaration of remainderl.
40827         New module 'remainderl'.
40828         * lib/math.in.h (remainderl): New declaration.
40829         * lib/remainderl.c: New file.
40830         * m4/remainderl.m4: New file.
40831         * modules/remainderl: New file.
40832         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
40833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
40834         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
40835         HAVE_REMAINDERL.
40836         * doc/posix-functions/remainderl.texi: Mention the new module.
40838 2012-02-25  Bruno Haible  <bruno@clisp.org>
40840         Tests for module 'remainderf'.
40841         * modules/remainderf-tests: New file.
40842         * tests/test-remainderf.c: New file.
40843         * tests/test-math-c++.cc: Check the declaration of remainderf.
40845         New module 'remainderf'.
40846         * lib/math.in.h (remainderf): New declaration.
40847         * lib/remainderf.c: New file.
40848         * m4/remainderf.m4: New file.
40849         * modules/remainderf: New file.
40850         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
40851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
40852         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
40853         HAVE_REMAINDERF.
40854         * doc/posix-functions/remainderf.texi: Mention the new module.
40856 2012-02-25  Bruno Haible  <bruno@clisp.org>
40858         remainder: Support for MSVC.
40859         * lib/math.in.h (remainder): New declaration.
40860         * lib/remainder.c: New file.
40861         * m4/remainder.m4: New file.
40862         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
40863         (Depends-on): Add math, round, fma.
40864         (configure.ac): Use results of gl_FUNC_REMAINDER.
40865         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
40866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
40867         HAVE_DECL_REMAINDER.
40868         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
40869         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
40870         * tests/test-math-c++.cc: Check the declaration of remainder.
40871         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
40872         problems are fixed.
40874 2012-02-25  Bruno Haible  <bruno@clisp.org>
40876         Tests for module 'fmodl'.
40877         * modules/fmodl-tests: New file.
40878         * tests/test-fmodl.c: New file.
40879         * tests/test-math-c++.cc: Check the declaration of fmodl.
40881         New module 'fmodl'.
40882         * lib/math.in.h (fmodl): New declaration.
40883         * lib/fmodl.c: New file.
40884         * m4/fmodl.m4: New file.
40885         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
40886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
40887         REPLACE_FMODL.
40888         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
40889         REPLACE_FMODL.
40890         * modules/fmodl: New file.
40891         * doc/posix-functions/fmodl.texi: Mention the new module.
40893 2012-02-25  Bruno Haible  <bruno@clisp.org>
40895         Tests for module 'modfl'.
40896         * modules/modfl-tests: New file.
40897         * tests/test-modfl.c: New file.
40898         * tests/test-math-c++.cc: Check the declaration of modfl.
40900         New module 'modfl'.
40901         * lib/math.in.h (modfl): New declaration.
40902         * lib/modfl.c: New file.
40903         * m4/modfl.m4: New file.
40904         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
40905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
40906         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
40907         * modules/modfl: New file.
40908         * doc/posix-functions/modfl.texi: Mention the new module.
40910 2012-02-25  Bruno Haible  <bruno@clisp.org>
40912         Tests for module 'fabsl'.
40913         * modules/fabsl-tests: New file.
40914         * tests/test-fabsl.c: New file.
40915         * tests/test-math-c++.cc: Check the declaration of fabsl.
40917         New module 'fabsl'.
40918         * lib/math.in.h (fabsl): New declaration.
40919         * lib/fabsl.c: New file.
40920         * m4/fabsl.m4: New file.
40921         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
40922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
40923         REPLACE_FABSL.
40924         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
40925         REPLACE_FABSL.
40926         * modules/fabsl: New file.
40927         * doc/posix-functions/fabsl.texi: Mention the new module.
40929 2012-02-25  Bruno Haible  <bruno@clisp.org>
40931         fabs tests: More tests.
40932         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
40933         (zero): New variable.
40934         (main): Add tests for signed zero.
40935         * modules/fabs-tests (Files): Add tests/minus-zero.h.
40937         fabsf tests: More tests.
40938         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
40939         (zero): New variable.
40940         (main): Add tests for signed zero.
40941         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
40943 2012-02-24  Bruno Haible  <bruno@clisp.org>
40945         atanl: Provide function definition on MSVC.
40946         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
40947         function pointer.
40948         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
40950 2012-02-24  Bruno Haible  <bruno@clisp.org>
40952         acosl: Provide function definition on MSVC.
40953         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
40954         function pointer.
40955         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
40957 2012-02-24  Bruno Haible  <bruno@clisp.org>
40959         asinl: Provide function definition on MSVC.
40960         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
40961         function pointer.
40962         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
40964 2012-02-24  Bruno Haible  <bruno@clisp.org>
40966         tanl: Provide function definition on MSVC.
40967         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
40968         function pointer.
40969         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
40971 2012-02-24  Bruno Haible  <bruno@clisp.org>
40973         cosl: Provide function definition on MSVC.
40974         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
40975         function pointer.
40976         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
40978 2012-02-24  Bruno Haible  <bruno@clisp.org>
40980         sinl: Provide function definition on MSVC.
40981         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
40982         function pointer.
40983         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
40985 2012-02-24  Bruno Haible  <bruno@clisp.org>
40987         logl: Provide function definition on MSVC.
40988         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
40989         function pointer.
40990         * lib/math.in.h (logl): Undefine if it does not exist as a function.
40992 2012-02-24  Bruno Haible  <bruno@clisp.org>
40994         expl: Provide function definition on MSVC.
40995         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
40996         function pointer.
40997         * lib/math.in.h (expl): Undefine if it does not exist as a function.
40999 2012-02-24  Bruno Haible  <bruno@clisp.org>
41001         sqrtl: Provide function definition on MSVC.
41002         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
41003         a function pointer.
41004         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
41006 2012-02-24  Bruno Haible  <bruno@clisp.org>
41008         ceill: Provide function definition on MSVC.
41009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
41010         used as a function pointer.
41011         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
41013 2012-02-24  Bruno Haible  <bruno@clisp.org>
41015         floorl: Provide function definition on MSVC.
41016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
41017         used as a function pointer.
41018         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
41020 2012-02-24  Bruno Haible  <bruno@clisp.org>
41022         ceilf: Provide function definition on MSVC.
41023         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
41024         used as a function pointer.
41025         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
41027 2012-02-24  Bruno Haible  <bruno@clisp.org>
41029         floorf: Provide function definition on MSVC.
41030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
41031         used as a function pointer.
41032         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
41034 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41036         stdnoreturn: new module
41037         This implements a replacement for C11's <stdnoreturn.h>.
41038         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
41039         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
41040         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
41041         * tests/test-stdnoreturn.c: New files.
41043 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
41045         regex: fix false multibyte matches in some regular expressions
41046         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
41047         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
41048         * lib/regex_internal.c (re_string_skip_chars):
41049         Fix miscomputation of remain_len that may cause incomplete
41050         multi-byte character and false match.
41052 2012-02-24  Jim Meyering  <meyering@redhat.com>
41054         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
41055         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
41056         uses with "==" *before* the call, e.g., 0 == strcmp (...)
41057         Remove now-unnecessary str''cmp obfuscation.
41058         Suggested by Akim Demaille.
41060 2012-02-24  Bruno Haible  <bruno@clisp.org>
41062         streq: Rename macro.
41063         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
41064         * NEWS: Mention the change.
41065         * lib/mbrtowc.c (mbrtowc): Update.
41066         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
41067         * lib/wcwidth.c (wcwidth): Update.
41068         Suggested by Akim Demaille and Jim Meyering.
41070 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41072         regex: fix typo in definition of MIN
41073         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
41074         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
41076 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41077             Bruno Haible  <bruno@clisp.org>
41079         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
41080         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
41081         entries into a stack-allocated buffer directly.
41082         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
41084 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41085             Bruno Haible  <bruno@clisp.org>
41087         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
41089          - There were several instances of this pattern:
41091              for (;;) {
41092                n = acl (f, GETACLCNT, 0, NULL);
41093                [ allocate an array A of size N ]
41094                if (acl (f, GETACL, n, a) == n)
41095                  break;
41096              }
41098            This loop might never terminate if some other process is constantly
41099            manipulating the file's ACL.  The loop should be rewritten to
41100            terminate.
41102          - The acl (... GETACLNT ...) call is merely an optimization; its value
41103            is merely a hint as to how big to make the array.  A better
41104            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
41105            and just guess a reasonably-big size, growing the size and trying
41106            again if it's not large enough.  This guarantees termination, and
41107            saves a system call.
41109         * lib/acl-internal.h: Include <limits.h>.
41110         (MIN, SIZE_MAX): New macros.
41111         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
41112         a stack-allocated buffer, and use malloc if it does not fit. Don't
41113         use GETACLCNT.
41114         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41116 2012-02-19  Bruno Haible  <bruno@clisp.org>
41118         acl: Fix endless loop on Solaris with vxfs.
41119         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
41120         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
41121         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41122         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
41123         * tests/test-sameacls.c (main)[Solaris]: Likewise.
41124         Reported by Bill Jones in
41125         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
41127 2012-02-19  Bruno Haible  <bruno@clisp.org>
41129         acl: Fix copy-acl test failure on Solaris 11.0.
41130         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
41131         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
41132         that this function returns 0 in some more cases.
41134 2012-02-19  Bruno Haible  <bruno@clisp.org>
41136         acl: Update doc references.
41137         * doc/acl-resources.txt: Update links to Solaris documentation.
41139 2012-02-19  Bruno Haible  <bruno@clisp.org>
41141         Fix test failure in many locales on Solaris 11.
41142         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
41143         'tr' arguments.
41144         * tests/test-pipe-filter-ii1.c (main): Likewise.
41145         * build-aux/bootstrap (check_versions): Run 'tr' command with range
41146         expressions in the C locale.
41147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41148         * m4/host-os.m4 (gl_HOST_OS): Likewise.
41150 2012-02-19  Bruno Haible  <bruno@clisp.org>
41152         gnulib-tool: Improve usage message.
41153         * gnulib-tool (func_usage): Move doc of --help and --version to the
41154         section "Operation modes".
41156 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
41158         README-release: make it easier to execute commands
41159         * top/README-release: break commands out on to separate lines.
41161 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
41163         GNUmakefile: simplify detection of unconfigured trees
41164         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
41165         whether the tree make is being run from is already configured or
41166         not.  Related simplifications.
41168 2012-02-13  Simon Josefsson  <simon@josefsson.org>
41170         * gnulib-tool (func_usage): Document --help and --version.
41172 2012-02-11  Jim Meyering  <meyering@redhat.com>
41174         bootstrap: don't exit 0 upon gnulib-tool failure
41175         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
41176         its exit status, not 0.
41178 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
41180         README-release: various improvements
41181         * top/README-release: Give a command to push changes for the
41182         release.  Add "distcheck" to list of other pre-release checks.
41183         Fix instance of "make stable" which should be "make TYPE".
41185 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41187         maint: replace FSF snail-mail addresses with URLs
41188         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
41189         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
41190         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
41191         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
41192         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
41193         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
41194         * lib/check-version.c, lib/check-version.h, lib/config.charset:
41195         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
41196         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
41197         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
41198         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
41199         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
41200         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
41201         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
41202         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
41203         * lib/glthread/thread.c, lib/glthread/thread.h:
41204         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
41205         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
41206         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
41207         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
41208         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
41209         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
41210         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
41211         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
41212         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
41213         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
41214         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
41215         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
41216         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
41217         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
41218         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
41219         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
41220         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
41221         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
41222         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
41223         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
41224         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
41225         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
41226         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
41227         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
41228         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
41229         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
41230         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
41231         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
41232         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
41233         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
41234         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
41235         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
41236         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
41237         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
41238         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
41239         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
41240         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
41241         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
41242         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
41243         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
41244         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
41245         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
41246         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
41247         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
41248         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
41249         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
41250         * tests/test-poll.c, tests/test-quotearg-simple.c:
41251         * tests/test-quotearg.c, tests/test-quotearg.h:
41252         * tests/test-round-ieee.c, tests/test-round1.c:
41253         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
41254         * tests/test-roundl-ieee.c, tests/test-roundl.c:
41255         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
41256         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
41257         * tests/test-strerror.c, tests/test-strerror_r.c:
41258         * tests/test-strsignal.c, tests/test-strverscmp.c:
41259         * tests/test-xmemdup0.c:
41260         Replace FSF snail mail addresses with URLs, as per GNU coding
41261         standards.  See glibc bug
41262         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
41264 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41266         README-release: capitalize a word and split a line
41267         * top/README-release: Fix punctuation and spacing.
41269 2012-02-08  Akim Demaille  <demaille@gostai.com>
41271         fatal-signal: use C prototypes (with explicit void).
41272         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41273         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
41275 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41277         regex: spelling fix
41278         * lib/regexec.c: spelling fix
41280         regex: rely on stdint.h for SIZE_MAX
41281         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
41283 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41285         regex: merge glibc changes
41287         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
41288         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
41289         (init_word_char): Work even if bitset words are not exactly 32 or
41290         64 bits wide.  Don't assume there are no padding bits.
41291         * lib/regex.c [_LIBC]: Do not include <config.h>.
41292         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
41293         and -Wtype-limits.
41294         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
41295         needless disagreement with glibc.  All uses changed.  Define it to
41296         1 only if _GNU_SOURCE, to match glibc.
41297         (_REG_RM_NAME): Remove; no longer needed, since the names in
41298         question are now all protected by __USE_GNU.
41299         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
41300         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
41301         * lib/regex_internal.h (MIN): New macro.
41303         2012-01-03 Ulrich Drepper <drepper@gmail.com>
41304         * lib/regcomp.c (init_word_char): Optimize regex a bit.
41306         2011-12-30 Jakub Jelinek <jakub@redhat.com>
41307         * lib/regex_internal.c (re_string_fetch_byte_case):
41308         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
41309         is miscompiled, and it turns out it is because of an incorrect
41310         attribute on re_string_fetch_byte_case.  Unlike
41311         re_string_peek_byte_case, this one is really not pure, it modifies
41312         memory (increments pstr->cur_idx), and with the pure attribute GCC
41313         assumed it doesn't and it cached the presumed value of
41314         regexp->cur_idx in a variable across the
41315          for (;; ++i)
41316            {
41317              if (i >= BRACKET_NAME_BUF_SIZE)
41318                return REG_EBRACK;
41319              if (token->type == OP_OPEN_CHAR_CLASS)
41320                ch = re_string_fetch_byte_case (regexp);
41321              else
41322                ch = re_string_fetch_byte (regexp);
41323              if (re_string_eoi(regexp))
41324                return REG_EBRACK;
41325              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
41326                break;
41327              elem->opr.name[i] = ch;
41328            }
41330         2011-11-29 Andreas Schwab <schwab@redhat.com>
41331         * lib/regcomp.c (build_equiv_class):
41332         Fix access after end of search string in regex matcher.
41334         2011-11-12 Ulrich Drepper <drepper@redhat.com>
41335         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
41337         2011-10-12 Ulrich Drepper <drepper@redhat.com>
41338         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
41340         2011-10-11 Ulrich Drepper <drepper@redhat.com>
41341         * lib/regcomp.c (parse_branch, parse_sub_exp):
41342         More regex memory leak fixes and tests.
41343         (parse_sub_exp, parse_bracket_exp):
41344         Fix memory leak for some invalid regular expressions.
41346         2011-05-28 Ulrich Drepper <drepper@gmail.com>
41347         * lib/regex_internal.c, lib/regexec.c:
41348         Fix unnecessary overallocation due to incomplete character.  When
41349         incomplete characters are found at the end of a string the code
41350         ran amok and allocated lots of memory.  Stricter limits are now in
41351         place.
41353         2011-05-20 Reuben Thomas <rrt@sc3d.org>
41354         * lib/regex.h: Update documentation.
41356         2011-05-16 Aharon Robbins <arnold@skeeve.com>
41357         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
41359         2010-05-05 Andreas Schwab <schwab@redhat.com>
41360         * lib/regexec.c (find_collation_sequence_value):
41361         Fix lookup of collation sequence value during regexp matching.
41363         2010-01-22 Ulrich Drepper <drepper@redhat.com>
41364         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
41366         2008-01-16 Ulrich Drepper <drepper@redhat.com>
41367         * lib/regex.h: Cleanup namespace.
41369         2007-11-26 Ulrich Drepper <drepper@redhat.com>
41370         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
41372         2007-08-26 Ulrich Drepper <drepper@redhat.com>
41373         * lib/regex_internal.h: Prevent some declarations and definitions
41374         to be seen when used in tests.
41376         2005-05-06 Ulrich Drepper <drepper@redhat.com>
41377         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
41378         __libc_lock_* macros if not _LIBC.
41379         (struct re_dfa_t): Add lock.
41381 2012-02-07  Eric Blake  <eblake@redhat.com>
41383         maint.mk: also prohibit lower-case @var@
41384         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
41385         lower case, like @top_srcdir@.
41387 2012-02-04  Eric Blake  <eblake@redhat.com>
41389         canonicalize: avoid uninitialized memory use
41390         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
41391         random '/' left in dest.
41392         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
41394 2012-02-04  Bruno Haible  <bruno@clisp.org>
41396         isatty: Fix test failure of ptsname_r on native Windows.
41397         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
41398         and don't set errno.
41399         (isatty): Test first whether fd is valid. Set errno when returning 0.
41401 2012-02-04  Bruno Haible  <bruno@clisp.org>
41403         spawn-pipe tests: Fix a NULL program name in a diagnostic.
41404         * tests/test-spawn-pipe-main.c: Include progname.h.
41405         (main): Invoke set_program_name.
41406         * modules/spawn-pipe-tests (Depends-on): Add progname.
41408         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
41409         * tests/test-nonblocking-socket-main.c: Include progname.h.
41410         (main): Invoke set_program_name.
41411         * modules/nonblocking-socket-tests (Depends-on): Add progname.
41413         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
41414         * tests/test-nonblocking-pipe-main.c: Include progname.h.
41415         (main): Invoke set_program_name.
41416         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
41418 2012-02-04  Eric Blake  <eblake@redhat.com>
41420         canonicalize-lgpl: fix // handling
41421         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
41423         canonicalize: fix // handling
41424         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
41425         /// to //, since only // is special.
41427 2012-02-04  Bruno Haible  <bruno@clisp.org>
41429         ioctl: Fix test failure on native Windows.
41430         * lib/ioctl.c: Include msvc-nothrow.h.
41431         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
41433 2012-02-04  Bruno Haible  <bruno@clisp.org>
41435         fsync: Avoid test failure on native Windows.
41436         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
41437         read-only.
41439 2012-02-04  Bruno Haible  <bruno@clisp.org>
41441         sys_select: Avoid syntax error on OpenBSD 5.0.
41442         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
41443         currently being included, just include the system's <sys/select.h>.
41445 2012-02-04  Bruno Haible  <bruno@clisp.org>
41447         sys_select: Avoid syntax error on OpenBSD 5.0.
41448         * lib/sys_select.in.h: Include <signal.h> only after the include_next
41449         <sys/select.h>, not before.
41450         Reported by Jiri B <jirib@devio.us>.
41452 2012-02-04  Bruno Haible  <bruno@clisp.org>
41454         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
41455         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
41456         global variables.
41457         * tests/test-get-rusage-data.c (main): Likewise.
41458         Reported by Jim Meyering.
41460 2012-02-04  Bruno Haible  <bruno@clisp.org>
41462         stdioext: Fix last commit.
41463         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
41465 2012-02-03  Bruno Haible  <bruno@clisp.org>
41467         stdioext: Add tentative support for Plan9.
41468         * lib/stdio-impl.h: Include <errno.h>.
41469         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
41470         * lib/freadable.c (freadable): Likewise.
41471         * lib/fwritable.c (fwritable): Likewise.
41472         * lib/fbufmode.c (fbufmode): Likewise.
41473         * lib/freading.c (freading): Likewise.
41474         * lib/fwriting.c (fwriting): Likewise.
41475         * lib/freadptr.c (freadptr): Likewise.
41476         * lib/freadseek.c (freadptrinc): Likewise.
41477         * lib/freadahead.c (freadahead): Likewise.
41478         * lib/fpurge.c (fpurge): Likewise.
41479         * lib/fseeko.c (rpl_fseeko): Likewise.
41480         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
41481         Reported by Jens Staal <staal1978@gmail.com>.
41483 2012-02-02  Jim Meyering  <meyering@redhat.com>
41485         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
41486         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
41487         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
41488         not even to try to add the attribute.  Instead, add a pragma to suppress
41489         the suggestion/warning.
41491 2012-01-31  Karl Berry  <karl@gnu.org>
41493         setstate doc: typo.
41494         * doc/posix-functions/setstate.texi (setstate): { not (.
41496 2012-01-31  Bruno Haible  <bruno@clisp.org>
41498         popen: Make more robust on Windows.
41499         * lib/popen.c: On native Windows, use the _popen based code even if
41500         HAVE_POPEN is set.
41501         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
41502         environment variable on native Windows.
41504 2012-01-30  Bruno Haible  <bruno@clisp.org>
41506         pclose: Fix typo.
41507         * lib/stdio.in.h (pclose): Fix typo in warning message.
41509 2012-01-30  Bruno Haible  <bruno@clisp.org>
41511         doc about getlogin_r, setstate.
41512         * doc/posix-functions/getlogin_r.texi: List the incompatible
41513         declaration problem under "not fixed by gnulib".
41514         * doc/posix-functions/setstate.texi: Mention incompatible declaration
41515         problem on Solaris 11 and other platforms.
41517 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
41518             Bruno Haible  <bruno@clisp.org>
41520         poll tests: Make test more robust.
41521         * tests/test-poll.c: Include macros.h.
41522         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
41523         return value of various I/O operations.
41524         * modules/poll-tests (Files): Add tests/macros.h.
41526 2012-01-30  Bruno Haible  <bruno@clisp.org>
41528         sys_stat: Fix support for mingw64 and MSVC.
41529         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
41530         header files already do it.
41531         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
41532         stat itself.
41533         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
41535 2012-01-30  Bruno Haible  <bruno@clisp.org>
41537         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
41538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
41539         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
41541 2012-01-29  Bruno Haible  <bruno@clisp.org>
41543         quotearg: Fix test failure on MacOS X 10.5.
41544         * tests/test-quotearg-simple.c: Include localcharset.h.
41545         (main): If the locale encoding is not ASCII, bypass the tests of
41546         locale_quoting_style and clocale_quoting_style.
41547         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
41549 2012-01-29  Jim Meyering  <meyering@redhat.com>
41551         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
41552         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
41553         detect uses of canonicalize_file_name.
41555 2012-01-28  Bruno Haible  <bruno@clisp.org>
41557         test-framework-sh: Fix test failure with AIX 7.1 diff.
41558         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
41559         in column 1, like 'diff -c' does.
41560         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
41561         whether 'diff -u' is used. Instead, test whether the output contains
41562         some '@' character.
41564 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41566         strtoimax: eliminate need for stdint.h, inttypes.h checks
41567         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
41568         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
41569         the prerequisites for a recently-introduced strtoimax test.
41570         I guess this might cause strtoimax to be replaced when not
41571         strictly necessary on older hosts, but this shouldn't introduce
41572         any bugs and it should make Emacs 'configure' faster on typical
41573         modern hosts.  Problem discovered when importing the latest gnulib
41574         to an Emacs test version.
41575         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
41577 2012-01-28  Bruno Haible  <bruno@clisp.org>
41579         sys_time: Override 'struct timeval' on some native Windows platforms.
41580         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
41581         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
41582         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
41583         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
41584         needs to be overridden.
41585         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
41586         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
41587         * tests/test-sys_select.c: Check that the tv_sec member has the same
41588         size as a 'time_t'.
41589         * tests/test-sys_time.c: Likewise.
41590         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
41591         is set, set also REPLACE_GETTIMEOFDAY.
41592         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
41593         convert the resulting 'struct timeval' before returning.
41594         * lib/select.c: Include <sys/time.h>.
41595         (select, timeval): Undefine at the right place.
41596         * modules/select (Depends-on): Add sys_time.
41597         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
41598         some Windows platforms.
41599         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
41601 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
41603         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
41604         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
41605         an integer.
41606         * lib/fcntl.c (dupfd): Likewise.
41607         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
41609 2012-01-28  Bruno Haible  <bruno@clisp.org>
41611         fcntl: Avoid compilation error on native Windows.
41612         * modules/fcntl (Depends-on): Add 'close'.
41614 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
41616         select, poll, isatty: Avoid warnings on x86_64 mingw64.
41617         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
41618         pointer to an integer.
41619         * lib/poll.c (IsConsoleHandle): Likewise.
41620         * lib/isatty.c (IsConsoleHandle): Likewise.
41622 2012-01-28  Jim Meyering  <meyering@redhat.com>
41624         doc: clarify README-release
41625         * top/README-release: Clarify: you should make a point to have
41626         the latest stable versions of build tools in your PATH, and the
41627         reference to buildreq is solely for its list of tool names, not
41628         for its minimal-functional version numbers.
41629         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
41631         maint.mk: use more readable (yet functionally equivalent) quoting
41632         It is common to quote a single quote in a single quoted string like
41633         this:  '...'\''...'.  Unless you know the idiom, that looks like
41634         gibberish, so prefer to double-quote the string when possible.
41635         Then you can use a more readable, lone single quote: "...'..."
41636         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
41637         "don't" is more readable than the equivalent 'don'\''t'.
41638         (sc_cast_of_x_alloc_return_value): Likewise.
41639         (sc_cast_of_alloca_return_value): Likewise.
41640         (sc_makefile_path_separator_check): Similar: use ":" in '...',
41641         rather than '\'':'\''.
41643 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
41645         stdalign: relax _Alignof and tighten _Alignas test
41646         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
41647         as it was too strict: alignof must divide offsetof, but it need
41648         not equal offsetof.  Inspired by Joseph S. Myers's comment
41649         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
41650         Conversely, tighten the _Alignas test a bit, as the resulting
41651         alignment must be exactly 8.
41653 2012-01-27  Bruno Haible  <bruno@clisp.org>
41655         stdalign: Document the last change.
41656         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
41658 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
41660         stdalign: check that alignof and offsetof are consistent
41661         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
41662         Problem reported for gnulib by Richard W.M. Jones in
41663         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
41665 2012-01-27  Jim Meyering  <meyering@redhat.com>
41667         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
41668         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
41669         convert a sequence with gaps to the minimal containing range.
41670         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
41671         * tests/test-update-copyright.sh: Test for this.
41672         The FSF confirmed it is ok to do this, assuming there is at
41673         least one significant change per year in the affected range:
41674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
41676 2012-01-26  Bruno Haible  <bruno@clisp.org>
41678         pipe2: refine doc about thread-safety
41679         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
41680         multithread-safety problem.
41681         * doc/glibc-functions/accept4.texi: Likewise.
41683 2012-01-26  Bruno Haible  <bruno@clisp.org>
41685         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
41686         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
41687         In the test program, include <fcntl.h>, for O_RDONLY.
41689 2012-01-26  Eric Blake  <eblake@redhat.com>
41691         pipe2: document lack of thread-safety in replacement
41692         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
41693         issue in replacement.
41694         * doc/glibc-functions/accept4.texi (accept4): Likewise.
41695         Based on a report by Eric Wong.
41697 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
41698             Bruno Haible  <bruno@clisp.org>
41700         malloca: Avoid warnings on x86_64 mingw64.
41701         * lib/malloca.c: Include <stdint.h>.
41702         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
41703         * modules/malloca (Depends-on): Add stdint.
41704         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
41706 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41708         obstack: remove __STDC__ conditionals
41709         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
41710         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
41711         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
41712         m4/include_next.m4 as the only gnulib-maintained places that still
41713         refer to __STDC__.
41715 2012-01-24  Bruno Haible  <bruno@clisp.org>
41717         havelib: Modern quoting.
41718         * build-aux/config.rpath: Quote 'like this', not `like this', as per
41719         the recent change to the GNU coding standards.
41721 2012-01-24  Bruno Haible  <bruno@clisp.org>
41723         stdint: Improve support for Android.
41724         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
41725         Reported by Simon Josefsson <simon@josefsson.org>.
41727 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41729         doc: omit trailing empty lines from INSTALL etc.
41730         * doc/Makefile (INSTALL): Omit trailing empty lines.
41731         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
41732         omit trailing empty lines.  This simplifies the build procedure.
41734 2012-01-23  Jim Meyering  <meyering@redhat.com>
41736         tests: avoid spurious warnings about gl_sockets_startup
41737         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
41738         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
41739         reporting a "statement with no effect".
41740         * tests/test-accept.c (main): Mark as "(void)".
41741         * tests/test-accept4.c (main): Likewise.
41742         * tests/test-bind.c (main): Likewise.
41743         * tests/test-connect.c (main): Likewise.
41744         * tests/test-getpeername.c (main): Likewise.
41745         * tests/test-getsockname.c (main): Likewise.
41746         * tests/test-getsockopt.c (main): Likewise.
41747         * tests/test-listen.c (main): Likewise.
41748         * tests/test-recv.c (main): Likewise.
41749         * tests/test-recvfrom.c (main): Likewise.
41750         * tests/test-send.c (main): Likewise.
41751         * tests/test-sendto.c (main): Likewise.
41752         * tests/test-setsockopt.c (main): Likewise.
41753         * tests/test-shutdown.c (main): Likewise.
41755 2012-01-21  Bruno Haible  <bruno@clisp.org>
41757         locale-fr.m4: Fix for Android.
41758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
41759         failure of the test program on Bionic libc.
41761 2012-01-21  Jim Meyering  <meyering@redhat.com>
41763         bootstrap: fail when bootstrap_post_import_hook fails
41764         Otherwise, it's far too easy to miss diagnostics emitted
41765         between gnulib-tool's output and that of running configure.
41766         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
41768 2012-01-17  Jim Meyering  <meyering@redhat.com>
41770         maint: enable sc_trailing_blank
41771         * build-aux/pmccabe.css: Remove trailing blanks.
41772         * doc/acl-cygwin.txt: Likewise.
41773         * doc/gnu-oids.texi: Likewise
41774         * cfg.mk: Enable sc_trailing_blank.
41775         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
41777 2012-01-17  Jim Meyering  <meyering@redhat.com>
41779         maint: enable sc_prohibit_openat_without_use
41780         * cfg.mk: Enable sc_prohibit_openat_without_use.
41781         Exempt lib/selinux-at.c.
41783 2012-01-17  Jim Meyering  <meyering@redhat.com>
41785         maint: enable sc_prohibit_cloexec_without_use
41786         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
41787         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
41789 2012-01-17  Jim Meyering  <meyering@redhat.com>
41791         maint: enable sc_prohibit_intprops_without_use
41792         * cfg.mk: Enable sc_prohibit_intprops_without_use
41793         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
41795 2012-01-17  Jim Meyering  <meyering@redhat.com>
41797         maint: enable sc_prohibit_hash_pjw_without_use
41798         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
41799         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
41800         to match any use of \<hash_pjw\>, i.e., not necessarily with a
41801         following " (".
41803 2012-01-17  Jim Meyering  <meyering@redhat.com>
41805         maint: enable double-word-prohibiting rule
41806         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
41807         Exempt three files.
41809 2012-01-17  Jim Meyering  <meyering@redhat.com>
41811         maint: remove empty lines at EOF, but excluding modules/*
41812         Apply syntax rules at home as well as abroad.  Most changes
41813         were induced by running this:
41814           make srcdir=. _build-aux=build-aux -f top/maint.mk \
41815             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
41816             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
41817         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
41818         Exempt modules/* and two binary files.
41819         Also exempt doc/INSTALL*, per request from Bruno Haible.
41820         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
41821         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
41822         * doc/Copyright/request-assign.future: Likewise.
41823         * doc/Copyright/request-disclaim.changes: Likewise.
41824         * doc/INSTALL: Likewise.
41825         * doc/INSTALL.ISO: Likewise.
41826         * doc/INSTALL.UTF-8: Likewise.
41827         * doc/acl-cygwin.txt: Likewise.
41828         * doc/acl-resources.txt: Likewise.
41829         * doc/fdl-1.2.texi: Likewise.
41830         * doc/fdl-1.3.texi: Likewise.
41831         * doc/fdl.texi: Likewise.
41832         * lib/argp-pin.c: Likewise.
41833         * lib/round.c: Likewise.
41834         * lib/unicase/u16-totitle.c: Likewise.
41835         * lib/unictype/block_test.c: Likewise.
41836         * lib/uninorm/canonical-decomposition.c: Likewise.
41837         * m4/README: Likewise.
41838         * m4/relocatable-lib.m4: Likewise.
41839         * tests/test-isnand-nolibm.c: Likewise.
41840         * tests/test-isnand.c: Likewise.
41841         * tests/uninorm/NormalizationTest.txt: Likewise.
41843 2012-01-17  Jim Meyering  <meyering@redhat.com>
41845         maint: add framework to run syntax-check rules against gnulib sources
41846         * cfg.mk: New file, to disable all currently-failing tests.
41847         We'll enable them one by one, as they are made to pass.
41848         * Makefile (sc_maint): New rule.
41850 2012-01-21  Bruno Haible  <bruno@clisp.org>
41852         stdint: Add support for Android.
41853         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
41854         include the system's <stdint.h>.
41855         Reported by Simon Josefsson <simon@josefsson.org>.
41857 2012-01-19  Jim Meyering  <meyering@redhat.com>
41859         bootstrap: add bootstrap_post_import_hook
41860         Bison does still need something like the gnulib_mk_hook whose
41861         invocation I had to remove along with slurp in commit 767ccd40.
41862         Technically, we could get along without it, but doing so would
41863         have required living with a warning and a mandatory post-bootstrap
41864         automake rerun.
41865         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
41866         (bootstrap_post_import_hook): New function.
41867         Invoke it after gnulib-tool --import and before autoreconf.
41869 2012-01-18  Jim Meyering  <meyering@redhat.com>
41871         gitlog-to-changelog: don't use "no_"-prefixed variable name
41872         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
41873         to enable both --cluster and --no-cluster.  Change variable name,
41874         s/\$no_cluster/$cluster/, and reverse usage to match.
41876         gitlog-to-changelog: use "||", not "or" in expressions
41877         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
41878         expressions.
41880 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
41882         gitlog-to-changelog: new option --no-cluster
41883         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
41884         clustering of adjacent commit messages.
41886 2012-01-17  Jim Meyering  <meyering@redhat.com>
41888         maint: spell file systems with two words, not one
41889         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
41890         two words, not one.
41892 2012-01-16  Jim Meyering  <meyering@redhat.com>
41894         bootstrap: add a FIXME comment to ensure we eventually remove the hack
41895         * build-aux/bootstrap (gnulib_tool_options): Add comment.
41897 2012-01-16  Eric Blake  <eblake@redhat.com>
41899         bootstrap: cater to autoconf 2.59
41900         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
41901         is not available.
41903         bootstrap: properly check for libtool
41904         * build-aux/bootstrap (libtoolize): Also run libtool when older
41905         usage is detected.
41907 2012-01-15  Bruno Haible  <bruno@clisp.org>
41909         Improve support for MSVC 9.
41910         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
41911         clashes on MSVC.
41912         * lib/fcntl.in.h: Likewise.
41913         * lib/stdlib.in.h: Likewise.
41914         * lib/sys_stat.in.h: Likewise.
41916 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
41918         gnupload: we hold the master copy of this script now
41919         For motivation and more information, see:
41920         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
41921         * build-aux/gnupload: Make it clear in the heading comments that the
41922         master copy of this file is maintained by gnulib.  Since we are at
41923         it, bump its copyright year and ...
41924         ($scriptversion): ... the date in its version.
41925         ($usage): Patches and bug reports should be sent to the gnulib list,
41926         not the automake one.
41927         * config/srclist.txt: Don't try to sync 'gnupload' from automake
41928         anymore.
41930 2012-01-15  Bruno Haible  <bruno@clisp.org>
41932         Fix module 'random'.
41933         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
41934         initstate, setstate are declared.
41936 2012-01-14  Bruno Haible  <bruno@clisp.org>
41938         Tests for module 'random'.
41939         * modules/random-tests: New file.
41940         * tests/test-random.c: New file, based on tests/test-random_r.c.
41942         New module 'random'.
41943         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
41944         declarations.
41945         * lib/random.c: New file, based on glibc/stdlib/random.c.
41946         * m4/random.m4: New file.
41947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
41948         HAVE_RANDOM.
41949         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
41950         * modules/random: New file.
41951         * config/srclist.txt: Add an entry for random.c.
41952         * doc/posix-functions/random.texi: Mention the 'random' module.
41953         * doc/posix-functions/initstate.texi: Likewise.
41954         * doc/posix-functions/setstate.texi: Likewise.
41955         * doc/posix-functions/srandom.texi: Likewise.
41957 2012-01-12  Bruno Haible  <bruno@clisp.org>
41959         random_r: Use common idioms.
41960         * lib/random_r.c: Include <stdlib.h> first.
41962         random_r: Override incompatible API on AIX, OSF/1.
41963         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
41964         Override the system function if REPLACE_RANDOM_R is 1.
41965         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
41966         and OSF/1, set REPLACE_RANDOM_R.
41967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
41968         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
41969         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
41970         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
41971         * doc/glibc-functions/random_r.texi: Likewise.
41972         * doc/glibc-functions/setstate_r.texi: Likewise.
41974         random_r: Support for MSVC 9.
41975         * lib/random_r.c: Include stdint.h, not inttypes.h.
41977 2012-01-12  Eric Blake  <eblake@redhat.com>
41979         inet_ntop: guard extra work by IF_LINT
41980         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
41981         better code generation when not checking for warnings.
41982         Suggested by Paul Eggert and Jim Meyering.
41984         strptime: fix regression on mingw
41985         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
41986         Fix regression.  Reported by Bruno Haible.
41988 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
41989             Bruno Haible  <bruno@clisp.org>
41991         copy-file: add error-code-returning variant.
41992         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
41993         (qcopy_file_preserving): New declaration.
41994         * lib/copy-file.c (qcopy_file_preserving): Renamed from
41995         copy_file_preserving. Change return type to 'int'. Don't emit an error
41996         message here.
41997         (copy_file_preserving): New function.
41998         * tests/test-copy-file.c: Include <stdlib.h>.
41999         (main): Test qcopy_file_preserving if the environment variable
42000         NO_STDERR_OUTPUT is set.
42001         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
42002         with NO_STDERR_OUTPUT
42003         * tests/test-copy-file-2.sh: Likewise.
42005 2012-01-10  Bruno Haible  <bruno@clisp.org>
42007         copy-file: Use 'quote' module consistently.
42008         * lib/copy-file.c (copy_file_preserving): Use quote().
42010         copy-file: Refactor.
42011         * lib/copy-file.c: Include quote.h.
42012         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
42013         message here.
42014         * modules/copy-file (Depends-on): Add quote.
42016         acl: Export qcopy_acl.
42017         * lib/acl.h (qcopy_acl): New declaration.
42018         * lib/copy-acl.c (qcopy_acl): Make non-static.
42020         acl: Rename a local variable.
42021         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
42023         acl: Align return values of copy_acl and qcopy_acl.
42024         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
42025         maybe < -1.
42027 2012-01-11  Eric Blake  <eblake@redhat.com>
42029         strptime: silence gcc warnings
42030         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
42031         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
42032         Reported by Daniel P. Berrange.
42034         inet_ntop: silence gcc warning
42035         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
42036         Reported by Daniel P. Berrange.
42038 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
42040         getloadavg test: skip the test on GNU/Linux without /proc mounted
42041         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
42042         file.  When /proc is not mounted, it always fails with ENOENT.
42043         * tests/test-getloadavg.c (main): Treat ENOENT return code from
42044         getloadavg(3) the same way as ENOSYS and ENOTSUP.
42046 2012-01-10  Bruno Haible  <bruno@clisp.org>
42048         regex: Avoid link error on MSVC 9.
42049         * modules/regex (Depends-on): Add wctype.
42051 2012-01-10  Bruno Haible  <bruno@clisp.org>
42053         doc: Mention --with-tests option.
42054         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
42055         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
42056         --with-tests.
42057         Reported by Reuben Thomas.
42059 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
42061         users.txt: order package names lexicographically.
42062         * users.txt: Order package names lexicographically.
42064 2012-01-10  Jim Meyering  <meyering@redhat.com>
42066         maint.mk: fix description in comment
42067         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
42069         ignore-value: remove deprecated ignore_ptr function
42070         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
42071         * NEWS: Note this.
42073 2012-01-09  Jim Meyering  <meyering@redhat.com>
42075         test-init.sh: avoid a subshell
42076         * tests/test-init.sh: Remove protective subshell.
42077         Suggested by Bernhard Voelker.  While a subshell is normally
42078         required to protect against older shells (Solaris, FreeBSD) that
42079         warn about a missing program before performing redirection, the
42080         shell-selection tests performed by init.sh probably exclude any
42081         offending shell.
42083 2012-01-08  Bruno Haible  <bruno@clisp.org>
42085         setlocale tests: Avoid test failure on Solaris 11.0.
42086         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
42087         variable.
42089 2012-01-08  Bruno Haible  <bruno@clisp.org>
42091         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
42092         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42094         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
42095         macro.
42096         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
42097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42098         * lib/spawn_faction_addopen.c: Add workaround implementation if
42099         HAVE_WORKING_POSIX_SPAWN.
42100         * modules/spawn (Makefile): Substitute
42101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42102         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
42103         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
42104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42105         (Depends-on): Update conditions.
42106         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42107         the Solaris 11 bug.
42109 2012-01-08  Bruno Haible  <bruno@clisp.org>
42111         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
42112         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42114         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
42115         macro.
42116         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
42117         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42118         * lib/spawn_faction_adddup2.c: Add workaround implementation if
42119         HAVE_WORKING_POSIX_SPAWN.
42120         * modules/spawn (Makefile): Substitute
42121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42122         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
42123         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
42124         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42125         (Depends-on): Update conditions.
42126         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42127         the Solaris 11 bug.
42129 2012-01-08  Bruno Haible  <bruno@clisp.org>
42131         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
42132         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42133         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
42135         HAVE_WORKING_POSIX_SPAWN.
42136         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
42137         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
42138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42139         * lib/spawn_faction_addclose.c: Add workaround implementation if
42140         HAVE_WORKING_POSIX_SPAWN.
42141         * modules/spawn (Makefile): Substitute
42142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42143         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
42144         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
42145         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42146         (Depends-on): Update conditions.
42147         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42148         the Solaris 11 bug.
42150 2012-01-08  Bruno Haible  <bruno@clisp.org>
42152         doc: Update for Solaris 11.0.
42153         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
42154         * m4/printf.m4: Update comments.
42156 2012-01-08  Bruno Haible  <bruno@clisp.org>
42158         mktime: Avoid compilation error on Solaris 11.
42159         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
42161 2012-01-08  Bruno Haible  <bruno@clisp.org>
42163         doc: Small fix.
42164         * doc/posix-headers/nl_types.texi: Correct platforms list.
42166 2012-01-08  Simon Josefsson  <simon@josefsson.org>
42168         Add lgpl-3.0 module.
42169         * MODULES.html.sh (Support for building documentation): Add
42170         lgpl-3.0.
42171         * modules/lgpl-3.0: New file.
42173 2012-01-08  Jim Meyering  <meyering@redhat.com>
42175         select.c: indent with spaces, not TABs
42176         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
42178 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42180         quotearg: do not use grave accent for left quote
42181         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
42182         locale_quoting_style.
42183         (quotearg_buffer_restyled): Fix example.
42184         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
42186 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42188         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
42189         Most programs do not have translation catalogs for English and much
42190         less separate catalogs for British and American English.  Drop the
42191         suggestion to translators about these two, and provide it
42192         automatically for Unicode locales.  Like most programs, even those
42193         using American English, we use single quotation marks.  This conflicts
42194         with the American typographic convention, but works better when you
42195         cite the entire error message within double quotes.  It also tries not
42196         to clash with established practice and with what non-gnulib programs
42197         will usually do.
42198         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
42199         using an UTF-8 or GB-18030 locale.  The list of other locales with
42200         quotes was provided by Bruno Haible.
42201         (quotearg_buffer_restyled): Adjust instructions to translators.
42202         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
42203         text, since this would be wrong when using Unicode.
42204         * modules/quotearg: Depend on c-strcaseeq.
42206 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42208         quotearg: fix Wikipedia link
42209         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
42211 2012-01-07  Simon Josefsson  <simon@josefsson.org>
42213         Fix for mingw with MSVC9.
42214         * m4/ld-version-script.m4: Check that compiler rejects version
42215         scripts with syntax errors.  Reported by Bruno Haible
42216         <bruno@clisp.org>.
42218 2012-01-06  Bruno Haible  <bruno@clisp.org>
42220         Talk about "native Windows API", not "Woe32".
42221         * lib/accept4.c: Update comments to mention native Windows.
42222         * lib/execute.c: Likewise.
42223         * lib/fatal-signal.c: Likewise.
42224         * lib/localcharset.c: Likewise.
42225         * lib/nanosleep.c: Likewise.
42226         * lib/nl_langinfo.c: Likewise.
42227         * lib/pclose.c: Likewise.
42228         * lib/pipe-filter-gi.c: Likewise.
42229         * lib/pipe-filter-ii.c: Likewise.
42230         * lib/pipe.c: Likewise.
42231         * lib/pipe2.c: Likewise.
42232         * lib/popen.c: Likewise.
42233         * lib/progreloc.c: Likewise.
42234         * lib/relocatable.c: Likewise.
42235         * lib/sigaction.c: Likewise.
42236         * lib/sigprocmask.c: Likewise.
42237         * lib/spawn-pipe.h: Likewise.
42238         * lib/spawn-pipe.c: Likewise.
42239         * lib/spawni.c: Likewise.
42240         * lib/stat-time.h: Likewise.
42241         * lib/w32spawn.h: Likewise.
42242         * tests/test-isatty.c: Likewise.
42243         * lib/config.charset: More comments.
42244         * doc/gnulib-intro.texi: Mention native Windows.
42245         * doc/posix-functions/_Exit_C99.texi: Likewise.
42246         * doc/posix-headers/fcntl.texi: Likewise.
42248 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
42250         argp: Avoid crash if translator uses % characters in a translation.
42251         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
42252         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
42254 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
42256         doc: C11 and C++11 are now official
42257         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
42258         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
42259         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
42260         * modules/stdalign:
42261         Replace references to draft C1X to C11, and to draft C++0X to C++11.
42263 2012-01-06  Bruno Haible  <bruno@clisp.org>
42265         uc-is-grapheme-break tests: Tweak.
42266         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
42267         message.
42269 2012-01-06  Bruno Haible  <bruno@clisp.org>
42271         test-init.sh: correct the test for diff -u
42272         * tests/test-init.sh: Also redirect stdout to /dev/null.
42274 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
42276         Use ', not `, for quoting output.
42277         * build-aux/announce-gen (usage, sizes, print_news_deltas)
42278         (print_changelog_deltas, get_tool_versions, main program):
42279         * build-aux/git-version-gen:
42280         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
42281         * build-aux/move-if-change (help):
42282         * build-aux/useless-if-before-free (usage, main program):
42283         * check-module (parse_module_file, usage)
42284         (find_included_lib_files, check_module):
42285         * lib/argmatch.c (main) [TEST]:
42286         * lib/argp-help.c (_help):
42287         * lib/getopt1.c (main) [TEST]:
42288         * lib/git-merge-changelog.c (usage):
42289         * lib/xstrtol-error.c (xstrtol_error):
42290         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
42291         * m4/argz.m4 (gl_FUNC_ARGZ):
42292         * m4/bison.m4 (gl_BISON):
42293         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
42294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
42295         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42296         * m4/fpending.m4 (gl_PREREQ_FPENDING):
42297         * m4/gc-random.m4 (gl_GC_RANDOM):
42298         * m4/intl.m4 (gt_CHECK_DECL):
42299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
42300         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
42301         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
42302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
42303         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
42304         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
42305         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
42306         * tests/test-dirname.c (main):
42307         * tests/test-getpass.c (main):
42308         * tests/test-iconvme.c (main):
42309         * tests/test-parse-datetime.c (LOG):
42310         * tests/test-xstrtoimax.sh:
42311         * tests/test-xstrtol.sh:
42312         * tests/test-xstrtoll.sh:
42313         * tests/test-xstrtoumax.sh:
42314         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
42315         * top/GNUmakefile (abort-due-to-no-makefile):
42316         Quote 'like this', not `like this', as per the recent change to
42317         the GNU coding standards.
42319 2012-01-05  Bruno Haible  <bruno@clisp.org>
42321         strtoimax: Don't force a replacement on systems where intmax_t is int.
42322         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
42323         'intmax_t' is not larger than 'int'.
42324         Reported by Pádraig Brady <P@draigBrady.com>.
42326 2012-01-05  Bruno Haible  <bruno@clisp.org>
42328         doc: Mention NetBSD bugs.
42329         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
42330         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
42332 2012-01-05  Bruno Haible  <bruno@clisp.org>
42334         strtoumax tests: Enhance tests.
42335         * tests/test-strtoumax.c (main): Add tests for large values.
42337 2012-01-05  Bruno Haible  <bruno@clisp.org>
42339         strtoimax: Work around AIX 5.1 bug.
42340         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
42341         definition.
42342         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
42343         Set HAVE_STRTOIMAX.
42344         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
42345         REPLACE_STRTOIMAX.
42346         * modules/inttypes-incomplete (Makefile.am): Substitute
42347         REPLACE_STRTOIMAX.
42348         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42349         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
42350         (Depends-on): Update conditions.
42351         * tests/test-strtoimax.c (main): Add tests for large values.
42352         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
42354 2012-01-05  Bruno Haible  <bruno@clisp.org>
42356         inttypes: Modernize.
42357         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
42358         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
42359         (Makefile.am): Update inttypes.h rule.
42361 2012-01-05  Jim Meyering  <meyering@redhat.com>
42363         init.sh: don't waste a subshell just to redirect stderr
42364         * tests/init.sh: In testing for diff -u and diff -c, use a
42365         stderr-redirecting exec inside `...` rather than a subshell.
42367         test-init.sh: avoid failure on HP-UX 11.00
42368         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
42369         resolves to diff -c or cmp.  Reported by Bruno Haible.
42371 2012-01-05  Bruno Haible  <bruno@clisp.org>
42373         Tests for module 'strtoull'.
42374         * modules/strtoull-tests: New file.
42375         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
42377 2012-01-05  Bruno Haible  <bruno@clisp.org>
42379         Tests for module 'strtoll'.
42380         * modules/strtoll-tests: New file.
42381         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
42383 2012-01-05  Bruno Haible  <bruno@clisp.org>
42385         Tests for module 'strtoul'.
42386         * modules/strtoul-tests: New file.
42387         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
42389 2012-01-05  Bruno Haible  <bruno@clisp.org>
42391         Tests for module 'strtol'.
42392         * modules/strtol-tests: New file.
42393         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
42395 2012-01-04  Jim Meyering  <meyering@redhat.com>
42397         test-init.sh: accommodate Solaris 5.10's different diff -u output
42398         * tests/test-init.sh: Also exempt @@ lines from the comparison
42399         of diff output, since Solaris 5.10 and GNU diff formats differ.
42400         Reported by Stefano Lattarini.
42402 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42404         test-posixtm: don't assume signed integer wraparound
42405         * tests/test-posixtm.c (main): Don't assume wraparound semantics
42406         after signed integer overflow.  Inspired by (though it may not
42407         fix) Bruno Haible's bug report in
42408         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
42410         Spell out "Windows 9x" and "Windows XP".
42411         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
42412         "Windows 9x" and "WinXP" with "Windows XP".
42414 2012-01-04  Jim Meyering  <meyering@redhat.com>
42416         test-vc-list-files-cvs.sh: remove obsolete comment
42417         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
42418         double exit.  Now that's all encapsulated via skip_ and Exit.
42420 2012-01-04  Bruno Haible  <bruno@clisp.org>
42422         Talk about "native Windows API", not "Win32".
42423         * lib/classpath.c: Update comments to mention native Windows.
42424         * lib/csharpexec.c: Likewise.
42425         * lib/dup2.c: Likewise.
42426         * lib/error.c: Likewise.
42427         * lib/fcntl.c: Likewise.
42428         * lib/filename.h: Likewise.
42429         * lib/findprog.c: Likewise.
42430         * lib/get-rusage-as.c: Likewise.
42431         * lib/get-rusage-data.c: Likewise.
42432         * lib/getpagesize.c: Likewise.
42433         * lib/javaexec.c: Likewise.
42434         * lib/msvc-inval.c: Likewise.
42435         * lib/msvc-nothrow.c: Likewise.
42436         * lib/nanosleep.c: Likewise.
42437         * lib/nonblocking.c: Likewise.
42438         * lib/printf-parse.c: Likewise.
42439         * lib/setlocale.c: Likewise.
42440         * lib/sigaction.c: Likewise.
42441         * lib/strerror_r.c: Likewise.
42442         * lib/tmpdir.c: Likewise.
42443         * lib/vasnprintf.c: Likewise.
42444         * lib/w32spawn.h: Likewise.
42445         * lib/waitpid.c: Likewise.
42446         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
42447         * m4/locale-ar.m4: Likewise.
42448         * m4/locale-fr.m4: Likewise.
42449         * m4/locale-ja.m4: Likewise.
42450         * m4/locale-tr.m4: Likewise.
42451         * m4/locale-zh.m4: Likewise.
42452         * m4/printf.m4: Likewise.
42453         * tests/test-cloexec.c: Likewise.
42454         * tests/test-copy-acl.sh: Likewise.
42455         * tests/test-copy-file.sh: Likewise.
42456         * tests/test-file-has-acl.sh: Likewise.
42457         * tests/test-set-mode-acl.sh: Likewise.
42458         * tests/test-dup-safer.c: Likewise.
42459         * tests/test-dup2.c: Likewise.
42460         * tests/test-dup3.c: Likewise.
42461         * tests/test-fcntl.c: Likewise.
42462         * tests/test-nonblocking-pipe.h: Likewise.
42463         * tests/test-nonblocking-socket.h: Likewise.
42464         * tests/test-pipe.c: Likewise.
42465         * tests/test-pipe2.c: Likewise.
42466         * tests/test-spawn-pipe-child.c: Likewise.
42467         * doc/acl-resources.txt: Likewise.
42468         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
42469         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
42470         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
42471         * lib/localcharset.c: Update comments to mention native Windows.
42472         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
42473         * lib/localename.c: Likewise.
42474         * lib/progreloc.c: Likewise.
42475         * lib/relocatable.c: Likewise.
42476         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
42477         (windows_compute_revents): Renamed from win32_compute_revents.
42478         (windows_compute_revents_socket): Renamed from
42479         win32_compute_revents_socket.
42480         * lib/select.c: Update comments to mention native Windows.
42481         (windows_poll_handle): Renamed from win32_poll_handle.
42482         * m4/threadlib.m4: Update comments to mention native Windows.
42483         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
42484         --enable-threads=windows instead of --enable-threads=win32. Set
42485         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
42486         * lib/glthread/lock.h: Update comments to mention native Windows.
42487         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
42488         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
42489         USE_WIN32_THREADS.
42490         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
42491         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
42492         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
42493         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
42494         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
42495         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
42496         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
42497         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
42498         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
42499         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
42500         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
42501         * tests/test-tls.c: Likewise.
42502         Rationale:
42503         Microsoft renamed the "Win32 API" to "Windows API", as it is available
42504         on both 32-bit and 64-bit Windows systems.
42505         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
42506         line of distinction is between "native Windows" on one side and Unix/
42507         POSIX systems on the other side. More details in
42508         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
42509         Suggested by Paul Eggert.
42511 2012-01-03  Bruno Haible  <bruno@clisp.org>
42513         isatty: Support for MSVC 9.
42514         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
42515         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
42516         (_isatty_nothrow): New function.
42517         (isatty): Use it instead of _isatty.
42518         (IsConsoleHandle): Add comment, from Paolo Bonzini.
42519         * lib/poll.c (IsConsoleHandle): Likewise.
42520         * lib/select.c (IsConsoleHandle): Likewise.
42521         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
42522         (gl_PREREQ_ISATTY): New macro.
42523         * modules/isatty (Depends-on): Add msvc-inval.
42524         (configure.ac): Invoke gl_PREREQ_ISATTY.
42526 2012-01-03  Jim Meyering  <meyering@redhat.com>
42528         maint.mk: remove temporary transition aid from over 1.5 years ago
42529         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
42530         purpose was to aid in the transition (avoiding silent malfunction)
42531         from that old name to the new _sc_search_regexp.  This shim was
42532         added by commit 219c504b.
42534         init.sh: do not try to accommodate compare arguments starting with "-"
42535         * tests/init.sh (compare_dev_null_): Do not try to accommodate
42536         compare arguments that start with "-".  Besides, we do not worry
42537         about this when invoking diff or cmp; why start now with sed?
42538         Using "--" to separate options from argument would trigger sed
42539         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
42540         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
42542 2012-01-02  Bruno Haible  <bruno@clisp.org>
42544         Enhance tests for module 'isatty'.
42545         * modules/isatty-tests (Depends-on): Add pipe-posix.
42546         * tests/test-isatty.c: Include <fcntl.h>.
42547         (DEV_NULL): New macro.
42548         (main): Test the resut of isatty() also on regular files, pipes, and
42549         /dev/null.
42551         New module 'isatty'.
42552         * lib/unistd.in.h (isatty): New declaration.
42553         * lib/isatty.c: New file, based on an idea of
42554         Bastien Roucariès <roucaries.bastien@gmail.com>.
42555         * m4/isatty.m4: New file.
42556         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
42557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
42558         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
42559         REPLACE_ISATTY.
42560         * modules/isatty: New file.
42561         * doc/posix-functions/isatty.texi: Mention the new module.
42562         Suggested by Paolo Bonzini.
42564 2012-01-02  Bruno Haible  <bruno@clisp.org>
42566         canonicalize: Tweak 2011-12-29 commit.
42567         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
42568         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
42570 2012-01-02  Jim Meyering  <meyering@redhat.com>
42572         gitlog-to-changelog: describe input syntax in --help output
42573         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
42575         gitlog-to-changelog: fix typo in --help: show backslash before email @
42576         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
42577         in sources, but not in actual output.
42579 2011-12-30  Jim Meyering  <meyering@redhat.com>
42581         gitlog-to-changelog: don't malfunction when name contains %-directive
42582         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
42583         in a name string cause trouble.  E.g., with a user name of "%s",
42584         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
42586 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
42588         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
42589         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
42590         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
42591         the "  (tiny change)" notation that is appended to the standard
42592         ChangeLog "date  name  email" header line.
42594 2012-01-01  Jim Meyering  <meyering@redhat.com>
42596         test-framework-sh: init.sh: fix "make dist" failure
42597         When using gnulib-tool's --with-tests option and any module that
42598         depends on test-framework-sh, "make dist" would fail due to the
42599         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
42600         in the gltests directory, and not in the gllib/ directory.
42601         One way to work around that is to move the EXTRA_DIST += init.sh
42602         from the primary module to the -tests one:
42603         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
42604         * modules/test-framework-sh (Makefile.am): ...not here.
42605         Reported by Tom G. Christensen in
42606         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
42608         version-etc: update copyright year reported by --version
42609         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
42611 2011-12-31  Pádraig Brady  <P@draigBrady.com>
42613         canonicalize: only stat() if required
42614         * lib/canonicalize.c (canonicalize_filename_mode):
42615         Avoid calling l?stat() when both CAN_MISSING,
42616         and CAN_NOLINKS are set, as we neither need
42617         to resolve symlinks or test component existence.
42619 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
42621         doc: cover st_ino issues once; add OpenVMS etc.
42622         * doc/posix-functions/stat.texi (stat):
42623         * doc/posix-functions/lstat.texi (lstat):
42624         * doc/posix-functions/fstatat.texi (fstatat):
42625         * doc/posix-functions/fstat.texi (fstat):
42626         Move general 'struct stat' stuff to sys_stat.texi,
42627         leaving behind a pointer.
42628         * doc/posix-headers/sys_stat.texi (sys/stat.h):
42629         Merge duplicate info about 'struct stat' problems into here.
42630         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
42631         and suggest partial workarounds.
42633         same-inode: port to OpenVMS
42634         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
42635         three st_ino values.
42637 2011-12-30  Pádraig Brady  <P@draigBrady.com>
42639         canonicalize: fix references to stat() and lstat()
42640         * lib/canonicalize.c (canonicalize_filename_mode):
42641         Ensure references always resolve to a replacement
42642         function if required (even via a macro).
42644 2011-12-30  Jim Meyering  <meyering@redhat.com>
42646         gitlog-to-changelog: remove a little duplication
42647         * build-aux/gitlog-to-changelog (main): Grep @lines once,
42648         rather than twice.
42650 2011-12-29  Pádraig Brady  <P@draigBrady.com>
42652         canonicalize: add support for not resolving symlinks
42653         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
42654         indicate we don't want to follow symlinks.  Also
42655         provide CAN_MODE_MASK to aid setting these existing
42656         mutually exclusive values.
42657         * lib/canonicalize.c (canonicalize_filename_mode):
42658         Extract the flags from can_mode parameter, which
42659         are currently just used to select between stat()
42660         and lstat().  Also ensure that mutually exclusive
42661         values are flagged immediately as invalid.
42662         * tests/test-canonicalize.c: Verify symlinks are
42663         not followed, and that invalid flag combinations
42664         are diagnosed.
42666 2011-12-25  Jim Meyering  <meyering@redhat.com>
42668         gitlog-to-changelog: do not clump multi-paragraph entries
42669         Identical header lines (date,name,email+coauthors) are suppressed,
42670         thus putting all entries with those same characteristics under
42671         a single header.  However, when a log entry consists of two or
42672         more paragraphs, it may not be clear where it starts and ends.
42673         This change makes it so that such an entry is always separated
42674         from others by a header line, even when that header would
42675         otherwise be suppressed.
42676         * build-aux/gitlog-to-changelog: Implement the above.
42677         Inspired by a related request from Stefano Lattarini in
42678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
42680 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42682         announce-gen: fix `cmd' typo in diagnostic
42683         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
42684         diagnostic: a missing '$' meant that the command was not output.
42686 2011-12-23  Jim Meyering  <meyering@redhat.com>
42688         test-framework-sh: distribute init.sh
42689         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
42690         Otherwise, "make -C gnulib-tests check" (at least in grep) would
42691         fail due to the lack of init.sh.
42693         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
42694         * modules/atexit-tests: Rather than listing tests/init.sh,
42695         now that there's a module for it, simply depend on that new module.
42696         * modules/closein-tests: Likewise.
42697         * modules/exclude-tests: Likewise.
42698         * modules/getcwd-tests: Likewise.
42699         * modules/perror-tests: Likewise.
42700         * modules/pread-tests: Likewise.
42701         * modules/pwrite-tests: Likewise.
42702         * modules/vc-list-files-tests: Likewise.
42703         * modules/verify-tests: Likewise.
42704         * modules/xalloc-die-tests: Likewise.
42705         * modules/xstrtoimax-tests: Likewise.
42706         * modules/xstrtol-tests: Likewise.
42707         * modules/xstrtoll-tests: Likewise.
42708         * modules/xstrtoumax-tests: Likewise.
42709         * modules/yesno-tests: Likewise.
42711 2011-12-22  Jim Meyering  <meyering@redhat.com>
42713         test-framework-sh: add minimal tests of init.sh's compare function
42714         * modules/test-framework-sh-tests: New file.
42715         * tests/test-init.sh: New file.
42717         test-framework-sh: new module
42718         * modules/test-framework-sh: New file.
42719         * MODULES.html.sh (Support for maintaining and releasing projects):
42720         List it.
42722         init.sh: do not emit simulated diff output to stderr
42723         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
42725 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42727         .gitignore: ignore gnulib.dvi and regex.info
42728         * doc/.gitignore:add gnulib.dvi and regex.info
42730 2011-12-22  Jim Meyering  <meyering@redhat.com>
42732         init.sh: correct previous change
42733         * tests/init.sh (compare): My previous change was wrong.
42734         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
42736         init.sh: avoid unwarranted test failure when using "set -e"
42737         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
42738         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
42739         a use like "compare exp out" would get evoke an unconditional failure.
42741 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
42743         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
42744         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
42745         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
42746         autoreconf that did not.
42747         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
42748         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
42750 2011-12-17  Jim Meyering  <meyering@redhat.com>
42752         bootstrap: remove some now-unneeded code
42753         This script arose back when gnulib-tool was young.
42754         Since then, it has seen improvements that render much of this
42755         script unnecessary.  In particular, it can now make symlinks
42756         to the files it uses.  Also, I no longer see as much value in
42757         marking files as read-only via comments.
42758         If you relied on the symlink-creation feature of the preceding
42759         version of this script, you can get most of that functionality
42760         by adding the --symlink option to the definition of
42761         gnulib_tool_option_extras in your bootstrap.conf file.
42762         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
42763         Run autopoint and libtoolize *before* gnulib-tool.
42764         After it, run an abbreviated autoreconf, rather than a loop around
42765         all tools.
42766         (slirp, bt_mark_as_generated): Remove functions.
42768 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42770         ftoastr: fix typo
42771         * lib/ftoastr.h: Fix misspelling in comment.
42773 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
42775         * top/README-release: fix punctuation.
42777 2011-12-17  Jim Meyering  <meyering@redhat.com>
42779         bootstrap: correct the recent buildreq change
42780         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
42781         had no effect.
42782         * build-aux/bootstrap (buildreq): Bracket each search term with
42783         "*...*", so that the shell "case" statement works as intended.
42784         Add comments.
42786 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
42788         build: let bootstrap resort to wget when downloading .po files
42789         * build-aux/bootstrap (download_po_files): Fallback to wget when
42790         downloading the .po files via rsync fails.  This is necessary to
42791         bootstrap from behind a strict firewall.
42793 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
42795         stdint: don't assume C++11 when compiling with g++
42796         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
42797         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
42798         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
42799         work also in C++ before C++11, as that improperly inhibits
42800         generating a substitute stdint.h for that case.
42802 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
42804         alloca: protect comment from gnulib-tool
42805         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
42806         that gnulib-tool doesn't think it's a license, and munge it to
42807         say "GCC version 3".
42809 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
42811         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
42812         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
42813         $(abs_top_builddir) instead of $(top_builddir).
42815 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
42817         strftime-tests: also test nanoseconds
42818         * tests/test-strftime.c (T): Add a test of %N.
42820 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
42822         inttypes, stdint: add C++11 support
42823         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
42824         when including inttypes.h and stdint.h.  Support this change to
42825         the standard.
42826         * doc/posix-headers/inttypes.texi (inttypes.h):
42827         * doc/posix-headers/stdint.texi (stdint.h): Document this.
42828         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
42829         Define if not defined already, for the benefit of pre-C++11 hosts.
42830         Define the standard format macros (e.g., PRId8) always.
42831         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
42832         Likewise, if __cpluspus.  Define the standard constant and limit
42833         macros (e.g., INT8_C, INT8_MAX) always.
42834         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
42835         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
42836         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
42837         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
42838         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
42839         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
42840         Likewise.
42842 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
42844         nonblocking tests: Fix test failure on Linux/PPC.
42845         Suggested by Prerna Saxena in
42846         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
42847         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
42848         Set to 1100000.
42850 2011-12-12  Jim Meyering  <meyering@redhat.com>
42852         argmatch: don't hard-code `' when listing valid option arguments
42853         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
42854         use the quote function to add quotes.  Use fputs rather than
42855         fprintf for the format string with no format directive.
42857 2011-12-07  Eric Blake  <eblake@redhat.com>
42859         bootstrap: detect tools required by gnulib-tool
42860         * build-aux/bootstrap (buildreq): Provide minimum implicit
42861         dependencies.
42862         * DEPENDENCIES: Mention patch as a prereq.
42864 2011-12-04  Bruno Haible  <bruno@clisp.org>
42866         sethostname: Port to Windows platforms.
42867         * lib/sethostname.c: Provide an alternate implementation for Windows
42868         platforms.
42869         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
42870         (main): Skip the test if sethostname() fails with EPERM. On Windows
42871         platforms, don't check the result of gethostname().
42873 2011-12-04  Bruno Haible  <bruno@clisp.org>
42874             Jim Meyering  <meyering@redhat.com>
42876         tests: Avoid spurious error message on platforms without mktemp program.
42877         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
42879 2011-12-04  Bruno Haible  <bruno@clisp.org>
42881         sethostname: Fix documentation.
42882         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
42883         "not fixed" section.
42885 2011-12-03  Bruno Haible  <bruno@clisp.org>
42887         gnulib-tool: Verify that the License field is present and non-empty.
42888         * gnulib-tool (func_get_license_raw): New function, extracted from
42889         func_get_license.
42890         (func_get_license): Use it. Warn if the module is not a test module and
42891         has no license.
42892         Suggested by Jim Meyering.
42894 2011-12-03  Bruno Haible  <bruno@clisp.org>
42896         sethostname tests: Fix link error on mingw.
42897         * tests/test-sethostname1.c: New file, extracted from
42898         tests/test-sethostname.c.
42899         * tests/test-sethostname2.c: New file, extracted from
42900         tests/test-sethostname.c.
42901         * tests/test-sethostname.c: Remove file.
42902         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
42903         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
42904         (Depends-on): Add gethostname.
42905         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
42906         Link the latter with $(GETHOSTNAME_LIB).
42908         sethostname tests: Fix compilation error on mingw.
42909         * tests/test-sethostname.c: Don't include <sys/types.h>.
42910         (geteuid): Use a dummy value without uid_t.
42911         * modules/sethostname-tests (Depends-on): Remove sys_types.
42913         sethostname tests: Avoid a gcc warning.
42914         * tests/test-sethostname.c (main): Remove an unused variable.
42916         Tweak last commit.
42917         * modules/sethostname-tests (Files): Sort by decreasing importance.
42918         (configure.ac): Check for geteuid.
42919         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
42920         the test when there's nothing to test. Drop an unnecessary cast.
42921         Improve an error message. Verify that the final sethostname() call
42922         succeeds.
42924 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42926         Add a test suite for the sethostname module.
42927         * modules/sethostname-tests: New file.  A test program
42928         for the sethostname module.
42929         * tests/test-sethostname.c: Likewise.
42931 2011-12-03  Bruno Haible  <bruno@clisp.org>
42933         Tweak last commit.
42934         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
42935         Fix preprocessor directives indentation. Fix typos.
42936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
42937         * modules/unistd (Makefile): Likewise.
42939 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42941         Integrate the sethostname module into unistd.
42942         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
42943         into the unistd.h header.
42944         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
42945         preprocessor directives.
42946         * modules/unistd: Setup the Makefile substitutions of the
42947         SETHOSTNAME preprocessor directives.
42949 2011-12-03  Bruno Haible  <bruno@clisp.org>
42951         Tweak last commit.
42952         * lib/sethostname.c: Don't include <string.h>.
42953         (sethostname): No need to copy the argument string to the stack. Don't
42954         call clearerr. Preserve errno when fprintf failed.
42955         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
42956         Don't invoke AC_REPLACE_FUNCS.
42957         * modules/sethostname (Link): Remove empty section.
42958         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
42959         failure problem.
42961 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42963         New module 'sethostname'.
42964         * lib/sethostname.c (sethostname): New file.  Provide sethostname
42965         for systems that lack it.
42966         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
42967         sethostname declaration and function.
42968         * modules/sethostname: New file.  Define the sethostname module.
42970 2011-12-03  Bruno Haible  <bruno@clisp.org>
42972         Tweak last commit.
42973         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
42975 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42977         Split the HOST_NAME_MAX detection into a separate m4 macro.
42978         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
42979         macro so it can be used by the pending sethostname module.
42981 2011-12-03  Bruno Haible  <bruno@clisp.org>
42983         Fix module descriptions syntax.
42984         * modules/argv-iter (License): Fix syntax.
42985         * modules/di-set (License): Likewise.
42986         * modules/ino-map (License): Likewise.
42987         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
42989 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
42991         stdalign: port to Clang 3.0
42992         Problem reported by Simon Josefsson in
42993         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
42994         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
42995         which has <stdalign.h> but which does not define alignof.
42996         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
42998 2011-12-01  Eric Blake  <eblake@redhat.com>
43000         mktempd: silence dd usage
43001         * build-aux/mktempd (rand_bytes): Silence dd.
43003 2011-11-30  Simon Josefsson  <simon@josefsson.org>
43005         manywarnings: Don't mention gcc version in docstring.
43006         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
43007         Jim Meyering <meyering@redhat.com>.
43009 2011-11-30  Jim Meyering  <meyering@redhat.com>
43011         hash: mark a few floating point constants with "f" suffix
43012         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
43013         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
43014         floating point constants with "f", since they're destined to be
43015         saved/used as "float"s.
43017 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
43019         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
43020         * tests/test-float.c (test_long_double): Correct and re-enable the
43021         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
43023 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
43025         Avoid subtracting two pointers that don't point into the same block.
43026         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
43027         only pointers into the same memory block are subtracted. We cannot
43028         assume that sizeof (ptrdiff_t) == sizeof (void *).
43030 2011-11-29  Eric Blake  <eblake@redhat.com>
43032         maint.mk: add syntax check for use of compare from init.sh
43033         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
43034         moved here from coreutils.
43036         manywarnings: drop -Wunsuffixed-float-constants
43037         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
43038         '1.0D', which is the only way to silence this warning for 'double'.
43040 2011-11-29  Jim Meyering  <meyering@redhat.com>
43042         hash: mark compute_bucket_size with the pure attribute
43043         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
43045         quotearg, propername: correct pragma guard expression
43046         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
43047         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
43049 2011-11-28  Jim Meyering  <meyering@redhat.com>
43051         propername: do not mark proper_name with the const attribute
43052         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
43053         since it examines data pointed to by its parameter.
43054         * lib/propername.c (proper_name): Instead, add a pragma to suppress
43055         the suggestion from -Wsuggest-attribute=const.
43057         propername: mark one more function as const
43058         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
43060 2011-11-27  Jim Meyering  <meyering@redhat.com>
43062         mark functions with const and pure attributes
43064         Mark functions per suggestions from gcc-4.6 when using these options:
43065         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
43066         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
43067         Follow these guidelines: when possible, apply the attribute to
43068         an extern declaration, not to its definition.  Apply it to the
43069         definition only when the definition is static.
43070         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
43071         * lib/argv-iter.h (argv_iter_n_args): Likewise.
43072         * lib/base64.h (isbase64): Likewise.
43073         * lib/basename-lgpl.c (last_component, base_len): Likewise.
43074         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
43075         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
43076         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
43077         (c_tolower, c_toupper): Likewise.
43078         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
43079         * lib/chdir-long.c (find_non_slash): Likewise.
43080         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
43081         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
43082         * lib/file-type.h (file_type): Likewise.
43083         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
43084         * lib/filevercmp.c (verrevcmp): Likewise.
43085         * lib/freadahead.h (freadahead): Likewise.
43086         * lib/fts.c (fts_maxarglen): Likewise.
43087         * lib/hash-pjw.h (hash_pjw): Likewise.
43088         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
43089         * lib/hash.c (is_prime, next_prime): Likewise.
43090         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
43091         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
43092         (hash_table_ok, hash_get_first, hash_string): Likewise.
43093         (compute_bucket_size): Likewise.
43094         * lib/i-ring.h (i_ring_empty): Likewise.
43095         * lib/isnan.c (isnanl): Likewise.
43096         * lib/math.h (isnanl, rpl_isnanl): Likewise.
43097         * lib/memcasecmp.h (memcasecmp): Likewise.
43098         * lib/memchr2.h (memchr2): Likewise.
43099         * lib/memcmp2.h (memcmp2): Likewise.
43100         * lib/parse-datetime.y (lookup_zone): Likewise.
43101         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
43102         [!WINDOWS_SOCKETS]: Likewise.
43103         * lib/strnlen1.h (strnlen1): Likewise.
43104         * lib/uniwidth.in.h (uc_width): Likewise.
43105         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
43106         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
43107         (quoting_options_from_style): Add a comment.
43108         * lib/propername.h (proper_name): Add a comment.
43110 2011-11-27  Bruno Haible  <bruno@clisp.org>
43112         Remove unused macros from !_LIBC code in glibc-borrowed files.
43113         * lib/fnmatch.c (STRCOLL): Remove macro.
43114         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
43115         * lib/glob.c (__stat, __readdir64): Remove macros.
43116         * lib/tempname.c (__open64, __xstat64): Remove macros.
43117         Suggested by Paul Eggert.
43119 2011-11-27  Bruno Haible  <bruno@clisp.org>
43121         getcwd: Fix link error on MSVC 9.
43122         * modules/getcwd (Depends-on): Add readdir, rewinddir.
43124 2011-11-27  Bruno Haible  <bruno@clisp.org>
43126         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
43127         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
43128         HAVE_OPENDIR is 0.
43129         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
43130         HAVE_CLOSEDIR is 0.
43131         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
43132         is 0.
43133         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
43135 2011-11-27  Bruno Haible  <bruno@clisp.org>
43137         getcwd: Fix bug from 2011-08-17.
43138         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
43139         platforms that need it.
43140         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
43141         code of 4 to be a failure, not a success. This ensures that
43142         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
43144 2011-11-27  Bruno Haible  <bruno@clisp.org>
43146         binary-io tests: Avoid test failure on mingw when libtool is used.
43147         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
43148         Don't verify the size of t-bin-out1.tmp here.
43149         * tests/test-binary-io.sh: Verify it here.
43150         Reported by Simon Josefsson.
43152 2011-11-26  Bruno Haible  <bruno@clisp.org>
43154         Fix conflict between two instantiations of module 'unistd'.
43155         * gnulib-tool (func_emit_autoconf_snippet): Substitute
43156         ${include_guard_prefix} also in the autoconf snippet.
43157         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
43158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
43159         GNULIB_UNISTD_H_GETOPT.
43160         * modules/getopt-posix (configure.ac): Set the
43161         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
43162         * modules/getopt-gnu (configure.ac): Likewise.
43163         * modules/unistd (Makefile.am): Change the substitution value of
43164         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
43165         Reported by Simon Josefsson.
43167 2011-11-25  Bruno Haible  <bruno@clisp.org>
43169         pagealign_alloc: Doc and comments.
43170         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
43171         module.
43172         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
43174 2011-11-25  Jim Meyering  <meyering@redhat.com>
43176         test-update-copyright.sh: avoid false-positive failure
43177         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
43178         around false positive failure on Cygwin/Windows.  The latter was
43179         matching erroneously-created files with names like
43180         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
43182 2011-11-25  Simon Josefsson  <simon@josefsson.org>
43184         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
43185         * m4/valgrind-tests.m4: Check that the parameters that will be
43186         used works, not just a subset of them.  Reported by Bruno Haible
43187         <bruno@clisp.org>.
43189 2011-11-24  Jim Meyering  <meyering@redhat.com>
43191         test-stdalign.c: comment out long double tests
43192         * tests/test-stdalign.c: Don't try to reduce alignment of long double
43193         variables.  That provokes errors like this from gcc-4.7.0 20111124:
43194         error: '_Alignas' specifiers cannot reduce alignment of \
43195         'static_longdouble_alignas'.
43197 2011-11-22  Jim Meyering  <meyering@redhat.com>
43199         init.sh: make "compare /dev/null FILE" output more readable
43200         * tests/init.sh (compare_): Document the preferred order of arguments.
43201         (emit_diff_u_header_): New function.
43202         (compare_dev_null_): Emit a simulated diff, rather than just the
43203         contents of the unexpected file.  Suggestion from Bruno Haible.
43205 2011-11-21  Jim Meyering  <meyering@redhat.com>
43206             Eric Blake  <eblake@redhat.com>
43208         init.sh: work around OSF/1 5.1's mishandling of /dev/null
43209         * tests/init.sh: Make our compare function slightly more portable.
43210         Reported by Bruno Haible in
43211         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
43213 2011-11-21  Simon Josefsson  <simon@josefsson.org>
43215         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
43216         before using it, in code that ends up in config.h.
43218 2011-11-20  Bruno Haible  <bruno@clisp.org>
43220         getcwd: Work around getcwd bug on AIX 5..7.
43221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
43222         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
43223         Use a different value for gl_cv_func_getcwd_path_max. Move the
43224         definition of HAVE_PARTLY_WORKING_GETCWD from here...
43225         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
43226         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
43227         Define HAVE_MINIMALLY_WORKING_GETCWD.
43228         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
43229         where it is not even minimally working, that is, on AIX.
43230         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
43231         m4/getcwd-path-max.m4.
43232         (main): Update exit code computation.
43233         * doc/posix-functions/getcwd.texi: Mention list of platforms where
43234         getcwd does not handle long file names.
43236 2011-11-20  Bruno Haible  <bruno@clisp.org>
43238         getcwd: Fix bug from 2009-09-10.
43239         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
43240         like "no".
43242 2011-11-20  Simon Josefsson  <simon@josefsson.org>
43244         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
43246 2011-11-20  Bruno Haible  <bruno@clisp.org>
43248         fma tests: Avoid shadowing local variables.
43249         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
43250         expected.
43252 2011-11-20  Bruno Haible  <bruno@clisp.org>
43254         copysignf tests: Fix.
43255         * tests/test-copysignf.c: Fix signature check.
43257 2011-11-20  Bruno Haible  <bruno@clisp.org>
43259         fma: Remove unused code.
43260         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
43261         unused macros.
43263 2011-11-20  Bruno Haible  <bruno@clisp.org>
43265         sethostname: Fix doc about AIX.
43266         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
43267         sethostname; it has it.
43269         sethostname: Mention more portability problems.
43270         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
43271         problem.
43272         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
43274 2011-11-19  Bruno Haible  <bruno@clisp.org>
43276         Depend on module fcntl-h when AT_FDCWD is used.
43277         * modules/utimens (Depends-on): Add fcntl-h.
43278         * modules/areadlinkat (Depends-on): Likewise.
43279         * modules/areadlinkat-with-size (Depends-on): Likewise.
43280         * modules/faccessat (Depends-on): Likewise.
43281         * modules/fchmodat (Depends-on): Likewise.
43282         * modules/fchownat (Depends-on): Likewise.
43283         * modules/getcwd (Depends-on): Likewise.
43284         * modules/mkdirat (Depends-on): Likewise.
43285         * modules/mkfifoat (Depends-on): Likewise.
43286         * modules/readlinkat (Depends-on): Likewise.
43287         * modules/symlinkat (Depends-on): Likewise.
43288         * modules/dup2-tests (Depends-on): Likewise.
43289         * modules/fdutimensat-tests (Depends-on): Likewise.
43290         * modules/futimens-tests (Depends-on): Likewise.
43292 2011-11-19  Bruno Haible  <bruno@clisp.org>
43294         euidaccess: Update a comment.
43295         * lib/euidaccess.c: Update comment about platforms with faccessat.
43297 2011-11-19  Bruno Haible  <bruno@clisp.org>
43299         openat: Fix file list.
43300         * modules/openat (Files): Remove lib/at-func.c.
43302 2011-11-19  Bruno Haible  <bruno@clisp.org>
43304         fstatat: Simplify.
43305         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
43306         gnulib should define rpl_fstatat, there is a
43307         "#define fstatat rpl_fstatat" in <sys/stat.h>.
43309 2011-11-19  Bruno Haible  <bruno@clisp.org>
43311         Ensure 'inline' can be used in tests/test-utimens-common.h.
43312         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
43313         * modules/futimens-tests (configure.ac): Likewise.
43314         * modules/utimens-tests (configure.ac): Likewise.
43315         * modules/utimensat-tests (configure.ac): Likewise.
43317 2011-11-19  Simon Josefsson  <simon@josefsson.org>
43319         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
43320         not hash_insert0.
43321         (hash_insert_if_absent): Doc fix.
43323 2011-11-19  Simon Josefsson  <simon@josefsson.org>
43325         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
43327 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
43329         test-getcwd: disambiguate exit status
43330         * tests/test-getcwd.c (test_long_name): Return 0..7.
43331         (main): Exit with an unambiguous exit status.  The old
43332         code yielded a mysterious mixture of two failure codes.
43334         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
43335         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
43336         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
43337         rpl_fstatat or fstatat.  This should fix the other problem
43338         reported by Kai Habel in
43339         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
43340         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
43341         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
43342         and I reproduced it on a Solaris 8 host we still have in production.
43344 2011-11-18  Jim Meyering  <meyering@redhat.com>
43346         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
43347         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
43348         Add a sentence to the comment.
43349         (hash_insert0): New function that simply calls hash_insert_if_absent.
43350         * lib/hash.h (hash_insert_if_absent): Declare it.
43351         (hash_insert0): Add deprecation attribute.
43352         (_GL_ATTRIBUTE_DEPRECATED): Define.
43353         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
43354         not hash_insert0.
43355         * NEWS: Mention it, even though it's not really an incompatible change.
43357 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
43359         openat: avoid compilation failure due to lack of <errno.h> inclusion
43360         * lib/openat.c: Include <errno.h>.
43362 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43364         * modules/getcwd (Depends-on): Add fdopendir.
43365         This fixes one of the two problems reported by Kai Habel in
43366         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
43368         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
43369         stdalign problem reported by Ian Beckwith in
43370         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
43371         * modules/crypto/gc-arcfour (Depends-on):
43372         Depend conditionally on crypto/arcfour.
43373         * modules/crypto/gc-arctwo (Depends-on):
43374         Depend conditionally on crypto/arctwo.
43375         * modules/crypto/gc-des (Depends-on):
43376         Depend conditionally on crypto/des.
43377         * modules/crypto/gc-hmac-md5 (Depends-on):
43378         Depend conditionally on crypto/hmac-md5.
43379         * modules/crypto/gc-hmac-sha1 (Depends-on):
43380         Depend conditionally on crypto/hmac-sha1.
43381         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
43382         * modules/crypto/gc-md4 (Depends-on):
43383         Depend conditionally on crypto/md4.
43384         * modules/crypto/gc-md5 (Depends-on):
43385         Depend conditionally on crypto/md5.
43386         * modules/crypto/gc-rijndael (Depends-on):
43387         Depend conditionally on crypto/rijndael.
43388         * modules/crypto/gc-sha1 (Depends-on):
43389         Depend conditionally on crypto/sha1.
43390         * modules/crypto/gc-arcfour:
43391         * modules/crypto/gc-arctwo:
43392         * modules/crypto/gc-des:
43393         * modules/crypto/gc-hmac-md5:
43394         * modules/crypto/gc-hmac-sha1:
43395         * modules/crypto/gc-md2:
43396         * modules/crypto/gc-md4:
43397         * modules/crypto/gc-md5:
43398         * modules/crypto/gc-rijndael:
43399         * modules/crypto/gc-sha1:
43400         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
43401         now that the conditional dependencies do the work for us.
43403 2011-11-17  Jim Meyering  <meyering@redhat.com>
43405         tests: factor st_ctime-comparison out of two headers
43406         * tests/test-utimens-common.h (ctime_compare): Define.
43407         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
43408         * tests/test-lutimens.h (test_lutimens): Likewise.
43409         * tests/test-utimens.h (test_utimens): Likewise.
43411         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
43412         Invoke the test program via an init.sh-using wrapper.
43413         * tests/test-getcwd.sh: New file.
43414         * modules/getcwd-tests (Files): Add it.
43415         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
43417 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
43419         gitlog-to-changelog: support multi-author commits.
43420         The FSF cares about keeping track of all authors of patches to its
43421         projects, but Git doesn't provide obvious support for multi-author
43422         changesets. Consensus seems to be forming around the use of extra
43423         Signed-off-by inspired lines in the log message formatted as
43424         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
43425         multi-author commits between version control systems.
43426         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
43427         log message and output in standard ChangeLog multi-author format.
43428         Reported by Peter Rosin <peda@lysator.liu.se>
43430 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
43431             Bruno Haible  <bruno@clisp.org>
43433         Fix some modules' file list.
43434         * modules/fstatat (Files): Add m4/lstat.m4.
43435         * modules/openat (Files): Likewise.
43436         * modules/unlinkat (Files): Likewise.
43438 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
43440         maint.mk: fix tight-scope.mk generation in VPATH builds.
43441         * top/maint.mk (tight-scope.mk): Make sure to prefix file
43442         reference with $(srcdir) so that the file is found correctly even
43443         when running `make syntax-check' in a VPATH build.
43445 2011-11-13  Bruno Haible  <bruno@clisp.org>
43446             Jim Meyering  <meyering@redhat.com>
43448         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
43449         * tests/init.sh (compare): Remove "No differences encountered" or
43450         synonymous output from the 'diff' program.
43452 2011-11-13  Bruno Haible  <bruno@clisp.org>
43454         Makefile: Tweak indentation.
43455         * Makefile: Use tab as first character in every line that contains rule
43456         commands.
43458 2011-11-13  Bruno Haible  <bruno@clisp.org>
43460         Syntax check for copyright statements.
43461         * check-copyright: New file.
43462         * Makefile (sc_check_copyright): New rule.
43464 2011-11-13  Simon Josefsson  <simon@josefsson.org>
43466         * build-aux/git-version-gen: Add --prefix to configure the tag
43467         match string.
43469 2011-11-13  Simon Josefsson  <simon@josefsson.org>
43471         * build-aux/git-version-gen: Add --help and --version.
43473 2011-11-12  Jim Meyering  <meyering@redhat.com>
43475         revamp the other test-exclude?.sh scripts to use init.sh, too
43476         * tests/test-exclude1.sh: Use init.sh.
43477         * tests/test-exclude2.sh: Likewise.
43478         * tests/test-exclude3.sh: Likewise.
43479         * tests/test-exclude4.sh: Likewise.
43480         * tests/test-exclude5.sh: Likewise.
43481         * tests/test-exclude6.sh: Likewise.
43482         * tests/test-exclude7.sh: Likewise.
43483         * tests/test-exclude8.sh: Likewise.
43484         * modules/exclude-tests (Files): List init.sh.
43486         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
43487         These shell scripts ignored failure of the binary test-exclude,
43488         so making the latter return 77 didn't cause them to be skipped.
43489         * tests/test-exclude5.sh: Exit with test-exclude's error status
43490         when that program fails.  Revamp to use init.sh.
43491         * tests/test-exclude2.sh: Likewise.
43493         test-exclude: fix a typo
43494         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
43496 2011-11-11  Bruno Haible  <bruno@clisp.org>
43498         obstack: Fix compilation error on MSVC 9.
43499         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
43501 2011-11-11  Jim Meyering  <meyering@redhat.com>
43503         test-exclude: skip tests rather than failing on deficient systems
43504         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
43505         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
43506         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
43507         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
43509 2011-11-10  Bruno Haible  <bruno@clisp.org>
43511         ptsname_r test: Avoid gcc warning on glibc systems.
43512         * tests/test-ptsname_r.c (null_ptr): New function.
43513         (test_errors): Use it.
43515 2011-11-10  Bruno Haible  <bruno@clisp.org>
43517         ptsname_r: Avoid compilation error on OSF/1 5.1.
43518         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
43519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
43520         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
43521         function is not declared or incompatibly declared.
43522         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
43523         * modules/ptsname_r (Depends-on, configure.ac): Update.
43524         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
43526 2011-11-10  Bruno Haible  <bruno@clisp.org>
43528         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
43529         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
43530         When cross-compiling, guess yes on all platforms except AIX.
43531         Reported by Ludovic Courtès <ludo@gnu.org>.
43533 2011-11-09  Bruno Haible  <bruno@clisp.org>
43535         ptsname_r tests: Fix bugs.
43536         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
43537         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
43539 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43541         fstatat: work with cross-compilation
43542         Problem reported by Ludovic Courtès in
43543         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
43544         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
43545         "cross-compiling" and assume the bug is present.  Replace
43546         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
43547         an inverted sense, to be more conservative about our assumptions.
43548         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
43550 2011-11-09  Bruno Haible  <bruno@clisp.org>
43552         Improve MODULES.html output.
43553         * modules/mkfifoat (Description): Use the word "function".
43554         * modules/readlinkat (Description): Likewise.
43555         * modules/symlinkat (Description): Likewise.
43557 2011-11-09  Eric Blake  <eblake@redhat.com>
43559         ptsname_r-tests: new test module
43560         * modules/ptsname_r-tests: New module.
43561         * tests/test-ptsname_r.c: New file.
43563         ptsname_r: new module
43564         * modules/ptsname_r: New module.
43565         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
43566         * lib/ptsname.c (__ptsname_r): Split...
43567         * lib/ptsname_r.c: ...into new file.
43568         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
43569         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
43570         * modules/stdlib (Makefile.am): Substitute witnesses.
43571         * lib/stdlib.in.h (ptsname_r): Declare it.
43572         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
43573         * MODULES.html.sh (Misc): Likewise.
43574         * modules/ptsname (Depends-on): Alter dependency.
43575         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
43577 2011-11-09  Jim Meyering  <meyering@redhat.com>
43579         announce-gen: be more concise when there's only one URL+tarball
43580         * build-aux/announce-gen (get_tool_versions): When you distribute
43581         only one type of tarball, combine the first two "Here are..."
43582         sections and make the key-checking grammar independent of
43583         how many tarballs there are.
43585 2011-11-09  Eric Blake  <eblake@redhat.com>
43587         openpty: provide a stub on mingw
43588         * lib/pty.in.h (includes): Provide forward declarations.
43589         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
43591         raise: fix mingw handling of SIGPIPE
43592         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
43594 2011-11-08  Bruno Haible  <bruno@clisp.org>
43596         More conditional dependencies.
43597         * modules/faccessat (Depends-on): Add conditions.
43598         * modules/fchmodat (Depends-on): Likewise.
43599         * modules/fchownat (Depends-on): Likewise.
43600         * modules/fstatat (Depends-on): Likewise.
43601         * modules/mkfifoat (Depends-on): Likewise.
43602         * modules/readlinkat (Depends-on): Likewise.
43603         * modules/symlinkat (Depends-on): Likewise.
43604         * modules/unlinkat (Depends-on): Likewise.
43605         * modules/utimensat (Depends-on): Likewise.
43606         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
43607         * modules/linkat (Depends-on): Refine the conditions.
43608         * modules/renameat (Depends-on): Likewise.
43610 2011-11-08  Bruno Haible  <bruno@clisp.org>
43612         faccessat: Move AC_LIBOBJ invocation to module description.
43613         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
43614         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
43615         invocation from here...
43616         * modules/faccessat (configure.ac): ... to here. Invoke
43617         gl_PREREQ_FACCESSAT.
43619 2011-11-08  Bruno Haible  <bruno@clisp.org>
43621         faccessat: Simplify autoconf macro.
43622         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
43623         gl_FUNC_EUIDACCESS.
43625 2011-11-08  Bruno Haible  <bruno@clisp.org>
43627         renameat: Fix dependencies.
43628         * modules/renameat (Depends-on): Add stdbool.
43630 2011-11-08  Bruno Haible  <bruno@clisp.org>
43632         mkfifoat: Fix module description.
43633         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
43634         not gl_UNISTD_MODULE_INDICATOR.
43636 2011-11-08  Bruno Haible  <bruno@clisp.org>
43638         fstatat: Remove unused dependency.
43639         * modules/fstatat (Depends-on): Remove fstat.
43641 2011-11-08  Simon Josefsson  <simon@josefsson.org>
43643         GNUmakefile: behave when Makefile is missing.
43644         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
43646 2011-11-08  Bruno Haible  <bruno@clisp.org>
43648         openat: Conditionalize dependencies.
43649         * lib/openat.c: Reduce the scope of some #includes.
43650         * modules/openat (Depends-on): Add conditions.
43652 2011-11-07  Jim Meyering  <meyering@redhat.com>
43654         maint.mk: extract GPG key ID without using a temporary file
43655         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
43656         without using a temporary file.  Based on a suggestion from Werner Koch
43657         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
43659 2011-11-07  Eric Blake  <eblake@redhat.com>
43661         grantpt: fix typo
43662         * lib/stdlib.in.h (grantpt): Check correct function.
43664         maint.mk: silence new syntax check
43665         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
43667 2011-11-06  Bruno Haible  <bruno@clisp.org>
43669         Doc about floating-point and math API.
43670         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
43671         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
43673 2011-11-06  Bruno Haible  <bruno@clisp.org>
43675         stdalign tests: Skip the test when compiled by Sun C.
43676         * tests/test-stdalign.c (main): Skip the test on Sun C.
43678 2011-11-06  Bruno Haible  <bruno@clisp.org>
43680         ansi-c++-opt: Complete the 2011-06-05 change.
43681         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
43682         does not support namespaces, set the variable to "no", not to ":".
43684 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
43686         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
43688 2011-11-06  Bruno Haible  <bruno@clisp.org>
43690         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
43691         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
43692         (minus_zerol) [HP-UX]: New macro.
43693         (unary_minus) [HP-UX]: New function.
43694         (copysignl) [HP-UX]: Use unary_minus function.
43696 2011-11-06  Bruno Haible  <bruno@clisp.org>
43698         ldexp, ldexpf, ldexpl: Enhance tests.
43699         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
43700         and tests/test-ldexpl.c.
43701         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
43702         LDEXP, MIN_EXP, MAX_EXP): New macros.
43703         Include test-ldexp.h.
43704         (main): Just call test_function.
43705         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
43706         infinity.h, nan.h.
43707         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
43708         MAX_EXP): New macros.
43709         Include test-ldexp.h.
43710         (x, y): Remove variables.
43711         (main): Just call test_function.
43712         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
43713         infinity.h, nan.h.
43714         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
43715         MAX_EXP): New macros.
43716         Include test-ldexp.h.
43717         (x, y): Remove variables.
43718         (main): Just call test_function.
43719         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
43720         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
43721         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
43722         (Depends-on): Add isnand-nolibm, signbit, float.
43723         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
43724         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
43725         (Depends-on): Add isnanf-nolibm, signbit, float.
43727 2011-11-06  Bruno Haible  <bruno@clisp.org>
43729         math tests: Cosmetics.
43730         * tests/test-math-c++.cc: Reorder declarations.
43732 2011-11-05  Bruno Haible  <bruno@clisp.org>
43734         fma*: Simplify test.
43735         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
43736         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
43738         Tests for module 'fmal'.
43739         * modules/fmal-tests: New file.
43740         * tests/test-fmal1.c: New file.
43741         * tests/test-fmal2.c: New file.
43743         New module 'fmal'.
43744         * lib/math.in.h (fmal): New declaration.
43745         * lib/fmal.c: New file.
43746         * m4/fmal.m4: New file.
43747         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
43748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
43749         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
43750         REPLACE_FMAL.
43751         * modules/fmal: New file.
43752         * doc/posix-functions/fmal.texi: Mention the new module and the various
43753         bugs.
43755         Tests for module 'fmaf'.
43756         * modules/fmaf-tests: New file.
43757         * tests/test-fmaf1.c: New file.
43758         * tests/test-fmaf2.c: New file.
43760         New module 'fmaf'.
43761         * lib/math.in.h (fmaf): New declaration.
43762         * lib/fmaf.c: New file.
43763         * m4/fmaf.m4: New file.
43764         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
43765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
43766         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
43767         REPLACE_FMAF.
43768         * modules/fmaf: New file.
43769         * doc/posix-functions/fmaf.texi: Mention the new module and the various
43770         bugs.
43772         Tests for module 'fma'.
43773         * modules/fma-tests: New file.
43774         * tests/test-fma1.c: New file.
43775         * tests/test-fma1.h: New file.
43776         * tests/test-fma2.c: New file.
43777         * tests/test-fma2.h: New file.
43779         New module 'fma'.
43780         * lib/math.in.h (fma): New declaration.
43781         * lib/fma.c: New file.
43782         * m4/fma.m4: New file.
43783         * m4/fegetround.m4: New file.
43784         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
43785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
43786         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
43787         REPLACE_FMA.
43788         * modules/fma: New file.
43789         * doc/posix-functions/fma.texi: Mention the new module and the various
43790         bugs.
43792         Extend gl_MATHFUNC.
43793         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
43794         Support 'void' as argument type.
43795         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
43797 2011-11-05  Jim Meyering  <meyering@redhat.com>
43799         maint.mk: also prohibit inclusion of dirent.h without use
43800         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
43802 2011-11-05  Bruno Haible  <bruno@clisp.org>
43804         ldexpl tests: Avoid test failure on MSVC 9.
43805         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
43806         value. Needed in order to enforce the conversion from a value greater
43807         than LDBL_MAX to Infinity.
43809 2011-11-05  Bruno Haible  <bruno@clisp.org>
43811         New modules 'at-internal', 'openat-h', split off from module 'openat'.
43812         * modules/at-internal: New file, extracted from modules/openat.
43813         * modules/openat-h: New file.
43814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
43815         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
43816         * modules/openat (Description): Add reference to POSIX function.
43817         (Files): Remove lib/openat.h, lib/openat-proc.c.
43818         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
43819         intprops, unistd.
43820         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
43821         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
43822         gl_FCNTL_MODULE_INDICATOR.
43823         (Include): Remove unistd.h, openat.h.
43824         * modules/areadlinkat (Files): Add lib/at-func.c.
43825         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
43826         openat-die, openat-h, save-cwd.
43827         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
43828         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
43829         openat-die, openat-h, save-cwd, unistd.
43830         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
43831         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43832         openat-h, save-cwd. Remove fcntl-h, openat.
43833         * modules/fchmodat (Files): Remove lib/openat.h.
43834         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
43835         openat, stdbool, unistd.
43836         * modules/fchownat (Files): Remove lib/openat.h.
43837         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
43838         openat, stdbool, sys_stat.
43839         * modules/fdopendir (Files): Remove lib/openat-priv.h,
43840         lib/openat-proc.c.
43841         (Depends-on): Add at-internal.
43842         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
43843         * modules/fstatat (Files): Remove lib/openat.h.
43844         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
43845         stdbool, unistd.
43846         * modules/fts (Depends-on): Add openat-h.
43847         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
43848         openat.
43849         * modules/mkdirat (Files): Remove lib/openat.h.
43850         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
43851         openat, stdbool, sys_stat.
43852         * modules/mkfifoat (Files): Add lib/at-func.c.
43853         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43854         openat-h, save-cwd. Remove fcntl-h, openat.
43855         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
43856         * modules/readlinkat (Files): Add lib/at-func.c.
43857         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43858         openat-h, save-cwd. Remove fcntl-h, openat.
43859         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
43860         openat.
43861         * modules/selinux-at (Files): Add lib/at-func.c.
43862         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
43863         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
43864         * modules/symlinkat (Files): Add lib/at-func.c.
43865         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43866         openat-h, save-cwd. Remove fcntl-h, openat.
43867         * modules/unlinkat (Files): Remove lib/openat.h.
43868         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
43869         stdbool.
43870         * modules/utimensat (Files): Add lib/at-func.c.
43871         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
43872         openat-die, openat-h, save-cwd.
43873         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
43874         * modules/fdutimensat-tests (Depends-on): Add openat.
43875         * modules/fstatat-tests (Depends-on): Add openat-h.
43876         * modules/readlinkat-tests (Depends-on): Add openat.
43877         * modules/symlinkat-tests (Depends-on): Add openat.
43879 2011-11-05  Bruno Haible  <bruno@clisp.org>
43881         openat: Include <stdbool.h>.
43882         * lib/openat.c: Include <stdbool.h>.
43884 2011-11-04  Bruno Haible  <bruno@clisp.org>
43886         fchownat, renameat, unlinkat: Fix dependencies.
43887         * modules/fchownat (Depends-on): Add fstatat.
43888         * modules/renameat (Depends-on): Likewise.
43889         * modules/unlinkat (Depends-on): Likewise.
43891 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
43893         openat: remove direct dependency on dirent
43894         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
43895         and hasn't been needed ever since fdopendir was split into its own
43896         module on 2009-08-31.
43897         * modules/openat (Depends-on): Remove dirent.
43899 2011-11-04  Bruno Haible  <bruno@clisp.org>
43901         renameat: Optimize code size.
43902         * modules/renameat (configure.ac): Don't compile at-func2.c if
43903         REPLACE_RENAMEAT is 1.
43905 2011-11-04  Bruno Haible  <bruno@clisp.org>
43907         openat tests: Fix file list.
43908         * modules/openat-tests (Files): Add tests/test-open.h.
43910 2011-11-04  Bruno Haible  <bruno@clisp.org>
43912         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
43913         * modules/fchmodat (Depends-on): Add openat-die.
43914         * modules/fchownat (Depends-on): Likewise.
43915         * modules/linkat (Depends-on): Likewise.
43916         * modules/renameat (Depends-on): Likewise.
43917         * modules/openat (Depends-on): Add dirent.
43919 2011-11-04  Jim Meyering  <meyering@redhat.com>
43921         at-func*.c: fix comments
43922         * lib/at-func2.c: Correct/improve first-line comment.
43923         * lib/at-func.c: Correct grammar in first-line comment.
43925 2011-11-04  Bruno Haible  <bruno@clisp.org>
43927         New module 'mkdirat', split off from module 'openat'.
43928         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
43929         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
43930         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
43931         * modules/mkdirat: New file, extracted from modules/openat.
43932         * modules/openat (Files): Remove lib/mkdirat.c.
43933         (Depends-on): Remove mkdir.
43934         (configure.ac): Remove AC_LIBOBJ of mkdirat.
43935         (Include): Remove <sys/stat.h>.
43936         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
43937         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
43938         tests/test-mkdir.h.
43939         (Depends-on): Remove ignore-value.
43940         (Makefile.am): Remove rules for test-mkdirat.
43941         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
43942         of module 'openat'.
43943         * NEWS: Mention the change.
43945 2011-11-04  Bruno Haible  <bruno@clisp.org>
43947         closedir: Avoid warning on mingw.
43948         * lib/closedir.c: Include <unistd.h>.
43950 2011-11-04  Bruno Haible  <bruno@clisp.org>
43952         New module 'fstatat', split off from module 'openat'.
43953         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
43954         defined.
43955         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
43956         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
43957         gl_FUNC_FSTATAT.
43958         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
43959         * modules/fstatat: New file, extracted from modules/openat.
43960         * modules/openat (Files): Remove lib/fstatat.c.
43961         (Depends-on): Remove lstat.
43962         (configure.ac): Remove AC_LIBOBJ of fstatat.
43963         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
43964         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
43965         tests/test-lstat.h, tests/test-stat.h.
43966         (Depends-on): Remove getcwd-lgpl.
43967         (Makefile.am): Remove rules for test-fstatat.
43968         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
43969         of module 'openat'.
43970         * NEWS: Mention the change.
43971         * modules/getcwd (Depends-on): Add fstatat.
43972         * modules/linkat (Depends-on): Likewise.
43973         * modules/mkfifoat-tests (Depends-on): Likewise.
43974         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
43976 2011-11-03  Bruno Haible  <bruno@clisp.org>
43978         New module 'unlinkat', split off from module 'openat'.
43979         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
43980         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
43981         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
43982         * modules/unlinkat: New file, extracted from modules/openat. Correct
43983         the dependency conditions.
43984         * modules/openat (Files): Remove lib/unlinkat.c.
43985         (Depends-on): Remove rmdir, unlink.
43986         (configure.ac): Remove AC_LIBOBJ of unlinkat.
43987         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
43988         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
43989         tests/test-rmdir.h, tests/test-unlink.h.
43990         (Depends-on): Remove unlinkdir.
43991         (Makefile.am): Remove rules for test-unlinkat.
43992         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
43993         of module 'openat'.
43994         * NEWS: Mention the change.
43995         * modules/linkat-tests (Depends-on): Add unlinkat.
43996         * modules/mkfifoat-tests (Depends-on): Likewise.
43997         * modules/readlinkat-tests (Depends-on): Likewise.
43999 2011-11-02  Bruno Haible  <bruno@clisp.org>
44001         New module 'fchmodat', split off from module 'openat'.
44002         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
44003         defined.
44004         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
44005         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
44006         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
44007         * modules/fchmodat: New file, extracted from modules/openat.
44008         * modules/openat (Files): Remove lib/fchmodat.c.
44009         (configure.ac): Remove AC_LIBOBJ of fchmodat.
44010         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
44011         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
44012         (Makefile.am): Remove rules for test-fchmodat.
44013         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
44014         of module 'openat'.
44015         * NEWS: Mention the change.
44017 2011-11-02  Jim Meyering  <meyering@redhat.com>
44019         putenv: indent #definition of "environ" to placate cppi
44020         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
44022         gitlog-to-changelog: provide a ChangeLog-repair mechanism
44023         Git logs are often treated as immutable, because editing them
44024         changes the SHA1 checksums of all descendants.  Thus, errors in
44025         git logs tend to stay there forever.  However, when we generate
44026         a ChangeLog file -- typically for distribution -- from that git log,
44027         we can actually make corrections in the generated file.  The key
44028         lies in recording in machine-readable/applicable form the desired
44029         corrections.  See --help for description and an example.
44030         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
44031         (usage): Describe it; alphabetize option descriptions.
44032         (main): Honor the new option, carefully.
44034 2011-11-01  Jim Meyering  <meyering@redhat.com>
44036         gitlog-to-changelog: avoid an infloop
44037         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
44038         that ends up being empty.
44040 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44042         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
44043         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
44044         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
44045         contains (possibly-quoted) backslashes.  This should avoid
44046         all-too-common shell bugs if COMPLICATED contains backslashes in
44047         the "wrong" places.  Reported by David Evans in
44048         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
44049         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
44050         because we want ASCII ranges.  Is there some reason we don't use
44051         the C locale everywhere in this script?
44052         (func_module, top level): Avoid unwanted pathname expansion when
44053         $repo_url_prefix or $repo_url_suffix_repl contain shell
44054         metacharacters like '?' and '*'.
44056 2011-11-01  Bruno Haible  <bruno@clisp.org>
44058         fchownat: Improve description.
44059         * modules/fchownat (Description): Add link to function.
44061 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44063         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
44064         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
44065         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
44066         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
44068 2011-11-01  Bruno Haible  <bruno@clisp.org>
44070         alignof: Avoid collision with stdalign module.
44071         * lib/alignof.h (alignof): Remove macro.
44072         * NEWS: Mention the change.
44073         Reported by Paul Eggert.
44075 2011-11-01  Bruno Haible  <bruno@clisp.org>
44077         New module 'fchownat', split off from module 'openat'.
44078         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
44079         defined.
44080         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
44081         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
44082         invoke gl_FUNC_FCHOWNAT.
44083         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
44084         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
44085         * modules/fchownat: New file, extracted from modules/openat.
44086         * modules/openat (Files): Remove lib/fchownat.c.
44087         (Depends-on): Remove lchown.
44088         (configure.ac): Remove AC_LIBOBJ of fchownat.
44089         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
44090         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
44091         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
44092         (Depends-on): Remove mgetgroups, usleep, stat-time.
44093         (configure.ac): Remove test for getegid.
44094         (Makefile.am): Remove rules for test-fchownat.
44095         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
44096         of module 'openat'.
44097         * NEWS: Mention the change.
44099 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44101         stdalign: port better to MSVC and to Sun C 5.11
44102         This fixes some of the problems reported by Bruno Haible in
44103         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
44104         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
44105         shortcomings of MSVC and of Sun C 5.11.
44106         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
44107         around __declspec arg.
44108         * modules/stdalign-tests (Files): Add tests/macros.h.
44109         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
44110         Include macros.h, for ASSERT.
44111         (DECLARE_ALIGNED): Remove.
44112         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
44113         to catch bug), and to 1 if not (simplifies the rest of the code).
44114         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
44115         (CHECK_AUTO): Remove.
44116         (CHECK_ALIGNED): Check only the alignment of the static vars,
44117         since auto var alignment isn't supported by Sun C 5.11.
44118         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
44119         ASSERT failures are easier to diagnose.
44121 2011-10-31  Bruno Haible  <bruno@clisp.org>
44123         doc about some IRIX 5.3 problems.
44124         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
44125         on IRIX 5.3.
44126         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
44127         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
44128         5.3.
44129         * doc/posix-functions/grantpt.texi: Likewise.
44130         * doc/posix-functions/unlockpt.texi: Likewise.
44131         * doc/posix-functions/lgamma.texi: Likewise.
44132         * doc/posix-functions/nextafter.texi: Likewise.
44133         * doc/posix-functions/remainder.texi: Likewise.
44134         * doc/posix-functions/select.texi: Mention misplaced declaration on
44135         IRIX 5.3.
44136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44138 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
44140         gitlog-to-changelog: fix git-log invocation.
44141         git-log mishandles date strings before 1970-01-01 UTC, and there is
44142         no use to specify --since=1970-01-01 by default anyway.
44143         * build-aux/gitlog-to-changelog: By default, when no --since option
44144         was given, do not specify explicit --since option to git-log.
44146 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
44148         gitlog-to-changelog: new option --append-dot.
44149         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
44150         first non-blank line of each commit message terminated with a dot.
44152 2011-10-30  Bruno Haible  <bruno@clisp.org>
44154         ffsl, ffsll: Avoid compilation error due to 'restrict'.
44155         * lib/ffsl.h: Include <config.h>.
44156         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
44158 2011-10-30  Jim Meyering  <meyering@redhat.com>
44160         GNUmakefile: reenable "make syntax-check" for most projects
44161         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
44162         build-aux variable", "syntax-check" would do nothing but succeed with
44163         the "No version control files detected..." diagnostic (unless you
44164         happened to override _build-aux via cfg.mk).
44165         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
44166         to precede inclusion of maint.mk.  Otherwise, these variables would
44167         be used undefined in any project that does not override the default.
44169 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
44171         gitlog-to-changelog: treat a message with only blank lines as empty.
44172         * build-aux/gitlog-to-changelog: Move the code that removes leading and
44173         trailing blank lines before the code that issues a warning about an
44174         empty commit message.
44176 2011-10-30  Jim Meyering  <meyering@redhat.com>
44178         test-parse-datetime.c: avoid new DST-related false positive test failure
44179         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
44180         based on the time/date we'll convert, not the current time.
44181         Otherwise, the moment we cross a DST boundary like today's in
44182         Europe, (CEST to CET), that offset ends up being one hour off.
44184 2011-10-27  Bruno Haible  <bruno@clisp.org>
44186         fstat: Tweak documentation.
44187         * modules/fstat (Description): More precise description.
44189 2011-10-27  Bruno Haible  <bruno@clisp.org>
44191         Update documentation regarding 'largefile' module.
44192         * doc/posix-functions/fstat.texi: Tweak wording.
44193         * doc/posix-functions/opendir.texi: Mention that the module fixes the
44194         problems with huge directories and/or small ino_t types.
44195         * doc/posix-functions/readdir.texi: Likewise.
44196         * doc/posix-functions/rewinddir.texi: Likewise.
44198 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
44200         maint.mk: don't maintain a second build-aux variable.
44201         * maint.mk (build_aux): Removed.  The maintainer-makefile module
44202         depends on GNUmakefile, which already maintains a cfg.mk
44203         overridable $(_build-aux) for projects with a non-standard
44204         build-aux directory location, although without the $(srcdir)
44205         prefix.  Use that variable consistently instead of introducing a
44206         second one.  Adjust all call sites.
44208 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44210         Add stdalign module and use it in other modules.
44211         This is based on a previous proposal by Bruno Haible
44212         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
44214         stdalign: new module
44215         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
44216         * modules/stdalign: New files.
44217         * MODULES.html.sh (c1x_core_properties): Add stdalign.
44218         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
44220         stdalign-tests: new module
44221         * modules/stdalign-tests, tests/test-stdalign.c: New files.
44223         argp: use stdalign
44224         * lib/argp-parse.c: Include <stdalign.h>.
44225         (alignof): Remove.
44226         * modules/argp (Depends-on): Add stdalign.
44228         crypto libraries: use stdalign
44229         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
44230         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
44231         Do not include <stdlib.h> twice, in md4.c.
44232         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
44233         because we are accessing a pointer's bit-pattern, not a size.
44234         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
44235         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
44236         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
44237         * modules/crypto/sha512: Likewise.
44239         sys_socket: use stdalign, not alignof
44240         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
44241         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
44243 2011-10-27  Bruno Haible  <bruno@clisp.org>
44245         raise test: Avoid a test failure on Linux/MIPS.
44246         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
44247         because 99 is a valid signal on Linux/MIPS.
44249 2011-10-27  Bruno Haible  <bruno@clisp.org>
44251         nonblocking tests: Fix test failure on Linux/MIPS.
44252         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
44253         Set to 270000.
44255 2011-10-27  Bruno Haible  <bruno@clisp.org>
44257         utimensat: Work around problem on Linux/hppa.
44258         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
44259         values.
44260         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
44262 2011-10-25  Jim Meyering  <meyering@redhat.com>
44264         maint.mk: fix a bug in sc_prohibit_stddef_without_use
44265         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
44266         after symbols like NULL, size_t, etc.
44267         Reported by Alfred M. Szmidt.
44269         maint.mk: exempt ENODATA from a syntax-check rule
44270         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
44271         from the sc_prohibit_always-defined_macros syntax-check rule.
44272         Add a comment.  See this for more details:
44273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
44275 2011-10-23  Jim Meyering  <meyering@redhat.com>
44277         fts: close parent dir FD before returning from post-traversal fts_read
44278         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
44279         unlink A, even though an FD open on A remained.  This is suboptimal
44280         (holding a file descriptor open longer than needed), but otherwise not
44281         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
44282         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
44283         that represents a real problem: it causes the removal of A to fail
44284         with e.g., "rm: cannot remove `A': Device or resource busy"
44286         fts visits each directory twice and keeps a cache (fts_fd_ring) of
44287         directory file descriptors.  After completing the final, FTS_DP,
44288         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
44289         cache, but then proceeded to add a new FD to it via the subsequent
44290         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
44291         final file descriptor would be closed only via fts_close's call to
44292         fd_ring_clear.  Now, it is usually closed earlier, via the final
44293         FTS_DP-returning fts_read call.
44294         * lib/fts.c (restore_initial_cwd): New function, converted from
44295         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
44296         Update callers.
44297         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
44298         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
44300 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
44301             Bruno Haible  <bruno@clisp.org>
44302             Jim Meyering  <jim@meyering.net>
44304         readme-release: improve safety of release prep instructions.
44305         * README-release: Don't git pull all branches when only master
44306         is needed for the release process.
44307         Run make maintainer-clean before changing trees and merging.
44308         Don't try to run ./configure right after git pull in case files
44309         that influence the bootstrap process have changed, move the
44310         ./configure step to after running ./bootstrap.
44311         Don't bootstrap "one last time"... it's the first time!
44313 2011-10-22  Bruno Haible  <bruno@clisp.org>
44315         errno, strerror-override: Support for MSVC 10.
44316         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
44317         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
44318         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
44319         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
44320         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
44321         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
44322         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
44323         Assign values compatible with MSVC 10.
44324         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
44325         New macros.
44326         (GNULIB_defined_EWINSOCK): New macro.
44327         * lib/strerror-override.c (strerror_override): Update accordingly.
44328         * lib/strerror-override.h: Likewise.
44329         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
44330         longer equal to the corresponding errno value.
44331         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44333 2011-10-22  Bruno Haible  <bruno@clisp.org>
44335         perror: Recognize when test program crashes.
44336         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
44337         strerror, set gl_cv_func_perror_works to no.
44338         Reported by Daniel Richard G. <skunk@iskunk.org>.
44340         perror: Fix indentation.
44341         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
44343 2011-10-22  Bruno Haible  <bruno@clisp.org>
44345         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
44346         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
44347         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
44348         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
44349         functions, not as a macro.
44350         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
44351         macros.
44352         (isfinite, isinf, isnan, signbit): Check overloaded functions and
44353         absence of macro.
44354         Suggested by Eric Blake.
44355         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44357 2011-10-21  Bruno Haible  <bruno@clisp.org>
44359         relocatable-prog-wrapper: Don't leave object files behind.
44360         * build-aux/install-reloc: Re-synchronize list of .o files to be
44361         removed with list of compilation units.
44363 2011-10-20  Bruno Haible  <bruno@clisp.org>
44365         openpty, posix_openpt: Remove code duplication.
44366         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
44367         * lib/openpty.c: Include <stdlib.h>.
44368         (openpty): Use posix_openpt on all platforms except IRIX.
44369         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
44371 2011-10-20  Bruno Haible  <bruno@clisp.org>
44373         unlockpt: Detect invalid argument.
44374         * lib/unlockpt.c: Include <fcntl.h>.
44375         (unlockpt): Check whether fd is valid, using fcntl().
44376         * modules/unlockpt (Depends-on): Add fcntl-h.
44378 2011-10-20  Bruno Haible  <bruno@clisp.org>
44380         openpty: Avoid compilation error on AIX 6.1.
44381         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
44383 2011-10-20  Bruno Haible  <bruno@clisp.org>
44385         posix_openpt: Support for OpenBSD.
44386         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
44387         (posix_openpt) [OpenBSD]: New code.
44388         * lib/grantpt.c: Include <fcntl.h>.
44389         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
44390         * modules/grantpt (Depends-on): Add fcntl-h.
44392 2011-10-20  Bruno Haible  <bruno@clisp.org>
44394         posix_openpt test: Coding style.
44395         * tests/test-posix_openpt.c: Use GNU coding style.
44397 2011-10-20  Bruno Haible  <bruno@clisp.org>
44399         grantpt: Support --avoid=pt_chown.
44400         * modules/grantpt (Files): Add lib/pty-private.h.
44402 2011-10-20  Bruno Haible  <bruno@clisp.org>
44404         posix_openpt: Fix autoconf macro.
44405         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
44406         unneeded check for _getpty.
44408 2011-10-20  Bruno Haible  <bruno@clisp.org>
44410         openpty: Update comments.
44411         * lib/openpty.c: Add comments about Minix.
44413 2011-10-19  Eric Blake  <eblake@redhat.com>
44415         openpty: relax license
44416         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
44418         pt_chown: use configmake to simplify build
44419         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
44421         ptsname and others: relax license
44422         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
44423         * modules/unlockpt (License): Likewise.
44424         * modules/pt_chown (License): Likewise.
44425         * modules/ptsname (License): Likewise.
44426         * modules/ttyname_r (License): Likewise.
44428 2011-10-19  Jim Meyering  <meyering@redhat.com>
44430         posix_openpt: remove spurious #endif
44431         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
44433 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
44435         maint.mk: Respect $(build_aux) in web-manual rule.
44436         * top/maint.mk (web-manual): Find gen-announce script in user's
44437         $(build_aux) directory instead of hard-coding 'build-aux'.
44439 2011-10-19  Bruno Haible  <bruno@clisp.org>
44441         posix_openpt: Fix compilation error.
44442         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
44443         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
44444         Mention the openpty module as an alternative.
44446 2011-10-19  Bruno Haible  <bruno@clisp.org>
44448         Support for old NeXTstep 3.3 frexp().
44449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
44450         execution time of the test to 5 seconds.
44451         Reported by Daniel Richard G. <skunk@iskunk.org>.
44453 2011-10-19  Bruno Haible  <bruno@clisp.org>
44455         Support for old NeXTstep 3.3 sed.
44456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
44457         part, use /.../, not \|...|. Escape periods in the header file name.
44458         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44459         Reported by Daniel Richard G. <skunk@iskunk.org>.
44461 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
44463         Support for old NeXTstep 3.3 gcc.
44464         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
44465         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
44466         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
44467         * lib/spawn.in.h (_Restrict_arr_): Likewise.
44468         * lib/regex.h (_Restrict_arr_): Likewise.
44469         * lib/regex_internal.h (re_token_t): Likewise.
44470         * lib/regexec.c (check_node_accept_bytes): Likewise.
44471         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
44473 2011-10-18  Eric Blake  <eblake@redhat.com>
44475         posix_openpt: new module
44476         * modules/posix_openpt: New module.
44477         * m4/posix_openpt.m4: New file.
44478         * lib/posix_openpt.c: Likewise.
44479         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44480         (gl_STDLIB_H_DEFAULTS): Set defaults.
44481         * modules/stdlib (Makefile.am): Substitute macros.
44482         * lib/stdlib.in.h (posix_openpt): Declare.
44483         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
44484         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
44485         * modules/posix_openpt-tests: New test module.
44486         * tests/test-posix_openpt.c: New test.
44488 2011-10-15  Bruno Haible  <bruno@clisp.org>
44490         xstrtoll: Fix compilation failure.
44491         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
44492         from lib/strtol.c.
44493         * doc/posix-headers/limits.texi: Mention missing numerical limits on
44494         some platforms.
44495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44497 2011-10-15  Bruno Haible  <bruno@clisp.org>
44499         vasnprintf: Optimize bit search operation.
44500         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
44501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
44502         gl_DOUBLE_EXPONENT_LOCATION.
44503         * modules/vasnprintf (Files): Add m4/exponentd.m4.
44504         * modules/unistdio/u8-vasnprintf (Files): Likewise.
44505         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
44506         * modules/unistdio/u16-vasnprintf (Files): Likewise.
44507         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
44508         * modules/unistdio/u32-vasnprintf (Files): Likewise.
44509         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
44510         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
44511         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
44513 2011-10-15  Bruno Haible  <bruno@clisp.org>
44515         vasnprintf: Fix comments.
44516         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
44518 2011-10-14  Bruno Haible  <bruno@clisp.org>
44520         Tests for module 'integer_length_ll'.
44521         * modules/integer_length_ll-tests: New file.
44522         * tests/test-integer_length_ll.c: New file.
44524         New module 'integer_length_ll'.
44525         * lib/integer_length_ll.c: New file.
44526         * modules/integer_length_ll: New file.
44528 2011-10-14  Bruno Haible  <bruno@clisp.org>
44530         Tests for module 'integer_length_l'.
44531         * modules/integer_length_l-tests: New file.
44532         * tests/test-integer_length_l.c: New file.
44534         New module 'integer_length_l'.
44535         * lib/integer_length_l.c: New file.
44536         * modules/integer_length_l: New file.
44538 2011-10-14  Bruno Haible  <bruno@clisp.org>
44540         Tests for module 'integer_length'.
44541         * modules/integer_length-tests: New file.
44542         * tests/test-integer_length.c: New file.
44544         New module 'integer_length'.
44545         * lib/integer_length.h: New file.
44546         * lib/integer_length.c: New file.
44547         * modules/integer_length: New file.
44549 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
44551         popen: Fix dependency conditions.
44552         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
44554 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
44556         perror: Fix autoconf test.
44557         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
44558         <stdlib.h> and <string.h>.
44560 2011-10-14  Bruno Haible  <bruno@clisp.org>
44562         ffsl: Optimize on 64-bit platforms.
44563         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
44564         unrolling.
44566 2011-10-13  Bruno Haible  <bruno@clisp.org>
44568         ffsl: Optimize on 32-bit platforms.
44569         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
44570         use ffs() without a loop.
44572         ffsl, ffsll: Optimize for GCC.
44573         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
44574         * lib/ffsl.c (GCC_BUILTIN): New macro.
44575         * lib/ffsll.c (GCC_BUILTIN): Likewise.
44577 2011-10-13  Bruno Haible  <bruno@clisp.org>
44579         ffs, bcopy, memset: Support symbol renaming via config.h.
44580         * lib/ffs.c: Include <config.h>.
44581         * lib/bcopy.c: Likewise.
44582         * lib/memset.c: Likewise.
44584 2011-10-10  Bruno Haible  <bruno@clisp.org>
44586         atanl: Simplify for platforms where 'long double' == 'double'.
44587         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44588         alternative implementation.
44589         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44590         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44591         * modules/atanl (Depends-on): Add atan. Update conditions.
44593 2011-10-10  Bruno Haible  <bruno@clisp.org>
44595         acosl: Simplify for platforms where 'long double' == 'double'.
44596         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44597         alternative implementation.
44598         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44599         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44600         * modules/acosl (Depends-on): Add acos. Update conditions.
44602 2011-10-10  Bruno Haible  <bruno@clisp.org>
44604         asinl: Simplify for platforms where 'long double' == 'double'.
44605         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44606         alternative implementation.
44607         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44608         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44609         * modules/asinl (Depends-on): Add asin. Update conditions.
44611 2011-10-10  Bruno Haible  <bruno@clisp.org>
44613         tanl: Simplify for platforms where 'long double' == 'double'.
44614         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44615         implementation.
44616         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44617         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44618         * modules/tanl (Depends-on): Add tan. Update conditions.
44619         (configure.ac): Don't compile trigl.c if
44620         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44622 2011-10-10  Bruno Haible  <bruno@clisp.org>
44624         cosl: Simplify for platforms where 'long double' == 'double'.
44625         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44626         implementation.
44627         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44628         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44629         * modules/cosl (Depends-on): Add cos. Update conditions.
44630         (configure.ac): Don't compile sincosl.c and trigl.c if
44631         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44633 2011-10-10  Bruno Haible  <bruno@clisp.org>
44635         sinl: Simplify for platforms where 'long double' == 'double'.
44636         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44637         implementation.
44638         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44639         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44640         * modules/sinl (Depends-on): Add sin. Update conditions.
44641         (configure.ac): Don't compile sincosl.c and trigl.c if
44642         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44644 2011-10-10  Bruno Haible  <bruno@clisp.org>
44646         logl: Simplify for platforms where 'long double' == 'double'.
44647         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44648         implementation.
44649         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44650         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44651         * modules/logl (Depends-on): Add log. Update conditions.
44653 2011-10-10  Bruno Haible  <bruno@clisp.org>
44655         expl: Simplify for platforms where 'long double' == 'double'.
44656         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44657         implementation.
44658         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44659         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44660         * modules/expl (Depends-on): Add exp. Update conditions.
44662 2011-10-10  Bruno Haible  <bruno@clisp.org>
44664         sqrtl: Simplify for platforms where 'long double' == 'double'.
44665         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44666         alternative implementation.
44667         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44668         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44669         * modules/sqrtl (Depends-on): Update conditions.
44671 2011-10-10  Bruno Haible  <bruno@clisp.org>
44673         ldexpl: Simplify for platforms where 'long double' == 'double'.
44674         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44675         alternative implementation.
44676         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44677         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44678         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
44680 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
44682         ffsll: set correct witness
44683         * modules/ffsll (configure.ac): Fix typo.
44685 2011-10-10  Bruno Haible  <bruno@clisp.org>
44687         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
44688         * lib/printf-frexpl.c: Include <config.h>.
44689         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44690         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
44691         second time.
44692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
44693         gl_LONG_DOUBLE_VS_DOUBLE.
44694         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
44695         conditions.
44697 2011-10-10  Bruno Haible  <bruno@clisp.org>
44699         frexpl: Simplify for platforms where 'long double' == 'double'.
44700         * lib/frexpl.c: Include <config.h>.
44701         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44702         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
44703         time.
44704         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44705         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44706         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
44707         * modules/frexpl (Depends-on): Add frexp. Update conditions.
44708         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
44709         conditions.
44711 2011-10-10  Jim Meyering  <meyering@redhat.com>
44713         test-renameat: don't leave behind a temporary file
44714         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
44715           ERROR: files left in build directory after distclean:
44716           ./gltests/test-renameat.too
44717           make[1]: *** [distcleancheck] Error 1
44718         Reported by Tom G. Christensen.
44720 2011-10-09  Bruno Haible  <bruno@clisp.org>
44722         rint: Determine RINT_LIBM correctly on AIX 7.
44723         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
44724         directly, not only through a function pointer. Also accept an optional
44725         4th argument with extra code.
44726         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
44727         rintf() call by gcc when optimizing.
44729         mathfunc.m4: Refactor.
44730         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
44731         m4 variable.
44733 2011-10-09  Bruno Haible  <bruno@clisp.org>
44735         rintl: Simplify for platforms where 'long double' == 'double'.
44736         * lib/rintl.c: Include <config.h>.
44737         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44738         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
44739         time.
44740         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44741         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44742         * modules/rintl (Depends-on): Add rint. Update conditions.
44744 2011-10-09  Bruno Haible  <bruno@clisp.org>
44746         roundl: Simplify for platforms where 'long double' == 'double'.
44747         * lib/roundl.c: Include <config.h>.
44748         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44749         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
44750         time.
44751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44752         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44753         * modules/roundl (Depends-on): Add round. Update conditions.
44755 2011-10-09  Bruno Haible  <bruno@clisp.org>
44757         truncl: Simplify for platforms where 'long double' == 'double'.
44758         * lib/truncl.c: Include <config.h>.
44759         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44760         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
44761         time.
44762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44763         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44764         * modules/truncl (Depends-on): Add trunc. Update conditions.
44766 2011-10-09  Bruno Haible  <bruno@clisp.org>
44768         ceill: Simplify for platforms where 'long double' == 'double'.
44769         * lib/ceill.c: Include <config.h>.
44770         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44771         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
44772         time.
44773         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44774         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44775         * modules/ceill (Depends-on): Add ceil. Update conditions.
44777 2011-10-09  Bruno Haible  <bruno@clisp.org>
44779         floorl: Simplify for platforms where 'long double' == 'double'.
44780         * lib/floorl.c: Include <config.h>.
44781         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
44782         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
44783         time.
44784         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44785         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44786         * modules/floorl (Depends-on): Add floor. Update conditions.
44788 2011-10-09  Bruno Haible  <bruno@clisp.org>
44790         rint: Fix ordering constraints.
44791         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
44792         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
44793         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
44795 2011-10-09  Bruno Haible  <bruno@clisp.org>
44797         copysignl: Simplify for platforms where 'long double' == 'double'.
44798         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44799         alternative.
44800         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44801         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44802         * modules/copysignl (Depends-on): Add copysign. Update conditions.
44804 2011-10-09  Bruno Haible  <bruno@clisp.org>
44806         Tests for module 'rintl'.
44807         * modules/rintl-tests: New file.
44808         * tests/test-rintl.c: New file.
44810         New module 'rintl'.
44811         * lib/math.in.h (rintl): New declaration.
44812         * lib/rintl.c: New file.
44813         * m4/rintl.m4: New file.
44814         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
44815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
44816         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
44817         * modules/rintl: New file.
44818         * tests/test-math-c++.cc: Check the declaration of rintl.
44819         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
44820         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
44821         * doc/posix-functions/rintl.texi: Mention the new module.
44823 2011-10-09  Bruno Haible  <bruno@clisp.org>
44825         Tests for module 'rintf'.
44826         * modules/rintf-tests: New file.
44827         * tests/test-rintf.c: New file.
44829         New module 'rintf'.
44830         * lib/math.in.h (rintf): New declaration.
44831         * lib/rintf.c: New file.
44832         * m4/rintf.m4: New file.
44833         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
44834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
44835         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
44836         * modules/rintf: New file.
44837         * tests/test-math-c++.cc: Check the declaration of rintf.
44838         * doc/posix-functions/rintf.texi: Mention the new module.
44840 2011-10-09  Bruno Haible  <bruno@clisp.org>
44842         rint: Support for MSVC.
44843         * lib/math.in.h (rint): New declaration.
44844         * lib/rint.c: New file.
44845         * m4/rint.m4: New file.
44846         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
44847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
44848         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
44849         * modules/rint (Description): Fix.
44850         (Files): Add lib/rint.c, m4/rint.m4.
44851         (Depends-on): Add math.
44852         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
44853         gl_MATH_MODULE_INDICATOR.
44854         * tests/test-math-c++.cc: Check the declaration of rint.
44855         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
44856         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
44857         * doc/posix-functions/rint.texi: Mention the replacement provided by
44858         the module.
44860         rint tests: More tests.
44861         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
44862         minus-zero.h, infinity.h, nan.h.
44863         (main): Skip the test if the current rounding mode is not standard. Add
44864         tests for negative numbers, minus zero, infinity, NaN.
44865         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
44866         tests/nan.h.
44867         (Depends-on): Add isnand-nolibm.
44869 2011-10-09  Bruno Haible  <bruno@clisp.org>
44871         Tests for module 'copysignl'.
44872         * modules/copysignl-tests: New file.
44873         * tests/test-copysignl.c: New file.
44875         New module 'copysignl'.
44876         * lib/math.in.h (copysignl): New declaration.
44877         * lib/copysignl.c: New file.
44878         * m4/copysignl.m4: New file.
44879         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
44880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
44881         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
44882         HAVE_COPYSIGNL.
44883         * modules/copysignl: New file.
44884         * tests/test-math-c++.cc: Check the declaration of copysignl.
44885         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
44886         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
44887         * doc/posix-functions/copysignl.texi: Mention the new module.
44889 2011-10-09  Bruno Haible  <bruno@clisp.org>
44891         Tests for module 'copysignf'.
44892         * modules/copysignf-tests: New file.
44893         * tests/test-copysignf.c: New file.
44895         New module 'copysignf'.
44896         * lib/math.in.h (copysignf): New declaration.
44897         * lib/copysignf.c: New file.
44898         * m4/copysignf.m4: New file.
44899         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
44900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
44901         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
44902         HAVE_COPYSIGNF.
44903         * modules/copysignf: New file.
44904         * tests/test-math-c++.cc: Check the declaration of copysignf.
44905         * doc/posix-functions/copysignf.texi: Mention the new module.
44907 2011-10-09  Bruno Haible  <bruno@clisp.org>
44909         Ensure that HAVE_* variables are set to 1 before they are set to 0.
44910         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
44911         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
44912         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
44914         gl_SIGNAL_H_DEFAULTS.
44916 2011-10-09  Bruno Haible  <bruno@clisp.org>
44918         poll: Make macro safer.
44919         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
44920         ac_cv_header_poll_h is not set.
44922 2011-10-09  Bruno Haible  <bruno@clisp.org>
44924         copysign: Provide replacement.
44925         * lib/math.in.h (copysign): New declaration.
44926         * lib/copysign.c: New file.
44927         * m4/copysign.m4: New file.
44928         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
44929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
44930         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
44931         HAVE_COPYSIGN.
44932         * modules/copysign (Description): Clarify.
44933         (Files): Add lib/copysign.c, m4/copysign.m4.
44934         (Depends-on): Add math, signbit.
44935         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
44936         gl_MATH_MODULE_INDICATOR.
44937         * tests/test-math-c++.cc: Check the declaration of copysign.
44938         * doc/posix-functions/copysign.texi: Mention the effects of the module
44939         on Minix and MSVC.
44941 2011-10-09  Bruno Haible  <bruno@clisp.org>
44943         isinf: Ensure macro on AIX 5.1.
44944         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
44945         macro.
44946         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
44948 2011-10-09  Bruno Haible  <bruno@clisp.org>
44950         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
44951         * modules/snprintf-posix-tests (configure.ac): Require
44952         gl_LONG_DOUBLE_VS_DOUBLE.
44953         * modules/sprintf-posix-tests (configure.ac): Likewise.
44954         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
44955         * modules/vasprintf-posix-tests (configure.ac): Likewise.
44956         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
44957         * modules/vsprintf-posix-tests (configure.ac): Likewise.
44958         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
44959         tests on platforms where 'long double' is the same as 'double'.
44960         * tests/test-sprintf-posix.h (test_function): Likewise.
44961         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44962         * tests/test-vasprintf-posix.c (test_function): Likewise.
44964         *printf: Fix for platforms where 'long double' == 'double'.
44965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44966         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
44967         * modules/dprintf-posix (Files): Add m4/math_h.m4.
44968         * modules/fprintf-posix (Files): Likewise.
44969         * modules/obstack-printf-posix (Files): Likewise.
44970         * modules/snprintf-posix (Files): Likewise.
44971         * modules/sprintf-posix (Files): Likewise.
44972         * modules/vasnprintf (Files): Likewise.
44973         * modules/vasnprintf-posix (Files): Likewise.
44974         * modules/vasprintf-posix (Files): Likewise.
44975         * modules/vdprintf-posix (Files): Likewise.
44976         * modules/vfprintf-posix (Files): Likewise.
44977         * modules/vsnprintf-posix (Files): Likewise.
44978         * modules/vsprintf-posix (Files): Likewise.
44979         * modules/unistdio/u8-vasnprintf (Files): Likewise.
44980         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
44981         * modules/unistdio/u16-vasnprintf (Files): Likewise.
44982         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
44983         * modules/unistdio/u32-vasnprintf (Files): Likewise.
44984         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
44985         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
44987         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
44988         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
44989         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44990         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
44991         'long double'.
44992         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
44994         isinf: Fix for platforms where 'long double' == 'double'.
44995         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
44996         Don't blindly assume 80-bit 'long double'.
44998         isfinite: Fix for platforms where 'long double' == 'double'.
44999         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45000         Don't blindly assume 80-bit 'long double'.
45002         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
45003         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
45004         * modules/isfinite-tests (configure.ac): Require
45005         gl_LONG_DOUBLE_VS_DOUBLE.
45006         * modules/isinf-tests (configure.ac): Likewise.
45007         * modules/isnan-tests (configure.ac): Likewise.
45008         * modules/isnanl-tests (configure.ac): Likewise.
45009         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
45010         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
45011         tests on platforms where 'long double' is the same as 'double'.
45012         * tests/test-isinf.c (test_isinfl): Likewise.
45013         * tests/test-isnan.c (test_long_double): Likewise.
45014         * tests/test-isnanl.h (main): Likewise.
45016 2011-10-08  Bruno Haible  <bruno@clisp.org>
45018         Tests for module 'tanhf'.
45019         * modules/tanhf-tests: New file.
45020         * tests/test-tanhf.c: New file.
45022         New module 'tanhf'.
45023         * lib/math.in.h (tanhf): New declaration.
45024         * lib/tanhf.c: New file.
45025         * m4/tanhf.m4: New file.
45026         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
45027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
45028         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
45029         * modules/tanhf: New file.
45030         * tests/test-math-c++.cc: Check the declaration of tanhf.
45031         * doc/posix-functions/tanhf.texi: Mention the new module.
45033         tanh: Use a .m4 file.
45034         * m4/tanh.m4: New file.
45035         * modules/tanh (Files): Add it.
45036         (configure.ac): Just invoke gl_FUNC_TANH.
45038 2011-10-08  Bruno Haible  <bruno@clisp.org>
45040         Tests for module 'coshf'.
45041         * modules/coshf-tests: New file.
45042         * tests/test-coshf.c: New file.
45044         New module 'coshf'.
45045         * lib/math.in.h (coshf): New declaration.
45046         * lib/coshf.c: New file.
45047         * m4/coshf.m4: New file.
45048         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
45049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
45050         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
45051         * modules/coshf: New file.
45052         * tests/test-math-c++.cc: Check the declaration of coshf.
45053         * doc/posix-functions/coshf.texi: Mention the new module.
45055         cosh: Use a .m4 file.
45056         * m4/cosh.m4: New file.
45057         * modules/cosh (Files): Add it.
45058         (configure.ac): Just invoke gl_FUNC_COSH.
45060 2011-10-08  Bruno Haible  <bruno@clisp.org>
45062         Tests for module 'sinhf'.
45063         * modules/sinhf-tests: New file.
45064         * tests/test-sinhf.c: New file.
45066         New module 'sinhf'.
45067         * lib/math.in.h (sinhf): New declaration.
45068         * lib/sinhf.c: New file.
45069         * m4/sinhf.m4: New file.
45070         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
45071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
45072         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
45073         * modules/sinhf: New file.
45074         * tests/test-math-c++.cc: Check the declaration of sinhf.
45075         * doc/posix-functions/sinhf.texi: Mention the new module.
45077         sinh: Use a .m4 file.
45078         * m4/sinh.m4: New file.
45079         * modules/sinh (Files): Add it.
45080         (configure.ac): Just invoke gl_FUNC_SINH.
45082 2011-10-08  Bruno Haible  <bruno@clisp.org>
45084         Tests for module 'atan2f'.
45085         * modules/atan2f-tests: New file.
45086         * tests/test-atan2f.c: New file.
45088         New module 'atan2f'.
45089         * lib/math.in.h (atan2f): New declaration.
45090         * lib/atan2f.c: New file.
45091         * m4/atan2f.m4: New file.
45092         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
45093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
45094         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
45095         * modules/atan2f: New file.
45096         * tests/test-math-c++.cc: Check the declaration of atan2f.
45097         * doc/posix-functions/atan2f.texi: Mention the new module.
45099         atan2: Use a .m4 file.
45100         * m4/atan2.m4: New file.
45101         * modules/atan2 (Files): Add it.
45102         (configure.ac): Just invoke gl_FUNC_ATAN2.
45104 2011-10-08  Bruno Haible  <bruno@clisp.org>
45106         Tests for module 'atanf'.
45107         * modules/atanf-tests: New file.
45108         * tests/test-atanf.c: New file.
45110         New module 'atanf'.
45111         * lib/math.in.h (atanf): New declaration.
45112         * lib/atanf.c: New file.
45113         * m4/atanf.m4: New file.
45114         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
45115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
45116         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
45117         * modules/atanf: New file.
45118         * tests/test-math-c++.cc: Check the declaration of atanf.
45119         * doc/posix-functions/atanf.texi: Mention the new module.
45121         atan: Use a .m4 file.
45122         * m4/atan.m4: New file.
45123         * modules/atan (Files): Add it.
45124         (configure.ac): Just invoke gl_FUNC_ATAN.
45126 2011-10-08  Bruno Haible  <bruno@clisp.org>
45128         Tests for module 'acosf'.
45129         * modules/acosf-tests: New file.
45130         * tests/test-acosf.c: New file.
45132         New module 'acosf'.
45133         * lib/math.in.h (acosf): New declaration.
45134         * lib/acosf.c: New file.
45135         * m4/acosf.m4: New file.
45136         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
45137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
45138         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
45139         * modules/acosf: New file.
45140         * tests/test-math-c++.cc: Check the declaration of acosf.
45141         * doc/posix-functions/acosf.texi: Mention the new module.
45143         acos: Use a .m4 file.
45144         * m4/acos.m4: New file.
45145         * modules/acos (Files): Add it.
45146         (configure.ac): Just invoke gl_FUNC_ACOS.
45148 2011-10-08  Bruno Haible  <bruno@clisp.org>
45150         Tests for module 'asinf'.
45151         * modules/asinf-tests: New file.
45152         * tests/test-asinf.c: New file.
45154         New module 'asinf'.
45155         * lib/math.in.h (asinf): New declaration.
45156         * lib/asinf.c: New file.
45157         * m4/asinf.m4: New file.
45158         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
45159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
45160         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
45161         * modules/asinf: New file.
45162         * tests/test-math-c++.cc: Check the declaration of asinf.
45163         * doc/posix-functions/asinf.texi: Mention the new module.
45165         asin: Use a .m4 file.
45166         * m4/asin.m4: New file.
45167         * modules/asin (Files): Add it.
45168         (configure.ac): Just invoke gl_FUNC_ASIN.
45170 2011-10-08  Bruno Haible  <bruno@clisp.org>
45172         Tests for module 'tanf'.
45173         * modules/tanf-tests: New file.
45174         * tests/test-tanf.c: New file.
45176         New module 'tanf'.
45177         * lib/math.in.h (tanf): New declaration.
45178         * lib/tanf.c: New file.
45179         * m4/tanf.m4: New file.
45180         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
45181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
45182         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
45183         * modules/tanf: New file.
45184         * tests/test-math-c++.cc: Check the declaration of tanf.
45185         * doc/posix-functions/tanf.texi: Mention the new module.
45187         tan: Use a .m4 file.
45188         * m4/tan.m4: New file.
45189         * modules/tan (Files): Add it.
45190         (configure.ac): Just invoke gl_FUNC_TAN.
45192 2011-10-08  Bruno Haible  <bruno@clisp.org>
45194         Tests for module 'cosf'.
45195         * modules/cosf-tests: New file.
45196         * tests/test-cosf.c: New file.
45198         New module 'cosf'.
45199         * lib/math.in.h (cosf): New declaration.
45200         * lib/cosf.c: New file.
45201         * m4/cosf.m4: New file.
45202         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
45203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
45204         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
45205         * modules/cosf: New file.
45206         * tests/test-math-c++.cc: Check the declaration of cosf.
45207         * doc/posix-functions/cosf.texi: Mention the new module.
45209         cos: Use a .m4 file.
45210         * m4/cos.m4: New file.
45211         * modules/cos (Files): Add it.
45212         (configure.ac): Just invoke gl_FUNC_COS.
45214 2011-10-08  Bruno Haible  <bruno@clisp.org>
45216         Tests for module 'sinf'.
45217         * modules/sinf-tests: New file.
45218         * tests/test-sinf.c: New file.
45220         New module 'sinf'.
45221         * lib/math.in.h (sinf): New declaration.
45222         * lib/sinf.c: New file.
45223         * m4/sinf.m4: New file.
45224         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
45225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
45226         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
45227         * modules/sinf: New file.
45228         * tests/test-math-c++.cc: Check the declaration of sinf.
45229         * doc/posix-functions/sinf.texi: Mention the new module.
45231         sin: Use a .m4 file.
45232         * m4/sin.m4: New file.
45233         * modules/sin (Files): Add it.
45234         (configure.ac): Just invoke gl_FUNC_SIN.
45236 2011-10-08  Bruno Haible  <bruno@clisp.org>
45238         Tests for module 'powf'.
45239         * modules/powf-tests: New file.
45240         * tests/test-powf.c: New file.
45242         New module 'powf'.
45243         * lib/math.in.h (powf): New declaration.
45244         * lib/powf.c: New file.
45245         * m4/powf.m4: New file.
45246         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
45247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
45248         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
45249         * modules/powf: New file.
45250         * tests/test-math-c++.cc: Check the declaration of powf.
45251         * doc/posix-functions/powf.texi: Mention the new module.
45253         pow: Use a .m4 file.
45254         * m4/pow.m4: New file.
45255         * modules/pow (Files): Add it.
45256         (configure.ac): Just invoke gl_FUNC_POW.
45258 2011-10-08  Bruno Haible  <bruno@clisp.org>
45260         Tests for module 'log10f'.
45261         * modules/log10f-tests: New file.
45262         * tests/test-log10f.c: New file.
45264         New module 'log10f'.
45265         * lib/math.in.h (log10f): New declaration.
45266         * lib/log10f.c: New file.
45267         * m4/log10f.m4: New file.
45268         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
45269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
45270         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
45271         * modules/log10f: New file.
45272         * tests/test-math-c++.cc: Check the declaration of log10f.
45273         * doc/posix-functions/log10f.texi: Mention the new module.
45275         log10: Use a .m4 file.
45276         * m4/log10.m4: New file.
45277         * modules/log10 (Files): Add it.
45278         (configure.ac): Just invoke gl_FUNC_LOG10.
45280 2011-10-08  Bruno Haible  <bruno@clisp.org>
45282         Tests for module 'logf'.
45283         * modules/logf-tests: New file.
45284         * tests/test-logf.c: New file.
45286         New module 'logf'.
45287         * lib/math.in.h (logf): New declaration.
45288         * lib/logf.c: New file.
45289         * m4/logf.m4: New file.
45290         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
45291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
45292         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
45293         * modules/logf: New file.
45294         * tests/test-math-c++.cc: Check the declaration of logf.
45295         * doc/posix-functions/logf.texi: Mention the new module.
45297         log: Use a .m4 file.
45298         * m4/log.m4: New file.
45299         * modules/log (Files): Add it.
45300         (configure.ac): Just invoke gl_FUNC_LOG.
45302 2011-10-08  Bruno Haible  <bruno@clisp.org>
45304         Tests for module 'expf'.
45305         * modules/expf-tests: New file.
45306         * tests/test-expf.c: New file.
45308         New module 'expf'.
45309         * lib/math.in.h (expf): New declaration.
45310         * lib/expf.c: New file.
45311         * m4/expf.m4: New file.
45312         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
45313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
45314         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
45315         * modules/expf: New file.
45316         * tests/test-math-c++.cc: Check the declaration of expf.
45317         * doc/posix-functions/expf.texi: Mention the new module.
45319         exp: Use a .m4 file.
45320         * m4/exp.m4: New file.
45321         * modules/exp (Files): Add it.
45322         (configure.ac): Just invoke gl_FUNC_EXP.
45324 2011-10-08  Bruno Haible  <bruno@clisp.org>
45326         Tests for module 'sqrtf'.
45327         * modules/sqrtf-tests: New file.
45328         * tests/test-sqrtf.c: New file.
45330         New module 'sqrtf'.
45331         * lib/math.in.h (sqrtf): New declaration.
45332         * lib/sqrtf.c: New file.
45333         * m4/sqrtf.m4: New file.
45334         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
45335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
45336         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
45337         * modules/sqrtf: New file.
45338         * tests/test-math-c++.cc: Check the declaration of sqrtf.
45339         * doc/posix-functions/sqrtf.texi: Mention the new module.
45341 2011-10-08  Bruno Haible  <bruno@clisp.org>
45343         Tests: Avoid link failures w.r.t. libintl.
45344         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
45345         $(LIBINTL).
45346         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
45347         $(LIBINTL).
45348         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
45349         against $(LIBINTL).
45350         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
45351         $(LIBINTL).
45352         * modules/openat-tests (Makefile.am): Link test-fchmodat against
45353         $(LIBINTL).
45354         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
45356 2011-10-08  Bruno Haible  <bruno@clisp.org>
45358         pow tests: Defeat compiler optimizations.
45359         * tests/test-pow.c (main): Assign arguments to x and y before use.
45361 2011-10-08  Bruno Haible  <bruno@clisp.org>
45363         gnulib-tool: Improve last commit.
45364         * gnulib-tool (func_modules_transitive_closure): Simplify code.
45365         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
45366         ignore dependencies that are not among the modules list.
45368 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
45370         gnulib-tool: don't follow dependencies to avoided modules
45371         This fixes a bug that is related to the previous one.
45372         * gnulib-tool (func_modules_transitive_closure)
45373         (func_emit_autoconf_snippets):
45374         Check whether a dependency is acceptable before using it.
45375         (--extract-dependencies): Report an error if --avoid is also used,
45376         since this combination of options is not yet supported.
45378         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
45379         Problem reported by Peter Dyballa in
45380         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
45381         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
45382         when echoing "$condition".
45384 2011-10-07  Bruno Haible  <bruno@clisp.org>
45386         Fix documentation about math functions on MacOS X.
45387         * doc/posix-functions/exp2.texi: Don't say the function is missing on
45388         MacOS X 10.5.
45389         * doc/posix-functions/fdim.texi: Likewise.
45390         * doc/posix-functions/feclearexcept.texi: Likewise.
45391         * doc/posix-functions/fegetenv.texi: Likewise.
45392         * doc/posix-functions/fegetround.texi: Likewise.
45393         * doc/posix-functions/feholdexcept.texi: Likewise.
45394         * doc/posix-functions/feraiseexcept.texi: Likewise.
45395         * doc/posix-functions/fesetenv.texi: Likewise.
45396         * doc/posix-functions/fesetround.texi: Likewise.
45397         * doc/posix-functions/fetestexcept.texi: Likewise.
45398         * doc/posix-functions/feupdateenv.texi: Likewise.
45399         * doc/posix-functions/fmax.texi: Likewise.
45400         * doc/posix-functions/fmin.texi: Likewise.
45401         * doc/posix-functions/log2.texi: Likewise.
45402         * doc/posix-functions/modff.texi: Likewise.
45403         * doc/posix-functions/nan.texi: Likewise.
45404         * doc/posix-functions/nanf.texi: Likewise.
45405         * doc/posix-functions/nextafterf.texi: Likewise.
45406         * doc/posix-functions/remquo.texi: Likewise.
45408 2011-10-07  Bruno Haible  <bruno@clisp.org>
45410         modff: Drop assumption about library that defines modff.
45411         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
45412         AC_CHECK_FUNCS.
45413         * modules/modff (Files): Add m4/mathfunc.m4.
45415 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
45417         raise tests: Avoid a GCC warning.
45418         * tests/test-raise.c (handler): Use _Noreturn.
45420 2011-10-07  Bruno Haible  <bruno@clisp.org>
45422         Tests for module 'ldexpf'.
45423         * modules/ldexpf-tests: New file.
45424         * tests/test-ldexpf.c: New file.
45426         New module 'ldexpf'.
45427         * lib/math.in.h (ldexpf): New declaration.
45428         * lib/ldexpf.c: New file.
45429         * m4/ldexpf.m4: New file.
45430         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
45431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
45432         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
45433         * modules/ldexpf: New file.
45434         * tests/test-math-c++.cc: Check the declaration of ldexpf.
45435         * doc/posix-functions/ldexpf.texi: Mention the new module.
45437 2011-10-06  Bruno Haible  <bruno@clisp.org>
45439         frexpf: Work around problems on IRIX and mingw.
45440         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
45441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
45442         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
45443         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
45444         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
45445         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
45446         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
45448 2011-10-06  Bruno Haible  <bruno@clisp.org>
45450         fabsf: Drop assumption about library that defines fabsf.
45451         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
45452         AC_CHECK_FUNCS.
45453         * modules/fabsf (Files): Add m4/mathfunc.m4.
45455 2011-10-06  Bruno Haible  <bruno@clisp.org>
45457         frexpf: Drop assumption about library that defines frexpf.
45458         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
45459         'int *', 'float *', 'long double *', 'float', 'long double'.
45460         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
45461         AC_CHECK_FUNCS.
45462         * modules/frexpf (Files): Add m4/mathfunc.m4.
45464         Tests for module 'frexpf'.
45465         * modules/frexpf-tests: New file.
45466         * tests/test-frexpf.c: New file.
45468         New module 'frexpf'.
45469         * lib/math.in.h (frexpf): New declaration.
45470         * lib/frexpf.c: New file.
45471         * m4/frexpf.m4: New file.
45472         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
45473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
45474         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
45475         * modules/frexpf: New file.
45476         * tests/test-math-c++.cc: Check the declaration of frexpf.
45477         * doc/posix-functions/frexpf.texi: Mention the new module.
45479 2011-10-06  Bruno Haible  <bruno@clisp.org>
45481         math: Sort function declarations of math.in.h.
45482         * lib/math.in.h (frexp, logb): Move declarations.
45484 2011-10-05  Bruno Haible  <bruno@clisp.org>
45486         Tests for module 'modff'.
45487         * modules/modff-tests: New file.
45488         * tests/test-modff.c: New file.
45490         New module 'modff'.
45491         * lib/math.in.h (modff): New declaration.
45492         * lib/modff.c: New file.
45493         * m4/modff.m4: New file.
45494         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
45495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
45496         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
45497         * modules/modff: New file.
45498         * tests/test-math-c++.cc: Check the declaration of modff.
45499         * doc/posix-functions/modff.texi: Mention the new module.
45501         modf tests: Make test sharper.
45502         * tests/test-modf.c (main): Strengthen upper bound.
45504         modf: Use a .m4 file.
45505         * m4/modf.m4: New file.
45506         * modules/modf (Files): Add it.
45507         (configure.ac): Just invoke gl_FUNC_MODF.
45509 2011-10-05  Bruno Haible  <bruno@clisp.org>
45511         Tests for module 'fmodf'.
45512         * modules/fmodf-tests: New file.
45513         * tests/test-fmodf.c: New file.
45515         New module 'fmodf'.
45516         * lib/math.in.h (fmodf): New declaration.
45517         * lib/fmodf.c: New file.
45518         * m4/fmodf.m4: New file.
45519         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
45520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
45521         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
45522         * modules/fmodf: New file.
45523         * tests/test-math-c++.cc: Check the declaration of fmodf.
45524         * doc/posix-functions/fmodf.texi: Mention the new module.
45526         fmod: Use a .m4 file.
45527         * m4/fmod.m4: New file.
45528         * modules/fmod (Files): Add it.
45529         (configure.ac): Just invoke gl_FUNC_FMOD.
45531 2011-10-05  Bruno Haible  <bruno@clisp.org>
45533         Tests for module 'fabsf'.
45534         * modules/fabsf-tests: New file.
45535         * tests/test-fabsf.c: New file.
45537         New module 'fabsf'.
45538         * lib/math.in.h (fabsf): New declaration.
45539         * lib/fabsf.c: New file.
45540         * m4/fabsf.m4: New file.
45541         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
45542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
45543         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
45544         * modules/fabsf: New file.
45545         * tests/test-math-c++.cc: Check the declaration of fabsf.
45546         * doc/posix-functions/fabsf.texi: Mention the new module.
45548         fabs: Use a .m4 file.
45549         * m4/fabs.m4: New file.
45550         * modules/fabs (Files): Add it.
45551         (configure.ac): Just invoke gl_FUNC_FABS.
45553 2011-10-05  Jim Meyering  <meyering@redhat.com>
45555         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
45556         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
45557         ls -lL regression introduced in coreutils-8.12, it does so at the
45558         cost of an additional stat call in the common case.  Besides, now
45559         that the kernel change that prompted commit 95f7c57f has been reverted
45560         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
45561         we have no use for commit 95f7c57f, "file-has-acl: use
45562         acl_extended_file_nofollow if available".
45564 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
45566         file-has-acl: revert unintended change in behavior of ls -L
45567         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
45568         derived from...
45569         (file_has_acl): ...code here.  Call it.
45570         This problem was introduced with 2011-07-22 commit 95f7c57f,
45571         "file-has-acl: use acl_extended_file_nofollow if available".
45572         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
45574 2011-10-03  Bruno Haible  <bruno@clisp.org>
45576         poll: Avoid link errors on MSVC.
45577         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
45578         * modules/poll (Depends-on): Add sockets.
45579         (Link): New section.
45580         * NEWS: Mention the change.
45581         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
45582         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
45583         $(LIB_POLL) instead of $(LIBSOCKET).
45585 2011-10-03  Bruno Haible  <bruno@clisp.org>
45587         sys_select tests: Fix link error on MSVC 9.
45588         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
45589         with $(LIB_SELECT) instead of $(LIBSOCKET).
45591 2011-10-03  Bruno Haible  <bruno@clisp.org>
45593         sys_select: Fix compilation error on mingw.
45594         * lib/sys_select.in.h: On native Windows, include <io.h>.
45596 2011-10-03  Bruno Haible  <bruno@clisp.org>
45598         wmemset: Support for MSVC.
45599         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
45600         whether wmemset() exists.
45602 2011-10-03  Bruno Haible  <bruno@clisp.org>
45604         wmemmove: Support for MSVC.
45605         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
45606         whether wmemmove() exists.
45608 2011-10-03  Bruno Haible  <bruno@clisp.org>
45610         wmemcpy: Support for MSVC.
45611         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
45612         whether wmemcpy() exists.
45614 2011-10-03  Bruno Haible  <bruno@clisp.org>
45616         wmemcmp: Support for MSVC.
45617         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
45618         whether wmemcmp() exists.
45620 2011-10-03  Bruno Haible  <bruno@clisp.org>
45622         wmemchr: Support for MSVC.
45623         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
45624         whether wmemchr() exists.
45626 2011-10-03  Bruno Haible  <bruno@clisp.org>
45628         glthread/*, strsignal: Support for MSVC.
45629         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
45630         including <winsock.h> on MSVC 9.
45631         * lib/glthread/lock.h: Likewise.
45632         * lib/glthread/thread.h: Likewise.
45633         * lib/glthread/tls.h: Likewise.
45634         * lib/glthread/yield.h: Likewise.
45635         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
45636         if HAVE_UNISTD_H is false.
45637         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
45639 2011-10-03  Bruno Haible  <bruno@clisp.org>
45641         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
45642         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
45643         Set to 100000.
45645 2011-10-03  Bruno Haible  <bruno@clisp.org>
45647         acl: Fix specification.
45648         * lib/file-has-acl.c (file_has_acl): Fix specification.
45650 2011-10-03  Bruno Haible  <bruno@clisp.org>
45652         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
45653         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
45654         (compute_curr_prefix, shared_library_fullname,
45655         find_shared_library_fullname, get_shared_library_fullname, relocate):
45656         Use it together with PIC && INSTALLDIR.
45657         Reported by <jojelino@gmail.com>
45658         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
45660 2011-10-01  Jim Meyering  <meyering@redhat.com>
45662         maint.mk: adjust a release-related rule not to require use of gzip
45663         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
45664         Instead, check each file in $(DIST_ARCHIVES).  This is better for
45665         projects that build only .tar.xz files.  Also fix an erroneous test.
45667         test-linkat: don't leave behind a temporary file
45668         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
45669         Otherwise, coreutils' "make distcheck" would fail with this:
45670           Only in /c/cu/tests/torture/coreutils/test/\
45671             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
45672           make[2]: *** [my-distcheck] Error 1
45674         float, math: add omitted file
45675         * lib/itold.c: Add file, required for yesterday's float change.
45677 2011-10-01  Bruno Haible  <bruno@clisp.org>
45679         isinf: Fix for OpenBSD/x86.
45680         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
45681         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
45682         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
45684 2011-10-01  Bruno Haible  <bruno@clisp.org>
45686         isfinite: Fix syntax error in configure test.
45687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
45689         isfinite: Fix typo.
45690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
45691         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
45693 2011-10-01  Bruno Haible  <bruno@clisp.org>
45695         nonblocking tests: Fix test failure on Linux/IA-64.
45696         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
45697         Set to 270000.
45699 2011-10-01  Bruno Haible  <bruno@clisp.org>
45701         mkfifoat tests: Fix a test failure on mingw.
45702         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
45703         with error ENOSYS.
45705 2011-09-30  Bruno Haible  <bruno@clisp.org>
45707         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
45708         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
45709         'long double'. Set REPLACE_ITOLD.
45710         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
45711         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
45712         * lib/itold.c: New file.
45713         * modules/float (Files): Add lib/itold.c.
45714         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
45715         (Makefile.am): Substitute REPLACE_ITOLD.
45716         * modules/math (Depends-on): Add float.
45717         (Makefile.am): Substitute REPLACE_ITOLD.
45718         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
45719         * doc/posix-headers/math.texi: Likewise.
45720         * doc/posix-functions/logl.texi: Likewise.
45722 2011-09-30  Bruno Haible  <bruno@clisp.org>
45724         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
45725         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
45726         Set to 140000.
45728 2011-09-30  Bruno Haible  <bruno@clisp.org>
45730         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
45731         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
45732         invocation, say "right after AC_PROG_CC_STDC", not "right after
45733         AC_PROG_CC".
45734         Reported by Gary V. Vaughan <gary@gnu.org>.
45736 2011-09-30  Bruno Haible  <bruno@clisp.org>
45738         Centralize C99 requirement.
45739         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
45740         * modules/stdarg (configure.ac-early): Invoke it instead of
45741         AC_PROG_CC_STDC.
45742         Reported by Gary V. Vaughan and Paul Eggert.
45744 2011-09-29  Bruno Haible  <bruno@clisp.org>
45746         float: Fix LDBL_MAX value on Linux/PowerPC.
45747         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
45748         on Linux/PowerPC.
45749         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
45750         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
45751         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
45752         platform.
45753         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
45755 2011-09-29  Bruno Haible  <bruno@clisp.org>
45757         doc: Improve doc about gl_EARLY.
45758         * doc/gnulib-tool.texi (Initial import): Mention where to place an
45759         AC_PROG_CC_STDC invocation.
45760         Reported by Gary V. Vaughan <gary@gnu.org>.
45762 2011-09-28  Bruno Haible  <bruno@clisp.org>
45764         fgetc, fputc, fread, fwrite tests: Fix link error.
45765         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
45766         on non-MSVC platforms.
45767         * tests/test-fputc.c (main): Likewise.
45768         * tests/test-fread.c (main): Likewise.
45769         * tests/test-fwrite.c (main): Likewise.
45770         Reported by Jim Meyering.
45772 2011-09-27  Bruno Haible  <bruno@clisp.org>
45774         fputc, fwrite tests: Avoid test failure on MSVC.
45775         * tests/test-fgetc.c: Include msvc-inval.h.
45776         (main): Invoke gl_msvc_inval_ensure_handler.
45777         * tests/test-fputc.c: Include msvc-inval.h.
45778         (main): Invoke gl_msvc_inval_ensure_handler.
45779         * tests/test-fread.c: Include msvc-inval.h.
45780         (main): Invoke gl_msvc_inval_ensure_handler.
45781         * tests/test-fwrite.c: Include msvc-inval.h.
45782         (main): Invoke gl_msvc_inval_ensure_handler.
45783         * modules/fgetc-tests (Depends-on): Add msvc-inval.
45784         * modules/fputc-tests (Depends-on): Likewise.
45785         * modules/fread-tests (Depends-on): Likewise.
45786         * modules/fwrite-tests (Depends-on): Likewise.
45788 2011-09-27  Bruno Haible  <bruno@clisp.org>
45790         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
45791         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
45792         (raise): Remove older, duplicated declaration.
45793         (_gl_raise_SIGPIPE): New declaration.
45794         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
45795         (rpl_raise): Remove function.
45796         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
45797         a gnulib-defined SIGPIPE here.
45798         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
45799         'sigprocmask' has detected missing signal-blocking and the module
45800         'sigpipe' is enabled.
45801         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45803 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
45805         base64-tests: avoid memory leak
45806         * tests/test-base64.c (main): Plug memory leak.
45808         base32: new module
45809         * modules/base32: New module.
45810         * lib/base32.c: New file.
45811         * lib/base32.h: Likewise.
45812         * m4/base32.m4: Likewise.
45813         * modules/base32-tests: New test.
45814         * tests/test-base32.c: Likewise.
45815         * MODULES.html.sh (Misc): Mention it.
45817 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45819         gnulib: use more-standard license notice wording
45820         * gnulib-tool (func_emit_copyright_notice): When emitting a
45821         license notice into a file, use the standard wording as suggested
45822         by the current information for GNU maintainers, except say "file"
45823         rather than "program".  The new wording gives a license version
45824         number, which addresses an issue raised by Glenn Morris in
45825         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
45826         * m4/onceonly.m4: Use that same wording here, too.
45828         dup2: minor simplification
45829         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
45830         as lib/dup2.c no longer uses 'inline'.
45832 2011-09-25  Bruno Haible  <bruno@clisp.org>
45834         strings: Fix compilation error on MSVC.
45835         * lib/strings.in.h: Include <stddef.h> for size_t.
45837 2011-09-25  Bruno Haible  <bruno@clisp.org>
45839         fflush et al.: Document limitation on MSVC.
45840         * doc/posix-functions/fflush.texi: Document possible crash in handling
45841         mode other than DEFAULT_HANDLING.
45842         * doc/posix-functions/fgetc.texi: Likewise.
45843         * doc/posix-functions/fputc.texi: Likewise.
45844         * doc/posix-functions/fread.texi: Likewise.
45845         * doc/posix-functions/fwrite.texi: Likewise.
45847 2011-09-25  Bruno Haible  <bruno@clisp.org>
45849         msvc-inval: Allow three invalid parameter handling modes.
45850         * lib/msvc-inval.h: Don't include <stdlib.h> here.
45851         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
45852         macros.
45853         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
45854         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
45855         SANE_LIBRARY_HANDLING as a no-op.
45856         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
45857         <stdlib.h>.
45858         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
45860 2011-09-25  Bruno Haible  <bruno@clisp.org>
45862         msvc-inval: Make handler multithread-safe.
45863         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
45864         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
45865         declarations.
45866         (gl_msvc_inval_current): New declaration.
45867         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
45868         Operate on the structure returned by gl_msvc_inval_current().
45869         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
45870         Remove varaiables.
45871         (tls_index, tls_initialized): New variables.
45872         (not_per_thread): New variable.
45873         (gl_msvc_inval_current): New function.
45874         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
45875         returned by gl_msvc_inval_current().
45877 2011-09-25  Bruno Haible  <bruno@clisp.org>
45879         msvc-inval: Install handler globally.
45880         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
45881         !_MSC_VER.
45882         (gl_msvc_invalid_parameter_handler): Remove declaration.
45883         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
45884         declarations.
45885         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
45886         Install the handler globally, don't uninstall it.
45887         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
45888         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
45889         currently valid, call RaiseException instead.
45890         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
45891         for !_MSC_VER.
45893 2011-09-25  Bruno Haible  <bruno@clisp.org>
45895         strerror_r-posix: Fix for MSVC 9.
45896         * lib/strerror_r.c (local_snprintf): New function.
45897         (snprintf): Define to local_snprintf, not to _snprintf.
45899 2011-09-25  Bruno Haible  <bruno@clisp.org>
45901         ftruncate: Support for MSVC 9.
45902         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
45903         (chsize_nothrow): New function.
45904         (chsize): Redefine as a macro.
45905         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
45906         * modules/ftruncate (Depends-on): Add msvc-inval.
45908 2011-09-25  Bruno Haible  <bruno@clisp.org>
45910         New module 'fstat'.
45911         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
45912         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
45913         * lib/fchdir.c (rpl_fstat): Remove function.
45914         * m4/fstat.m4: New file.
45915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
45916         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
45917         declared.
45918         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
45919         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
45920         * modules/fstat: New file.
45921         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
45922         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
45923         is set.
45924         * doc/posix-functions/fstat.texi: Mention the new module and the
45925         problem on MSVC.
45926         * NEWS: Mention the change.
45927         * modules/acl (Depends-on): Add fstat.
45928         * modules/chdir-safer (Depends-on): Likewise.
45929         * modules/chown (Depends-on): Likewise.
45930         * modules/copy-file (Depends-on): Likewise.
45931         * modules/fchdir (Depends-on): Likewise.
45932         * modules/fdopendir (Depends-on): Likewise.
45933         * modules/fopen (Depends-on): Likewise.
45934         * modules/fts (Depends-on): Likewise.
45935         * modules/getcwd (Depends-on): Likewise.
45936         * modules/isapipe (Depends-on): Likewise.
45937         * modules/linkat (Depends-on): Likewise.
45938         * modules/lseek (Depends-on): Likewise.
45939         * modules/mkdir-p (Depends-on): Likewise.
45940         * modules/open (Depends-on): Likewise.
45941         * modules/openat (Depends-on): Likewise.
45942         * modules/read-file (Depends-on): Likewise.
45943         * modules/renameat (Depends-on): Likewise.
45944         * modules/utimens (Depends-on): Likewise.
45946 2011-09-25  Bruno Haible  <bruno@clisp.org>
45948         linkat: Fix compilation on MSVC 9.
45949         * lib/linkat.c: Don't include <stdint.h>.
45951 2011-09-25  Bruno Haible  <bruno@clisp.org>
45953         fclose: Support for MSVC 9.
45954         * lib/fclose.c: Include msvc-inval.h.
45955         (fclose_nothrow): New function.
45956         (rpl_fclose): Use it.
45957         * modules/fclose (Depends-on): Add msvc-inval.
45958         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
45960 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
45962         dup2: minor simplifications
45963         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
45964         that it's a performance win.
45965         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
45966         ! defined __CYGWIN__)" to "ifdef F_GETFL".
45968 2011-09-24  Jim Meyering  <meyering@redhat.com>
45970         test-futimens: avoid a warning from gcc -Wshadow
45971         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
45972         to avoid a shadowing warning.
45974 2011-09-24  Bruno Haible  <bruno@clisp.org>
45976         fdopen: Support for MSVC 9.
45977         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
45978         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
45979         * lib/fdopen.c: Include msvc-inval.h.
45980         (fdopen_nothrow): New function.
45981         (rpl_fdopen): Use it.
45982         * modules/fdopen (Depends-on): Add msvc-inval.
45983         * modules/fclose-tests (Depends-on): Add fdopen.
45984         * modules/fflush-tests (Depends-on): Likewise.
45985         * modules/fgetc-tests (Depends-on): Likewise.
45986         * modules/fputc-tests (Depends-on): Likewise.
45987         * modules/fread-tests (Depends-on): Likewise.
45988         * modules/freopen-tests (Depends-on): Likewise.
45989         * modules/fseeko-tests (Depends-on): Likewise.
45990         * modules/ftello-tests (Depends-on): Likewise.
45991         * modules/fwrite-tests  (Depends-on): Likewise.
45992         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
45994 2011-09-24  Bruno Haible  <bruno@clisp.org>
45996         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
45997         * modules/fgetc-tests (Depends-on): Add unistd.
45998         * modules/fputc-tests (Depends-on): Likewise.
45999         * modules/fread-tests (Depends-on): Likewise.
46000         * modules/fwrite-tests (Depends-on): Likewise.
46002 2011-09-24  Bruno Haible  <bruno@clisp.org>
46004         dup: Simplify autoconf test.
46005         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
46006         on gl_MSVC_INVAL's result.
46008 2011-09-24  Bruno Haible  <bruno@clisp.org>
46010         Tests for function fwrite().
46011         * modules/fwrite-tests: New file.
46012         * tests/test-fwrite.c: New file.
46013         * modules/stdio-tests (Depends-on): Add fwrite-tests.
46015         Tests for function fread().
46016         * modules/fread-tests: New file.
46017         * tests/test-fread.c: New file.
46018         * modules/stdio-tests (Depends-on): Add fread-tests.
46020         Activate fputc tests.
46021         * modules/stdio-tests (Depends-on): Add fputc-tests.
46023         Enhance fgetc, fputc tests.
46024         * tests/test-fgetc.c (main): Also test the stream's error indicator.
46025         * tests/test-fputc.c (main): Likewise.
46027 2011-09-24  Bruno Haible  <bruno@clisp.org>
46029         write: Support for MSVC 9.
46030         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46031         is not 1.
46032         * lib/write.c (write_nothrow): New function.
46033         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
46034         not 1. Use write_nothrow.
46035         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
46036         invalid parameter handler.
46037         (gl_PREREQ_WRITE): New macro.
46038         * modules/write (Depends-on): Add msvc-inval.
46039         (configure.ac): Invoke gl_PREREQ_WRITE.
46040         * doc/posix-functions/write.texi: Mention the problem on MSVC.
46042 2011-09-24  Bruno Haible  <bruno@clisp.org>
46044         read: Fix last commit.
46045         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
46047 2011-09-24  Bruno Haible  <bruno@clisp.org>
46049         dup2: Fix last commit.
46050         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
46051         (rpl_dup2): Disable fcntl workaround on native Windows.
46053         sigprocmask: Make code safer.
46054         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
46055         section that changes macro definitions for this compilation unit.
46057 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46059         dup2: clarify by coalescing Windows-specific material
46060         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
46061         "msvc-nothrow.h"' to the Windows-specific section, so that the
46062         Emacs source need not contain these include files.
46063         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
46064         Windows-specific fixes into this function rather than just the
46065         nothrow fix, as this shortens and clarifies the code.  Always
46066         define as a function, as that's a bit cleaner than having it be
46067         sometimes a function and sometimes a macro.
46068         (rpl_dup2): Move the Windows-specific stuff out of here and into
46069         ms_windows_dup2.  Don't protect the Haiku-related fix with
46070         "#if !defined __linux__", as the same code also works around
46071         a Linux kernel bug, and it doesn't add any system calls on any
46072         platform.  Add comment about FreeBSD 6.1.
46074         sigprocmask: move #include directive
46075         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
46076         Windows-specific section, so that the Emacs source need not
46077         contain msvc-inval.h.
46079 2011-09-23  Bruno Haible  <bruno@clisp.org>
46081         read: Support for MSVC 9.
46082         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46083         is not 1.
46084         * lib/read.c (read_nothrow): New function.
46085         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
46086         read_nothrow.
46087         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
46088         invalid parameter handler.
46089         (gl_PREREQ_READ): New macro.
46090         * modules/read (Depends-on): Add msvc-inval.
46091         (configure.ac): Invoke gl_PREREQ_READ.
46092         * doc/posix-functions/read.texi: Mention the problem on MSVC.
46094 2011-09-23  Bruno Haible  <bruno@clisp.org>
46096         close: Support for MSVC 9.
46097         * lib/close.c: Include <errno.h>, msvc-inval.h.
46098         (close_nothrow): New function.
46099         (rpl_close): Use it.
46100         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
46101         invalid parameter handler.
46102         * modules/close (Depends-on): Add msvc-inval.
46103         * modules/dup2-tests (Depends-on): Add close.
46104         * modules/dup3-tests (Depends-on): Likewise.
46105         * modules/fcntl-tests (Depends-on): Likewise.
46106         * modules/spawn-pipe-tests (Depends-on): Likewise.
46107         * modules/unistd-safer-tests (Depends-on): Likewise.
46108         * doc/posix-functions/close.texi: Mention the problem on MSVC.
46110 2011-09-23  Bruno Haible  <bruno@clisp.org>
46112         New module 'dup'.
46113         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
46114         Allow replacement.
46115         * lib/dup.c: New file.
46116         * lib/fchdir.c (rpl_dup): Remove function.
46117         * m4/dup.m4: New file.
46118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
46119         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
46120         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
46121         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
46122         * modules/dup: New file.
46123         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
46124         'dup' module is in use.
46125         * modules/fdopendir (Depends-on): Add dup.
46126         * modules/fdutimensat-tests (Depends-on): Likewise.
46127         * modules/fts (Depends-on): Likewise.
46128         * modules/futimens-tests (Depends-on): Likewise.
46129         * modules/posix_spawnp-tests (Depends-on): Likewise.
46130         * modules/unistd-safer-tests (Depends-on): Likewise.
46131         * modules/utimens-tests (Depends-on): Likewise.
46132         * doc/posix-functions/dup.texi: Mention the new module and the problem
46133         on MSVC.
46135 2011-09-23  Bruno Haible  <bruno@clisp.org>
46137         getdtablesize: Support for MSVC 9.
46138         * lib/getdtablesize.c: Include msvc-inval.h.
46139         (_setmaxstdio_nothrow): New function.
46140         (_setmaxstdio): Redefine it.
46141         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
46142         * modules/getdtablesize (Depends-on): Add msvc-inval.
46143         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
46145 2011-09-23  Bruno Haible  <bruno@clisp.org>
46147         signal-h: Rename from signal.
46148         * modules/signal-h: Renamed from modules/signal.
46149         * modules/pthread_sigmask (Depends-on): Update.
46150         * modules/raise (Depends-on): Likewise.
46151         * modules/sigaction (Depends-on): Likewise.
46152         * modules/sigpipe (Depends-on): Likewise.
46153         * modules/sigprocmask (Depends-on): Likewise.
46154         * modules/sys_select (Depends-on): Likewise.
46155         * modules/signal-h-tests: Renamed from modules/signal-tests.
46156         (Files, Depends-on, Makefile.am): Update.
46157         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
46158         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
46159         (Files, Makefile.am): Update.
46160         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
46161         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
46162         * modules/signal: New placeholder file.
46163         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
46164         * doc/posix-headers/signal.texi: Update.
46165         * NEWS: Mention the change.
46167 2011-09-23  Bruno Haible  <bruno@clisp.org>
46169         sigprocmask: Avoid crashes through signal() on MSVC 9.
46170         * lib/sigprocmask.c: Include msvc-inval.h.
46171         (signal_nothrow): New function.
46172         (signal): Redefine it.
46173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
46174         * modules/sigprocmask (Depends-on): Add msvc-inval.
46175         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
46177 2011-09-23  Bruno Haible  <bruno@clisp.org>
46179         Tests for module 'raise'.
46180         * modules/raise-tests: New file.
46181         * tests/test-raise.c: New file.
46183         raise: Support for MSVC.
46184         * lib/signal.in.h (raise): New declaration.
46185         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
46186         for native Windows platforms.
46187         * m4/raise.m4: New file.
46188         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
46189         HAVE_RAISE, REPLACE_RAISE.
46190         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
46191         REPLACE_RAISE.
46192         * modules/raise (Status, Notice): Remove fields.
46193         (Files): Add m4/raise.m4.
46194         (Depends-on): Add signal, msvc-inval.
46195         (configure.ac): Use the common idioms.
46196         (Maintainer): Add me.
46197         * tests/test-signal-c++.cc: Check the signature of raise.
46198         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
46200 2011-09-23  Bruno Haible  <bruno@clisp.org>
46202         pipe2: Fix compilation on pre-C99 compilers.
46203         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
46205 2011-09-23  Bruno Haible  <bruno@clisp.org>
46207         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
46208         * lib/msvc-nothrow.h: New file.
46209         * lib/msvc-nothrow.c: New file.
46210         * m4/msvc-nothrow.m4: New file.
46211         * modules/msvc-nothrow: New file.
46212         * lib/dup2.c: Include msvc-nothrow.h.
46213         (rpl_dup2): No need to protect _get_osfhandle call here.
46214         * lib/accept4.c: Include msvc-nothrow.h.
46215         * lib/error.c: Likewise.
46216         * lib/fcntl.c: Likewise.
46217         * lib/lseek.c: Likewise.
46218         * lib/nonblocking.c: Likewise.
46219         * lib/poll.c: Likewise.
46220         * lib/read.c: Likewise.
46221         * lib/select.c: Likewise.
46222         * lib/sockets.h: Likewise.
46223         * lib/sockets.c: Likewise.
46224         * lib/stdio-read.c: Likewise.
46225         * lib/stdio-write.c: Likewise.
46226         * lib/write.c: Likewise.
46227         * lib/w32sock.h: Likewise.
46228         * lib/w32spawn.h: Likewise.
46229         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
46230         * lib/fsync.c: Likewise.
46231         * lib/isapipe.c: Likewise.
46232         * modules/dup2 (Depends-on): Add msvc-nothrow.
46233         * modules/accept4 (Depends-on): Likewise.
46234         * modules/error (Depends-on): Likewise.
46235         * modules/fcntl (Depends-on): Likewise.
46236         * modules/lseek (Depends-on): Likewise.
46237         * modules/nonblocking (Depends-on): Likewise.
46238         * modules/poll (Depends-on): Likewise.
46239         * modules/read (Depends-on): Likewise.
46240         * modules/select (Depends-on): Likewise.
46241         * modules/sockets (Depends-on): Likewise.
46242         * modules/sigpipe (Depends-on): Likewise.
46243         * modules/write (Depends-on): Likewise.
46244         * modules/accept (Depends-on): Likewise.
46245         * modules/bind (Depends-on): Likewise.
46246         * modules/connect (Depends-on): Likewise.
46247         * modules/gethostname (Depends-on): Likewise.
46248         * modules/getpeername (Depends-on): Likewise.
46249         * modules/getsockname (Depends-on): Likewise.
46250         * modules/getsockopt (Depends-on): Likewise.
46251         * modules/ioctl (Depends-on): Likewise.
46252         * modules/listen (Depends-on): Likewise.
46253         * modules/recv (Depends-on): Likewise.
46254         * modules/recvfrom (Depends-on): Likewise.
46255         * modules/send (Depends-on): Likewise.
46256         * modules/sendto (Depends-on): Likewise.
46257         * modules/setsockopt (Depends-on): Likewise.
46258         * modules/shutdown (Depends-on): Likewise.
46259         * modules/socket (Depends-on): Likewise.
46260         * modules/execute (Depends-on): Likewise.
46261         * modules/spawn-pipe (Depends-on): Likewise.
46262         * modules/flock (Depends-on): Likewise.
46263         * modules/fsync (Depends-on): Likewise.
46264         * modules/isapipe (Depends-on): Likewise.
46265         * tests/test-cloexec.c: Include msvc-nothrow.h.
46266         * tests/test-dup-safer.c: Likewise.
46267         * tests/test-dup2.c: Likewise.
46268         * tests/test-dup3.c: Likewise.
46269         * tests/test-fcntl.c: Likewise.
46270         * tests/test-pipe.c: Likewise.
46271         * tests/test-pipe2.c: Likewise.
46272         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
46273         * modules/unistd-safer-tests (Depends-on): Likewise.
46274         * modules/dup2-tests (Depends-on): Likewise.
46275         * modules/dup3-tests (Depends-on): Likewise.
46276         * modules/fcntl-tests (Depends-on): Likewise.
46277         * modules/pipe-posix-tests (Depends-on): Likewise.
46278         * modules/pipe2-tests (Depends-on): Likewise.
46280 2011-09-23  Bruno Haible  <bruno@clisp.org>
46282         dup2: Make code more maintainable.
46283         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
46284         (rpl_dup2): Use it.
46285         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
46286         * modules/dup2 (configure.ac): Invoke it.
46287         Reported by Paul Eggert.
46289 2011-09-23  Bruno Haible  <bruno@clisp.org>
46291         msvc-inval: Fix compilation error.
46292         * lib/msvc-inval.h: Include <excpt.h>.
46294 2011-09-23  Bruno Haible  <bruno@clisp.org>
46296         mkdir: Tweak for MSVC 9.
46297         * lib/sys_stat.in.h: Update comments.
46298         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
46300         Tests for module 'chdir'.
46301         * modules/chdir-tests: New file.
46302         * tests/test-chdir.c: New file.
46304         New module 'chdir'.
46305         * modules/chdir: New file.
46306         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
46307         (chdir): New declaration.
46308         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
46309         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
46310         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
46311         * tests/test-unistd-c++.cc: Check signature of chdir.
46312         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
46313         * modules/chdir-long (Depends-on): Add chdir.
46314         * modules/fchdir (Depends-on): Likewise.
46315         * modules/rename (Depends-on): Likewise.
46316         * modules/savewd (Depends-on): Likewise.
46318         rmdir: Support for mingw, MSVC 9.
46319         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
46320         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
46322         getcwd: Tweak for MSVC 9.
46323         * lib/unistd.in.h: Update comments.
46324         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
46326 2011-09-22  Bruno Haible  <bruno@clisp.org>
46328         strerror_r-posix: Avoid a link error on MSVC.
46329         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
46330         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
46332 2011-09-22  Bruno Haible  <bruno@clisp.org>
46334         select: Avoid link errors on MSVC.
46335         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
46336         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
46337         * modules/pselect (Link): Likewise.
46338         * NEWS: Mention the change.
46339         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
46340         test-select-stdin against $(LIB_SELECT).
46341         * modules/pselect-tests (Makefile.am): Link test-pselect against
46342         $(LIB_SELECT).
46344 2011-09-22  Bruno Haible  <bruno@clisp.org>
46346         select: Avoid compilation error on MSVC.
46347         * lib/select.c: Don't include <stdbool.h>.
46349 2011-09-21  Bruno Haible  <bruno@clisp.org>
46351         Consolidate all uses of PATH_MAX in *.m4 files.
46352         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
46353         macros.
46354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
46355         and gl_PATHMAX_SNIPPET.
46356         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
46357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46358         * modules/chdir-long (Files): Add m4/pathmax.m4.
46359         * modules/getcwd (Files): Likewise.
46361 2011-09-21  Bruno Haible  <bruno@clisp.org>
46363         ftruncate: Un-deprecate, concentrate on Win32 support.
46364         * modules/ftruncate (Status, Notice): Remove sections.
46365         (Depends-on): Add largefile.
46366         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
46367         non-mingw platforms.
46368         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
46369         include <io.h>.
46370         * modules/perror-tests (Depends-on): Add ftruncate.
46371         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
46372         'ftruncate' module.
46374 2011-09-21  Bruno Haible  <bruno@clisp.org>
46376         Add dependencies to new dirent related modules.
46377         * modules/opendir (Depends-on): Add closedir.
46378         * modules/getcwd (Depends-on): Add opendir, closedir.
46379         * modules/dirent-safer-tests (Depends-on): Likewise.
46380         * modules/fdopendir-tests (Depends-on): Likewise.
46381         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
46382         * modules/renameat-tests (Depends-on): Likewise.
46384 2011-09-21  Bruno Haible  <bruno@clisp.org>
46386         opendir: Avoid compilation error on mingw.
46387         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
46388         * modules/opendir (Depends-on): Add unistd.
46390 2011-09-21  Bruno Haible  <bruno@clisp.org>
46392         ftruncate tests: Avoid a test failure on mingw.
46393         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
46395 2011-09-21  Bruno Haible  <bruno@clisp.org>
46397         select tests: Avoid test failures on OSF/1 5.1 and mingw.
46398         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
46399         native Windows.
46401 2011-09-21  Bruno Haible  <bruno@clisp.org>
46403         New module 'fdopen'.
46404         * lib/stdio.in.h (fdopen): New declaration.
46405         * lib/fdopen.c: New file.
46406         * m4/fdopen.m4: New file.
46407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
46408         REPLACE_FDOPEN.
46409         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
46410         REPLACE_FDOPEN.
46411         * modules/fdopen: New file.
46412         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
46413         * tests/test-stdio-c++.cc: Check signature of fdopen.
46414         * doc/posix-functions/fdopen.texi: Mention the new module.
46416 2011-09-21  Bruno Haible  <bruno@clisp.org>
46418         unlockpt tests: Avoid test failure on NetBSD 5.1.
46419         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
46420         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
46422 2011-09-21  Bruno Haible  <bruno@clisp.org>
46424         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
46425         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
46426         * tests/test-getlogin_r.c (main): Likewise.
46428 2011-09-20  Bruno Haible  <bruno@clisp.org>
46430         time tests: Don't require pid_t.
46431         * doc/posix-headers/time.texi: Revert last change.
46432         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
46433         * tests/test-time.c: Comment out the check for pid_t.
46435 2011-09-20  Bruno Haible  <bruno@clisp.org>
46437         fsync tests: Avoid a test failure on mingw.
46438         * tests/test-fsync.c (main): Allow a failure with EIO.
46440 2011-09-20  Bruno Haible  <bruno@clisp.org>
46442         euidaccess: Update comments.
46443         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
46445 2011-09-20  Bruno Haible  <bruno@clisp.org>
46447         Ensure EBADF returns for socket functions on mingw.
46448         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
46449         descriptor is invalid.
46450         * lib/bind.c (rpl_bind): Likewise.
46451         * lib/connect.c (rpl_connect): Likewise.
46452         * lib/getpeername.c (rpl_getpeername): Likewise.
46453         * lib/getsockname.c (rpl_getsockname): Likewise.
46454         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46455         * lib/listen.c (rpl_listen): Likewise.
46456         * lib/recv.c (rpl_recv): Likewise.
46457         * lib/recvfrom.c (rpl_recvfrom): Likewise.
46458         * lib/send.c (rpl_send): Likewise.
46459         * lib/sendto.c (rpl_sendto): Likewise.
46460         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46461         * lib/shutdown.c (rpl_shutdown): Likewise.
46463 2011-09-20  Bruno Haible  <bruno@clisp.org>
46465         select tests: EBADF tests.
46466         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
46467         test_bad_fd): New functions.
46468         (test_function): Invoke also test_bad_fd.
46470 2011-09-20  Bruno Haible  <bruno@clisp.org>
46472         Tests for module 'posix_spawn_file_actions_addopen.
46473         * modules/posix_spawn_file_actions_addopen-tests: New file.
46474         * tests/test-posix_spawn_file_actions_addopen.c: New file.
46476         Tests for module 'posix_spawn_file_actions_adddup2'.
46477         * modules/posix_spawn_file_actions_adddup2-tests: New file.
46478         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
46480         Tests for module 'posix_spawn_file_actions_addclose'.
46481         * modules/posix_spawn_file_actions_addclose-tests: New file.
46482         * tests/test-posix_spawn_file_actions_addclose.c: New file.
46484 2011-09-20  Bruno Haible  <bruno@clisp.org>
46486         Tests for module 'unlockpt'.
46487         * modules/unlockpt-tests: New file.
46488         * tests/test-unlockpt.c: New file.
46489         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
46491         Tests for module 'grantpt'.
46492         * modules/grantpt-tests: New file.
46493         * tests/test-grantpt.c: New file.
46494         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
46496 2011-09-20  Bruno Haible  <bruno@clisp.org>
46498         freopen tests: EBADF tests.
46499         * tests/test-freopen.c: Include errno.h, unistd.h.
46500         (main): Add tests for EBADF, commented out for the moment.
46502         fclose tests: EBADF tests.
46503         * tests/test-fclose.c (main): Add tests for EBADF.
46505         fflush tests: EBADF tests.
46506         * tests/test-fflush.c: Include errno.h, macros.h.
46507         (main): Add tests for EBADF.
46509         ftello tests: EBADF tests.
46510         * tests/test-ftello4.sh: New file.
46511         * tests/test-ftello4.c: New file.
46512         * modules/ftello-tests (Files): Add them.
46513         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
46515         fseeko tests: EBADF tests.
46516         * tests/test-fseeko4.sh: New file.
46517         * tests/test-fseeko4.c: New file.
46518         * modules/fseeko-tests (Files): Add them.
46519         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
46521         Tests for function fputc().
46522         * modules/fputc-tests: New file.
46523         * tests/test-fputc.c: New file.
46524         * modules/stdio-tests (Depends-on): Add fputc-tests.
46526         Tests for function fgetc().
46527         * modules/fgetc-tests: New file.
46528         * tests/test-fgetc.c: New file.
46529         * modules/stdio-tests (Depends-on): Add fgetc-tests.
46531         Tests for function fdopen().
46532         * modules/fdopen-tests: New file.
46533         * tests/test-fdopen.c: New file.
46534         * modules/stdio-tests (Depends-on): Add fdopen-tests.
46536         Tests for module 'vdprintf'.
46537         * modules/vdprintf-tests: New file.
46538         * tests/test-vdprintf.c: New file.
46540         Tests for module 'dprintf'.
46541         * modules/dprintf-tests: New file.
46542         * tests/test-dprintf.c: New file.
46544 2011-09-20  Bruno Haible  <bruno@clisp.org>
46546         Tests for module 'ioctl'.
46547         * modules/ioctl-tests: New file.
46548         * tests/test-ioctl.c: New file.
46550 2011-09-20  Bruno Haible  <bruno@clisp.org>
46552         fcntl tests: EBADF tests.
46553         * tests/test-fcntl.c (main): Add more tests for EBADF.
46555 2011-09-20  Bruno Haible  <bruno@clisp.org>
46557         utimensat tests: EBADF tests.
46558         * tests/test-utimensat.c (main): Add tests for EBADF.
46560         renameat tests: EBADF tests.
46561         * tests/test-renameat.c (main): Add tests for EBADF.
46563         mkfifoat tests: EBADF tests.
46564         * tests/test-mkfifoat.c (main): Add tests for EBADF.
46566         readlinkat tests: EBADF tests.
46567         * tests/test-readlinkat.c (main): Add tests for EBADF.
46569         symlinkat tests: EBADF tests.
46570         * tests/test-symlinkat.c (main): Add tests for EBADF.
46572         linkat tests: EBADF tests.
46573         * tests/test-linkat.c (main): Add tests for EBADF.
46575         Tests for module 'faccessat'.
46576         * modules/faccessat-tests: New file.
46577         * tests/test-faccessat.c: New file.
46579         fdopendir tests: EBADF tests.
46580         * tests/test-fdopendir.c (main): Add more tests for EBADF.
46582         openat tests: EBADF tests.
46583         * tests/test-fchownat.c (main): Add tests for EBADF.
46584         * tests/test-fstatat.c (main): Likewise.
46585         * tests/test-mkdirat.c (main): Likewise.
46586         * tests/test-openat.c (main): Likewise.
46587         * tests/test-unlinkat.c (main): Likewise.
46588         * tests/test-fchmodat.c: New file.
46589         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
46590         (Makefile.am): Also run 'test-fchmodat'.
46592 2011-09-20  Bruno Haible  <bruno@clisp.org>
46594         utimens, futimens, fdutimensat tests: EBADF tests.
46595         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
46597         Tests for function fstat().
46598         * modules/fstat-tests: New file.
46599         * tests/test-fstat.c: New file.
46600         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
46602 2011-09-20  Bruno Haible  <bruno@clisp.org>
46604         test-ttyname_r tests: EBADF tests.
46605         * tests/test-ttyname_r.c (main): Add tests for EBADF.
46607         Tests for module 'isatty'.
46608         * modules/isatty-tests: New file.
46609         * tests/test-isatty.c: New file.
46611         Tests for module 'write'.
46612         * modules/write-tests: New file.
46613         * tests/test-write.c: New file.
46615         Tests for module 'read'.
46616         * modules/read-tests: New file.
46617         * tests/test-read.c: New file.
46619         pwrite tests: EBADF tests.
46620         * tests/test-pwrite.c (main): Add tests for EBADF.
46622         pread tests: EBADF tests.
46623         * tests/test-pread.c (main): Add tests for EBADF.
46625         lseek tests: EBADF tests.
46626         * tests/test-lseek.c (main): Add more tests for EBADF.
46628         Tests for module 'ftruncate'.
46629         * modules/ftruncate-tests: New file.
46630         * tests/test-ftruncate.sh: New file.
46631         * tests/test-ftruncate.c: New file.
46633         fsync tests: EBADF tests.
46634         * tests/test-fsync.c (main): Add more tests for EBADF.
46636         fdatasync tests: EBADF tests.
46637         * tests/test-fdatasync.c (main): Add more tests for EBADF.
46639         Tests for module 'fchown'.
46640         * modules/fchown-tests: New file.
46641         * tests/test-fchown.c: New file.
46643         Tests for module 'fchmod'.
46644         * modules/fchmod-tests: New file.
46645         * tests/test-fchmod.c: New file.
46647         fchdir tests: EBADF tests.
46648         * tests/test-fchdir.c (main): Add more tests for EBADF.
46650         dup2 tests: EBADF tests.
46651         * tests/test-dup2.c (main): Add more tests for EBADF.
46653         Tests for module 'dup'.
46654         * modules/dup-tests: New file.
46655         * tests/test-dup.c: New file.
46657         Tests for module 'close'.
46658         * modules/close-tests: New file.
46659         * tests/test-close.c: New file.
46661 2011-09-20  Bruno Haible  <bruno@clisp.org>
46663         Tests for module 'shutdown'.
46664         * modules/shutdown-tests: New file.
46665         * tests/test-shutdown.c: New file.
46667         Tests for module 'setsockopt'.
46668         * modules/setsockopt-tests: New file.
46669         * tests/test-setsockopt.c: New file.
46671         Tests for module 'sendto'.
46672         * modules/sendto-tests: New file.
46673         * tests/test-sendto.c: New file.
46675         Tests for module 'send'.
46676         * modules/send-tests: New file.
46677         * tests/test-send.c: New file.
46679         Tests for module 'recvfrom'.
46680         * modules/recvfrom-tests: New file.
46681         * tests/test-recvfrom.c: New file.
46683         Tests for module 'recv'.
46684         * modules/recv-tests: New file.
46685         * tests/test-recv.c: New file.
46687         Tests for module 'listen'.
46688         * modules/listen-tests: New file.
46689         * tests/test-listen.c: New file.
46691         Tests for module 'getsockopt'.
46692         * modules/getsockopt-tests: New file.
46693         * tests/test-getsockopt.c: New file.
46695         Tests for module 'getsockname'.
46696         * modules/getsockname-tests: New file.
46697         * tests/test-getsockname.c: New file.
46699         Tests for module 'getpeername'.
46700         * modules/getpeername-tests: New file.
46701         * tests/test-getpeername.c: New file.
46703         Tests for module 'connect'.
46704         * modules/connect-tests: New file.
46705         * tests/test-connect.c: New file.
46707         Tests for module 'bind'.
46708         * modules/bind-tests: New file.
46709         * tests/test-bind.c: New file.
46711         accept4 tests: Fix for native Windows.
46712         * tests/test-accept4.c: Include sockets.h.
46713         (main): Invoke gl_sockets_startup.
46714         * modules/accept4-tests (Depends-on): Add sockets.
46716         accept tests: Fix for native Windows.
46717         * tests/test-accept.c: Include sockets.h.
46718         (main): Invoke gl_sockets_startup.
46719         * modules/accept-tests (Depends-on): Add sockets.
46721 2011-09-19  Bruno Haible  <bruno@clisp.org>
46723         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
46724         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
46725         do...while(0).
46726         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
46727         Suggested by Paul Eggert.
46729 2011-09-19  Bruno Haible  <bruno@clisp.org>
46731         sched: Ensure pid_t is defined.
46732         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
46733         not define pid_t.
46734         * lib/sched.in.h: Include <sys/types.h>.
46735         * doc/posix-headers/sched.texi: Mention the pid_t problem.
46736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46738 2011-09-19  Bruno Haible  <bruno@clisp.org>
46740         msvc-inval: Ensure the entire expansion is a single statement.
46741         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
46742         of braces.
46744 2011-09-19  Jim Meyering  <meyering@redhat.com>
46746         tests: use printf, not echo in init.sh's warn_ function
46747         * tests/init.sh (warn_): Use printf, not echo.  The latter would
46748         misbehave when given strings containing a backslash or starting
46749         with e.g., -n.  James Youngman suggested setting IFS.
46751 2011-09-19  Eric Blake  <eblake@redhat.com>
46753         futimens: enhance test
46754         * tests/test-futimens.h (test_futimens): Also check for EBADF on
46755         closed non-negative fd.
46757         date: accept 'hence' as opposite of 'ago'
46758         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
46759         * tests/test-parse-datetime.c (main): Enhance test.
46760         Suggested by Jesse Wilson.
46762 2011-09-19  Jim Meyering  <meyering@redhat.com>
46764         getcwd: don't fail in a deep directory on a system without openat
46765         Before this change, getcwd would fail when called from a directory
46766         of depth PATH_MAX / 3 or greater.  That was due to the fact that
46767         the non-openat implementation used "..", "../..", "../../..", etc.
46768         to access ancestor directories.  With too many, that string would
46769         be longer than PATH_MAX.
46770         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
46771         using gnulib's openat replacement.
46772         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
46773         we're using the replacement function.
46775 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
46777         maint.mk: avoid warnings from perl about missing files
46778         * top/maint.mk (def_sym_regex): Ignore files listed in
46779         $(gl_other_headers_) that do not exist, say because a project
46780         does not use a corresponding module.
46782 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46784         stat: use pathmax.h only if needed
46785         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
46786         This is better for Emacs, which does not have a mingw port and
46787         therefore can avoid the pathmax module.
46789         utimens: remove dependency on dup2
46790         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
46791         to work around the Linux kernel bug.
46792         * modules/utimens (Depends-on): Remove dup2.
46794 2011-09-18  Bruno Haible  <bruno@clisp.org>
46796         inet_ntop, inet_pton: Look for it also in libresolv.
46797         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
46798         libnsl, search for it in libresolv.
46799         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46800         Needed on Solaris 7.
46802 2011-09-18  Bruno Haible  <bruno@clisp.org>
46804         accept, accept4 tests: Avoid link error on Solaris.
46805         * modules/accept-tests (Makefile.am): Link test-accept against
46806         $(LIBSOCKET).
46807         * modules/accept4-tests (Makefile.am): Link test-accept4 against
46808         $(LIBSOCKET).
46810         accept4: Avoid link error on Solaris.
46811         * modules/accept4 (Link): New section.
46813         socket functions: Avoid link errors on Solaris.
46814         * modules/accept (Depends-on): Add socketlib.
46815         (Link): New section.
46816         * modules/bind (Depends-on): Add socketlib.
46817         (Link): New section.
46818         * modules/connect (Depends-on): Add socketlib.
46819         (Link): New section.
46820         * modules/getpeername (Depends-on): Add socketlib.
46821         (Link): New section.
46822         * modules/getsockname (Depends-on): Add socketlib.
46823         (Link): New section.
46824         * modules/getsockopt (Depends-on): Add socketlib.
46825         (Link): New section.
46826         * modules/listen (Depends-on): Add socketlib.
46827         (Link): New section.
46828         * modules/recv (Depends-on): Add socketlib.
46829         (Link): New section.
46830         * modules/recvfrom (Depends-on): Add socketlib.
46831         (Link): New section.
46832         * modules/send (Depends-on): Add socketlib.
46833         (Link): New section.
46834         * modules/sendto (Depends-on): Add socketlib.
46835         (Link): New section.
46836         * modules/setsockopt (Depends-on): Add socketlib.
46837         (Link): New section.
46838         * modules/shutdown (Depends-on): Add socketlib.
46839         (Link): New section.
46840         * modules/socket (Depends-on): Add socketlib.
46841         (Link): New section.
46843 2011-09-18  Bruno Haible  <bruno@clisp.org>
46845         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
46846         * tests/test-ptsname.c (main): Terminate the test if it takes longer
46847         than 5 seconds.
46848         * modules/ptsname-tests (configure.ac): Test for alarm.
46850 2011-09-18  Bruno Haible  <bruno@clisp.org>
46852         posix_spawn_file_actions_add*: Fix module dependencies.
46853         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
46854         posix_spawn_file_actions_init.
46855         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
46856         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
46858 2011-09-18  Bruno Haible  <bruno@clisp.org>
46860         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
46861         * tests/test-rename.h (test_rename): Allow error code EEXIST.
46862         * tests/test-renameat.c (main): Likewise.
46864 2011-09-18  Bruno Haible  <bruno@clisp.org>
46866         Tests for module 'accept4'.
46867         * modules/accept4-tests: New file.
46868         * tests/test-accept4.c: New file.
46870 2011-09-18  Bruno Haible  <bruno@clisp.org>
46872         Tests for module 'accept'.
46873         * modules/accept-tests: New file.
46874         * tests/test-accept.c: New file.
46876 2011-09-18  Bruno Haible  <bruno@clisp.org>
46878         dup2: Support for MSVC.
46879         * lib/dup2.c: Include msvc-inval.h.
46880         (rpl_dup2): Handle invalid parameter notifications during dup2 and
46881         _get_osfhandle calls.
46882         * modules/dup2 (Depends-on): Add msvc-inval.
46883         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
46885         New module 'msvc-inval'.
46886         * lib/msvc-inval.h: New file.
46887         * lib/msvc-inval.c: New file.
46888         * m4/msvc-inval.m4: New file.
46889         * modules/msvc-inval: New file.
46891 2011-09-17  Bruno Haible  <bruno@clisp.org>
46893         Tests for module 'pclose'.
46894         * modules/pclose-tests: New file.
46896         New module 'pclose'.
46897         * lib/stdio.in.h (pclose): New declaration.
46898         * lib/pclose.c: New file.
46899         * m4/pclose.m4: New file.
46900         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
46901         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
46902         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
46903         * modules/pclose: New file.
46904         * modules/popen-tests (Depends-on): Add pclose.
46905         * modules/popen-safer-tests (Depends-on): Likewise.
46906         * doc/posix-functions/pclose.texi: Mention the new module.
46908 2011-09-17  Bruno Haible  <bruno@clisp.org>
46910         popen: Support for MSVC.
46911         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
46912         * lib/popen.c (popen): Provide alternate definition for native Windows.
46913         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
46914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
46915         * modules/popen (Depends-on, configure.ac): Update condition.
46916         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
46917         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
46918         fixed.
46920 2011-09-17  Bruno Haible  <bruno@clisp.org>
46922         isnanl, isnand, isnanf: Work around MSVC bug.
46923         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
46925 2011-09-17  Bruno Haible  <bruno@clisp.org>
46927         sys_socket tests: Fix recent mistake.
46928         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
46930 2011-09-17  Bruno Haible  <bruno@clisp.org>
46932         putenv: Support for MSVC.
46933         * modules/putenv (Depends-on): Add environ.
46934         * lib/putenv.c (environ): Disable declaration.
46935         * lib/unistd.in.h: Update comment.
46937 2011-09-17  Bruno Haible  <bruno@clisp.org>
46939         math: Avoid macro redefinition warnings on MSVC.
46940         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
46941         Undefine before redefining.
46943 2011-09-17  Bruno Haible  <bruno@clisp.org>
46945         doc: Mention functions which are declared as macros.
46946         * doc/posix-functions/*[fl].texi: Mention that some functions are
46947         defined as macros with arguments only.
46949 2011-09-17  Bruno Haible  <bruno@clisp.org>
46951         Add dependencies to new dirent related modules.
46952         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
46953         * modules/fts (Depends-on): Likewise.
46954         * modules/glob (Depends-on): Likewise.
46955         * modules/savedir (Depends-on): Likewise.
46956         * modules/scandir (Depends-on): Likewise.
46957         * modules/dirent-safer (Depends-on): Add opendir, closedir.
46958         * modules/fdopendir (Depends-on): Add opendir.
46960 2011-09-17  Bruno Haible  <bruno@clisp.org>
46962         inet_pton: Support for MSVC on Windows Vista or newer.
46963         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
46964         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
46965         HAVE_DECL_INET_PTON is defined.
46966         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
46967         On platforms with <winsock2.h>, test whether inet_pton is declared in
46968         <ws2tcpip.h>. If so, arrange to replace it.
46969         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
46970         REPLACE_INET_PTON.
46971         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
46972         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
46973         (Depends-on, configure.ac): Update condition.
46974         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
46976 2011-09-17  Bruno Haible  <bruno@clisp.org>
46978         inet_ntop: Support for MSVC on Windows Vista or newer.
46979         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
46980         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
46981         HAVE_DECL_INET_NTOP is defined.
46982         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
46983         On platforms with <winsock2.h>, test whether inet_ntop is declared in
46984         <ws2tcpip.h>. If so, arrange to replace it.
46985         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
46986         REPLACE_INET_NTOP.
46987         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
46988         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
46989         (Depends-on, configure.ac): Update condition.
46990         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
46992 2011-09-16  Eric Blake  <eblake@redhat.com>
46994         test-fsync: yet another enhancement
46995         * tests/test-fsync.c (main): Also test behavior on read-only text
46996         file.
46998 2011-09-16  Bruno Haible  <bruno@clisp.org>
47000         Enhance fsync, fdatasync tests.
47001         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
47002         * tests/test-fdatasync.c (main): Likewise.
47004 2011-09-16  Bruno Haible  <bruno@clisp.org>
47006         Support for MSVC compiler: Ensure mode_t gets defined.
47007         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
47008         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47010         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
47011         * tests/test-fcntl-h.c: Check that mode_t is defined.
47012         * tests/test-sys_stat.c: Likewise.
47013         * tests/test-sys_types.c: Likewise.
47014         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
47015         * doc/posix-headers/sys_stat.texi: Likewise.
47016         * doc/posix-headers/sys_types.texi: Likewise.
47018 2011-09-16  Bruno Haible  <bruno@clisp.org>
47020         sys_stat: Support for MSVC.
47021         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
47022         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
47023         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
47024         MSVC.
47026 2011-09-16  Bruno Haible  <bruno@clisp.org>
47028         Support for MSVC compiler: Ensure off_t gets defined.
47029         * lib/unistd.in.h: Include <sys/types.h>.
47030         * tests/test-fcntl-h.c: Check that off_t is defined.
47031         * tests/test-sys_stat.c: Likewise.
47032         * tests/test-sys_types.c: Likewise.
47034 2011-09-16  Eric Blake  <eblake@redhat.com>
47036         fdatasync: port to Solaris
47037         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
47038         * modules/fdatasync (Link): Document it.
47039         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
47041         fdatasync: port to MacOS X 10.7
47042         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
47043         declared.
47044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
47045         * modules/unistd (Makefile.am): Substitute it.
47046         * lib/unistd.in.h (fdatasync): Declare on MacOS.
47047         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
47049         fdatasync: minor improvements
47050         * modules/fdatasync (Depends-on): Add condition for fsync.
47051         * lib/fdatasync.c (fdatasync): Add comment.
47052         * tests/test-unistd-c++.cc: Test fdatasync.
47054         unistd: update refs to newer POSIX
47055         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
47056         Suggested by Bruno Haible.
47058         fdatasync: new module
47059         * modules/fsync (Description): Document difference to fdatasync.
47060         * modules/fdatasync: New module.
47061         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
47062         * lib/fdatasync.c (fdatasync): Likewise.
47063         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
47064         defaults.
47065         * modules/unistd (Makefile.am): Set witnesses.
47066         * lib/unistd.in.h (fdatasync): Declare.
47067         * MODULES.html.sh: Document it.
47068         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
47069         * modules/fdatasync-tests: New test.
47070         * tests/test-fdatasync.c: Likewise.
47072 2011-09-16  Eric Blake  <eblake@redhat.com>
47074         test-fsync: enhance tests
47075         * modules/fsync-tests (Depends-on): Add errno, for mingw.
47076         * tests/test-fsync.c (main): Enhance test.
47078 2011-09-15  Bruno Haible  <bruno@clisp.org>
47080         Support for MSVC compiler: Ensure ssize_t gets defined.
47081         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
47082         * doc/posix-headers/stdio.texi: Likewise.
47083         * modules/stdio (Depends-on): Add ssize_t.
47084         * modules/sys_socket (Depends-on): Likewise.
47085         * modules/sys_types (Depends-on): Likewise.
47086         * modules/sys_uio (Depends-on): Likewise.
47087         * modules/unistd (Depends-on): Likewise.
47088         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
47089         * tests/test-sys_types.c: Check that ssize_t is defined.
47091 2011-09-14  Bruno Haible  <bruno@clisp.org>
47093         Avoid using #, the m4 comment starter character, near brackets.
47094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
47095         delimiter character in sed expressions.
47096         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47097         Suggested by Eric Blake.
47099         Properly quote AC_CHECK_DECLS' 4th argument.
47100         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
47101         argument.
47102         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47103         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47104         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47105         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47106         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47107         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
47108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
47109         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
47110         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
47111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47112         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
47113         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47114         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47115         * m4/isinf.m4 (gl_ISINF): Likewise.
47116         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47117         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47118         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47119         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47122         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47123         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47124         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
47125         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47126         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47127         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
47129         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47131         Reported by Eric Blake.
47133         Properly quote AC_CHECK_DECL's 4th argument.
47134         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
47135         argument.
47136         * m4/argp.m4 (gl_ARGP): Likewise.
47137         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47138         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47139         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47140         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47141         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
47142         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
47143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
47144         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47146         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47147         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47148         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47149         Reported by Eric Blake.
47151 2011-09-14  Eric Blake  <eblake@redhat.com>
47153         opendir: avoid compile warning
47154         * lib/opendir.c (includes): Always include errno.h.
47155         Reported by Tatsuro MATSUOKA.
47157 2011-09-14  Jim Meyering  <meyering@redhat.com>
47159         maint.mk: sc_tight_scope: propagate failure from sub-make
47160         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
47161         Reported by Martin von Gagern.
47163 2011-09-13  Bruno Haible  <bruno@clisp.org>
47165         tempname: Support for MSVC.
47166         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
47167         MSVC.
47168         * modules/tempname (Depends-on): Add fcntl-h.
47170 2011-09-13  Bruno Haible  <bruno@clisp.org>
47172         sys_time: Support for MSVC.
47173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
47174         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
47175         include <winsock2.h>.
47176         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
47177         function declarations that collide with POSIX.
47178         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
47179         (Makefile.am): Substitute HAVE_WINSOCK2_H.
47181 2011-09-13  Bruno Haible  <bruno@clisp.org>
47183         stat: Support for MSVC.
47184         * lib/stat.c: Include pathmax.h.
47185         * modules/stat (Depends-on): Add pathmax.
47187         pathmax: Support for native Windows.
47188         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
47190 2011-09-12  Bruno Haible  <bruno@clisp.org>
47192         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
47193         * lib/dirent.in.h (struct dirent): New type.
47194         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
47195         DT_WHT): New macros.
47196         (DIR): New type.
47197         (opendir, closedir): Declare only if the module 'opendir' is enabled.
47198         (readdir, rewinddir): New declarations.
47199         * lib/dirent-private.h: New file.
47200         * lib/opendir.c: New file.
47201         * lib/readdir.c: New file.
47202         * lib/rewinddir.c: New file.
47203         * lib/closedir.c: New file.
47204         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
47205         * m4/opendir.m4: New file.
47206         * m4/readdir.m4: New file.
47207         * m4/rewinddir.m4: New file.
47208         * m4/closedir.m4: New file.
47209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
47210         REPLACE_CLOSEDIR here.
47211         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
47212         readdir, rewinddir are declared.
47213         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
47214         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
47215         HAVE_REWINDDIR, HAVE_CLOSEDIR.
47216         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
47217         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
47218         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
47219         * modules/opendir: New file.
47220         * modules/readdir: New file.
47221         * modules/rewinddir: New file.
47222         * modules/closedir: New file.
47223         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
47224         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
47225         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
47226         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
47227         * NEWS: Mention the 'fchdir' change.
47229 2011-09-11  Bruno Haible  <bruno@clisp.org>
47231         asm-underscore.m4: Support for MSVC.
47232         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
47233         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
47235 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
47237         Doc about crypt functions.
47238         * doc/posix-functions/crypt.texi: Expand range of glibc versions
47239         needing for _GNU_SOURCE to get crypt.
47240         * doc/posix-functions/encrypt.texi: Likewise.
47241         * doc/posix-functions/setkey.texi: Likewise.
47243 2011-09-11  Bruno Haible  <bruno@clisp.org>
47245         doc: Update regarding MSVC 9.
47246         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
47247         tested".
47248         * doc/posix-functions/*.texi: Update with info about MSVC 9.
47249         * doc/posix-headers/*.texi: Likewise.
47250         * doc/pastposix-functions/*.texi: Likewise.
47251         * doc/glibc-functions/*.texi: Likewise.
47252         * doc/glibc-headers/*.texi: Likewise.
47254 2011-09-11  Bruno Haible  <bruno@clisp.org>
47256         unistd et al.: Don't assume <unistd.h> exists.
47257         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
47258         does not exist.
47259         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
47260         exist. But include <stdlib.h>.
47261         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
47262         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
47263         symlink() does not exist.
47264         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
47265         include <io.h> instead.
47266         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
47267         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
47268         include <direct.h> instead.
47269         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47271         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
47272         <io.h> instead.
47273         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
47274         correctly if the system does not have hard links.
47275         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
47276         <direct.h> instead.
47277         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
47278         it when looking for function declarations.
47279         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
47280         <direct.h> and <io.h> instead.
47281         * doc/posix-headers/unistd.texi: More details about MSVC problem.
47283 2011-09-11  Bruno Haible  <bruno@clisp.org>
47285         strcase: Support for MSVC.
47286         * modules/strcase (Status, Notice): Remove obsoletion mark.
47287         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
47288         * doc/posix-functions/strncasecmp.texi: Likewise.
47290         strings: Don't assume <strings.h> exists.
47291         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
47292         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
47293         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
47294         * doc/posix-headers/strings.texi: Mention the MSVC problem.
47296 2011-09-11  Bruno Haible  <bruno@clisp.org>
47298         dirent: Don't assume <dirent.h> exists.
47299         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
47300         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
47301         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
47302         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
47304 2011-09-11  Bruno Haible  <bruno@clisp.org>
47306         Fix wint_t on MSVC.
47307         * lib/wchar.in.h (wint_t): On MSVC, override it.
47308         * lib/wctype.in.h (wint_t): Likewise.
47309         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
47310         MSVC.
47311         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
47312         * doc/posix-headers/wctype.texi: Likewise.
47314 2011-09-11  Bruno Haible  <bruno@clisp.org>
47316         sys_types: Fix typo.
47317         * lib/sys_types.in.h: Fix typo in comment.
47318         Reported by Paul Eggert.
47320         Support for MSVC compiler: Ensure size_t gets defined.
47321         * modules/strings (Depends-on): Add 'sys_types'.
47322         * modules/sys_uio (Depends-on): Likewise.
47323         * lib/sys_uio.in.h: Update comment.
47325         C++ tests for module 'sys_types'.
47326         * modules/sys_types-c++-tests: New file.
47327         * tests/test-sys_types-c++.cc: New file.
47329         Tests for module 'sys_types'.
47330         * modules/sys_types-tests: New file.
47331         * tests/test-sys_types.c: New file.
47333         New module 'sys_types'.
47334         * lib/sys_types.in.h: New file.
47335         * m4/sys_types_h.m4: New file.
47336         * modules/sys_types: New file.
47337         * doc/posix-headers/sys_types.texi: Mention the new module and the
47338         size_t problem on MSVC 9.
47340 2011-09-11  Bruno Haible  <bruno@clisp.org>
47342         Support for MSVC compiler: Avoid division by a literal 0.
47343         * lib/math.in.h (NAN): Define through a function call also on MSVC.
47344         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
47345         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
47346         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
47347         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
47348         * tests/infinity.h: New file.
47349         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
47350         on MSVC.
47351         * tests/test-ceilf1.c: Include infinity.h.
47352         (main): Use Infinityf.
47353         * tests/test-ceil1.c: Include infinity.h.
47354         (main): Use Infinityd.
47355         * tests/test-ceill.c: Include infinity.h.
47356         (main): Use Infinityl.
47357         * tests/test-dprintf-posix.c: Include infinity.h.
47358         (test_function): Use Infinityd.
47359         * tests/test-floorf1.c: Include infinity.h.
47360         (main): Use Infinityf.
47361         * tests/test-floor1.c: Include infinity.h.
47362         (main): Use Infinityd.
47363         * tests/test-floorl.c: Include infinity.h.
47364         (main): Use Infinityl.
47365         * tests/test-fprintf-posix.c: Include infinity.h.
47366         (test_function): Use Infinityd.
47367         * tests/test-frexp.c: Include infinity.h.
47368         (main): Use Infinityd.
47369         * tests/test-frexpl.c: Include infinity.h.
47370         (main): Use Infinityl.
47371         * tests/test-isfinite.c: Include infinity.h.
47372         (test_isfinitef): Use Infinityf.
47373         (test_isfinited): Use Infinityd.
47374         (test_isfinitel): Use Infinityl.
47375         * tests/test-isinf.c: Include infinity.h.
47376         (test_isinff): Use Infinityf.
47377         (test_isinfd): Use Infinityd.
47378         (test_isinfl): Use Infinityl.
47379         * tests/test-isnan.c: Include infinity.h.
47380         (test_float): Use Infinityf.
47381         (test_double): Use Infinityd.
47382         (test_long_double): Use Infinityl.
47383         * tests/test-isnanf.h: Include infinity.h.
47384         (main): Use Infinityf.
47385         * tests/test-isnand.h: Include infinity.h.
47386         (main): Use Infinityd.
47387         * tests/test-isnanl.h: Include infinity.h.
47388         (main): Use Infinityl.
47389         * tests/test-ldexpl.c: Include infinity.h.
47390         (main): Use Infinityl.
47391         * tests/test-printf-posix.h: Include infinity.h.
47392         (test_function): Use Infinityd.
47393         * tests/test-roundf1.c: Include infinity.h.
47394         (main): Use Infinityf.
47395         * tests/test-round1.c: Include infinity.h.
47396         (main): Use Infinityd.
47397         * tests/test-roundl.c: Include infinity.h.
47398         (main): Use Infinityl.
47399         * tests/test-signbit.c: Include infinity.h.
47400         (test_signbitf): Use Infinityf.
47401         (test_signbitd): Use Infinityd.
47402         (test_signbitl): Use Infinityl.
47403         * tests/test-snprintf-posix.h: Include infinity.h.
47404         (test_function): Use Infinityd, Infinityl.
47405         * tests/test-sprintf-posix.h: Include infinity.h.
47406         (test_function): Use Infinityd, Infinityl.
47407         * tests/test-truncf1.c: Include infinity.h.
47408         (main): Use Infinityf.
47409         * tests/test-trunc1.c: Include infinity.h.
47410         (main): Use Infinityd.
47411         * tests/test-truncl.c: Include infinity.h.
47412         (main): Use Infinityl.
47413         * tests/test-vasnprintf-posix.c: Include infinity.h.
47414         (test_function): Use Infinityd, Infinityl.
47415         * tests/test-vasprintf-posix.c: Include infinity.h.
47416         (test_function): Use Infinityd, Infinityl.
47417         * modules/ceilf-tests (Files): Add tests/infinity.h.
47418         * modules/ceil-tests (Files): Likewise.
47419         * modules/ceill-tests (Files): Likewise.
47420         * modules/dprintf-posix-tests (Files): Likewise.
47421         * modules/floorf-tests (Files): Likewise.
47422         * modules/floor-tests (Files): Likewise.
47423         * modules/floorl-tests (Files): Likewise.
47424         * modules/fprintf-posix-tests (Files): Likewise.
47425         * modules/frexp-tests (Files): Likewise.
47426         * modules/frexp-nolibm-tests (Files): Likewise.
47427         * modules/frexpl-tests (Files): Likewise.
47428         * modules/frexpl-nolibm-tests (Files): Likewise.
47429         * modules/isfinite-tests (Files): Likewise.
47430         * modules/isinf-tests (Files): Likewise.
47431         * modules/isnan-tests (Files): Likewise.
47432         * modules/isnanf-tests (Files): Likewise.
47433         * modules/isnanf-nolibm-tests (Files): Likewise.
47434         * modules/isnand-tests (Files): Likewise.
47435         * modules/isnand-nolibm-tests (Files): Likewise.
47436         * modules/isnanl-tests (Files): Likewise.
47437         * modules/isnanl-nolibm-tests (Files): Likewise.
47438         * modules/ldexpl-tests (Files): Likewise.
47439         * modules/printf-posix-tests (Files): Likewise.
47440         * modules/roundf-tests (Files): Likewise.
47441         * modules/round-tests (Files): Likewise.
47442         * modules/roundl-tests (Files): Likewise.
47443         * modules/signbit-tests (Files): Likewise.
47444         * modules/snprintf-posix-tests (Files): Likewise.
47445         * modules/sprintf-posix-tests (Files): Likewise.
47446         * modules/truncf-tests (Files): Likewise.
47447         * modules/trunc-tests (Files): Likewise.
47448         * modules/truncl-tests (Files): Likewise.
47449         * modules/vasnprintf-posix-tests (Files): Likewise.
47450         * modules/vasprintf-posix-tests (Files): Likewise.
47451         * modules/vdprintf-posix-tests (Files): Likewise.
47452         * modules/vfprintf-posix-tests (Files): Likewise.
47453         * modules/vprintf-posix-tests (Files): Likewise.
47454         * modules/vsnprintf-posix-tests (Files): Likewise.
47455         * modules/vsprintf-posix-tests (Files): Likewise.
47456         * modules/xprintf-posix-tests (Files): Likewise.
47458 2011-09-11  Bruno Haible  <bruno@clisp.org>
47460         Ensure pid_t gets defined.
47461         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
47462         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
47463         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47464         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47465         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
47466         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
47467         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47469         * tests/test-fcntl-h.c: Check that pid_t is defined.
47470         * tests/test-sched.c: Likewise.
47471         * tests/test-termios.c: Likewise.
47472         * tests/test-time.c: Likewise.
47473         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
47474         * doc/posix-headers/signal.texi: Likewise.
47475         * doc/posix-headers/sys_types.texi: Likewise.
47476         * doc/posix-headers/time.texi: Likewise.
47478 2011-09-11  Bruno Haible  <bruno@clisp.org>
47480         acl: Fix compilation on Solaris 10 (older version).
47481         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
47482         of ACE_EVERYONE.
47483         * lib/set-mode-acl.c (qset_acl): Likewise.
47484         Reported by Christian Jullien <eligis@orange.fr>.
47486 2011-09-10  Bruno Haible  <bruno@clisp.org>
47488         iconv, unsetenv: Add support for MSVC compiler.
47489         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
47490         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
47492 2011-09-10  Bruno Haible  <bruno@clisp.org>
47494         *printf: Add support for MSVC compiler.
47495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
47496         handles the exception caused by the %n directive. When cross-compiling,
47497         guess no on native Windows.
47498         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47499         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
47500         emulate it through vsnprintf.
47501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
47502         * doc/posix-functions/dprintf.texi: Update documentation regarding
47503         MSVC 9.
47504         * doc/posix-functions/fprintf.texi: Likewise.
47505         * doc/posix-functions/printf.texi: Likewise.
47506         * doc/posix-functions/snprintf.texi: Likewise.
47507         * doc/posix-functions/sprintf.texi: Likewise.
47508         * doc/posix-functions/swprintf.texi: Likewise.
47509         * doc/posix-functions/vdprintf.texi: Likewise.
47510         * doc/posix-functions/vfprintf.texi: Likewise.
47511         * doc/posix-functions/vprintf.texi: Likewise.
47512         * doc/posix-functions/vsnprintf.texi: Likewise.
47513         * doc/posix-functions/vsprintf.texi: Likewise.
47514         * doc/glibc-functions/asprintf.texi: Likewise.
47515         * doc/glibc-functions/obstack_printf.texi: Likewise.
47516         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47517         * doc/glibc-functions/vasprintf.texi: Likewise.
47519 2011-09-10  Bruno Haible  <bruno@clisp.org>
47521         nocrash: Add support for native Windows.
47522         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
47524 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
47525             Bruno Haible  <bruno@clisp.org>
47527         absolute-header, include-next: Add support for MSVC compiler.
47528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
47529         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
47530         directory separator in #line directives.
47531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
47532         recognize also backslash as directory separator in #line directives.
47534 2011-09-08  Jim Meyering  <meyering@redhat.com>
47536         maint.mk: mark the post-release commit log with "maint: " prefix
47537         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
47538         one-line commit-log summary.
47540 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
47541             Bruno Haible  <bruno@clisp.org>
47543         Doc about crypt functions.
47544         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
47545         systems.
47546         * doc/posix-functions/encrypt.texi: Likewise.
47547         * doc/posix-functions/setkey.texi: Likewise.
47549 2011-09-08  Simon Josefsson  <simon@josefsson.org>
47551         * lib/gc.h: Fix copyright header.
47553 2011-09-07  Bruno Haible  <bruno@clisp.org>
47555         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
47556         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
47557         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
47559 2011-09-07  Bruno Haible  <bruno@clisp.org>
47561         openat: Work around compilation error with OSF/1 5.1 DTK cc.
47562         * lib/fopen.c: Use different syntax for include of <stdio.h>.
47563         * lib/freopen.c: Likewise.
47564         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
47565         * lib/lstat.c: Likewise.
47566         * lib/stat.c: Likewise.
47567         * lib/open.c: Use different syntax for include of <fcntl.h>.
47568         * lib/openat.c: Include fcntl.h again, explicitly.
47570 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
47572         parse-datetime: document the newly accepted format
47573         * doc/parse-datetime.texi (Combined date and time of day items):
47574         New section.
47576 2011-09-06  Bruno Haible  <bruno@clisp.org>
47578         acl: Fix a test failure on newer Solaris 10 with ZFS.
47579         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
47580         ENOSYS as no ACL.
47581         Reported by Jim Meyering.
47583 2011-09-06  Bruno Haible  <bruno@clisp.org>
47585         acl: Update for AIX >= 5.3 with NFS.
47586         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
47587         ENOSYS as no ACL.
47589         acl: Fix a test failure on AIX >= 5.3 with NFS.
47590         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
47591         as no ACL.
47593 2011-09-06  Bruno Haible  <bruno@clisp.org>
47595         acl: Fix a test failure on IRIX 6.5 with NFS.
47596         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
47597         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
47598         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
47599         * lib/copy-acl.c (qcopy_acl): Likewise.
47601 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
47603         openat: port to AIX 7.1 with large files
47604         AIX 7.1 does a "#define openat open64at" if large files are in use,
47605         so we can't simply #undef openat.  Use the orig_openat trick (similar
47606         to orig_open in lib/open.c) to work around the problem.  Problem
47607         reported by Kevin Brott for GNU tar, in the thread containing
47608         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
47609         * lib/openat.c (__need_system_fcntl_h): Define first.
47610         Include <fcntl.h> and <sys/types.h> before undefining.
47611         (orig_openat) [HAVE_OPENAT]: New inline function.
47612         (openat) [HAVE_OPENAT]: Do not undef.
47613         (rpl_openat): Use orig_openat, not openat.
47615 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
47616             Bruno Haible  <bruno@clisp.org>
47618         acl: Avoid errors on NonStop Kernel.
47619         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
47620         ENOTSUP errors.
47622 2011-09-05  Bruno Haible  <bruno@clisp.org>
47624         acl: Clean up Solaris code.
47625         * lib/acl-internal.h: Remove no-op #if.
47626         * lib/file-has-acl.c: Likewise.
47627         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
47628         * lib/copy-acl.c (qcopy_acl): Likewise.
47630 2011-09-05  Bruno Haible  <bruno@clisp.org>
47632         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
47633         binaries built on the original Solaris 10.
47634         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
47635         trivial.
47637 2011-09-05  Bruno Haible  <bruno@clisp.org>
47639         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
47640         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
47641         10.
47642         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
47643         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
47644         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
47645         instead of acl_get, facl_get, acl_set, facl_set.
47647 2011-09-05  Bruno Haible  <bruno@clisp.org>
47649         copy-file: Try unit tests on more file systems.
47650         * tests/test-copy-file-1.sh: New file.
47651         * tests/test-copy-file-2.sh: New file.
47652         * modules/copy-file-tests (Files): Add them.
47653         (Makefile.am): Add them to TESTS.
47655         acl: Try unit tests on more file systems.
47656         * tests/test-file-has-acl-1.sh: New file.
47657         * tests/test-file-has-acl-2.sh: New file.
47658         * tests/test-set-mode-acl-1.sh: New file.
47659         * tests/test-set-mode-acl-2.sh: New file.
47660         * tests/test-copy-acl-1.sh: New file.
47661         * tests/test-copy-acl-2.sh: New file.
47662         * modules/acl-tests (Files): Add them.
47663         (Makefile.am): Add them to TESTS.
47665 2011-09-04  Bruno Haible  <bruno@clisp.org>
47667         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
47668         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
47669         10.
47670         (OLD_ALLOW, OLD_DENY): New macros.
47671         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
47672         ACE_ACCESS_ALLOWED_ACE_TYPE.
47673         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
47674         ACE_ACCESS_DENIED_ACE_TYPE.
47675         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
47676         (NEW_ACE_EXECUTE): Fix value.
47677         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
47678         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
47679         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
47680         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
47681         NEW_ACE_SYNCHRONIZE): New macros.
47682         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
47683         instead of acl_fromtext, acl_set, facl_set.
47684         Fixes a coreutils/tests/cp/perm failure.
47686 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
47688         openat: test for fstatat (..., 0) bug
47689         Further testing with tar suggests that fstatat (..., 0)
47690         does not work in general, on AIX 7.1; see
47691         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
47692         So, give up entirely on AIX 7.1's fstatat, and fall back on our
47693         replacement fstatat (which is what older AIX releases were using
47694         anyway).
47695         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
47696         use is now changed to orig_fstatat.  This was probably the right
47697         thing to do anyway.
47698         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
47699         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
47700         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
47701         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
47702         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
47703         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
47704         if the bug is found.
47706         openat: test for fstatat (AT_FDCWD, ..., 0) bug
47707         This tests for another fstatat bug on AIX 7.1:
47708         fstatat (AT_FDCWD, ..., 0) does not work.  See
47709         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
47710         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
47711         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
47712         (rpl_fstatat): Adjust so that it works around either (or both)
47713         bugs if present.
47714         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
47716 2011-09-03  Karl Berry  <karl@gnu.org>
47718         * doc/regex.texi (Character Class Operators): Avoid literal ":"
47719         in index entries.
47721 2011-09-02  Bruno Haible  <bruno@clisp.org>
47723         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
47724         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
47725         values of AR, ARFLAGS, RANLIB.
47726         Reported by John W. Eaton <jwe@gnu.org> for Octave.
47728 2011-09-02  Bruno Haible  <bruno@clisp.org>
47730         Find 'ar' program that fits with --host argument.
47731         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
47733 2011-09-02  Bruno Haible  <bruno@clisp.org>
47735         tests: init.sh: Support any non-GNU diff.
47736         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
47737         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
47738         Solaris 8.
47740 2011-09-02  Bruno Haible  <bruno@clisp.org>
47742         tests: init.sh: work also with any non-GNU diff that supports -u
47743         * tests/init.sh: Relax check for diff -u support.
47744         Rather than checking for GNU diff via --version, simply check
47745         for support for -u itself.  Useful at least on OpenBSD 4.9,
47746         AIX 7.1, IRIX 6.5, and Solaris 10.
47748 2011-09-01  Bruno Haible  <bruno@clisp.org>
47750         strtoimax, strtoumax: Document problem on HP-UX 11.
47751         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
47752         * doc/posix-functions/strtoumax.texi: Likewise.
47754 2011-09-01  Bruno Haible  <bruno@clisp.org>
47756         strtoumax: Avoid link error on OSF/1 with DTK cc.
47757         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
47758         defined as a function.
47759         * modules/strtoumax (Depends-on, configure.ac): Test only whether
47760         strtoumax is defined, not whether it is declared.
47762 2011-09-01  Bruno Haible  <bruno@clisp.org>
47764         strtoimax: Avoid link error on OSF/1 with DTK cc.
47765         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
47766         defined as a function.
47767         * modules/strtoimax (Depends-on, configure.ac): Test only whether
47768         strtoimax is defined, not whether it is declared.
47770 2011-09-01  Bruno Haible  <bruno@clisp.org>
47772         imaxdiv: Avoid link error on OSF/1 with DTK cc.
47773         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
47774         as a function.
47775         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
47776         whether it is declared.
47778 2011-09-01  Bruno Haible  <bruno@clisp.org>
47780         imaxabs: Avoid link error on OSF/1 with DTK cc.
47781         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
47782         as a function.
47783         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
47784         whether it is declared.
47786 2011-09-01  Bruno Haible  <bruno@clisp.org>
47788         Tests for module 'strtoumax'.
47789         * modules/strtoumax-tests: New file.
47790         * tests/test-strtoumax.c: New file.
47792         Tests for module 'strtoimax'.
47793         * modules/strtoimax-tests: New file.
47794         * tests/test-strtoimax.c: New file.
47796         Tests for module 'imaxdiv'.
47797         * modules/imaxdiv-tests: New file.
47798         * tests/test-imaxdiv.c: New file.
47800         Tests for module 'imaxabs'.
47801         * modules/imaxabs-tests: New file.
47802         * tests/test-imaxabs.c: New file.
47804 2011-09-01  Bruno Haible  <bruno@clisp.org>
47806         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
47807         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
47808         pthread_create.
47810 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47812         openat: work around AIX 7.1 fstatat issue
47813         This should fix the problem that was not properly fixed
47814         in the previous change, dated 2011-08-30.
47815         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
47816         __need_system_stat_h defined.
47817         (orig_fstatat) [HAVE_FSTATAT]: New function.
47818         (rpl_fstatat): Go back to the old way of doing things,
47819         except call orig_fstatat instead of fstatat.
47820         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
47821         Remove unnecessary check whether fstatat fills in st_size etc.
47823 2011-09-01  Bruno Haible  <bruno@clisp.org>
47825         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
47826         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
47827         just include the system's header.
47829 2011-08-31  Jim Meyering  <meyering@redhat.com>
47831         tests: avoid spurious assertion failure in test-float.c on ppc64
47832         * tests/test-float.c (test_long_double): Comment out an assertion,
47833         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
47834         with gcc-4.4.4.
47836         maint: indent with spaces, not TABs
47837         I need to get in the habit of running gnulib's "make check".
47838         Both of these would have been caught.
47839         * m4/largefile.m4: Indent with spaces, not TABs.
47840         * lib/parse-datetime.y (iso_8601_time): Likewise.
47841         Spotted by Pádraig Brady.
47843         test-parse-datetime.c: accommodate a relatively strict gcc warning
47844         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
47845         to avoid a warning from gcc's -Werror=missing-declarations.
47846         Insert a few spaces-before-funcall-parenthesis.
47848 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
47850         parse-datetime: accept ISO 8601 date and time rep with "T" separator
47851         The parser now accepts ISO 8601 date-time strings with "T" as the
47852         separator.  It has long parsed dates like "2004-02-29 16:21:42"
47853         with a space between the date and time strings.  Now it also parses
47854         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
47855         variants like "2004-02-29T16:21:42.333-07:00"
47856         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
47857         of day representation using the 'T' separator character.
47858         * doc/parse-datetime.texi (General date syntax): replace use of
47859         deprecated --iso-8601 option with --rfc-3339 in example of date
47860         command output formats that can be parsed.
47861         * tests/test-parse-datetime.c (tm_diff): New function, taken from
47862         lib/parse-datetime.y.
47863         (gmt_offset): New function.
47864         (main): Add additional test cases to validate ISO8601 extended
47865         date and time of day parsing.
47867 2011-08-31  Bruno Haible  <bruno@clisp.org>
47869         freopen: Documentation.
47870         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
47871         name.
47872         Reported by Claudio Bley <claudio.bley@gmail.com>.
47874 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
47876         freopen: Don't crash if the filename argument is NULL.
47877         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
47878         NULL.
47880 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47882         openat: work around AIX 7.1 fstatat bug
47883         Problem reported by Kevin Brott for GNU tar, in the thread containing
47884         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
47885         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
47886         FSTATAT_ST_SIZE_ETC_BROKEN.
47887         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
47888         rpl_fstatat.
47889         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
47890         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
47891         AC_CHECK_FUNCS_ONCE for fstatat.
47892         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
47893         fchmodat, mkdirat, openat and unlinkat.
47895 2011-08-30  Bruno Haible  <bruno@clisp.org>
47897         Avoid endless recursions if config.h includes some header files.
47898         * lib/fopen.c (__need_FILE): Define already before including config.h.
47899         * lib/freopen.c (__need_FILE): Likewise.
47900         * lib/open.c (__need_system_fcntl_h): Likewise.
47901         * lib/stat.c (__need_system_sys_stat_h): Likewise.
47902         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
47903         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
47905 2011-08-25  Karl Berry  <karl@gnu.org>
47907         * config/srclist.txt (ylwrap): new try.
47908         * build-aux/ylwrap: new file.
47910 2011-08-23  Bruno Haible  <bruno@clisp.org>
47912         tmpdir: Use a good default directory on native Windows.
47913         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
47914         (P_tmpdir): Default to _P_tmpdir on native Windows.
47915         (path_search): On native Windows, try the value returned by GetTempPath
47916         before trying P_tmpdir.
47917         * modules/tmpdir (Depends-on): Add pathmax.
47918         Suggested by John Darrington <john@darrington.wattle.id.au>.
47920 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
47922         doc: fix typo in README-release
47923         * top/README-release: Capitalize first word of a sentence.
47925 2011-08-19  Jim Meyering  <meyering@redhat.com>
47927         fts: do not exhaust memory when processing million-entry directories
47928         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
47929         directory would require about 256*N bytes of memory.  Thus, it was
47930         easy to construct a directory too large to be processed by any of
47931         those tools.  With this change, fts' maximum memory utilization is
47932         now limited to around 30MB.
47933         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
47934         (fts_read): When we've processed the final entry (i.e., when
47935         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
47936         using the parent entry to read any remaining entries.  Dispatch
47937         depending on what fts_build returns:
47938         - NULL+stop, aka failure: stop
47939         - NULL otherwise: move up in the dir hierarchy
47940         - non-NULL: handle this new entry
47941         (fts_build): Declare and use new local, continue_readdir.
47942         Prepare to be called from fts_read, when the entries
47943         from a partially-read directory have just been exhausted.
47944         In that case, we'll skip the opendir and instead use the parent's
47945         fts_dirp and derive dir_fd from that.
47946         Finally, in the readdir loop, if we read max_entries entries,
47947         exit the loop ensuring *not* to call closedir.  This is required
47948         so that fts_dirp can be reused on a subsequent call.
47949         Prompted by Ben England's report of memory exhaustion in find
47950         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
47952         maint: fts: move decl of `dp' down into while loop; split a long line
47953         * lib/fts.c (fts_build): No semantic change.
47955         fts: add/use new struct member, fts_dirp
47956         We are about to use this to manage any directory with
47957         too many entries to read all of them into memory at once.
47958         To do that, we'll need to save the DIR* pointer in each
47959         affected FTSENT struct.
47960         * lib/fts_.h: Include <dirent.h>.
47961         (struct FTSENT) [fts_dirp]: New member.
47962         * lib/fts.c (closedir_and_clear): Define.
47963         Use it in place of closedir so that we are sure to
47964         clear the new fts_dirp member when done with it.
47965         (fts_alloc): Initialize the new member.
47966         (fts_lfree): Free, if needed.
47968         maint: fts: give __opendir2 a new parameter and rename
47969         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
47970         than surreptitiously using sole caller's "dir_fd".
47971         (fts_opendir): Rename from __opendir2.
47973         maint: fts.c: remove __opendir2's now-unused parameter, oflag
47974         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
47976         maint: fts.c: correct off-by-one indentation
47977         * lib/fts.c (fts_build): Correct indentation, change style
47978         of a couple of block comments, and bracing style.
47980         maint: fts.c: move __opendir2 #define "up" out of function body
47981         * lib/fts.c (__opendir2): Move "up".  No semantic change.
47983         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
47984         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
47985         out for a long time and besides was useful only on BSD systems.
47987 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47989         regex: port to Stratus OpenVOS
47990         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
47991         define to empty, rather than attempting nonportable optimizations.
47992         Problem reported by Paul Green in:
47993         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
47994         and fix suggested by Eric Blake in:
47995         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
47997 2011-08-17  Eric Blake  <eblake@redhat.com>
47999         getcwd: fix test failures on mingw
48000         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
48001         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
48002         test if long directory cannot be created, and allow mingw errno.
48004         getcwd-lgpl: fix m4 to match relaxed test for BSD
48005         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
48006         (gl_FUNC_GETCWD_SIGNATURE): New macro.
48007         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
48008         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
48009         signature problem.
48011         getcwd: fix compilation on mingw64
48012         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
48013         getcwd.
48014         Reported by Marc-André Lureau.
48016         pipe2: silence compiler warning
48017         * lib/pipe2.c (pipe2): Hide label if it is not used.
48019 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
48021         relocatable-prog: fix link error
48022         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
48023         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
48024         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
48025         into modules/relocatable-lib without noticing that
48026         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
48027         also needs to build relocatable.c.
48029 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48031         getaddrinfo: fix sh typo in gai_strerrorA decl checking
48032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
48033         shell code: it contained a 'break' that was not in a loop.
48034         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
48035         via a shell-language loop; this may have been true in old Autoconf
48036         versions, but it's not true in Autoconf 2.68.  I found this bug
48037         when testing coreutils git on Solaris 8, whose shell complains
48038         about the syntax error.
48040 2011-08-12  Simon Josefsson  <simon@josefsson.org>
48042         * lib/base64.c: Fix comment to reference RFC 4648.
48043         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
48044         <gvtulder@gmail.com>.
48046 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48048         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
48050         po/Makefile.in.in: fix make -q problem
48051         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
48052         rule, since there's no file named 'check-macro-version' and its
48053         use as a file breaks make -q.
48054         (all): Don't depend on check-macro-version.
48055         (CHECK_MACRO_VERSION): New macro.
48056         (stamp-po): Use it.
48058         configmake: fix make -q problem
48059         * modules/configmake (configmake.h): Update configmake.h's time stamp
48060         even if the file does not change.  Otherwise, 'make -q' fails.
48061         Problem reported by Simon Josefsson in
48062         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
48064 2011-08-11  Jim Meyering  <meyering@redhat.com>
48066         git-version-gen: correct the advice in a comment
48067         * build-aux/git-version-gen: Correct comment.
48068         Don't recommend to list .tarball-version in .gitignore.
48070 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48072         base64: fix off-by-one buffer size bug
48073         Problem and (trivial) fix reported by Gijs van Tulder in
48074         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
48075         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
48076         * tests/test-base64.c (main): Catch the bug.
48078 2011-08-10  Eric Blake  <eblake@redhat.com>
48080         closein: correct comments
48081         * lib/closein.c (close_stdin): Improve comments.
48083 2011-08-09  Bruno Haible  <bruno@clisp.org>
48085         More tests for 'fseeko'.
48086         * tests/test-fseeko3.c: New file, from Eric Blake.
48087         * tests/test-fseeko3.sh: New file.
48088         * modules/fseeko-tests (Files): Add them.
48089         (TESTS): Add test-fseeko3.sh.
48090         (check_PROGRAMS): Add test-fseeko3.
48092 2011-08-09  Eric Blake  <eblake@redhat.com>
48094         fseeko: remove unneeded hack
48095         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
48097         fseeko: fix bug on glibc
48098         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
48099         Reported by John W. Eaton.
48101 2011-08-08  Bruno Haible  <bruno@clisp.org>
48103         unictype/base: Fix interoperability with preinstalled libunistring.
48104         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
48105         Reported by Simon Josefsson.
48107 2011-08-08  Bruno Haible  <bruno@clisp.org>
48109         iswblank: Detect declaration correctly.
48110         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
48111         AC_CHECK_DECLS invocation.
48113 2011-08-08  Bruno Haible  <bruno@clisp.org>
48115         tcgetsid: Detect declaration correctly.
48116         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
48117         AC_CHECK_DECLS invocation.
48118         Reported by Simon Josefsson.
48120 2011-08-08  Eric Blake  <eblake@redhat.com>
48122         largefile: fix typo that regressed large file support
48123         * modules/largefile (configure.ac-early): Fix section name.
48125 2011-08-06  Karl Berry  <karl@gnu.org>
48127         * MODULES.html.sh (func_all_files): _Noreturn is no longer
48128         a separate module.
48130 2011-08-05  Simon Josefsson  <simon@josefsson.org>
48132         openat: Fix warnings and commens when building unlinkat.c on Hurd.
48133         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
48134         get prototype for free.
48136 2011-08-04  Bruno Haible  <bruno@clisp.org>
48138         Tests for module 'pathmax'.
48139         * modules/pathmax-tests: New file.
48140         * tests/test-pathmax.c: New file.
48142         canonicalize-lgpl: Support larger filenames on the Hurd.
48143         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
48144         Reported by Paul Eggert.
48146         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
48147         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
48148         * lib/chdir-long.h: Include pathmax.h.
48149         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
48150         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
48151         (PATH_MAX): Remove code that is done by pathmax.h.
48152         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
48153         * lib/tmpfile.c: Add a comment.
48154         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
48155         * modules/chdir-long (Depends-on): Add pathmax.
48156         * modules/getcwd (Depends-on): Add pathmax.
48157         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
48158         is not defined.
48159         * doc/posix-headers/limits.texi: Mention the pathmax module.
48160         * NEWS: Mention the change.
48162 2011-08-02  Bruno Haible  <bruno@clisp.org>
48164         pthread_sigmask: Actually use results of gl_THREADLIB.
48165         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
48166         gl_THREADLIB, not gl_[]THREADLIB.
48167         Reported by Eric Blake.
48169 2011-08-02  Jim Meyering  <meyering@redhat.com>
48171         maint.mk: relax the default _gl_TS_function_match regexp
48172         * top/maint.mk (_gl_TS_function_match): Don't require at least one
48173         space between function name and "(" in an "extern" declaration.
48174         That would fail to match a decl with no space there: extern void foo();
48176 2011-07-31  Iain Nicol  <iain@thenicols.net>
48178         git-version-gen: document that EXTRA_DIST must include .version
48179         * build-aux/git-version-gen: In the how-to-use comment, document
48180         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
48181         will fail when run from an unpacked distribution tarball.
48183 2011-08-01  Bruno Haible  <bruno@clisp.org>
48185         wctype-h: Fix last change.
48186         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
48187         REPLACE_TOWLOWER to 0.
48188         Reported by Sam Steingold <sds@gnu.org>.
48190 2011-07-31  Bruno Haible  <bruno@clisp.org>
48192         frexpl: Update autoconf test.
48193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
48194         according to changes of 2011-06-20.
48196 2011-07-31  Bruno Haible  <bruno@clisp.org>
48198         sys_utsname: Add support for Minix.
48199         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
48200         <sys/utsname.h>.
48201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48202         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
48204 2011-07-31  Bruno Haible  <bruno@clisp.org>
48206         strings: Add support for Minix.
48207         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
48208         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
48209         * doc/posix-headers/strings.texi: Document the Minix problem.
48211 2011-07-31  Bruno Haible  <bruno@clisp.org>
48213         wctype-h: Add support for Minix.
48214         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
48215         REPLACE_TOWLOWER.
48216         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
48217         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
48218         REPLACE_ISWCNTRL.
48220 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
48222         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
48223         This is a performance improvement for 64-bit hosts: it causes the
48224         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
48226 2011-07-31  Bruno Haible  <bruno@clisp.org>
48228         stdioext: Add support for Minix.
48229         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
48230         * lib/fpurge.c (fpurge): Likewise.
48231         * lib/freadahead.c (freadahead): Likewise.
48232         * lib/freadable.c (freadable): Likewise.
48233         * lib/freading.c (freading): Likewise.
48234         * lib/freadptr.c (freadptr): Likewise.
48235         * lib/freadseek.c (freadptrinc): Likewise.
48236         * lib/fseeko.c (rpl_fseeko): Likewise.
48237         * lib/fseterr.c (fseterr): Likewise.
48238         * lib/fwritable.c (fwritable): Likewise.
48239         * lib/fwriting.c (fwriting): Likewise.
48240         * lib/fflush.c (clear_ungetc_buffer): Update comment.
48241         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
48243 2011-07-31  Bruno Haible  <bruno@clisp.org>
48245         errno: Port to Minix.
48246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
48247         ECONNABORTED are defined.
48248         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
48249         GNULIB_defined_ECONNABORTED): New macros.
48250         * lib/strerror-override.h (strerror_override): Test also
48251         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
48252         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
48253         ECONNABORTED.
48254         * doc/posix-headers/errno.texi: Mention the Minix problem.
48256 2011-07-31  Bruno Haible  <bruno@clisp.org>
48258         Work around declaration collisions on Minix.
48259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
48260         defined, set REPLACE_MBSINIT.
48261         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
48262         defined, set REPLACE_MBRTOWC.
48263         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
48264         set REPLACE_MBRLEN.
48265         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
48266         defined, set REPLACE_MBSRTOWCS.
48267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
48268         defined, set REPLACE_WCRTOMB.
48269         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
48270         defined, set REPLACE_WCSRTOMBS.
48272 2011-07-31  Bruno Haible  <bruno@clisp.org>
48274         Add support for Minix with ACK compiler.
48275         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
48276         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
48277         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
48279 2011-07-31  Bruno Haible  <bruno@clisp.org>
48281         Documentation about Minix.
48282         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
48283         * doc/glibc-headers/*.texi: Likewise.
48284         * doc/posix-functions/*.texi: Likewise.
48285         * doc/glibc-functions/*.texi: Likewise.
48287 2011-07-31  Bruno Haible  <bruno@clisp.org>
48289         snippet/warn-on-use: Fix indentation.
48290         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
48292 2011-07-25  Jim Meyering  <meyering@redhat.com>
48294         tests: test-update-copyright.sh: remove unnecessary "rm" commands
48295         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
48296         commands.
48298 2011-07-27  Jim Meyering  <meyering@redhat.com>
48300         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
48301         * top/maint.mk (gl_extract_significant_defines_): Now that
48302         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
48303         gnulib/lib/signal.in.h, and now that we recommend to
48304         define-if-undefined those two symbols in application code,
48305         we must filter them out of the "significant" list.
48306         This avoids a "make syntax-check" failure in coreutils.
48308 2011-07-26  Eric Blake  <eblake@redhat.com>
48310         warnings: add comments about previous patch
48311         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
48312         * m4/include_next.m4: Likewise.
48313         * m4/warn-on-use.m4: Likewise.
48314         * m4/warnings.m4: Likewise, and simplify use.
48315         Suggested by Stefano Lattarini.
48317         include-next, warnings: support older autoconf
48318         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
48319         AS_VAR_PUSHDEF in a way that works with older autoconf.
48320         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
48321         Reported by Daniel P. Berrange.
48323 2011-07-25  Bruno Haible  <bruno@clisp.org>
48325         fseek, ftell: Fix doc.
48326         * doc/posix-functions/fseek.texi: Reword statement about
48327         AC_SYS_LARGEFILE.
48328         * doc/posix-functions/ftell.texi: Likewise.
48330 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48331             Bruno Haible  <bruno@clisp.org>
48333         Add dependencies to the 'largefile' module.
48334         * modules/fopen (Depends-on): Add 'largefile'.
48335         * modules/freopen (Depends-on): Likewise.
48336         * modules/fseeko (Depends-on): Likewise.
48337         * modules/ftello (Depends-on): Likewise.
48338         * modules/glob (Depends-on): Likewise.
48339         * modules/lseek (Depends-on): Likewise.
48340         * modules/lstat (Depends-on): Likewise.
48341         * modules/mkostemp (Depends-on): Likewise.
48342         * modules/mkostemps (Depends-on): Likewise.
48343         * modules/mkstemp (Depends-on): Likewise.
48344         * modules/mkstemps (Depends-on): Likewise.
48345         * modules/open (Depends-on): Likewise.
48346         * modules/openat (Depends-on): Likewise.
48347         * modules/pread (Depends-on): Likewise.
48348         * modules/pwrite (Depends-on): Likewise.
48349         * modules/scandir (Depends-on): Likewise.
48350         * modules/stat (Depends-on): Likewise.
48351         * modules/tmpfile (Depends-on): Likewise.
48352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
48353         since the containing module now depends on the largefile module.
48354         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
48355         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
48356         off_t is fixed by gnulib.
48357         * doc/posix-functions/freopen.texi: Likewise.
48358         * doc/posix-functions/fseeko.texi: Likewise.
48359         * doc/posix-functions/fstatat.texi: Likewise.
48360         * doc/posix-functions/ftello.texi: Likewise.
48361         * doc/posix-functions/glob.texi: Likewise.
48362         * doc/posix-functions/lseek.texi: Likewise.
48363         * doc/posix-functions/lstat.texi: Likewise.
48364         * doc/posix-functions/mkstemp.texi: Likewise.
48365         * doc/posix-functions/open.texi: Likewise.
48366         * doc/posix-functions/openat.texi: Likewise.
48367         * doc/posix-functions/pread.texi: Likewise.
48368         * doc/posix-functions/pwrite.texi: Likewise.
48369         * doc/posix-functions/scandir.texi: Likewise.
48370         * doc/posix-functions/stat.texi: Likewise.
48371         * doc/posix-functions/tmpfile.texi: Likewise.
48372         * doc/glibc-functions/mkostemp.texi: Likewise.
48373         * doc/glibc-functions/mkostemps.texi: Likewise.
48374         * doc/glibc-functions/mkstemps.texi: Likewise.
48376 2011-07-25  Bruno Haible  <bruno@clisp.org>
48378         fcntl: Move AC_LIBOBJ invocation to module description.
48379         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
48380         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
48382         fcntl: Remove call-in from fchdir.m4.
48383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
48384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
48386         dup3: Remove potential call-in from fchdir.m4.
48387         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
48388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
48390         dup2: Move AC_LIBOBJ invocation to module description.
48391         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
48392         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
48393         Don't invoke AC_LIBOBJ.
48394         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
48396         dup2: Remove call-in from fchdir.m4.
48397         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
48398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
48400         fclose: Move AC_LIBOBJ invocation to module description.
48401         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
48402         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
48403         to 1.
48404         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
48406         fclose: Remove call-in from close.m4.
48407         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
48408         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
48410         close: Move AC_LIBOBJ invocation to module description.
48411         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
48412         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
48413         1.
48414         * modules/close (configure.ac): Invoke AC_LIBOBJ.
48416         close: Remove call-in from fchdir.m4.
48417         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
48418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
48420         open: Move AC_LIBOBJ invocation to module description.
48421         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
48422         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
48423         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
48425         open: Remove call-in from fchdir.m4.
48426         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
48427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
48429         fchdir: Start to remove gl_REPLACE_* idiom.
48430         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
48431         (gl_FUNC_FCHDIR): Invoke it.
48433 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48435         * lib/ftell.c (ftell): Comment out cast.
48437         close: use gl_REPLACE_FCLOSE only if defined
48438         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
48439         is defined.  The close module doesn't depend on the fclose module
48440         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
48441         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
48442         I reproduced the problem with "./gnulib-tool --test close sys_socket".
48444 2011-07-24  Jim Meyering  <meyering@redhat.com>
48446         test-select.h: avoid warning when using gcc's -Wmissing-declarations
48447         * tests/test-select.h (test_function): Declare as "static".
48449 2011-07-24  Bruno Haible  <bruno@clisp.org>
48451         doc: Mention the effects of AC_SYS_LARGEFILE.
48452         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
48453         on this function.
48454         * doc/posix-functions/aio_error.texi: Likewise.
48455         * doc/posix-functions/aio_fsync.texi: Likewise.
48456         * doc/posix-functions/aio_read.texi: Likewise.
48457         * doc/posix-functions/aio_return.texi: Likewise.
48458         * doc/posix-functions/aio_suspend.texi: Likewise.
48459         * doc/posix-functions/aio_write.texi: Likewise.
48460         * doc/posix-functions/fgetpos.texi: Likewise.
48461         * doc/posix-functions/fopen.texi: Likewise.
48462         * doc/posix-functions/freopen.texi: Likewise.
48463         * doc/posix-functions/fsetpos.texi: Likewise.
48464         * doc/posix-functions/fstatvfs.texi: Likewise.
48465         * doc/posix-functions/ftruncate.texi: Likewise.
48466         * doc/posix-functions/ftw.texi: Likewise.
48467         * doc/posix-functions/getrlimit.texi: Likewise.
48468         * doc/posix-functions/glob.texi: Likewise.
48469         * doc/posix-functions/lio_listio.texi: Likewise.
48470         * doc/posix-functions/lockf.texi: Likewise.
48471         * doc/posix-functions/mkstemp.texi: Likewise.
48472         * doc/posix-functions/mmap.texi: Likewise.
48473         * doc/posix-functions/nftw.texi: Likewise.
48474         * doc/posix-functions/openat.texi: Likewise.
48475         * doc/posix-functions/opendir.texi: Likewise.
48476         * doc/posix-functions/posix_fadvise.texi: Likewise.
48477         * doc/posix-functions/posix_fallocate.texi: Likewise.
48478         * doc/posix-functions/pread.texi: Likewise.
48479         * doc/posix-functions/pwrite.texi: Likewise.
48480         * doc/posix-functions/readdir.texi: Likewise.
48481         * doc/posix-functions/readdir_r.texi: Likewise.
48482         * doc/posix-functions/rewinddir.texi: Likewise.
48483         * doc/posix-functions/scandir.texi: Likewise.
48484         * doc/posix-functions/seekdir.texi: Likewise.
48485         * doc/posix-functions/setrlimit.texi: Likewise.
48486         * doc/posix-functions/statvfs.texi: Likewise.
48487         * doc/posix-functions/telldir.texi: Likewise.
48488         * doc/posix-functions/tmpfile.texi: Likewise.
48489         * doc/posix-functions/truncate.texi: Likewise.
48490         * doc/glibc-functions/fallocate.texi: Likewise.
48491         * doc/glibc-functions/fstatfs.texi: Likewise.
48492         * doc/glibc-functions/fts_children.texi: Likewise.
48493         * doc/glibc-functions/fts_read.texi: Likewise.
48494         * doc/glibc-functions/getdirentries.texi: Likewise.
48495         * doc/glibc-functions/mkostemp.texi: Likewise.
48496         * doc/glibc-functions/mkostemps.texi: Likewise.
48497         * doc/glibc-functions/mkstemps.texi: Likewise.
48498         * doc/glibc-functions/preadv.texi: Likewise.
48499         * doc/glibc-functions/pwritev.texi: Likewise.
48500         * doc/glibc-functions/sendfile.texi: Likewise.
48501         * doc/glibc-functions/statfs.texi: Likewise.
48503 2011-07-24  Bruno Haible  <bruno@clisp.org>
48505         doc: Fix typo.
48506         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
48508 2011-07-24  Bruno Haible  <bruno@clisp.org>
48510         doc: Mention fsusage.
48511         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
48513 2011-07-24  Bruno Haible  <bruno@clisp.org>
48515         doc: Mention new glibc headers and functions.
48516         * doc/glibc-headers/gshadow.texi: New file.
48517         * doc/glibc-functions/endsgent.texi: New file.
48518         * doc/glibc-functions/fgetsgent.texi: New file.
48519         * doc/glibc-functions/fgetsgent_r.texi: New file.
48520         * doc/glibc-functions/getsgent.texi: New file.
48521         * doc/glibc-functions/getsgent_r.texi: New file.
48522         * doc/glibc-functions/getsgnam.texi: New file.
48523         * doc/glibc-functions/getsgnam_r.texi: New file.
48524         * doc/glibc-functions/putsgent.texi: New file.
48525         * doc/glibc-functions/setsgent.texi: New file.
48526         * doc/glibc-functions/sgetsgent.texi: New file.
48527         * doc/glibc-functions/sgetsgent_r.texi: New file.
48528         * doc/glibc-functions/malloc_info.texi: New file.
48529         * doc/glibc-functions/preadv.texi: New file.
48530         * doc/glibc-functions/pwritev.texi: New file.
48531         * doc/glibc-functions/register_printf_modifier.texi: New file.
48532         * doc/glibc-functions/register_printf_specifier.texi: New file.
48533         * doc/glibc-functions/register_printf_type.texi: New file.
48534         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
48535         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
48536         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
48537         * doc/glibc-functions/pthread_getname_np.texi: New file.
48538         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
48539         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
48540         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
48541         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
48542         * doc/glibc-functions/pthread_setname_np.texi: New file.
48543         * doc/glibc-functions/pthread_sigqueue.texi: New file.
48544         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
48545         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
48546         * doc/glibc-functions/qsort_r.texi: New file.
48547         * doc/glibc-functions/quick_exit.texi: New file.
48548         * doc/glibc-functions/syncfs.texi: New file.
48549         * doc/gnulib.texi: Include them.
48550         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
48551         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
48552         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
48553         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
48554         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
48555         * doc/glibc-functions/execvpe.texi: Likewise.
48557 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48559         ftell: don't include <unistd.h>
48560         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
48561         guaranteed to define off_t, and the ftell module depends on the
48562         stdio module.
48564         ftell: do not assume wraparound signed arithmetic
48565         * lib/ftell.c: Include <limits.h>.
48566         (ftell): Don't assume wraparound signed arithmetic.
48568 2011-07-24  Bruno Haible  <bruno@clisp.org>
48570         close: No longer depend on module 'fclose'.
48571         * modules/close (Depends-on): Remove fclose.
48572         * NEWS: Mention the change.
48573         Suggested by Sam Steingold <sds@gnu.org>.
48575 2011-07-24  Bruno Haible  <bruno@clisp.org>
48577         fsusage: Enable large volume support on AIX >= 5.2.
48578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
48579         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
48580         instead of STAT_STATVFS.
48581         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
48583         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
48584         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
48585         f_blocks field only on MacOS X.
48587         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
48588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
48589         * modules/fsusage (Depends-on): Add largefile.
48591 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48593         * README: Modernize discussion of signed integers.
48594         Assuming overflow wraparound is no longer safe.
48595         Mention ones' complement and signed magnitude.
48597 2011-07-22  Bruno Haible  <bruno@clisp.org>
48599         select tests, pselect tests: Refactor.
48600         * tests/test-select.h: New file, extracted from tests/test-select.c.
48601         (select_fn): New type.
48602         (test, do_select, do_select_nowait, do_select_wait, test_tty,
48603         test_connect_first, test_accept_first, test_pair, test_socket_pair,
48604         test_pipe): Add my_select argument.
48605         (test_function): Renamed from main. Add my_select argument.
48606         * tests/test-select.c: Move most code to tests/test-select.h. Include
48607         test-select.h.
48608         * modules/select-tests (Files): Add tests/test-select.h.
48609         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
48610         (my_select, main): New functions.
48611         * modules/pselect-tests (Files): Add tests/test-select.h,
48612         tests/macros.h, tests/signature.h.
48613         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
48614         (configure.ac): Check for <sys/wait.h>.
48616 2011-07-22  Bruno Haible  <bruno@clisp.org>
48618         sys_select tests: Check the signature of FD_*.
48619         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
48620         signature tests from here...
48621         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
48622         here.
48623         * modules/sys_select-tests (Files): Add tests/signature.h.
48625 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48627         largefile: new module, replacing large-inode
48628         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
48629         * MODULES.html.sh: Add largefile, remove large-inode.
48630         * modules/largefile, m4/largefile.m4: New files.
48631         * modules/large-inode, m4/large-inode.m4: Remove.
48633         fsusage: port to MacOS X 10.7 with 4 TiB file systems
48634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
48635         implementations that use only 32 bits to count blocks.
48636         On typical hosts with 1024-byte blocks, this fails with file
48637         systems as small as 4 TiB.  Problem reported by Herb Wartens
48638         <http://debbugs.gnu.org/9140> and this should also fix a similar
48639         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
48641         large-inode: New module
48642         * MODULES.html.sh: Add it.
48643         * modules/large-inode, m4/large-inode.m4: New files.
48645         extensions: Enable extensions on MacOS X 10.5 and later.
48646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
48648 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
48650         file-has-acl: use acl_extended_file_nofollow if available
48651         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
48652         (acl_extended_file): New macro.
48653         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
48654         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
48656 2011-07-21  Bruno Haible  <bruno@clisp.org>
48658         Declare system functions in a way that works with C++.
48659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
48660         declare fdopendir as extern "C".
48661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
48662         declare frexpl as extern "C".
48663         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
48664         declare gai_strerror as extern "C".
48665         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
48666         programs, declare gai_strerror as extern "C".
48667         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
48668         declare getlogin_r as extern "C".
48669         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
48670         as extern "C".
48671         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
48672         declare ldexpl as extern "C".
48673         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
48674         as extern "C".
48675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
48676         program, declare getmntinfo as extern "C".
48677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
48678         stpncpy as extern "C".
48679         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
48680         program, declare __xpg_strerror_r as extern "C".
48681         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
48682         strndup as extern "C".
48683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
48684         declare memset and bzero as extern "C".
48685         Reported by Sam Steingold <sds@gnu.org>.
48687 2011-07-12  Jim Meyering  <meyering@redhat.com>
48689         maint.mk: prohibit inclusion of "verify.h" without use
48690         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
48692 2011-07-19  Pádraig Brady  <P@draigBrady.com>
48694         timer-time: A new module to check for timer_settime()
48695         * m4/timer_time.m4: Check for the posix function.
48696         * modules/timer-time: Add the new module.
48697         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
48698         Mention it.
48700 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
48701             Bruno Haible  <bruno@clisp.org>
48703         pthread_sigmask: assume POSIX threads if --avoid=threadlib
48704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
48705         not defined, assume POSIX threads and look for pthread_sigmask in
48706         $LIBS, without changing $CPPFLAGS.
48708 2011-07-19  Bruno Haible  <bruno@clisp.org>
48710         strstr: Update cross-compilation guess.
48711         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
48712         CPUs, guess no, in view of glibc
48713         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
48714         Suggested by Eric Blake. Reported by Reuben Thomas.
48716 2011-07-19  Pádraig Brady  <P@draigBrady.com>
48718         getopt-gnu: suppress core dumps from detection code
48719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
48720         to suppress core dumps that may well occur on glibc systems.
48721         * modules/getopt-gnu: Depend on nocrash.
48723 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48725         pthread_sigmask: ensure usleep is declared
48726         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
48727         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
48729 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48731         doc: Document NonStop portability issues.
48732         * doc/posix-functions/sigaction.texi (sigaction):
48733         * doc/posix-headers/signal.texi (signal.h):
48734         Document NonStop.  See Joachim Schmitz in
48735         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
48737 2011-07-15  Bruno Haible  <bruno@clisp.org>
48739         ffsl, ffsll: Avoid unportable behaviour.
48740         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
48742 2011-07-15  Bruno Haible  <bruno@clisp.org>
48744         ffs: More tests.
48745         * tests/test-ffs.c (NBITS): New macro.
48746         (main): Add more tests.
48747         * tests/test-ffsl.c (NBITS): New macro.
48748         (main): Add more tests.
48749         * tests/test-ffsll.c (NBITS): New macro.
48750         (main): Add more tests.
48752 2011-07-15  Eric Blake  <eblake@redhat.com>
48754         ffsl, ffsll: new modules
48755         * modules/ffsl: New file.
48756         * modules/ffsll: Likewise.
48757         * m4/ffsl.m4: Likewise.
48758         * m4/ffsll.m4: Likewise.
48759         * lib/ffsl.c: Likewise.
48760         * lib/ffsl.h: Likewise.
48761         * lib/ffsll.c: Likewise.
48762         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
48763         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
48764         * modules/string (Makefile.am): Substitute witnesses.
48765         * lib/strings.in.h (ffsl, ffsll): Declare.
48766         * modules/ffsl-tests: New test file.
48767         * modules/ffsll-tests: Likewise.
48768         * tests/test-ffsl.c: Likewise.
48769         * tests/test-ffsll.c: Likewise.
48770         * MODULES.html.sh (Integer arithmetic functions): Mention it.
48771         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
48772         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
48774         ffs: fix m4 prerequisite
48775         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
48777         ffs: avoid undefined behavior
48778         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
48779         * tests/test-ffs.c (naive, main): Avoid signed shifts.
48780         Reported by Bruno Haible.
48782 2011-07-12  Bruno Haible  <bruno@clisp.org>
48784         pthread_sigmask: Rely on module 'threadlib'.
48785         * modules/pthread_sigmask (Depends-on): Add threadlib.
48786         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
48787         is defined.
48789 2011-07-12  Bruno Haible  <bruno@clisp.org>
48791         regex: Depend on module 'strcase'.
48792         * modules/regex (Depends-on): Add strcase, for strcasecmp().
48794 2011-07-12  Jim Meyering  <meyering@redhat.com>
48796         warn-on-use: fix typo in file name
48797         * modules/snippet/warn-on-use (Files): Correct file name:
48798         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
48800 2011-07-12  Bruno Haible  <bruno@clisp.org>
48802         strings: Document module.
48803         * doc/posix-headers/strings.texi: Mention module 'strings'.
48805 2011-07-12  Bruno Haible  <bruno@clisp.org>
48807         Rename module '_Noreturn' to 'snippet/_Noreturn'.
48808         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
48809         (Files, Makefile.am): Update.
48810         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
48811         * modules/stdlib (Depends-on): Update.
48813 2011-07-12  Bruno Haible  <bruno@clisp.org>
48815         * NEWS: Mention the changes.
48817         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
48818         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
48819         (Files, Makefile.am): Update.
48820         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
48821         * modules/arpa_inet (Depends-on): Update.
48822         * modules/ctype (Depends-on): Update.
48823         * modules/dirent (Depends-on): Update.
48824         * modules/fcntl-h (Depends-on): Update.
48825         * modules/glob (Depends-on): Update.
48826         * modules/iconv-h (Depends-on): Update.
48827         * modules/inttypes-incomplete (Depends-on): Update.
48828         * modules/langinfo (Depends-on): Update.
48829         * modules/locale (Depends-on): Update.
48830         * modules/math (Depends-on): Update.
48831         * modules/netdb (Depends-on): Update.
48832         * modules/poll-h (Depends-on): Update.
48833         * modules/pty (Depends-on): Update.
48834         * modules/search (Depends-on): Update.
48835         * modules/signal (Depends-on): Update.
48836         * modules/spawn (Depends-on): Update.
48837         * modules/stdio (Depends-on): Update.
48838         * modules/stdlib (Depends-on): Update.
48839         * modules/string (Depends-on): Update.
48840         * modules/strings (Depends-on): Update.
48841         * modules/sys_file (Depends-on): Update.
48842         * modules/sys_ioctl (Depends-on): Update.
48843         * modules/sys_select (Depends-on): Update.
48844         * modules/sys_socket (Depends-on): Update.
48845         * modules/sys_stat (Depends-on): Update.
48846         * modules/sys_time (Depends-on): Update.
48847         * modules/sys_times (Depends-on): Update.
48848         * modules/sys_utsname (Depends-on): Update.
48849         * modules/sys_wait (Depends-on): Update.
48850         * modules/termios (Depends-on): Update.
48851         * modules/time (Depends-on): Update.
48852         * modules/unistd (Depends-on): Update.
48853         * modules/wchar (Depends-on): Update.
48854         * modules/wctype-h (Depends-on): Update.
48855         * MODULES.html.sh (Support for building libraries and executables):
48856         Update.
48858         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
48859         * modules/snippet/unused-parameter: Renamed from
48860         modules/unused-parameter.
48861         (Files, Makefile.am): Update.
48862         * build-aux/snippet/unused-parameter.h: Renamed from
48863         build-aux/unused-parameter.h.
48864         * modules/selinux-h (Depends-on): Update.
48865         * modules/unistr/base (Depends-on): Update.
48866         * MODULES.html.sh (Core language properties): Update.
48868         Rename module 'link-warning' to 'snippet/link-warning'.
48869         * modules/snippet/link-warning: Renamed from modules/link-warning.
48870         (Files, Makefile.am): Update.
48871         * build-aux/snippet/link-warning.h: Renamed from
48872         build-aux/link-warning.h.
48873         * MODULES.html.sh (Support for building libraries and executables):
48874         Update.
48876         Rename module 'c++defs' to 'snippet/c++defs'.
48877         * modules/snippet/c++defs: Renamed from modules/c++defs.
48878         (Files, Makefile.am): Update.
48879         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
48880         * modules/arpa_inet (Depends-on): Update.
48881         * modules/ctype (Depends-on): Update.
48882         * modules/dirent (Depends-on): Update.
48883         * modules/fcntl-h (Depends-on): Update.
48884         * modules/glob (Depends-on): Update.
48885         * modules/iconv-h (Depends-on): Update.
48886         * modules/langinfo (Depends-on): Update.
48887         * modules/locale (Depends-on): Update.
48888         * modules/math (Depends-on): Update.
48889         * modules/netdb (Depends-on): Update.
48890         * modules/poll-h (Depends-on): Update.
48891         * modules/pty (Depends-on): Update.
48892         * modules/search (Depends-on): Update.
48893         * modules/signal (Depends-on): Update.
48894         * modules/spawn (Depends-on): Update.
48895         * modules/stdio (Depends-on): Update.
48896         * modules/stdlib (Depends-on): Update.
48897         * modules/string (Depends-on): Update.
48898         * modules/strings (Depends-on): Update.
48899         * modules/sys_ioctl (Depends-on): Update.
48900         * modules/sys_select (Depends-on): Update.
48901         * modules/sys_socket (Depends-on): Update.
48902         * modules/sys_stat (Depends-on): Update.
48903         * modules/sys_time (Depends-on): Update.
48904         * modules/sys_wait (Depends-on): Update.
48905         * modules/termios (Depends-on): Update.
48906         * modules/time (Depends-on): Update.
48907         * modules/unistd (Depends-on): Update.
48908         * modules/wchar (Depends-on): Update.
48909         * modules/wctype-h (Depends-on): Update.
48911         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
48912         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
48913         (Files, Makefile.am): Update.
48914         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
48915         * modules/argv-iter (Depends-on): Update.
48916         * modules/arpa_inet (Depends-on): Update.
48917         * modules/dirent (Depends-on): Update.
48918         * modules/fcntl-h (Depends-on): Update.
48919         * modules/fnmatch (Depends-on): Update.
48920         * modules/getopt-posix (Depends-on): Update.
48921         * modules/glob (Depends-on): Update.
48922         * modules/iconv-h (Depends-on): Update.
48923         * modules/inttypes-incomplete (Depends-on): Update.
48924         * modules/locale (Depends-on): Update.
48925         * modules/math (Depends-on): Update.
48926         * modules/netdb (Depends-on): Update.
48927         * modules/search (Depends-on): Update.
48928         * modules/signal (Depends-on): Update.
48929         * modules/spawn (Depends-on): Update.
48930         * modules/stdio (Depends-on): Update.
48931         * modules/stdlib (Depends-on): Update.
48932         * modules/string (Depends-on): Update.
48933         * modules/strings (Depends-on): Update.
48934         * modules/sys_socket (Depends-on): Update.
48935         * modules/sys_stat (Depends-on): Update.
48936         * modules/sys_time (Depends-on): Update.
48937         * modules/sys_times (Depends-on): Update.
48938         * modules/sys_utsname (Depends-on): Update.
48939         * modules/time (Depends-on): Update.
48940         * modules/unistd (Depends-on): Update.
48941         * modules/wchar (Depends-on): Update.
48942         * MODULES.html.sh (Support for building libraries and executables):
48943         Update.
48945 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
48947         Improvements on _Noreturn and related modules.
48949         modules/_Exit-tests: test _Noreturn too
48950         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
48951         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
48952         (main): Use them.
48954         stdnoreturn, stdnoreturn-tests: remove modules
48955         They're not needed here and a bit premature for use elsewhere.  See
48956         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
48957         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
48958         * tests/test-stdnoreturn.c: Remove files.
48959         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
48960         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
48961         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
48962         and using noreturn.
48963         * modules/openat, modules/sigpipe-die, modules/xalloc:
48964         * modules/xmemdup0, modules/xstrtol:
48965         Remove dependency on stdnoreturn.
48967         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
48968         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
48969         Reparenthesize to avoid GCC warning.
48970         Support Microsoft's syntax.
48971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
48973         _Noreturn-tests: remove module
48974         * modules/_Noreturn-tests: Remove.
48975         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
48976         * tests/test-_Noreturn.c: Remove.
48977         * tests/test-stdnoreturn.c: Merge from the old
48978         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
48980 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
48982         _Noreturn, stdnoreturn, and related modules.
48984         * top/maint.mk: Adjust to new noreturn support.
48985         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
48986         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
48988         xalloc: use stdnoreturn.h
48989         * lib/xalloc.h: Include <stdnoreturn.h>.
48990         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48991         * modules/xalloc (Depends-on): Add stdnoreturn.
48993         xstrtol: use stdnoreturn.h
48994         * lib/xstrtol.h: Include <stdnoreturn.h>.
48995         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48996         * modules/xstrtol (Depends-on): Add stdnoreturn.
48998         xmemdup0: use stdnoreturn.h
48999         * lib/xmemdup0.h: Include <stdnoreturn.h>.
49000         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49001         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
49003         sigpipe-die: use stdnoreturn.h
49004         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
49005         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49006         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
49008         openat: use stdnoreturn.h
49009         * lib/openat.h: Include <stdnoreturn.h>.
49010         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49011         * modules/openat (Depends-on): Add stdnoreturn.
49013         * lib/openat-die.c (openat_save_fail): Modernize comment.
49015         * lib/xalloc-die.c (xalloc_die): Modernize comment.
49017         * lib/glthread/thread.h: Modernize comment.
49019         obstack: use _Noreturn
49020         * lib/obstack.c (__attribute__): Remove macro.
49021         (print_and_abort): Use _Noreturn.
49023         c-stack: use _Noreturn
49024         * lib/c-stack.c (die, overflow_handler, segv_handler):
49025         Use _Noreturn rather than __attribute__((noreturn)).
49027         argmatch-tests, exclude_tests: use _Noreturn
49028         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
49029         Remove.
49030         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
49032         stdlib: use _Noreturn
49033         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
49034         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
49035         * modules/stdlib (Depends-on): Add _Noreturn.
49036         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
49038         stdnoreturn-tests: new module
49039         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
49041         stdnoreturn: new module
49042         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
49043         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
49045         _Noreturn-tests: new module
49046         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
49048         _Noreturn: new module
49049         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
49050         New section, mentioning it.
49051         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
49053         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
49055 2011-07-11  Eric Blake  <eblake@redhat.com>
49057         ffs: new module
49058         * modules/ffs: New file.
49059         * m4/ffs.m4: Likewise.
49060         * lib/ffs.c: Likewise.
49061         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
49062         * modules/strings (Makefile.am): Substitute witness.
49063         (Depends-on): Add c++defs.
49064         * lib/strings.in.h (ffs): Declare.
49065         * modules/ffs-tests: New test file.
49066         * tests/test-ffs.c: Test new module.
49067         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49068         * doc/posix-functions/ffs.texi (ffs): Likewise.
49070         regex: avoid compiler warning
49071         * lib/regex.c (includes): Include <strings.h>, for use of
49072         strcasecmp in regcomp.c.
49073         Reported by Joachim Schmitz.
49075 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49077         stdint: respect system's intmax_t if INTMAX_MAX
49078         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
49079         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
49080         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
49081         long but int64_t is long long, and where we will clash with the
49082         system intmax_t if we override it.  See
49083         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
49084         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
49085         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
49086         similarly for UINTMAX_C.
49088 2011-07-08  Bruno Haible  <bruno@clisp.org>
49090         pthread_sigmask tests: Avoid a compiler warning.
49091         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
49092         non-zero.
49094         sigprocmask tests: A better way to avoid a compiler warning.
49095         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
49096         (main): Complain if system() returns non-zero.
49097         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
49099 2011-07-08  Bruno Haible  <bruno@clisp.org>
49101         pthread_sigmask: Work around IRIX bug.
49102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
49103         bug.
49104         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
49105         there may be unblocked pending signals.
49106         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
49108 2011-07-08  Bruno Haible  <bruno@clisp.org>
49110         pthread_sigmask: Work around Cygwin bug.
49111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
49112         bug.
49113         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
49114         the system's pthread_sigmask function.
49115         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
49117 2011-07-08  Bruno Haible  <bruno@clisp.org>
49119         pthread_sigmask: Work around bug in single-threaded implementation.
49120         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
49121         FreeBSD, HP-UX, Solaris bug.
49122         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
49123         * lib/pthread_sigmask.c: Include <stddef.h>.
49124         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
49125         the system's pthread_sigmask function.
49126         * modules/pthread_sigmask (configure.ac): Invoke
49127         gl_PREREQ_PTHREAD_SIGMASK.
49128         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
49129         HP-UX, Solaris.
49131 2011-07-08  Eric Blake  <eblake@redhat.com>
49133         test-sigprocmask: avoid compiler warning
49134         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
49135         * tests/test-sigprocmask.c (main): Use it to silence warning.
49136         Reported by Jim Meyering.
49138         test-snprintf: avoid compiler warning
49139         * tests/test-snprintf.c (main): Avoid shadowed declaration.
49140         * tests/test-vsnprintf.c (main): Likewise.
49141         Reported by Jim Meyering.
49143 2011-07-08  Bruno Haible  <bruno@clisp.org>
49145         Tests for module 'pthread_sigmask'.
49146         * modules/pthread_sigmask-tests: New file.
49147         * tests/test-pthread_sigmask1.c: New file, based on
49148         tests/test-sigprocmask.c.
49149         * tests/test-pthread_sigmask2.c: New file.
49151 2011-07-08  Jim Meyering  <meyering@redhat.com>
49153         test-getopt.h: avoid warning about an unused variable
49154         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
49156 2011-07-07  Jim Meyering  <meyering@redhat.com>
49158         maint: reduce list of files exempt from sc_prohibit_leading_TABs
49159         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
49160         now that it no longer contains leading TABs.
49161         Remove unused "url=FIXME" statement.
49163 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49165         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
49166         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49167         When gl_THREADLIB is not in use, assume that the POSIX sematics
49168         are desired.  This is better for Emacs, which uses POSIX semantics
49169         on GNUish and/or POSIXish platforms, and does not use threads at
49170         all otherwise.
49172         pthread_sigmask: fix typo when testing for libraries
49173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49174         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
49176 2011-07-08  Eric Blake  <eblake@redhat.com>
49178         fts: introduce FTS_NOATIME
49179         * lib/fts_.h (FTS_NOATIME): New bit flag.
49180         (FTS_OPTIONMASK): Adjust.
49181         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
49182         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
49184 2011-07-08  Bruno Haible  <bruno@clisp.org>
49186         Tests for module 'thread'.
49187         * modules/thread-tests: New file.
49188         * tests/test-thread_self.c: New file.
49189         * tests/test-thread_create.cc: New file.
49191 2011-07-08  Bruno Haible  <bruno@clisp.org>
49193         thread: Avoid gcc warnings when using gl_thread_self().
49194         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
49195         'void *'.
49196         (gl_thread_self_pointer): Update.
49198 2011-07-07  Bruno Haible  <bruno@clisp.org>
49200         signal-c++-tests: Check declaration of pthread_sigmask.
49201         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
49202         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
49203         $(LIB_PTHREAD_SIGMASK).
49205 2011-07-07  Bruno Haible  <bruno@clisp.org>
49207         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
49208         * lib/signal.in.h (pthread_sigmask): Override if
49209         REPLACE_PTHREAD_SIGMASK is 1.
49210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49211         REPLACE_PTHREAD_SIGMASK.
49212         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
49213         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
49214         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
49215         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49216         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
49218 2011-07-07  Bruno Haible  <bruno@clisp.org>
49220         pthread_sigmask: Ensure declaration in <signal.h>.
49221         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
49222         include <pthread.h>.
49223         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
49224         problem.
49226 2011-07-07  Bruno Haible  <bruno@clisp.org>
49228         pthread_sigmask: Document the module.
49229         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
49231 2011-07-07  Bruno Haible  <bruno@clisp.org>
49233         pthread_sigmask: Follow gnulib conventions.
49234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
49235         gl_PTHREAD_SIGMASK.
49236         * modules/pthread_sigmask (configure.ac): Update.
49238 2011-07-07  Bruno Haible  <bruno@clisp.org>
49240         pthread_sigmask: Make declaration C++ safe.
49241         * lib/signal.in.h: In two special conditions, just do an #include_next.
49242         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49243         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
49244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49245         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49246         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
49247         not REPLACE_PTHREAD_MASK.
49248         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
49249         not REPLACE_PTHREAD_MASK.
49250         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49252 2011-07-07  Bruno Haible  <bruno@clisp.org>
49254         pthread_sigmask: Fix return value.
49255         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
49256         * lib/pthread_sigmask.c: New file.
49257         * modules/pthread_sigmask (Files): Add it.
49258         (configure.ac): Invoke AC_LIBOBJ.
49260 2011-07-07  Eric Blake  <eblake@redhat.com>
49262         getopt: more portable argv creation
49263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
49264         const, use char arrays rather than strings.
49265         Suggested by Paul Eggert.
49267 2011-07-07  Bruno Haible  <bruno@clisp.org>
49269         Tests for module 'sigprocmask'.
49270         * modules/sigprocmask-tests: New file.
49271         * tests/test-sigprocmask.c: New file.
49273 2011-07-07  Bruno Haible  <bruno@clisp.org>
49275         float tests: Tweak.
49276         * tests/test-float.c (main): Tweak skip message.
49278 2011-07-07  Eric Blake  <eblake@redhat.com>
49280         getopt: avoid compiler warning during configure
49281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
49282         assigning string literals to non-const pointer.
49284         getopt-gnu: avoid crash in glibc getopt
49285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
49286         * tests/test-getopt.h (test_getopt): Enhance test.
49287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
49288         * doc/posix-functions/getopt.texi (getopt): Document it.
49289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49291         Likewise.
49293 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
49295         getopt: handle W; without long options in getopt [BZ #12922]
49296         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
49297         but no long options are defined, just return 'W'.
49299 2011-07-07  Bruno Haible  <bruno@clisp.org>
49301         Avoid literal tabs.
49302         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
49303         variable containing a tab instead of a literal tab.
49304         Reported by Jim Meyering.
49306 2011-07-07  Bruno Haible  <bruno@clisp.org>
49308         Comments.
49309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
49311 2011-07-06  Bruno Haible  <bruno@clisp.org>
49313         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
49314         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
49315         <winsock2.h>.
49316         (rpl_fd_isset, FD_ISSET): New definitions, copied from
49317         lib/sys_socket.in.h.
49318         (close, gethostname): Hide declarations from <winsock2.h>.
49319         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49320         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
49321         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
49322         (select): Don't override if gnulib's <sys/select.h> was already
49323         included.
49324         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
49325         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
49326         setsockopt, shutdown, select): Tweak indentation.
49328 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49330         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
49331         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
49332         in an application that does not use the sys_select module.
49334 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
49336         poll: do not return 0 on timeout=-1
49337         * lib/poll.c: Loop with yield if no events occurred.
49339 2011-07-06  Eric Blake  <eblake@redhat.com>
49341         pthread_sigmask: always replace when not using pthread
49342         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
49343         replacement when using some threading other than pthread.  Fix
49344         logic bug.
49346 2011-07-06  Bruno Haible  <bruno@clisp.org>
49348         Comments.
49349         * m4/printf.m4: Update comments about mingw.
49351 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49353         sys_select: define sigset_t more portably
49354         * lib/sys_select.in.h: Always include <sys/types.h>, since
49355         we now need sigset_t and mingw defines it there.
49356         Include <signal.h> before split inclusion guard, to avoid
49357         mishaps on Solaris, whose <signal.h> eventually includes us.
49358         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
49359         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
49360         which come from ...
49361         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49362         gl_CHECK_TYPE_SIGSET_T.
49363         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
49364         does the real work.
49365         * modules/sys_select (Depends-on): Add 'signal'.
49367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
49368         Suggested by Bruno Haible.
49370         pselect: Use pthread_sigmask, not sigprocmask.
49371         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
49372         multithreaded apps better than sigprocmask does.
49373         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
49374         sigprocmask directly.
49376 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49378         * lib/pselect.c (pselect): Use plain name, without "rpl_".
49379         Don't #undef,  since we don't need any underlying pselect.
49380         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
49381         (Depends-on): Add select.
49382         (Link): Add $(LIBSOCKET).
49383         These changes suggested by Bruno Haible.
49385         pselect: document better
49386         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
49387         * doc/posix-functions/pselect.texi (pselect): Document new module.
49389         pthread_sigmask: new module
49390         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
49391         * doc/posix-functions/pthread_sigmask.texi: Document new module.
49392         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
49393         This is done only as a macro; I don't know how well that'll
49394         work for C++.  Move <sys/types.h> include before the include_next,
49395         to avoid mishap on Solaris.
49396         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
49397         * modules/signal (Makefile.am): Substitute the check's results.
49398         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
49400         test-pselect: new module
49401         * modules/pselect-tests, tests/test-pselect.c: New files.
49402         * tests/test-select.c, tests/test-sys_select-c++.cc:
49403         If TEST_PSELECT is defined, test pselect instead of testing select.
49405         * tests/test-sys_select.c (sigset_t): Test for it, too.
49406         Suggested by Bruno Haible.
49408 2011-07-05  Eric Blake  <eblake@redhat.com>
49410         snprintf: guarantee %1$d, for libintl
49411         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
49412         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49413         * doc/posix-functions/snprintf.texi (snprintf): Update.
49414         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49415         * tests/test-snprintf.c (main): Enhance test.
49416         * tests/test-vsnprintf.c (main): Likewise.
49418 2011-07-05  Jim Meyering  <meyering@redhat.com>
49420         maint: exempt stdio-read.c and stdio-write.c from the cppi check
49421         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
49422         per Bruno's request, to accommodate this idiom (no space after "#")
49423         even when the function is inside an #if block:
49424         char *
49425         gets (char *s)
49426         #undef gets
49427         {
49428           ...
49429         }
49431 2011-07-04  Jim Meyering  <meyering@redhat.com>
49433         maint: indent with spaces, not TABs, and add a rule to check this
49434         * tests/test-userspec.c: Indent with spaces, not TABs.
49435         * tests/test-argp.c: Likewise.
49436         * tests/test-c-stack2.sh: Likewise.
49437         * tests/test-parse-duration.sh: Likewise
49438         * m4/strtod.m4: Likewise.
49439         * m4/alloca.m4: Likewise.
49440         * m4/pselect.m4: Likewise.
49441         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
49443 2011-07-03  Jim Meyering  <meyering@redhat.com>
49445         maint.mk: correct omissions in prohibit_argmatch_without_use check
49446         This rule would mistakenly report that argmatch.h is included without
49447         use even when both the argmatch and invalid_arg macro were used.
49448         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
49449         of argmatch and invalid_arg.
49451 2011-07-03  Bruno Haible  <bruno@clisp.org>
49453         Comments about EINTR.
49454         * lib/safe-read.h: Explain the purpose of this module.
49455         * lib/safe-write.h: Likewise.
49456         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
49457         module.
49458         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
49459         module.
49460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49462 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49464         xnanosleep: Rewrite to use new dtotimespec module.
49465         It has the conversion code that used to be in xnanosleep.
49466         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
49467         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
49468         (TIME_T_MAX): Remove.
49469         (xnanosleep): Rewrite in terms of dtotimespec.
49470         * modules/xnanosleep (Depends-on): Add dtotimespec.
49471         Remove intprops, stdbool.
49473         timespec-add, timespec-sub: new modules
49474         * lib/timespec.h (timespec_add, timespec_sub): New decls.
49475         * lib/timespec-add.c, lib/timespec-sub.c:
49476         * modules/timespec-add, modules/timespec-sub: New files.
49478         dtotimespec: new module
49479         * lib/timespec.h (dtotimespec): New decl.
49480         * lib/dtotimespec.c, modules/dtotimespec: New files.
49482         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
49484         pselect: new module
49485         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
49486         (pselect): New decls.
49487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
49488         since the standard pselect decl uses 'restrict'.
49489         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
49490         HAVE_PSELECT, REPLACE_PSELECT.
49491         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
49492         HAVE_PSELECT, REPLACE_PSELECT.
49493         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
49495         sys_select: don't depend on sys_socket
49496         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
49497         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
49498         This fix works on GNU and GNU-like platforms, but has not been tested
49499         on native Windows.
49500         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
49501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
49502         gl_HEADER_SYS_SOCKET.
49503         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
49504         gl_PREREQ_SYS_H_WINSOCK2.
49506 2011-06-29  Eric Blake  <eblake@redhat.com>
49508         pipe2: fix C89 compile problem
49509         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
49510         Reported by Bruno Haible.
49512         pipe, pipe2: don't corrupt fd on error
49513         * lib/pipe.c (pipe): Leave fd unchanged on error.
49514         * lib/pipe2.c (pipe2): Likewise.
49515         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
49516         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
49518 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
49520         mmap-anon: do not use regular expressions inadvertently
49521         * m4/mmap-anon.m4: Remove trailing period from strings sought
49522         in the output.
49524 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
49526         nanosleep: fix integer overflow problem
49527         * lib/nanosleep.c (my_usleep): Don't assume signed integer
49528         arithmetic wraps around on overflow.
49530         nanosleep: simplify carrying
49531         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
49532         first call to the underyling nanosleep, not for the last one.
49533         This doesn't fix any bugs, but it simplifies the computation of
49534         the remaining delay.  Found while auditing integer overflow issues.
49536         dup2: remove test for existence of fcntl
49537         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
49538         "#if HAVE_FCNTL", in the configure-time test program.
49539         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
49540         and therefore speeds up "configure" a bit.  Found while
49541         adding the dup2 module to Emacs.
49543 2011-06-24  Eric Blake  <eblake@redhat.com>
49545         maint.mk: enhance useless header checks
49546         * top/maint.mk (_sc_header_without_use): Check both include
49547         styles.
49548         (sc_prohibit_assert_without_use)
49549         (sc_prohibit_close_stream_without_use)
49550         (sc_prohibit_getopt_without_use)
49551         (sc_prohibit_quotearg_without_use)
49552         (sc_prohibit_quote_without_use)
49553         (sc_prohibit_long_options_without_use)
49554         (sc_prohibit_inttostr_without_use)
49555         (sc_prohibit_ignore_value_without_use)
49556         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
49557         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
49558         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
49559         (sc_prohibit_hash_pjw_without_use)
49560         (sc_prohibit_safe_read_without_use)
49561         (sc_prohibit_argmatch_without_use)
49562         (sc_prohibit_canonicalize_without_use)
49563         (sc_prohibit_root_dev_ino_without_use)
49564         (sc_prohibit_openat_without_use)
49565         (sc_prohibit_c_ctype_without_use)
49566         (sc_prohibit_signal_without_use)
49567         (sc_prohibit_stdio--_without_use)
49568         (sc_prohibit_stdio-safer_without_use)
49569         (sc_prohibit_strings_without_use)
49570         (sc_prohibit_intprops_without_use)
49571         (sc_prohibit_stddef_without_use)
49572         (sc_prohibit_xfreopen_without_use): Update clients.
49574 2011-06-24  Jim Meyering  <meyering@redhat.com>
49576         syntax-check: keep one maint.mk rule in sync with its header
49577         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
49578         of the bug Eric has just fixed, with today's commit 25e4c2ec.
49579         I prefer to avoid temporary files here, so use <(...), but that
49580         is not supported by /bin/sh, so...
49581         (SHELL): Define to /bin/bash.
49583 2011-06-24  Eric Blake  <eblake@redhat.com>
49585         maint.mk: update sc_prohibit_intprops_without_use
49586         * top/maint.mk (_intprops_names): Match recent changes.
49588 2011-06-24  Bruno Haible  <bruno@clisp.org>
49590         strerror-override: No-op tweak.
49591         * lib/strerror-override.h (strerror_override): Reorder conditions,
49592         for consistency with lib/strerror-override.c.
49594 2011-06-23  Eric Blake  <eblake@redhat.com>
49596         maint.mk: test further PATH_MAX issues
49597         * top/maint.mk (sc_prohibit_path_max_array): Rename...
49598         (sc_prohibit_path_max_allocation): ...and also test alloca.
49599         Suggested by Jim Meyering.
49601 2011-06-22  Eric Blake  <eblake@redhat.com>
49603         maint.mk: add syntax-check to avoid char[PATH_MAX]
49604         * top/maint.mk (sc_prohibit_path_max_array): New rule.
49606         stat: be robust to PATH_MAX definition
49607         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
49608         * modules/stat (Depends-on): Add verify.
49610         link: work around IRIX bug
49611         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
49612         * lib/link.c (rpl_link): Work around it.
49613         * tests/test-link.h (test_link): Enhance test.
49614         * doc/posix-functions/link.texi (link): Document the bug.
49616         getopt: silence clang warning
49617         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
49618         dereference.
49619         Reported by Gustavo Martin Domato.
49621 2011-06-22  Jim Meyering  <meyering@redhat.com>
49623         bootstrap: do not insert a blank line into each .gitignore file
49624         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
49626 2011-06-21  Eric Blake  <eblake@redhat.com>
49628         perror: test for output mismatch
49629         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
49630         perror on IRIX.
49632         strerror_r: fix OpenBSD behavior on out-of-range
49633         * lib/strerror_r.c (strerror_r): Always use maximal string.
49634         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
49636         strerror_r: fix OpenBSD behavior on 0
49637         * lib/strerror-override.c (strerror_override): Also override 0
49638         when needed.
49639         * lib/strerror-override.h (strerror_override): Likewise.
49640         * lib/strerror.c (strerror): Simplify, now that 0 override is done
49641         earlier.
49642         * lib/strerror_r.c (strerror_r): Likewise.
49643         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
49644         behavior...
49645         (gl_FUNC_STRERROR_0): ...into new macro.
49646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
49647         is overridden.
49648         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
49649         * modules/strerror-override (Files): Add strerror.m4.
49650         (configure.ac): Also provide override for 0 when needed.
49651         * doc/posix-functions/strerror.texi (strerror): Document this.
49652         * doc/posix-functions/perror.texi (perror): Likewise.
49654         perror: adjust array size
49655         * modules/perror (Depends-on): Add strerror-override.
49656         * lib/perror.c (perror): Use it to avoid magic number.
49658         strerror-override: reduce size
49659         * lib/strerror-override.c (strerror_override): Use fewer lines.
49661 2011-06-20  Bruno Haible  <bruno@clisp.org>
49663         pathmax: Ensure correct value for PATH_MAX on HP-UX.
49664         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
49666 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49668         alloca: port to compilers that can optimize like GCC 4.6.0
49669         * lib/alloca.c (find_stack_direction): New signature, taken from
49670         Autoconf git.  This works with GCC 4.6.0.  This code should never
49671         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
49672         be used with other compilers that optimize as well as GCC 4.6.0 does.
49673         (alloca): Adjust to new signature.
49674         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
49675         New macro, which patches Autoconf in a similar way.
49677         c-stack: stop worrying about stack direction
49678         * lib/c-stack.c (find_stack_direction): Remove.
49679         (segv_handler): Don't worry about stack direction growth, as it's
49680         too much of a pain to configure this correctly, given how compilers
49681         are optimizing-away our stack-growth detection code.  Instead, assume
49682         that any access to just before or just after the stack is OK.
49683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
49684         Don't require AC_FUNC_ALLOCA; no longer needed.
49686 2011-06-20  Eric Blake  <eblake@redhat.com>
49688         test-stat: don't allocate PATH_MAX bytes
49689         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
49690         PATH_MAX-sized buffer.
49691         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
49692         * modules/stat-tests (Depends-on): Likewise.
49693         * tests/test-fstatat.c (includes): Drop pathmax.h.
49694         * tests/test-stat.c (includes): Likewise.
49695         Reported by Bruno Haible.
49697 2011-06-20  Bruno Haible  <bruno@clisp.org>
49699         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
49700         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
49701         * lib/float.c: New file.
49702         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
49703         REPLACE_FLOAT_LDBL.
49704         * modules/float (Files): Add lib/float.c.
49705         (configure.ac): Invoke AC_LIBOBJ.
49706         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
49708 2011-06-20  Bruno Haible  <bruno@clisp.org>
49710         Tests for module 'float'.
49711         * modules/float-tests: New file.
49712         * tests/test-float.c: New file.
49714 2011-06-19  Bruno Haible  <bruno@clisp.org>
49716         isinf: Coding style.
49717         * lib/isinf.c: Use GNU coding style.
49719 2011-06-19  Bruno Haible  <bruno@clisp.org>
49721         linkat test: Avoid test failure on AIX 7.1.
49722         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
49723         * tests/test-link.h (test_link): Likewise.
49725 2011-06-19  Bruno Haible  <bruno@clisp.org>
49727         pread test: Avoid test failure on OpenBSD 4.9.
49728         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
49730 2011-06-19  Bruno Haible  <bruno@clisp.org>
49732         sprintf-posix: Fix test failure on AIX 7.1.
49733         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
49734         * doc/posix-functions/dprintf.texi: Mention limited precision problem
49735         on AIX.
49736         * doc/posix-functions/fprintf.texi: Likewise.
49737         * doc/posix-functions/printf.texi: Likewise.
49738         * doc/posix-functions/snprintf.texi: Likewise.
49739         * doc/posix-functions/sprintf.texi: Likewise.
49740         * doc/posix-functions/vdprintf.texi: Likewise.
49741         * doc/posix-functions/vfprintf.texi: Likewise.
49742         * doc/posix-functions/vprintf.texi: Likewise.
49743         * doc/posix-functions/vsnprintf.texi: Likewise.
49744         * doc/posix-functions/vsprintf.texi: Likewise.
49746 2011-06-19  Bruno Haible  <bruno@clisp.org>
49748         roundl-ieee: Fix test failure on AIX 7.1.
49749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
49750         * doc/posix-functions/roundl.texi: Mention problem with negative
49751         arguments.
49753 2011-06-19  Bruno Haible  <bruno@clisp.org>
49755         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
49756         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
49757         * doc/posix-functions/round.texi: Mention problem with negative
49758         arguments.
49759         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
49761 2011-06-19  Bruno Haible  <bruno@clisp.org>
49763         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
49764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
49765         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
49766         * doc/posix-functions/roundf.texi: Mention problem with negative
49767         arguments.
49768         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
49770 2011-06-19  Bruno Haible  <bruno@clisp.org>
49772         ceilf-ieee: Work around bug on MacOS X 10.5.
49773         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
49775         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
49776         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
49777         IEEE compliant, avoid compiler optimizations.
49778         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
49779         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49780         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
49781         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49782         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49789 2011-06-19  Bruno Haible  <bruno@clisp.org>
49791         ceilf-ieee: Work around bug on AIX 7.1.
49792         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
49793         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
49795 2011-06-19  Bruno Haible  <bruno@clisp.org>
49797         ceil-ieee: Work around bug on AIX 7.1.
49798         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
49799         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
49801 2011-06-18  Bruno Haible  <bruno@clisp.org>
49803         fsync test: Avoid test failure on MacOS X and AIX.
49804         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
49805         EINVAL.
49807 2011-06-18  Bruno Haible  <bruno@clisp.org>
49809         openat, fdopendir tests: Fix link errors.
49810         * modules/openat-tests (Depends-on): Add progname.
49811         * modules/fdopendir-tests (Depends-on): Likewise.
49812         * tests/test-fchownat.c: Include progname.h.
49813         (main): Call set_program_name.
49814         * tests/test-fstatat.c: Include progname.h.
49815         (main): Call set_program_name.
49816         * tests/test-mkdirat.c: Include progname.h.
49817         (main): Call set_program_name.
49818         * tests/test-openat.c: Include progname.h.
49819         (main): Call set_program_name.
49820         * tests/test-unlinkat.c: Include progname.h.
49821         (main): Call set_program_name.
49822         * tests/test-fdopendir.c: Include progname.h.
49823         (main): Call set_program_name.
49825 2011-06-18  Bruno Haible  <bruno@clisp.org>
49827         Doc update.
49828         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
49829         HP-UX.
49830         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
49832 2011-06-18  Bruno Haible  <bruno@clisp.org>
49834         getcwd tests: Avoid compilation error on HP-UX 11.31.
49835         * modules/getcwd-tests (Depends-on): Add pathmax.
49836         * tests/test-getcwd.c: Include pathmax.h.
49838 2011-06-18  Bruno Haible  <bruno@clisp.org>
49840         isfinite, isinf: Fix link error on AIX 6 and 7.
49841         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
49842         needed, also test the macro with a 'float' argument.
49843         * m4/isinf.m4 (gl_ISINF): Likewise.
49845 2011-06-18  Bruno Haible  <bruno@clisp.org>
49847         getloadavg: Don't clobber LIBS. Regression from previous commit.
49848         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
49849         AC_CHECK_LIB from here...
49850         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
49851         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
49852         gl_func_getloadavg_done.
49853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49855 2011-06-18  Bruno Haible  <bruno@clisp.org>
49857         clean-temp: Improve documentation.
49858         * lib/clean-temp.h: Explain better how to use this module.
49859         Reported by John Darrington <john@darrington.wattle.id.au>.
49861 2011-06-17  Bruno Haible  <bruno@clisp.org>
49863         pread, pwrite: Avoid cc warning on AIX.
49864         * lib/unistd.in.h (pread): Undefine before defining as a macro.
49865         (pwrite): Likewise.
49867 2011-06-17  Bruno Haible  <bruno@clisp.org>
49869         spawn-pipe tests: Fix link error.
49870         * tests/test-spawn-pipe-child.c: Undefine fprintf.
49871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49873 2011-06-17  Bruno Haible  <bruno@clisp.org>
49875         Tests: Remove unnecessary dependency.
49876         * modules/canonicalize-tests (Depends-on): Remove progname.
49877         * modules/chown-tests (Depends-on): Likewise.
49878         * modules/dirname-tests (Depends-on): Likewise.
49879         * modules/fdopendir-tests (Depends-on): Likewise.
49880         * modules/fdutimensat-tests (Depends-on): Likewise.
49881         * modules/hash-tests (Depends-on): Likewise.
49882         * modules/lchown-tests (Depends-on): Likewise.
49883         * modules/linkat-tests (Depends-on): Likewise.
49884         * modules/renameat-tests (Depends-on): Likewise.
49885         * modules/spawn-pipe-tests (Depends-on): Likewise.
49886         * modules/utimensat-tests (Depends-on): Likewise.
49888 2011-06-17  Bruno Haible  <bruno@clisp.org>
49890         spawn-pipe tests: Fix link error.
49891         * tests/test-spawn-pipe-child.c: Undefine fflush.
49893 2011-06-17  Bruno Haible  <bruno@clisp.org>
49895         Fix tests link errors.
49896         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
49897         * modules/chown-tests (Makefile.am): Don't link test-chown with
49898         LIBINTL.
49899         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
49900         LIBINTL.
49901         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
49902         LIBINTL.
49903         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
49904         LIBINTL.
49906 2011-06-16  Bruno Haible  <bruno@clisp.org>
49908         crypto/gc-sha1: Fix recent regression.
49909         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
49910         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
49912         crypto/gc-md5: Fix recent regression.
49913         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
49915         crypto/gc-md4: Fix recent regression.
49916         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
49917         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
49919         crypto/gc-arctwo: Fix recent regression.
49920         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
49921         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
49923         crypto/gc-rijndael: Fix recent regression.
49924         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
49925         (configure.ac): Invoke AC_LIBOBJ here.
49926         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
49927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49929         crypto/gc-hmac-sha1: Fix recent regression.
49930         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
49931         (configure.ac): Invoke AC_LIBOBJ here.
49932         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
49933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49935         crypto/gc-hmac-md5: Fix recent regression.
49936         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
49937         (configure.ac): Invoke AC_LIBOBJ here.
49938         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
49939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49941         crypto/gc-des: Fix recent regression.
49942         * modules/crypto/gc-des (Files): Remove m4/des.m4.
49943         (configure.ac): Invoke AC_LIBOBJ here.
49944         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
49945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49947         crypto/gc-arcfour: Fix recent regression.
49948         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
49949         (configure.ac): Invoke AC_LIBOBJ here.
49950         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
49951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49953 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
49955         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
49956         After the 2011-05-21 change, this macro requires
49957         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
49958         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49960 2011-06-16  Bruno Haible  <bruno@clisp.org>
49962         fprintftime: Move AC_LIBOBJ invocations to module description.
49963         * m4/fprintftime.m4: Remove file.
49964         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
49965         (configure.ac): Remove gl_FPRINTFTIME call.
49966         (Makefile.am): Augment lib_SOURCES.
49967         Reported by Jim Meyering.
49969 2011-06-16  Bruno Haible  <bruno@clisp.org>
49971         tmpfile-safer: Finish 2011-05-23 commit.
49972         * m4/stdio-safer.m4: Really remove file.
49973         Reported by Jim Meyering.
49975 2011-06-16  Bruno Haible  <bruno@clisp.org>
49977         syntax-check: Fix typo.
49978         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
49979         printf-posix.m4.
49980         Reported by Jim Meyering.
49982 2011-06-13  Jim Meyering  <meyering@redhat.com>
49984         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
49985         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
49987 2011-05-23  Bruno Haible  <bruno@clisp.org>
49989         yesno: Move AC_LIBOBJ invocations to module description.
49990         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
49991         * modules/yesno (Makefile.am): Augment lib_SOURCES.
49993 2011-05-23  Bruno Haible  <bruno@clisp.org>
49995         xstrtol: Move AC_LIBOBJ invocations to module description.
49996         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
49997         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
49999 2011-05-23  Bruno Haible  <bruno@clisp.org>
50001         xstrtold: Move AC_LIBOBJ invocations to module description.
50002         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
50003         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
50005 2011-05-23  Bruno Haible  <bruno@clisp.org>
50007         xstrtod: Move AC_LIBOBJ invocations to module description.
50008         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
50009         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
50011 2011-05-23  Bruno Haible  <bruno@clisp.org>
50013         xnanosleep: Move AC_LIBOBJ invocations to module description.
50014         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
50015         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
50017 2011-05-23  Bruno Haible  <bruno@clisp.org>
50019         xgetcwd: Move AC_LIBOBJ invocations to module description.
50020         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
50021         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
50023 2011-05-23  Bruno Haible  <bruno@clisp.org>
50025         xalloc: Move AC_LIBOBJ invocations to module description.
50026         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
50027         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
50029 2011-05-23  Bruno Haible  <bruno@clisp.org>
50031         write-any-file: Move AC_LIBOBJ invocations to module description.
50032         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
50033         invocation.
50034         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
50036 2011-05-23  Bruno Haible  <bruno@clisp.org>
50038         utimens: Move AC_LIBOBJ invocations to module description.
50039         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
50040         * modules/utimens (Makefile.am): Augment lib_SOURCES.
50042 2011-05-23  Bruno Haible  <bruno@clisp.org>
50044         utimecmp: Move AC_LIBOBJ invocations to module description.
50045         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
50046         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
50048 2011-05-23  Bruno Haible  <bruno@clisp.org>
50050         userspec: Move AC_LIBOBJ invocations to module description.
50051         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
50052         * modules/userspec (Makefile.am): Augment lib_SOURCES.
50054 2011-05-23  Bruno Haible  <bruno@clisp.org>
50056         unlinkdir: Move AC_LIBOBJ invocations to module description.
50057         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
50058         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
50060 2011-05-23  Bruno Haible  <bruno@clisp.org>
50062         unistd-safer: Move AC_LIBOBJ invocations to module description.
50063         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
50064         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
50066 2011-05-23  Bruno Haible  <bruno@clisp.org>
50068         tempname: Move AC_LIBOBJ invocations to module description.
50069         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
50070         * modules/tempname (Makefile.am): Augment lib_SOURCES.
50072 2011-05-23  Bruno Haible  <bruno@clisp.org>
50074         strftime: Move AC_LIBOBJ invocations to module description.
50075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
50076         * modules/strftime (Makefile.am): Augment lib_SOURCES.
50078 2011-05-23  Bruno Haible  <bruno@clisp.org>
50080         stdlib-safer: Move AC_LIBOBJ invocations to module description.
50081         * m4/stdlib-safer.m4: Remove file.
50082         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
50083         (configure.ac): Remove gl_STDLIB_SAFER call.
50084         (Makefile.am): Augment lib_SOURCES.
50086 2011-05-23  Bruno Haible  <bruno@clisp.org>
50088         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
50089         * m4/stdio-safer.m4: Remove file.
50090         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
50091         (configure.ac): Remove gl_TMPFILE_SAFER call.
50092         (Makefile.am): Augment lib_SOURCES.
50094 2011-05-23  Bruno Haible  <bruno@clisp.org>
50096         popen-safer: Move AC_LIBOBJ invocations to module description.
50097         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
50098         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
50099         (configure.ac): Remove gl_POPEN_SAFER call.
50100         (Makefile.am): Augment lib_SOURCES.
50102 2011-05-23  Bruno Haible  <bruno@clisp.org>
50104         freopen-safer: Move AC_LIBOBJ invocations to module description.
50105         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
50106         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
50107         (configure.ac): Remove gl_FREOPEN_SAFER call.
50108         (Makefile.am): Augment lib_SOURCES.
50110 2011-05-23  Bruno Haible  <bruno@clisp.org>
50112         fopen-safer: Move AC_LIBOBJ invocations to module description.
50113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
50114         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
50115         (configure.ac): Remove gl_FOPEN_SAFER call.
50116         (Makefile.am): Augment lib_SOURCES.
50118 2011-05-23  Bruno Haible  <bruno@clisp.org>
50120         crypto/sha512: Move AC_LIBOBJ invocations to module description.
50121         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
50122         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
50124 2011-05-23  Bruno Haible  <bruno@clisp.org>
50126         crypto/sha256: Move AC_LIBOBJ invocations to module description.
50127         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
50128         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
50130 2011-05-23  Bruno Haible  <bruno@clisp.org>
50132         crypto/sha1: Move AC_LIBOBJ invocations to module description.
50133         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
50134         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
50136 2011-05-23  Bruno Haible  <bruno@clisp.org>
50138         settime: Move AC_LIBOBJ invocations to module description.
50139         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
50140         * modules/settime (Makefile.am): Augment lib_SOURCES.
50142 2011-05-23  Bruno Haible  <bruno@clisp.org>
50144         savedir: Move AC_LIBOBJ invocations to module description.
50145         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
50146         * modules/savedir (Makefile.am): Augment lib_SOURCES.
50148 2011-05-23  Bruno Haible  <bruno@clisp.org>
50150         save-cwd: Move AC_LIBOBJ invocations to module description.
50151         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
50152         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
50154 2011-05-23  Bruno Haible  <bruno@clisp.org>
50156         same: Move AC_LIBOBJ invocations to module description.
50157         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
50158         * modules/same (Makefile.am): Augment lib_SOURCES.
50160 2011-05-23  Bruno Haible  <bruno@clisp.org>
50162         safe-write: Move AC_LIBOBJ invocations to module description.
50163         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
50164         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
50165         instead of gl_SAFE_WRITE.
50166         (Makefile.am): Augment lib_SOURCES.
50168 2011-05-23  Bruno Haible  <bruno@clisp.org>
50170         safe-read: Move AC_LIBOBJ invocations to module description.
50171         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
50172         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
50173         of gl_SAFE_READ.
50174         (Makefile.am): Augment lib_SOURCES.
50176 2011-05-23  Bruno Haible  <bruno@clisp.org>
50178         safe-alloc: Move AC_LIBOBJ invocations to module description.
50179         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
50180         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
50182 2011-05-23  Bruno Haible  <bruno@clisp.org>
50184         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
50185         * m4/rijndael.m4: Remove file.
50186         * modules/crypto/rijndael (Files): Remove it.
50187         (configure.ac): Remove gl_RIJNDAEL call.
50188         (Makefile.am): Augment lib_SOURCES.
50190 2011-05-23  Bruno Haible  <bruno@clisp.org>
50192         readtokens: Move AC_LIBOBJ invocations to module description.
50193         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
50194         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
50196 2011-05-23  Bruno Haible  <bruno@clisp.org>
50198         read-file: Move AC_LIBOBJ invocations to module description.
50199         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
50200         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
50201         of gl_FUNC_READ_FILE.
50202         (Makefile.am): Augment lib_SOURCES.
50204 2011-05-23  Bruno Haible  <bruno@clisp.org>
50206         quotearg: Move AC_LIBOBJ invocations to module description.
50207         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
50208         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
50210 2011-05-23  Bruno Haible  <bruno@clisp.org>
50212         quote: Move AC_LIBOBJ invocations to module description.
50213         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
50214         * modules/quote (Makefile.am): Augment lib_SOURCES.
50216 2011-05-23  Bruno Haible  <bruno@clisp.org>
50218         posixver: Move AC_LIBOBJ invocations to module description.
50219         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
50220         * modules/posixver (Makefile.am): Augment lib_SOURCES.
50222 2011-05-23  Bruno Haible  <bruno@clisp.org>
50224         posixtm: Move AC_LIBOBJ invocations to module description.
50225         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
50226         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
50228 2011-05-23  Bruno Haible  <bruno@clisp.org>
50230         physmem: Move AC_LIBOBJ invocations to module description.
50231         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
50232         * modules/physmem (Makefile.am): Augment lib_SOURCES.
50234 2011-05-23  Bruno Haible  <bruno@clisp.org>
50236         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
50237         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
50238         invocation.
50239         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
50241 2011-05-23  Bruno Haible  <bruno@clisp.org>
50243         mpsort: Move AC_LIBOBJ invocations to module description.
50244         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
50245         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
50247 2011-05-23  Bruno Haible  <bruno@clisp.org>
50249         modechange: Move AC_LIBOBJ invocations to module description.
50250         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
50251         * modules/modechange (Makefile.am): Augment lib_SOURCES.
50253 2011-05-23  Bruno Haible  <bruno@clisp.org>
50255         mkdir-p: Move AC_LIBOBJ invocations to module description.
50256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
50257         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
50259 2011-05-23  Bruno Haible  <bruno@clisp.org>
50261         mkancesdirs: Move AC_LIBOBJ invocations to module description.
50262         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
50263         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
50265 2011-05-23  Bruno Haible  <bruno@clisp.org>
50267         mgetgroups: Move AC_LIBOBJ invocations to module description.
50268         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
50269         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
50271 2011-05-23  Bruno Haible  <bruno@clisp.org>
50273         memxor: Move AC_LIBOBJ invocations to module description.
50274         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
50275         * modules/memxor (Makefile.am): Augment lib_SOURCES.
50277 2011-05-23  Bruno Haible  <bruno@clisp.org>
50279         memcoll: Move AC_LIBOBJ invocations to module description.
50280         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
50281         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
50283 2011-05-23  Bruno Haible  <bruno@clisp.org>
50285         memcasecmp: Move AC_LIBOBJ invocations to module description.
50286         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
50287         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
50289 2011-05-23  Bruno Haible  <bruno@clisp.org>
50291         crypto/md5: Move AC_LIBOBJ invocations to module description.
50292         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
50293         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
50295 2011-05-23  Bruno Haible  <bruno@clisp.org>
50297         crypto/md4: Move AC_LIBOBJ invocations to module description.
50298         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
50299         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
50301 2011-05-23  Bruno Haible  <bruno@clisp.org>
50303         crypto/md2: Move AC_LIBOBJ invocations to module description.
50304         * m4/md2.m4: Remove file.
50305         * modules/crypto/md2 (Files): Remove it.
50306         (configure.ac): Remove gl_MD2 call.
50307         (Makefile.am): Augment lib_SOURCES.
50309 2011-05-23  Bruno Haible  <bruno@clisp.org>
50311         long-options: Move AC_LIBOBJ invocations to module description.
50312         * m4/long-options.m4: Remove file.
50313         * modules/long-options (Files): Remove it.
50314         (configure.ac): Remove gl_LONG_OPTIONS call.
50315         (Makefile.am): Augment lib_SOURCES.
50317 2011-05-23  Bruno Haible  <bruno@clisp.org>
50319         i-ring: Move AC_LIBOBJ invocations to module description.
50320         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
50321         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
50323 2011-05-23  Bruno Haible  <bruno@clisp.org>
50325         idcache: Move AC_LIBOBJ invocations to module description.
50326         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
50327         * modules/idcache (Makefile.am): Augment lib_SOURCES.
50329 2011-05-23  Bruno Haible  <bruno@clisp.org>
50331         human: Move AC_LIBOBJ invocations to module description.
50332         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
50333         * modules/human (Makefile.am): Augment lib_SOURCES.
50335 2011-05-23  Bruno Haible  <bruno@clisp.org>
50337         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
50338         * m4/hmac-sha1.m4: Remove file.
50339         * modules/crypto/hmac-sha1 (Files): Remove it.
50340         (configure.ac): Remove gl_HMAC_SHA1 call.
50341         (Makefile.am): Augment lib_SOURCES.
50343 2011-05-23  Bruno Haible  <bruno@clisp.org>
50345         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
50346         * m4/hmac-md5.m4: Remove file.
50347         * modules/crypto/hmac-md5 (Files): Remove it.
50348         (configure.ac): Remove gl_HMAC_MD5 call.
50349         (Makefile.am): Augment lib_SOURCES.
50351 2011-05-23  Bruno Haible  <bruno@clisp.org>
50353         hash: Move AC_LIBOBJ invocations to module description.
50354         * m4/hash.m4: Remove file.
50355         * modules/hash (Files): Remove it.
50356         (configure.ac): Remove gl_HASH call.
50357         (Makefile.am): Augment lib_SOURCES.
50359 2011-05-23  Bruno Haible  <bruno@clisp.org>
50361         hard-locale: Move AC_LIBOBJ invocations to module description.
50362         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
50363         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
50365 2011-05-23  Bruno Haible  <bruno@clisp.org>
50367         getugroups: Move AC_LIBOBJ invocations to module description.
50368         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
50369         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
50371 2011-05-23  Bruno Haible  <bruno@clisp.org>
50373         gettime: Move AC_LIBOBJ invocations to module description.
50374         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
50375         * modules/gettime (Makefile.am): Augment lib_SOURCES.
50377 2011-05-23  Bruno Haible  <bruno@clisp.org>
50379         getndelim2: Move AC_LIBOBJ invocations to module description.
50380         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
50381         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
50383 2011-05-23  Bruno Haible  <bruno@clisp.org>
50385         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
50386         * m4/gc-pbkdf2-sha1.m4: Remove file.
50387         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
50388         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
50389         (Makefile.am): Augment lib_SOURCES.
50391 2011-05-23  Bruno Haible  <bruno@clisp.org>
50393         fts: Move AC_LIBOBJ invocations to module description.
50394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
50395         * modules/fts (configure.ac): ... to here.
50397 2011-05-23  Bruno Haible  <bruno@clisp.org>
50399         file-type: Move AC_LIBOBJ invocations to module description.
50400         * m4/file-type.m4: Remove file.
50401         * modules/file-type (Files): Remove it.
50402         (configure.ac): Remove gl_FILE_TYPE call.
50403         (Makefile.am): Augment lib_SOURCES.
50405 2011-05-23  Bruno Haible  <bruno@clisp.org>
50407         filenamecat*: Respect rules for use of AC_LIBOBJ.
50408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
50409         Remove AC_LIBOBJ invocation.
50410         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
50411         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
50413 2011-05-23  Bruno Haible  <bruno@clisp.org>
50415         filemode: Move AC_LIBOBJ invocations to module description.
50416         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
50417         * modules/filemode (Makefile.am): Augment lib_SOURCES.
50419 2011-05-23  Bruno Haible  <bruno@clisp.org>
50421         openat-safer: Move AC_LIBOBJ invocations to module description.
50422         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
50423         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
50425 2011-05-23  Bruno Haible  <bruno@clisp.org>
50427         fcntl-safer: Move AC_LIBOBJ invocations to module description.
50428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
50429         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
50431 2011-05-23  Bruno Haible  <bruno@clisp.org>
50433         exclude: Move AC_LIBOBJ invocations to module description.
50434         * m4/exclude.m4: Remove file.
50435         * modules/exclude (Files): Remove it.
50436         (configure.ac): Remove gl_EXCLUDE call.
50437         (Makefile.am): Augment lib_SOURCES.
50439 2011-05-23  Bruno Haible  <bruno@clisp.org>
50441         dirname*: Respect rules for use of AC_LIBOBJ.
50442         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
50443         invocations.
50444         * modules/dirname (Makefile.am): Augment lib_SOURCES.
50445         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
50447 2011-05-23  Bruno Haible  <bruno@clisp.org>
50449         dirent-safer: Move AC_LIBOBJ invocations to module description.
50450         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
50451         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
50453 2011-05-23  Bruno Haible  <bruno@clisp.org>
50455         crypto/des: Move AC_LIBOBJ invocations to module description.
50456         * m4/des.m4: Remove file.
50457         * modules/crypto/des (Files): Remove it.
50458         (configure.ac): Remove gl_DES call.
50459         (Makefile.am): Augment lib_SOURCES.
50461 2011-05-23  Bruno Haible  <bruno@clisp.org>
50463         cycle-check: Move AC_LIBOBJ invocations to module description.
50464         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
50465         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
50467 2011-05-23  Bruno Haible  <bruno@clisp.org>
50469         c-strtold: Move AC_LIBOBJ invocations to module description.
50470         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
50471         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
50473 2011-05-23  Bruno Haible  <bruno@clisp.org>
50475         c-strtod: Move AC_LIBOBJ invocations to module description.
50476         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
50477         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
50479 2011-05-23  Bruno Haible  <bruno@clisp.org>
50481         crc: Move AC_LIBOBJ invocations to module description.
50482         * m4/crc.m4: Remove file.
50483         * modules/crc (Files): Remove it.
50484         (configure.ac): Remove gl_CRC call.
50485         (Makefile.am): Augment lib_SOURCES.
50487 2011-05-23  Bruno Haible  <bruno@clisp.org>
50489         close-stream: Move AC_LIBOBJ invocations to module description.
50490         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
50491         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
50493 2011-05-23  Bruno Haible  <bruno@clisp.org>
50495         closeout: Move AC_LIBOBJ invocations to module description.
50496         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
50497         * modules/closeout (Makefile.am): Augment lib_SOURCES.
50499 2011-05-23  Bruno Haible  <bruno@clisp.org>
50501         closein: Move AC_LIBOBJ invocations to module description.
50502         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
50503         * modules/closein (Makefile.am): Augment lib_SOURCES.
50505 2011-05-23  Bruno Haible  <bruno@clisp.org>
50507         cloexec: Move AC_LIBOBJ invocations to module description.
50508         * m4/cloexec.m4: Remove file.
50509         * modules/cloexec (Files): Remove it.
50510         (configure.ac): Remove gl_CLOEXEC call.
50511         (Makefile.am): Augment lib_SOURCES.
50513 2011-05-23  Bruno Haible  <bruno@clisp.org>
50515         check-version: Move AC_LIBOBJ invocations to module description.
50516         * m4/check-version.m4: Remove file.
50517         * modules/check-version (Files): Remove it.
50518         (configure.ac): Remove gl_CHECK_VERSION call.
50519         (Makefile.am): Augment lib_SOURCES.
50521 2011-05-23  Bruno Haible  <bruno@clisp.org>
50523         chdir-safer: Move AC_LIBOBJ invocations to module description.
50524         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
50525         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
50527 2011-05-23  Bruno Haible  <bruno@clisp.org>
50529         canonicalize: Move AC_LIBOBJ invocations to module description.
50530         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
50531         AC_LIBOBJ invocation.
50532         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
50534 2011-05-23  Bruno Haible  <bruno@clisp.org>
50536         canon-host: Move AC_LIBOBJ invocations to module description.
50537         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
50538         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
50539         instead of gl_CANON_HOST.
50540         (Makefile.am): Augment lib_SOURCES.
50542 2011-05-23  Bruno Haible  <bruno@clisp.org>
50544         backupfile: Move AC_LIBOBJ invocations to module description.
50545         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
50546         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
50548 2011-05-23  Bruno Haible  <bruno@clisp.org>
50550         argmatch: Move AC_LIBOBJ invocations to module description.
50551         * m4/argmatch.m4: Remove file.
50552         * modules/argmatch (Files): Remove it.
50553         (configure.ac): Remove gl_ARGMATCH call.
50554         (Makefile.am): Augment lib_SOURCES.
50556 2011-05-23  Bruno Haible  <bruno@clisp.org>
50558         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
50559         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
50560         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
50562 2011-05-23  Bruno Haible  <bruno@clisp.org>
50564         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
50565         * m4/arcfour.m4: Remove file.
50566         * modules/crypto/arcfour (Files): Remove it.
50567         (configure.ac): Remove gl_ARCFOUR call.
50568         (Makefile.am): Augment lib_SOURCES.
50570 2011-05-22  Bruno Haible  <bruno@clisp.org>
50572         write: Move AC_LIBOBJ invocations to module description.
50573         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
50574         * modules/write (configure.ac): ... to here.
50576 2011-05-22  Bruno Haible  <bruno@clisp.org>
50578         wmemset: Move AC_LIBOBJ invocations to module description.
50579         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
50580         here...
50581         * modules/wmemset (configure.ac): ... to here.
50583 2011-05-22  Bruno Haible  <bruno@clisp.org>
50585         wmemmove: Move AC_LIBOBJ invocations to module description.
50586         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
50587         here...
50588         * modules/wmemmove (configure.ac): ... to here.
50590 2011-05-22  Bruno Haible  <bruno@clisp.org>
50592         wmemcpy: Move AC_LIBOBJ invocations to module description.
50593         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
50594         here...
50595         * modules/wmemcpy (configure.ac): ... to here.
50597 2011-05-22  Bruno Haible  <bruno@clisp.org>
50599         wmemcmp: Move AC_LIBOBJ invocations to module description.
50600         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
50601         here...
50602         * modules/wmemcmp (configure.ac): ... to here.
50604 2011-05-22  Bruno Haible  <bruno@clisp.org>
50606         wmemchr: Move AC_LIBOBJ invocations to module description.
50607         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
50608         here...
50609         * modules/wmemchr (configure.ac): ... to here.
50611 2011-05-22  Bruno Haible  <bruno@clisp.org>
50613         wcswidth: Move AC_LIBOBJ invocations to module description.
50614         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
50615         here...
50616         * modules/wcswidth (configure.ac): ... to here.
50618 2011-05-22  Bruno Haible  <bruno@clisp.org>
50620         wcwidth: Respect rules for use of AC_LIBOBJ.
50621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
50622         invocation from here...
50623         * modules/wcwidth (configure.ac): ... to here.
50624         (Depends-on): Update conditions.
50626 2011-05-22  Bruno Haible  <bruno@clisp.org>
50628         wctype: Move AC_LIBOBJ invocations to module description.
50629         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
50630         invocation from here...
50631         * modules/wctype (configure.ac): ... to here.
50632         (Depends-on): Update conditions.
50634 2011-05-22  Bruno Haible  <bruno@clisp.org>
50636         wctrans: Move AC_LIBOBJ invocations to module description.
50637         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
50638         invocation from here...
50639         * modules/wctrans (configure.ac): ... to here.
50641 2011-05-22  Bruno Haible  <bruno@clisp.org>
50643         wctomb: Move AC_LIBOBJ invocations to module description.
50644         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
50645         invocations from here...
50646         * modules/wctomb (configure.ac): ... to here.
50648 2011-05-22  Bruno Haible  <bruno@clisp.org>
50650         wctob: Move AC_LIBOBJ invocations to module description.
50651         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
50652         gl_PREREQ_WCTOB invocations from here...
50653         * modules/wctob (configure.ac): ... to here.
50654         (Depends-on): Update conditions.
50656 2011-05-22  Bruno Haible  <bruno@clisp.org>
50658         wcsxfrm: Move AC_LIBOBJ invocations to module description.
50659         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
50660         here...
50661         * modules/wcsxfrm (configure.ac): ... to here.
50663 2011-05-22  Bruno Haible  <bruno@clisp.org>
50665         wcstok: Move AC_LIBOBJ invocations to module description.
50666         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
50667         * modules/wcstok (configure.ac): ... to here.
50669 2011-05-22  Bruno Haible  <bruno@clisp.org>
50671         wcsstr: Move AC_LIBOBJ invocations to module description.
50672         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
50673         * modules/wcsstr (configure.ac): ... to here.
50675 2011-05-22  Bruno Haible  <bruno@clisp.org>
50677         wcsspn: Move AC_LIBOBJ invocations to module description.
50678         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
50679         * modules/wcsspn (configure.ac): ... to here.
50681 2011-05-22  Bruno Haible  <bruno@clisp.org>
50683         wcsrtombs: Move AC_LIBOBJ invocations to module description.
50684         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
50685         gl_PREREQ_WCSRTOMBS invocations from here...
50686         * modules/wcsrtombs (configure.ac): ... to here.
50688 2011-05-22  Bruno Haible  <bruno@clisp.org>
50690         wcsrchr: Move AC_LIBOBJ invocations to module description.
50691         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
50692         here...
50693         * modules/wcsrchr (configure.ac): ... to here.
50695 2011-05-22  Bruno Haible  <bruno@clisp.org>
50697         wcspbrk: Move AC_LIBOBJ invocations to module description.
50698         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
50699         here...
50700         * modules/wcspbrk (configure.ac): ... to here.
50702 2011-05-22  Bruno Haible  <bruno@clisp.org>
50704         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
50705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
50706         gl_PREREQ_WCSNRTOMBS invocations from here...
50707         * modules/wcsnrtombs (configure.ac): ... to here.
50709 2011-05-22  Bruno Haible  <bruno@clisp.org>
50711         wcsnlen: Move AC_LIBOBJ invocations to module description.
50712         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
50713         here...
50714         * modules/wcsnlen (configure.ac): ... to here.
50716 2011-05-22  Bruno Haible  <bruno@clisp.org>
50718         wcsncpy: Move AC_LIBOBJ invocations to module description.
50719         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
50720         here...
50721         * modules/wcsncpy (configure.ac): ... to here.
50723 2011-05-22  Bruno Haible  <bruno@clisp.org>
50725         wcsncmp: Move AC_LIBOBJ invocations to module description.
50726         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
50727         here...
50728         * modules/wcsncmp (configure.ac): ... to here.
50730 2011-05-22  Bruno Haible  <bruno@clisp.org>
50732         wcsncat: Move AC_LIBOBJ invocations to module description.
50733         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
50734         here...
50735         * modules/wcsncat (configure.ac): ... to here.
50737 2011-05-22  Bruno Haible  <bruno@clisp.org>
50739         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
50740         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
50741         from here...
50742         * modules/wcsncasecmp (configure.ac): ... to here.
50744 2011-05-22  Bruno Haible  <bruno@clisp.org>
50746         wcslen: Move AC_LIBOBJ invocations to module description.
50747         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
50748         * modules/wcslen (configure.ac): ... to here.
50750 2011-05-22  Bruno Haible  <bruno@clisp.org>
50752         wcsdup: Move AC_LIBOBJ invocations to module description.
50753         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
50754         * modules/wcsdup (configure.ac): ... to here.
50756 2011-05-22  Bruno Haible  <bruno@clisp.org>
50758         wcscspn: Move AC_LIBOBJ invocations to module description.
50759         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
50760         here...
50761         * modules/wcscspn (configure.ac): ... to here.
50763 2011-05-22  Bruno Haible  <bruno@clisp.org>
50765         wcscpy: Move AC_LIBOBJ invocations to module description.
50766         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
50767         * modules/wcscpy (configure.ac): ... to here.
50769 2011-05-22  Bruno Haible  <bruno@clisp.org>
50771         wcscoll: Move AC_LIBOBJ invocations to module description.
50772         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
50773         here...
50774         * modules/wcscoll (configure.ac): ... to here.
50776 2011-05-22  Bruno Haible  <bruno@clisp.org>
50778         wcscmp: Move AC_LIBOBJ invocations to module description.
50779         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
50780         * modules/wcscmp (configure.ac): ... to here.
50782 2011-05-22  Bruno Haible  <bruno@clisp.org>
50784         wcschr: Move AC_LIBOBJ invocations to module description.
50785         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
50786         * modules/wcschr (configure.ac): ... to here.
50788 2011-05-22  Bruno Haible  <bruno@clisp.org>
50790         wcscat: Move AC_LIBOBJ invocations to module description.
50791         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
50792         * modules/wcscat (configure.ac): ... to here.
50794 2011-05-22  Bruno Haible  <bruno@clisp.org>
50796         wcscasecmp: Move AC_LIBOBJ invocations to module description.
50797         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
50798         here...
50799         * modules/wcscasecmp (configure.ac): ... to here.
50801 2011-05-22  Bruno Haible  <bruno@clisp.org>
50803         wcrtomb: Move AC_LIBOBJ invocations to module description.
50804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
50805         invocations from here...
50806         * modules/wcrtomb (configure.ac): ... to here.
50808 2011-05-22  Bruno Haible  <bruno@clisp.org>
50810         wcpncpy: Move AC_LIBOBJ invocations to module description.
50811         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
50812         here...
50813         * modules/wcpncpy (configure.ac): ... to here.
50815 2011-05-22  Bruno Haible  <bruno@clisp.org>
50817         wcpcpy: Move AC_LIBOBJ invocations to module description.
50818         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
50819         * modules/wcpcpy (configure.ac): ... to here.
50821 2011-05-22  Bruno Haible  <bruno@clisp.org>
50823         waitpid: Move AC_LIBOBJ invocations to module description.
50824         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
50825         invocation from here...
50826         * modules/waitpid (configure.ac): ... to here.
50828 2011-05-22  Bruno Haible  <bruno@clisp.org>
50830         utimensat: Move AC_LIBOBJ invocations to module description.
50831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
50832         here...
50833         * modules/utimensat (configure.ac): ... to here.
50835 2011-05-22  Bruno Haible  <bruno@clisp.org>
50837         usleep: Move AC_LIBOBJ invocations to module description.
50838         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
50839         here...
50840         * modules/usleep (configure.ac): ... to here.
50842 2011-05-22  Bruno Haible  <bruno@clisp.org>
50844         unlockpt: Move AC_LIBOBJ invocations to module description.
50845         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
50846         gl_PREREQ_UNLOCKPT invocations from here...
50847         * modules/unlockpt (configure.ac): ... to here.
50849 2011-05-22  Bruno Haible  <bruno@clisp.org>
50851         unlink: Respect rules for use of AC_LIBOBJ.
50852         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
50853         * modules/unlink (configure.ac): ... to here.
50855 2011-05-22  Bruno Haible  <bruno@clisp.org>
50857         uname: Move AC_LIBOBJ invocations to module description.
50858         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
50859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
50860         here...
50861         * modules/uname (configure.ac): ... to here.
50863 2011-05-22  Bruno Haible  <bruno@clisp.org>
50865         ttyname_r: Move AC_LIBOBJ invocations to module description.
50866         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
50867         gl_PREREQ_TTYNAME_R invocations from here...
50868         * modules/ttyname_r (configure.ac): ... to here.
50870 2011-05-22  Bruno Haible  <bruno@clisp.org>
50872         tsearch: Move AC_LIBOBJ invocations to module description.
50873         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
50874         invocations from here...
50875         * modules/tsearch (configure.ac): ... to here.
50877 2011-05-22  Bruno Haible  <bruno@clisp.org>
50879         towctrans: Move AC_LIBOBJ invocations to module description.
50880         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
50881         AC_LIBOBJ invocation from here...
50882         * modules/towctrans (configure.ac): ... to here.
50884 2011-05-22  Bruno Haible  <bruno@clisp.org>
50886         tmpfile: Move AC_LIBOBJ invocations to module description.
50887         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
50888         invocations from here...
50889         * modules/tmpfile (configure.ac): ... to here.
50891 2011-05-22  Bruno Haible  <bruno@clisp.org>
50893         times: Move AC_LIBOBJ invocations to module description.
50894         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
50895         * modules/times (configure.ac): ... to here.
50897 2011-05-22  Bruno Haible  <bruno@clisp.org>
50899         time_r: Move AC_LIBOBJ invocations to module description.
50900         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
50901         invocations from here...
50902         * modules/time_r (configure.ac): ... to here.
50904 2011-05-22  Bruno Haible  <bruno@clisp.org>
50906         timegm: Move AC_LIBOBJ invocations to module description.
50907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
50908         invocations from here...
50909         * modules/timegm (configure.ac): ... to here.
50911 2011-05-22  Bruno Haible  <bruno@clisp.org>
50913         tcgetsid: Move AC_LIBOBJ invocations to module description.
50914         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
50915         and gl_PREREQ_TCGETSID invocations from here...
50916         * modules/tcgetsid (configure.ac): ... to here.
50917         (Depends-on): Update conditions.
50919 2011-05-22  Bruno Haible  <bruno@clisp.org>
50921         symlinkat: Move AC_LIBOBJ invocations to module description.
50922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
50923         here...
50924         * modules/symlinkat (configure.ac): ... to here.
50926 2011-05-22  Bruno Haible  <bruno@clisp.org>
50928         symlink: Move AC_LIBOBJ invocations to module description.
50929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
50930         here...
50931         * modules/symlink (configure.ac): ... to here.
50933 2011-05-22  Bruno Haible  <bruno@clisp.org>
50935         strverscmp: Move AC_LIBOBJ invocations to module description.
50936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
50937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
50938         from here...
50939         * modules/strverscmp (configure.ac): ... to here.
50941 2011-05-22  Bruno Haible  <bruno@clisp.org>
50943         strtok_r: Move AC_LIBOBJ invocations to module description.
50944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
50945         and gl_PREREQ_STRTOK_R invocations from here...
50946         * modules/strtok_r (configure.ac): ... to here.
50947         (Depends-on): Update conditions.
50949 2011-05-22  Bruno Haible  <bruno@clisp.org>
50951         strtoumax: Move AC_LIBOBJ invocations to module description.
50952         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
50953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
50954         from here...
50955         * modules/strtoumax (configure.ac): ... to here.
50957 2011-05-22  Bruno Haible  <bruno@clisp.org>
50959         strtoimax: Move AC_LIBOBJ invocations to module description.
50960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
50961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
50962         from here...
50963         * modules/strtoimax (configure.ac): ... to here.
50965 2011-05-22  Bruno Haible  <bruno@clisp.org>
50967         strtoull: Move AC_LIBOBJ invocations to module description.
50968         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
50969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
50970         from here...
50971         * modules/strtoull (configure.ac): ... to here.
50973 2011-05-22  Bruno Haible  <bruno@clisp.org>
50975         strtoll: Move AC_LIBOBJ invocations to module description.
50976         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
50977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
50978         here...
50979         * modules/strtoll (configure.ac): ... to here.
50981 2011-05-22  Bruno Haible  <bruno@clisp.org>
50983         strtoul: Move AC_LIBOBJ invocations to module description.
50984         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
50985         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
50986         * modules/strtoul (configure.ac): ... to here.
50988 2011-05-22  Bruno Haible  <bruno@clisp.org>
50990         strtol: Move AC_LIBOBJ invocations to module description.
50991         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
50992         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
50993         * modules/strtol (configure.ac): ... to here.
50995 2011-05-22  Bruno Haible  <bruno@clisp.org>
50997         strtod: Move AC_LIBOBJ invocations to module description.
50998         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
50999         invocations from here...
51000         * modules/strtod (configure.ac): ... to here.
51002 2011-05-22  Bruno Haible  <bruno@clisp.org>
51004         strstr*: Move AC_LIBOBJ invocations to module description.
51005         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
51006         invocations from here...
51007         * modules/strstr-simple (configure.ac): ... to here.
51008         * modules/strstr (configure.ac): ... and here.
51010 2011-05-22  Bruno Haible  <bruno@clisp.org>
51012         strsignal: Move AC_LIBOBJ invocations to module description.
51013         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
51014         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
51015         * modules/strsignal (configure.ac): ... to here.
51016         (Depends-on): Update conditions.
51018 2011-05-22  Bruno Haible  <bruno@clisp.org>
51020         strsep: Move AC_LIBOBJ invocations to module description.
51021         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
51022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
51023         here...
51024         * modules/strsep (configure.ac): ... to here.
51026 2011-05-22  Bruno Haible  <bruno@clisp.org>
51028         strptime: Move AC_LIBOBJ invocations to module description.
51029         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
51030         gl_PREREQ_STRPTIME invocations from here...
51031         * modules/strptime (configure.ac): ... to here.
51033 2011-05-22  Bruno Haible  <bruno@clisp.org>
51035         strpbrk: Move AC_LIBOBJ invocations to module description.
51036         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
51037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
51038         here...
51039         * modules/strpbrk (configure.ac): ... to here.
51041 2011-05-22  Bruno Haible  <bruno@clisp.org>
51043         strnlen: Move AC_LIBOBJ invocations to module description.
51044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
51045         invocations from here...
51046         * modules/strnlen (configure.ac): ... to here.
51048 2011-05-22  Bruno Haible  <bruno@clisp.org>
51050         strndup: Move AC_LIBOBJ invocations to module description.
51051         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
51052         invocations from here...
51053         * modules/strndup (configure.ac): ... to here.
51054         (Depends-on): Update conditions.
51056 2011-05-22  Bruno Haible  <bruno@clisp.org>
51058         strncat: Move AC_LIBOBJ invocations to module description.
51059         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
51060         invocations from here...
51061         * modules/strncat (configure.ac): ... to here.
51063 2011-05-22  Bruno Haible  <bruno@clisp.org>
51065         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
51066         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
51067         invocations from here...
51068         * modules/strdup (configure.ac): ... to here.
51069         * modules/strdup-posix (configure.ac): ... and here.
51071 2011-05-22  Bruno Haible  <bruno@clisp.org>
51073         strcspn: Move AC_LIBOBJ invocations to module description.
51074         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
51075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
51076         here...
51077         * modules/strcspn (configure.ac): ... to here.
51079 2011-05-22  Bruno Haible  <bruno@clisp.org>
51081         strchrnul: Move AC_LIBOBJ invocations to module description.
51082         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
51083         gl_PREREQ_STRCHRNUL invocations from here...
51084         * modules/strchrnul (configure.ac): ... to here.
51086 2011-05-22  Bruno Haible  <bruno@clisp.org>
51088         strcasestr*: Move AC_LIBOBJ invocations to module description.
51089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
51090         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
51091         * modules/strcasestr-simple (configure.ac): ... to here.
51092         * modules/strcasestr (configure.ac): ... and here.
51094 2011-05-22  Bruno Haible  <bruno@clisp.org>
51096         strcase: Move AC_LIBOBJ invocations to module description.
51097         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
51098         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
51099         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
51100         gl_PREREQ_STRNCASECMP invocations from here...
51101         * modules/strcase (configure.ac): ... to here.
51103 2011-05-22  Bruno Haible  <bruno@clisp.org>
51105         stpncpy: Move AC_LIBOBJ invocations to module description.
51106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
51107         here...
51108         * modules/stpncpy (configure.ac): ... to here.
51110 2011-05-22  Bruno Haible  <bruno@clisp.org>
51112         stpcpy: Move AC_LIBOBJ invocations to module description.
51113         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
51114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
51115         here...
51116         * modules/stpcpy (configure.ac): ... to here.
51118 2011-05-21  Bruno Haible  <bruno@clisp.org>
51120         stat: Move AC_LIBOBJ invocations to module description.
51121         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
51122         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
51123         here...
51124         * modules/stat (configure.ac): ... to here.
51126 2011-05-21  Bruno Haible  <bruno@clisp.org>
51128         sleep: Move AC_LIBOBJ invocations to module description.
51129         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
51130         * modules/sleep (configure.ac): ... to here.
51132 2011-05-21  Bruno Haible  <bruno@clisp.org>
51134         signbit: Move AC_LIBOBJ invocations to module description.
51135         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
51136         * modules/signbit (configure.ac): ... to here.
51138 2011-05-21  Bruno Haible  <bruno@clisp.org>
51140         sigprocmask: Move AC_LIBOBJ invocations to module description.
51141         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
51142         gl_PREREQ_SIGPROMASK invocations from here...
51143         * modules/sigprocmask (configure.ac): ... to here.
51145 2011-05-21  Bruno Haible  <bruno@clisp.org>
51147         sigaction: Move AC_LIBOBJ invocations to module description.
51148         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
51149         gl_PREREQ_SIGACTION invocations from here...
51150         * modules/sigaction (configure.ac): ... to here.
51152 2011-05-21  Bruno Haible  <bruno@clisp.org>
51154         sig2str: Move AC_LIBOBJ invocations to module description.
51155         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
51156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
51157         here...
51158         * modules/sig2str (configure.ac): ... to here.
51160 2011-05-21  Bruno Haible  <bruno@clisp.org>
51162         setlocale: Move AC_LIBOBJ invocations to module description.
51163         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
51164         gl_PREREQ_SETLOCALE invocations from here...
51165         * modules/setlocale (configure.ac): ... to here.
51167 2011-05-21  Bruno Haible  <bruno@clisp.org>
51169         unsetenv: Move AC_LIBOBJ invocations to module description.
51170         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
51171         and gl_PREREQ_UNSETENV invocations from here...
51172         * modules/unsetenv (configure.ac): ... to here.
51173         (Depends-on): Update.
51175 2011-05-21  Bruno Haible  <bruno@clisp.org>
51177         setenv: Move AC_LIBOBJ invocations to module description.
51178         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
51179         here...
51180         * modules/setenv (configure.ac): ... to here.
51182 2011-05-21  Bruno Haible  <bruno@clisp.org>
51184         selinux-h: Move AC_LIBOBJ invocations to module description.
51185         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
51186         AC_LIBOBJ invocation from here...
51187         * modules/selinux-h (configure.ac): ... to here.
51189 2011-05-21  Bruno Haible  <bruno@clisp.org>
51191         select: Respect rules for use of AC_LIBOBJ.
51192         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
51193         here...
51194         * modules/select (configure.ac): ... to here.
51196 2011-05-21  Bruno Haible  <bruno@clisp.org>
51198         scandir: Move AC_LIBOBJ invocations to module description.
51199         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
51200         invocations from here...
51201         * modules/scandir (configure.ac): ... to here.
51203 2011-05-21  Bruno Haible  <bruno@clisp.org>
51205         rpmatch: Move AC_LIBOBJ invocations to module description.
51206         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
51207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
51208         here...
51209         * modules/rpmatch (configure.ac): ... to here.
51211 2011-05-21  Bruno Haible  <bruno@clisp.org>
51213         rmdir: Respect rules for use of AC_LIBOBJ.
51214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
51215         * modules/rmdir (configure.ac): ... to here.
51217 2011-05-21  Bruno Haible  <bruno@clisp.org>
51219         renameat: Move AC_LIBOBJ invocations to module description.
51220         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
51221         here...
51222         * modules/renameat (configure.ac): ... to here.
51224 2011-05-21  Bruno Haible  <bruno@clisp.org>
51226         rename: Respect rules for use of AC_LIBOBJ.
51227         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
51228         here...
51229         * modules/rename (configure.ac): ... to here.
51231 2011-05-21  Bruno Haible  <bruno@clisp.org>
51233         remove: Move AC_LIBOBJ invocations to module description.
51234         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
51235         here...
51236         * modules/remove (configure.ac): ... to here.
51238 2011-05-21  Bruno Haible  <bruno@clisp.org>
51240         relocatable-lib: Move AC_LIBOBJ invocations to module description.
51241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
51242         macro.
51243         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
51244         * modules/relocatable-lib (configure.ac): ... to here.
51245         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51246         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
51248 2011-05-21  Bruno Haible  <bruno@clisp.org>
51250         relocatable-prog: Move AC_LIBOBJ invocations to module description.
51251         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
51252         here...
51253         * modules/relocatable-prog (configure.ac): ... to here.
51255 2011-05-21  Bruno Haible  <bruno@clisp.org>
51257         regex: Move AC_LIBOBJ invocations to module description.
51258         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
51259         invocations from here...
51260         * modules/regex (configure.ac): ... to here.
51262 2011-05-21  Bruno Haible  <bruno@clisp.org>
51264         realloc-*: Move AC_LIBOBJ invocations to module description.
51265         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
51266         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
51267         AC_LIBOBJ invocations from here...
51268         * modules/realloc-gnu (configure.ac): ... to here.
51269         * modules/realloc-posix (configure.ac): ... and here.
51271 2011-05-21  Bruno Haible  <bruno@clisp.org>
51273         readutmp: Move AC_LIBOBJ invocations to module description.
51274         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
51275         * modules/readutmp (configure.ac): ... to here.
51277 2011-05-21  Bruno Haible  <bruno@clisp.org>
51279         readlinkat: Move AC_LIBOBJ invocations to module description.
51280         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
51281         here...
51282         * modules/readlinkat (configure.ac): ... to here.
51284 2011-05-21  Bruno Haible  <bruno@clisp.org>
51286         readlink: Move AC_LIBOBJ invocations to module description.
51287         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
51288         gl_PREREQ_READLINK invocations from here...
51289         * modules/readlink (configure.ac): ... to here.
51291 2011-05-21  Bruno Haible  <bruno@clisp.org>
51293         readline: Move AC_LIBOBJ invocations to module description.
51294         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
51295         gl_PREREQ_READLINE invocations from here...
51296         * modules/readline (configure.ac): ... to here.
51298 2011-05-21  Bruno Haible  <bruno@clisp.org>
51300         read: Move AC_LIBOBJ invocations to module description.
51301         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
51302         * modules/read (configure.ac): ... to here.
51304 2011-05-21  Bruno Haible  <bruno@clisp.org>
51306         rawmemchr: Move AC_LIBOBJ invocations to module description.
51307         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
51308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
51309         from here...
51310         * modules/rawmemchr (configure.ac): ... to here.
51312 2011-05-21  Bruno Haible  <bruno@clisp.org>
51314         random_r: Move AC_LIBOBJ invocations to module description.
51315         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
51316         gl_PREREQ_RANDOM_R invocations from here...
51317         * modules/random_r (configure.ac): ... to here.
51319 2011-05-21  Bruno Haible  <bruno@clisp.org>
51321         pwrite: Move AC_LIBOBJ invocations to module description.
51322         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
51323         * modules/pwrite (configure.ac): ... to here.
51325 2011-05-21  Bruno Haible  <bruno@clisp.org>
51327         putenv: Move AC_LIBOBJ invocations to module description.
51328         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
51329         * modules/putenv (configure.ac): ... to here.
51331 2011-05-21  Bruno Haible  <bruno@clisp.org>
51333         login_tty: Move AC_LIBOBJ invocations to module description.
51334         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
51335         * modules/login_tty (configure.ac): ... to here.
51337 2011-05-21  Bruno Haible  <bruno@clisp.org>
51339         openpty: Move AC_LIBOBJ invocations to module description.
51340         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
51341         * modules/openpty (configure.ac): ... to here.
51343 2011-05-21  Bruno Haible  <bruno@clisp.org>
51345         forkpty: Move AC_LIBOBJ invocations to module description.
51346         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
51347         * modules/forkpty (configure.ac): ... to here.
51349 2011-05-21  Bruno Haible  <bruno@clisp.org>
51351         ptsname: Move AC_LIBOBJ invocations to module description.
51352         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
51353         invocations from here...
51354         * modules/ptsname (configure.ac): ... to here.
51356 2011-05-21  Bruno Haible  <bruno@clisp.org>
51358         pread: Move AC_LIBOBJ invocations to module description.
51359         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
51360         * modules/pread (configure.ac): ... to here.
51362 2011-05-21  Bruno Haible  <bruno@clisp.org>
51364         posix_spawn*: Move AC_LIBOBJ invocations to module description.
51365         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
51366         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
51367         * modules/posix_spawn (configure.ac): ... to here.
51368         * modules/posix_spawnp (configure.ac): ... and here.
51370 2011-05-21  Bruno Haible  <bruno@clisp.org>
51372         popen: Move AC_LIBOBJ invocations to module description.
51373         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
51374         invocations from here...
51375         * modules/popen (configure.ac): ... to here.
51377 2011-05-21  Bruno Haible  <bruno@clisp.org>
51379         poll: Move AC_LIBOBJ invocations to module description.
51380         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
51381         invocations from here...
51382         * modules/poll (configure.ac): ... to here.
51384 2011-05-21  Bruno Haible  <bruno@clisp.org>
51386         pipe-posix: Move AC_LIBOBJ invocations to module description.
51387         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
51388         * modules/pipe-posix (configure.ac): ... to here.
51390 2011-05-21  Bruno Haible  <bruno@clisp.org>
51392         openat: Respect rules for use of AC_LIBOBJ.
51393         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
51394         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
51395         * modules/openat (configure.ac): ... to here.
51397 2011-05-21  Bruno Haible  <bruno@clisp.org>
51399         obstack-printf*: Move AC_LIBOBJ invocations to module description.
51400         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
51401         invocation from here...
51402         * modules/obstack-printf (configure.ac): ... to here.
51403         * modules/obstack-printf-posix (configure.ac): ... and here.
51405 2011-05-21  Bruno Haible  <bruno@clisp.org>
51407         nl_langinfo: Move AC_LIBOBJ invocations to module description.
51408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
51409         from here...
51410         * modules/nl_langinfo (configure.ac): ... to here.
51412 2011-05-21  Bruno Haible  <bruno@clisp.org>
51414         nanosleep: Move AC_LIBOBJ invocations to module description.
51415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
51416         gl_PREREQ_NANOSLEEP invocations from here...
51417         * modules/nanosleep (configure.ac): ... to here.
51419 2011-05-21  Bruno Haible  <bruno@clisp.org>
51421         mountlist: Move AC_LIBOBJ invocations to module description.
51422         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
51423         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
51424         * modules/mountlist (configure.ac): ... to here.
51426 2011-05-21  Bruno Haible  <bruno@clisp.org>
51428         mktime: Respect rules for use of AC_LIBOBJ.
51429         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
51430         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
51431         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
51432         (gl_FUNC_MKTIME_INTERNAL): ... and here...
51433         * modules/mktime (configure.ac): ... to here.
51434         * modules/mktime-internal (configure.ac): ... and here.
51435         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
51437 2011-05-21  Bruno Haible  <bruno@clisp.org>
51439         mkstemps: Move AC_LIBOBJ invocations to module description.
51440         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
51441         here...
51442         * modules/mkstemps (configure.ac): ... to here.
51444 2011-05-21  Bruno Haible  <bruno@clisp.org>
51446         mkstemp: Move AC_LIBOBJ invocations to module description.
51447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
51448         gl_PREREQ_MKSTEMP invocations from here...
51449         * modules/mkstemp (configure.ac): ... to here.
51451 2011-05-21  Bruno Haible  <bruno@clisp.org>
51453         mkostemps: Move AC_LIBOBJ invocations to module description.
51454         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
51455         here...
51456         * modules/mkostemps (configure.ac): ... to here.
51458 2011-05-21  Bruno Haible  <bruno@clisp.org>
51460         mkostemp: Move AC_LIBOBJ invocations to module description.
51461         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
51462         gl_PREREQ_MKOSTEMP invocations from here...
51463         * modules/mkostemp (configure.ac): ... to here.
51465 2011-05-21  Bruno Haible  <bruno@clisp.org>
51467         mknod: Move AC_LIBOBJ invocations to module description.
51468         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
51469         * modules/mknod (configure.ac): ... to here.
51471 2011-05-21  Bruno Haible  <bruno@clisp.org>
51473         mkfifoat: Move AC_LIBOBJ invocations to module description.
51474         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
51475         here...
51476         * modules/mkfifoat (configure.ac): ... to here.
51478 2011-05-21  Bruno Haible  <bruno@clisp.org>
51480         mkfifo: Respect rules for use of AC_LIBOBJ.
51481         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
51482         here...
51483         * modules/mkfifo (configure.ac): ... to here.
51485 2011-05-21  Bruno Haible  <bruno@clisp.org>
51487         mkdtemp: Move AC_LIBOBJ invocations to module description.
51488         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
51489         invocations from here...
51490         * modules/mkdtemp (configure.ac): ... to here.
51492 2011-05-21  Bruno Haible  <bruno@clisp.org>
51494         mkdir: Move AC_LIBOBJ invocations to module description.
51495         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
51496         * modules/mkdir (configure.ac): ... to here.
51498 2011-05-21  Bruno Haible  <bruno@clisp.org>
51500         memset: Move AC_LIBOBJ invocations to module description.
51501         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
51502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
51503         here...
51504         * modules/memset (configure.ac): ... to here.
51506 2011-05-21  Bruno Haible  <bruno@clisp.org>
51508         memrchr: Move AC_LIBOBJ invocations to module description.
51509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
51510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
51511         here...
51512         * modules/memrchr (configure.ac): ... to here.
51514 2011-05-21  Bruno Haible  <bruno@clisp.org>
51516         mempcpy: Move AC_LIBOBJ invocations to module description.
51517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
51518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
51519         here...
51520         * modules/mempcpy (configure.ac): ... to here.
51522 2011-05-21  Bruno Haible  <bruno@clisp.org>
51524         memmove: Move AC_LIBOBJ invocations to module description.
51525         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
51526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
51527         here...
51528         * modules/memmove (configure.ac): ... to here.
51530 2011-05-21  Bruno Haible  <bruno@clisp.org>
51532         memmem*: Move AC_LIBOBJ invocations to module description.
51533         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
51534         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
51535         here...
51536         (gl_FUNC_MEMMEM): ... and here...
51537         * modules/memmem-simple (configure.ac): ... to here.
51538         * modules/memmem (configure.ac): ... and here.
51540 2011-05-21  Bruno Haible  <bruno@clisp.org>
51542         memcpy: Move AC_LIBOBJ invocations to module description.
51543         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
51544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
51545         here...
51546         * modules/memcpy (configure.ac): ... to here.
51548 2011-05-21  Bruno Haible  <bruno@clisp.org>
51550         memcmp: Simplify autoconf macro.
51551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
51552         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
51553         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
51555 2011-05-21  Bruno Haible  <bruno@clisp.org>
51557         memcmp: Move AC_LIBOBJ invocations to module description.
51558         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
51559         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
51560         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
51561         * modules/memcmp (configure.ac): ... to here.
51562         (Depends-on): Update conditions.
51564 2011-05-21  Bruno Haible  <bruno@clisp.org>
51566         memchr: Respect rules for use of AC_LIBOBJ.
51567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
51568         invocations from here...
51569         * modules/memchr (configure.ac): ... to here.
51571 2011-05-21  Bruno Haible  <bruno@clisp.org>
51573         mbtowc: Move AC_LIBOBJ invocations to module description.
51574         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
51575         invocations from here...
51576         * modules/mbtowc (configure.ac): ... to here.
51578 2011-05-21  Bruno Haible  <bruno@clisp.org>
51580         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
51581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
51582         gl_PREREQ_MBSRTOWCS invocations from here...
51583         * modules/mbsrtowcs (configure.ac): ... to here.
51585 2011-05-21  Bruno Haible  <bruno@clisp.org>
51587         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
51588         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
51589         gl_PREREQ_MBSNRTOWCS invocations from here...
51590         * modules/mbsnrtowcs (configure.ac): ... to here.
51592 2011-05-21  Bruno Haible  <bruno@clisp.org>
51594         mbsinit: Move AC_LIBOBJ invocations to module description.
51595         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
51596         invocations from here...
51597         * modules/mbsinit (configure.ac): ... to here.
51599 2011-05-21  Bruno Haible  <bruno@clisp.org>
51601         mbrlen: Move AC_LIBOBJ invocations to module description.
51602         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
51603         invocations from here...
51604         * modules/mbrlen (configure.ac): ... to here.
51606 2011-05-21  Bruno Haible  <bruno@clisp.org>
51608         mbrtowc: Respect rules for use of AC_LIBOBJ.
51609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
51610         invocations from here...
51611         * modules/mbrtowc (configure.ac): ... to here.
51613 2011-05-21  Bruno Haible  <bruno@clisp.org>
51615         malloc-*: Move AC_LIBOBJ invocations to module description.
51616         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
51617         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
51618         AC_LIBOBJ invocations from here...
51619         * modules/malloc-gnu (configure.ac): ... to here.
51620         * modules/malloc-posix (configure.ac): ... and here.
51622 2011-05-21  Bruno Haible  <bruno@clisp.org>
51624         lstat, openat: Respect rules for use of AC_LIBOBJ.
51625         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
51626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
51627         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
51628         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
51629         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
51630         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
51631         here.
51632         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
51634 2011-05-21  Bruno Haible  <bruno@clisp.org>
51636         lseek: Move AC_LIBOBJ invocations to module description.
51637         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
51638         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
51639         * modules/lseek (configure.ac): ... to here.
51641 2011-05-21  Bruno Haible  <bruno@clisp.org>
51643         linkat: Move AC_LIBOBJ invocations to module description.
51644         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
51645         here...
51646         * modules/linkat (configure.ac): ... to here.
51648 2011-05-21  Bruno Haible  <bruno@clisp.org>
51650         link: Respect rules for use of AC_LIBOBJ.
51651         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
51652         * modules/link (configure.ac): ... to here.
51654 2011-05-21  Bruno Haible  <bruno@clisp.org>
51656         lchown: Move AC_LIBOBJ invocations to module description.
51657         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
51658         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
51659         * modules/lchown (configure.ac): ... to here.
51661 2011-05-21  Bruno Haible  <bruno@clisp.org>
51663         iswctype: Move AC_LIBOBJ invocations to module description.
51664         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
51665         here...
51666         * modules/iswctype (configure.ac): ... to here.
51668 2011-05-21  Bruno Haible  <bruno@clisp.org>
51670         iswblank: Move AC_LIBOBJ invocations to module description.
51671         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
51672         here...
51673         * modules/iswblank (configure.ac): ... to here.
51675 2011-05-21  Bruno Haible  <bruno@clisp.org>
51677         atanl: Move AC_LIBOBJ invocations to module description.
51678         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
51679         * modules/atanl (configure.ac): ... to here.
51681 2011-05-21  Bruno Haible  <bruno@clisp.org>
51683         acosl: Move AC_LIBOBJ invocations to module description.
51684         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
51685         * modules/acosl (configure.ac): ... to here.
51687 2011-05-21  Bruno Haible  <bruno@clisp.org>
51689         asinl: Respect rules for use of AC_LIBOBJ.
51690         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
51691         * modules/asinl (configure.ac): ... to here.
51693 2011-05-21  Bruno Haible  <bruno@clisp.org>
51695         tanl: Move AC_LIBOBJ invocations to module description.
51696         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
51697         * modules/tanl (configure.ac): ... to here.
51699 2011-05-21  Bruno Haible  <bruno@clisp.org>
51701         cosl: Move AC_LIBOBJ invocations to module description.
51702         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
51703         * modules/cosl (configure.ac): ... to here.
51705 2011-05-21  Bruno Haible  <bruno@clisp.org>
51707         sinl: Move AC_LIBOBJ invocations to module description.
51708         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
51709         * modules/sinl (configure.ac): ... to here.
51711 2011-05-21  Bruno Haible  <bruno@clisp.org>
51713         logl: Move AC_LIBOBJ invocations to module description.
51714         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
51715         * modules/logl (configure.ac): ... to here.
51717 2011-05-21  Bruno Haible  <bruno@clisp.org>
51719         expl: Move AC_LIBOBJ invocations to module description.
51720         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
51721         * modules/expl (configure.ac): ... to here.
51723 2011-05-21  Bruno Haible  <bruno@clisp.org>
51725         roundl: Move AC_LIBOBJ invocations to module description.
51726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
51727         * modules/roundl (configure.ac): ... to here.
51729 2011-05-21  Bruno Haible  <bruno@clisp.org>
51731         round: Move AC_LIBOBJ invocations to module description.
51732         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
51733         * modules/round (configure.ac): ... to here.
51735 2011-05-21  Bruno Haible  <bruno@clisp.org>
51737         roundf: Move AC_LIBOBJ invocations to module description.
51738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
51739         * modules/roundf (configure.ac): ... to here.
51741 2011-05-21  Bruno Haible  <bruno@clisp.org>
51743         truncl: Move AC_LIBOBJ invocations to module description.
51744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
51745         * modules/truncl (configure.ac): ... to here.
51747 2011-05-21  Bruno Haible  <bruno@clisp.org>
51749         trunc: Move AC_LIBOBJ invocations to module description.
51750         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
51751         * modules/trunc (configure.ac): ... to here.
51753 2011-05-21  Bruno Haible  <bruno@clisp.org>
51755         truncf: Move AC_LIBOBJ invocations to module description.
51756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
51757         * modules/truncf (configure.ac): ... to here.
51759 2011-05-21  Bruno Haible  <bruno@clisp.org>
51761         ceill: Move AC_LIBOBJ invocations to module description.
51762         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
51763         * modules/ceill (configure.ac): ... to here.
51765 2011-05-21  Bruno Haible  <bruno@clisp.org>
51767         ceil: Move AC_LIBOBJ invocations to module description.
51768         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
51769         * modules/ceil (configure.ac): ... to here.
51771 2011-05-21  Bruno Haible  <bruno@clisp.org>
51773         ceilf: Move AC_LIBOBJ invocations to module description.
51774         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
51775         * modules/ceilf (configure.ac): ... to here.
51777 2011-05-21  Bruno Haible  <bruno@clisp.org>
51779         floorl: Respect rules for use of AC_LIBOBJ.
51780         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
51781         * modules/floorl (configure.ac): ... to here.
51783 2011-05-21  Bruno Haible  <bruno@clisp.org>
51785         floor: Respect rules for use of AC_LIBOBJ.
51786         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
51787         * modules/floor (configure.ac): ... to here.
51789 2011-05-21  Bruno Haible  <bruno@clisp.org>
51791         floorf: Move AC_LIBOBJ invocations to module description.
51792         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
51793         * modules/floorf (configure.ac): ... to here.
51795 2011-05-20  Bruno Haible  <bruno@clisp.org>
51797         sqrtl: Respect rules for use of AC_LIBOBJ.
51798         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
51799         * modules/sqrtl (configure.ac): ... to here.
51801 2011-05-20  Bruno Haible  <bruno@clisp.org>
51803         ldexpl: Respect rules for use of AC_LIBOBJ.
51804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
51805         * modules/ldexpl (configure.ac): ... to here.
51807 2011-05-20  Bruno Haible  <bruno@clisp.org>
51809         frexpl*: Respect rules for use of AC_LIBOBJ.
51810         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
51811         invocation from here...
51812         * modules/frexpl (configure.ac): ... to here.
51813         * modules/frexpl-nolibm (configure.ac): ... and here.
51815 2011-05-20  Bruno Haible  <bruno@clisp.org>
51817         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
51818         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
51819         invocation from here...
51820         * modules/frexp (configure.ac): ... to here.
51821         * modules/frexp-nolibm (configure.ac): ... and here.
51823 2011-05-20  Bruno Haible  <bruno@clisp.org>
51825         isnan: Respect rules for use of AC_LIBOBJ.
51826         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
51827         invocations here.
51828         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
51829         REPLACE_ISNAN.
51830         * modules/isnand (configure.ac): Likewise.
51831         * modules/isnanl (configure.ac): Likewise.
51833 2011-05-20  Bruno Haible  <bruno@clisp.org>
51835         isnanl*: Respect rules for use of AC_LIBOBJ.
51836         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
51837         invocation from here...
51838         * modules/isnanl (configure.ac): ... to here.
51839         * modules/isnanl-nolibm (configure.ac): ... and here.
51841 2011-05-20  Bruno Haible  <bruno@clisp.org>
51843         isnand*: Move AC_LIBOBJ invocations to module description.
51844         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
51845         invocation from here...
51846         * modules/isnand (configure.ac): ... to here.
51847         * modules/isnand-nolibm (configure.ac): ... and here.
51849 2011-05-20  Bruno Haible  <bruno@clisp.org>
51851         isnanf*: Move AC_LIBOBJ invocations to module description.
51852         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
51853         invocation from here...
51854         * modules/isnanf (configure.ac): ... to here.
51855         * modules/isnanf-nolibm (configure.ac): ... and here.
51857 2011-05-20  Bruno Haible  <bruno@clisp.org>
51859         isnan*: Separate the AC_LIBOBJ invocations.
51860         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
51861         AC_LIBOBJ invocation.
51862         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
51863         here.
51864         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
51865         AC_LIBOBJ invocation.
51866         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
51867         here.
51868         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
51869         AC_LIBOBJ invocation.
51870         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
51871         here.
51872         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
51874 2011-05-08  Bruno Haible  <bruno@clisp.org>
51876         isinf: Move AC_LIBOBJ invocations to module description.
51877         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
51878         * modules/isinf (configure.ac): ... to here.
51880 2011-05-08  Bruno Haible  <bruno@clisp.org>
51882         isfinite: Move AC_LIBOBJ invocations to module description.
51883         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
51884         * modules/isfinite (configure.ac): ... to here.
51886 2011-05-08  Bruno Haible  <bruno@clisp.org>
51888         isblank: Move AC_LIBOBJ invocations to module description.
51889         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
51890         here...
51891         * modules/isblank (configure.ac): ... to here.
51893 2011-05-08  Bruno Haible  <bruno@clisp.org>
51895         isapipe: Move AC_LIBOBJ invocations to module description.
51896         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
51897         gl_PREREQ_ISAPIPE invocations from here...
51898         * modules/isapipe (configure.ac): ... to here.
51899         (Depends-on): Update condition.
51901 2011-05-08  Bruno Haible  <bruno@clisp.org>
51903         ioctl: Move AC_LIBOBJ invocations to module description.
51904         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
51905         invocations from here...
51906         * modules/ioctl (configure.ac): ... to here.
51907         (Depends-on): Update condition.
51909 2011-05-08  Bruno Haible  <bruno@clisp.org>
51911         imaxdiv: Move AC_LIBOBJ invocations to module description.
51912         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
51913         invocations from here...
51914         * modules/imaxdiv (configure.ac): ... to here.
51916 2011-05-08  Bruno Haible  <bruno@clisp.org>
51918         imaxabs: Move AC_LIBOBJ invocations to module description.
51919         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
51920         invocations from here...
51921         * modules/imaxabs (configure.ac): ... to here.
51923 2011-05-08  Bruno Haible  <bruno@clisp.org>
51925         getaddrinfo: Move AC_LIBOBJ invocations to module description.
51926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
51927         AC_LIBOBJ invocations from here...
51928         * modules/getaddrinfo (configure.ac): ... to here.
51929         (Depends-on): Add conditions.
51931 2011-05-08  Bruno Haible  <bruno@clisp.org>
51933         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
51934         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
51935         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
51936         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
51937         (gl_PREREQ_INET_PTON): ... from here.
51938         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
51939         gl_PREREQ_INET_PTON here.
51940         (Depends-on): Update condition.
51942 2011-05-08  Bruno Haible  <bruno@clisp.org>
51944         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
51945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
51946         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
51947         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
51948         (gl_PREREQ_INET_NTOP): ... from here.
51949         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
51950         gl_PREREQ_INET_NTOP here.
51951         (Depends-on): Update condition.
51953 2011-05-08  Bruno Haible  <bruno@clisp.org>
51955         iconv_open: Move AC_LIBOBJ invocations to module description.
51956         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
51957         AC_LIBOBJ invocations from here...
51958         * modules/iconv_open (configure.ac): ... to here.
51960 2011-05-08  Bruno Haible  <bruno@clisp.org>
51962         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
51963         If module 'iconv_open' is among the main modules and module
51964         'iconv_open-utf' is among the tests dependencies, then
51965         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
51966         return the special iconv_t values. Therefore iconv() and iconv_close()
51967         must support these special iconv_t values, already in lib, not only in
51968         tests.
51969         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
51970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
51971         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
51972         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
51973         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
51974         (Depends-on): Add the dependencies of iconv_open-utf.
51975         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
51976         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
51977         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
51979 2011-05-08  Bruno Haible  <bruno@clisp.org>
51981         group-member: Move AC_LIBOBJ invocations to module description.
51982         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
51983         gl_PREREQ_GROUP_MEMBER invocations from here...
51984         * modules/group-member (configure.ac): ... to here.
51986 2011-05-08  Bruno Haible  <bruno@clisp.org>
51988         grantpt: Move AC_LIBOBJ invocations to module description.
51989         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
51990         invocations from here...
51991         * modules/grantpt (configure.ac): ... to here.
51993 2011-05-08  Bruno Haible  <bruno@clisp.org>
51995         glob: Move AC_LIBOBJ invocations to module description.
51996         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
51997         from here...
51998         * modules/glob (configure.ac): ... to here.
52000 2011-05-08  Bruno Haible  <bruno@clisp.org>
52002         getusershell: Move AC_LIBOBJ invocations to module description.
52003         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
52004         Move AC_LIBOBJ invocation from here...
52005         * modules/getusershell (configure.ac): ... to here.
52006         (Depends-on): Update condition.
52008 2011-05-08  Bruno Haible  <bruno@clisp.org>
52010         gettimeofday: Move AC_LIBOBJ invocations to module description.
52011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52012         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
52013         gl_PREREQ_GETTIMEOFDAY invocations from here...
52014         * modules/gettimeofday (configure.ac): ... to here.
52016 2011-05-08  Bruno Haible  <bruno@clisp.org>
52018         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
52019         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
52020         just gl_FUNC_TZSET.
52021         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
52022         (gl_FUNC_TZSET_CLOBBER): Remove actions.
52023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
52024         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
52026 2011-05-08  Bruno Haible  <bruno@clisp.org>
52028         getsubopt: Move AC_LIBOBJ invocations to module description.
52029         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
52030         gl_PREREQ_GETSUBOPT invocations from here...
52031         * modules/getsubopt (configure.ac): ... to here.
52033 2011-05-08  Bruno Haible  <bruno@clisp.org>
52035         getpass-gnu: Move AC_LIBOBJ invocations to module description.
52036         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
52037         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
52038         * modules/getpass-gnu (configure.ac): ... to here.
52040 2011-05-08  Bruno Haible  <bruno@clisp.org>
52042         getpass: Move AC_LIBOBJ invocations to module description.
52043         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
52044         gl_PREREQ_GETPASS invocations from here...
52045         * modules/getpass (configure.ac): ... to here.
52047 2011-05-08  Bruno Haible  <bruno@clisp.org>
52049         getpagesize: Move AC_LIBOBJ invocations to module description.
52050         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
52051         from here...
52052         * modules/getpagesize (configure.ac): ... to here.
52054 2011-05-08  Bruno Haible  <bruno@clisp.org>
52056         getopt: Move AC_LIBOBJ invocations to module description.
52057         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
52058         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
52059         invocations from here...
52060         * modules/getopt-gnu (configure.ac): ... to here.
52061         * modules/getopt-posix (configure.ac): ... and here.
52062         (Depends-on): Update condition.
52064 2011-05-08  Bruno Haible  <bruno@clisp.org>
52066         getopt, argp: Respect rules for use of AC_LIBOBJ.
52067         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
52068         (gl_REPLACE_GETOPT_ALWAYS): New macro.
52069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
52070         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
52072 2011-05-08  Bruno Haible  <bruno@clisp.org>
52074         getlogin_r: Move AC_LIBOBJ invocations to module description.
52075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
52076         gl_PREREQ_GETLOGIN_R invocations from here...
52077         * modules/getlogin_r (configure.ac): ... to here.
52079 2011-05-08  Bruno Haible  <bruno@clisp.org>
52081         getlogin: Move AC_LIBOBJ invocations to module description.
52082         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
52083         here...
52084         * modules/getlogin (configure.ac): ... to here.
52086 2011-05-08  Bruno Haible  <bruno@clisp.org>
52088         getloadavg: Move AC_LIBOBJ invocations to module description.
52089         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
52090         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
52091         * modules/getloadavg (configure.ac): ... to here.
52093 2011-05-08  Bruno Haible  <bruno@clisp.org>
52095         gethrxtime: Move AC_LIBOBJ invocations to module description.
52096         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
52097         LIB_GETHRXTIME from here...
52098         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
52099         invocations from here...
52100         * modules/gethrxtime (configure.ac): ... to here.
52102 2011-05-08  Bruno Haible  <bruno@clisp.org>
52104         gethostname: Move AC_LIBOBJ invocations to module description.
52105         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
52106         gl_PREREQ_GETHOSTNAME invocations from here...
52107         * modules/gethostname (configure.ac): ... to here.
52109 2011-05-08  Bruno Haible  <bruno@clisp.org>
52111         getgroups: Move AC_LIBOBJ invocations to module description.
52112         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
52113         here...
52114         * modules/getgroups (configure.ac): ... to here.
52116 2011-05-08  Bruno Haible  <bruno@clisp.org>
52118         getdtablesize: Move AC_LIBOBJ invocations to module description.
52119         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
52120         invocation from here...
52121         * modules/getdtablesize (configure.ac): ... to here.
52123 2011-05-08  Bruno Haible  <bruno@clisp.org>
52125         getdomainname: Move AC_LIBOBJ invocations to module description.
52126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
52127         gl_PREREQ_GETDOMAINNAME invocations from here...
52128         * modules/getdomainname (configure.ac): ... to here.
52130 2011-05-08  Bruno Haible  <bruno@clisp.org>
52132         getline: Move AC_LIBOBJ invocations to module description.
52133         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
52134         invocations from here...
52135         * modules/getline (configure.ac): ... to here.
52137 2011-05-08  Bruno Haible  <bruno@clisp.org>
52139         getline: Simplify.
52140         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
52141         It's already handled through the module dependency.
52143 2011-05-08  Bruno Haible  <bruno@clisp.org>
52145         getdelim: Move AC_LIBOBJ invocations to module description.
52146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
52147         and gl_PREREQ_GETDELIM invocations from here...
52148         * modules/getdelim (configure.ac): ... to here.
52149         (Depends-on): Fix condition.
52151 2011-05-08  Bruno Haible  <bruno@clisp.org>
52153         getcwd: Move AC_LIBOBJ invocations to module description.
52154         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
52155         invocations from here...
52156         * modules/getcwd (configure.ac): ... to here.
52158 2011-05-08  Bruno Haible  <bruno@clisp.org>
52160         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
52161         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
52162         here...
52163         * modules/getcwd-lgpl (configure.ac): ... to here.
52165 2011-05-07  Bruno Haible  <bruno@clisp.org>
52167         crypto/gc: Move AC_LIBOBJ invocations to module description.
52168         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
52169         * modules/crypto/gc (configure.ac): ... to here.
52171 2011-05-07  Bruno Haible  <bruno@clisp.org>
52173         fwriting: Move AC_LIBOBJ invocations to module description.
52174         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
52175         here...
52176         * modules/fwriting (configure.ac): ... to here.
52178 2011-05-07  Bruno Haible  <bruno@clisp.org>
52180         fwritable: Move AC_LIBOBJ invocations to module description.
52181         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
52182         here...
52183         * modules/fwritable (configure.ac): ... to here.
52185 2011-05-07  Bruno Haible  <bruno@clisp.org>
52187         futimens: Move AC_LIBOBJ invocations to module description.
52188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
52189         here...
52190         * modules/futimens (configure.ac): ... to here.
52192 2011-05-07  Bruno Haible  <bruno@clisp.org>
52194         ftruncate: Move AC_LIBOBJ invocations to module description.
52195         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
52196         gl_PREREQ_FTRUNCATE invocations from here...
52197         * modules/ftruncate (configure.ac): ... to here.
52199 2011-05-07  Bruno Haible  <bruno@clisp.org>
52201         fsync: Move AC_LIBOBJ invocations to module description.
52202         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
52203         invocations from here...
52204         * modules/fsync (configure.ac): ... to here.
52206 2011-05-07  Bruno Haible  <bruno@clisp.org>
52208         fsusage: Move AC_LIBOBJ invocations to module description.
52209         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
52210         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
52211         * modules/fsusage (configure.ac): ... to here.
52213 2011-05-07  Bruno Haible  <bruno@clisp.org>
52215         freopen: Move AC_LIBOBJ invocations to module description.
52216         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
52217         invocations from here...
52218         * modules/freopen (configure.ac): ... to here.
52220 2011-05-07  Bruno Haible  <bruno@clisp.org>
52222         free: Move AC_LIBOBJ invocations to module description.
52223         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
52224         invocations from here...
52225         * modules/free (configure.ac): ... to here.
52227 2011-05-07  Bruno Haible  <bruno@clisp.org>
52229         freadable: Move AC_LIBOBJ invocations to module description.
52230         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
52231         here...
52232         * modules/freadable (configure.ac): ... to here.
52234 2011-05-07  Bruno Haible  <bruno@clisp.org>
52236         fpurge: Move AC_LIBOBJ invocations to module description.
52237         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
52238         invocations from here...
52239         * modules/fpurge (configure.ac): ... to here.
52241 2011-05-07  Bruno Haible  <bruno@clisp.org>
52243         fpending: Move AC_LIBOBJ invocations to module description.
52244         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
52245         gl_FUNC_FPENDING.
52246         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
52247         invocations from here...
52248         * modules/fpending (configure.ac): ... to here.
52250 2011-05-07  Bruno Haible  <bruno@clisp.org>
52252         fopen: Move AC_LIBOBJ invocations to module description.
52253         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
52254         invocations from here...
52255         * modules/fopen (configure.ac): ... to here.
52257 2011-05-07  Bruno Haible  <bruno@clisp.org>
52259         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
52260         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
52261         gl_FUNC_FNMATCH_POSIX.
52262         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
52263         invocations from here...
52264         * modules/fnmatch (configure.ac): ... to here.
52265         * modules/fnmatch-gnu (configure.ac): ... and here.
52267 2011-05-07  Bruno Haible  <bruno@clisp.org>
52269         flock: Move AC_LIBOBJ invocations to module description.
52270         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
52271         invocations from here...
52272         * modules/flock (configure.ac): ... to here.
52274 2011-05-07  Bruno Haible  <bruno@clisp.org>
52276         fileblocks: Move AC_LIBOBJ invocations to module description.
52277         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
52278         gl_PREREQ_FILEBLOCKS invocations from here...
52279         * modules/fileblocks (configure.ac): ... to here.
52281 2011-05-06  Bruno Haible  <bruno@clisp.org>
52283         fflush: Move AC_LIBOBJ invocations to module description.
52284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
52285         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
52286         invocations from here...
52287         * modules/fflush (configure.ac): ... to here.
52289 2011-05-06  Bruno Haible  <bruno@clisp.org>
52291         fdopendir: Move AC_LIBOBJ invocations to module description.
52292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
52293         here...
52294         * modules/fdopendir (configure.ac): ... to here.
52295         (Depends-on): Improve conditions.
52297 2011-05-06  Bruno Haible  <bruno@clisp.org>
52299         _Exit: Move AC_LIBOBJ invocations to module description.
52300         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
52301         invocations from here...
52302         * modules/_Exit (configure.ac): ... to here.
52304 2011-05-21  Bruno Haible  <bruno@clisp.org>
52306         euidaccess: Respect rules for use of AC_LIBOBJ.
52307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
52309         from here...
52310         * modules/euidaccess (configure.ac): ... to here.
52312 2011-05-06  Bruno Haible  <bruno@clisp.org>
52314         error: Move AC_LIBOBJ invocations to module description.
52315         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
52316         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
52317         invocations from here...
52318         * modules/error (configure.ac): ... to here.
52320 2011-05-06  Bruno Haible  <bruno@clisp.org>
52322         duplocale: Move AC_LIBOBJ invocations to module description.
52323         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
52324         gl_PREREQ_DUPLOCALE invocations from here...
52325         * modules/duplocale (configure.ac): ... to here.
52327 2011-05-05  Bruno Haible  <bruno@clisp.org>
52329         dirfd: Move AC_LIBOBJ invocations to module description.
52330         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
52331         gl_FUNC_DIRFD.
52332         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
52333         here...
52334         * modules/dirfd (configure.ac): ... to here.
52335         (Depends-on): Fix condition.
52337 2011-05-05  Bruno Haible  <bruno@clisp.org>
52339         chown: Respect rules for use of AC_LIBOBJ.
52340         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
52341         * modules/chown (configure.ac): ... to here.
52343 2011-05-05  Bruno Haible  <bruno@clisp.org>
52345         chdir-long: Move AC_LIBOBJ invocations to module description.
52346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
52347         gl_PREREQ_CHDIR_LONG invocations from here...
52348         * modules/chdir-long (configure.ac): ... to here.
52350 2011-05-05  Bruno Haible  <bruno@clisp.org>
52352         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
52353         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
52354         from here...
52355         * modules/canonicalize-lgpl (configure.ac): ... to here.
52357 2011-05-05  Bruno Haible  <bruno@clisp.org>
52359         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
52360         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
52361         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
52362         REPLACE_CALLOC.
52363         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
52364         * modules/calloc-gnu (configure.ac): Likewise.
52366 2011-05-05  Bruno Haible  <bruno@clisp.org>
52368         btowc: Move AC_LIBOBJ invocations to module description.
52369         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
52370         invocations from here...
52371         * modules/btowc (configure.ac): ... to here.
52373 2011-05-21  Bruno Haible  <bruno@clisp.org>
52375         atexit: Move AC_LIBOBJ invocations to module description.
52376         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
52377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
52378         here...
52379         * modules/atexit (configure.ac): ... to here.
52381 2011-05-05  Bruno Haible  <bruno@clisp.org>
52383         atoll: Move AC_LIBOBJ invocations to module description.
52384         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
52385         invocations from here...
52386         * modules/atoll (configure.ac): ... to here.
52388 2011-05-05  Bruno Haible  <bruno@clisp.org>
52390         argz: Move AC_LIBOBJ invocations to module description.
52391         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
52392         * modules/argz (configure.ac): ... to here.
52394 2011-05-05  Bruno Haible  <bruno@clisp.org>
52396         alphasort: Move AC_LIBOBJ invocations to module description.
52397         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
52398         gl_PREREQ_ALPHASORT invocations from here...
52399         * modules/alphasort (configure.ac): ... to here.
52401 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52403         verify: new macro verify_expr; verify_true deprecated
52404         * NEWS: Mention this.
52405         * doc/verify.texi (Compile-time Assertions): Document this.
52406         * lib/verify.h (verify_true): Deprecate.
52407         (verify_expr): New macro.
52408         * tests/test-verify.c (function): Test verify_expr.
52410 2011-06-14  Jim Meyering  <meyering@redhat.com>
52412         init.sh: give more portable redirection-related advice in a comment
52413         * tests/init.sh (stderr_fileno_): Update the advice in comments.
52414         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
52415         for lots of discussion.  Stefano Lattarini suggested the solution
52416         of putting "9>&2" after the command.  Reported by Bruno Haible.
52418 2011-06-13  Bruno Haible  <bruno@clisp.org>
52420         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
52421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
52422         'none'.
52424 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
52426         ftoastr: use strtof only if HAVE_STRTOF
52427         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
52428         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
52429         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
52430         * modules/ftoastr (configure.ac): Check for strtof.
52432 2011-06-13  Bruno Haible  <bruno@clisp.org>
52434         gnulib-tool: Addendum to 2011-06-08 commit.
52435         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
52436         and --witness-c-macro have been given, augment AM_CPPFLAGS.
52438 2011-06-13  Bruno Haible  <bruno@clisp.org>
52440         fseeko: Provide a non-inline replacement of fseek().
52441         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
52442         * modules/fseeko (Depends-on): Add fseek.
52443         * modules/fseek (License): Change to LGPLv2+.
52445 2011-06-13  Bruno Haible  <bruno@clisp.org>
52447         ftello: Provide a non-inline replacement of ftell().
52448         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
52449         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
52450         not have ftello() (such as on mingw).
52451         * modules/ftello (Depends-on): Add ftell.
52452         * modules/ftell (License): Change to LGPLv2+.
52454 2011-05-07  Bruno Haible  <bruno@clisp.org>
52456         ftell: Move AC_LIBOBJ invocations to module description.
52457         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
52458         * modules/ftell (configure.ac): ... to here.
52460 2011-05-07  Bruno Haible  <bruno@clisp.org>
52462         ftello: Respect rules for use of AC_LIBOBJ.
52463         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
52464         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
52465         here...
52466         * modules/ftello (configure.ac): ... to here.
52468 2011-05-07  Bruno Haible  <bruno@clisp.org>
52470         fseeko: Simplify.
52471         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
52472         (gl_FUNC_FSEEKO): Inline it here.
52474 2011-05-07  Bruno Haible  <bruno@clisp.org>
52476         fseek: Move AC_LIBOBJ invocations to module description.
52477         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
52478         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52479         * modules/fseek (configure.ac): ... to here.
52481 2011-05-07  Bruno Haible  <bruno@clisp.org>
52483         fseek: Respect rules for use of AC_LIBOBJ.
52484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
52485         here...
52486         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
52488 2011-05-07  Bruno Haible  <bruno@clisp.org>
52490         fseeko: Respect rules for use of AC_LIBOBJ.
52491         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
52492         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
52493         here...
52494         * modules/fseeko (configure.ac): ... to here.
52496 2011-06-13  Bruno Haible  <bruno@clisp.org>
52498         gnulib-tool: Allow comments in the 'Depends-on' section.
52499         * doc/gnulib.texi (Module description): Mention comment syntax in the
52500         Depends-on section.
52501         * gnulib-tool (func_get_dependencies): Filter out comment lines.
52503 2011-06-13  Bruno Haible  <bruno@clisp.org>
52505         file-set.h: guard __attibute__ use, now that it's not always defined
52506         * lib/file-set.h (record_file): Use __attribute__ only with compiler
52507         versions that support it.  This fixes a coreutils build failure with
52508         the vendor cc on HP-UX 11.31.
52510 2011-06-12  Bruno Haible  <bruno@clisp.org>
52512         acl: Add support for HP-UX >= 11.11 JFS ACLs.
52513         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
52514         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
52515         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
52516         (acl, aclsort): New declarations.
52517         (aclv_nontrivial): New declaration.
52518         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
52519         (file_has_acl): Read also the second kind of HP-UX ACLs.
52520         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
52521         kind of HP-UX ACLs if the first kind fails.
52522         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
52523         second kind of HP-UX ACLs.
52524         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
52525         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
52526         agree.
52527         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
52528         hpuxjfs.
52529         Handle hpuxjfs.
52530         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
52531         hpuxjfs.
52532         Handle hpuxjfs.
52533         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
52534         (func_test_same_acls): Use both lsacl and getacl.
52535         Handle hpuxjfs.
52536         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
52537         (func_test_same_acls): Use both lsacl and getacl.
52538         Handle hpuxjfs.
52540 2011-06-12  Bruno Haible  <bruno@clisp.org>
52542         acl: Complete the 2010-08-10 fix.
52543         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
52544         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
52545         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
52546         explicitly.
52547         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
52548         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
52550 2011-06-12  Bruno Haible  <bruno@clisp.org>
52552         spawn-pipe tests: Comments.
52553         * tests/test-spawn-pipe-child.c (main): Update comment.
52554         Reported by James Youngman <jay@gnu.org>.
52556 2011-06-11  James Youngman  <jay@gnu.org>
52558         New module 'stat-size'.
52559         * modules/stat-size: New module.  Provides macros for accessing
52560         file size information in instances of struct stat.  Depends on the
52561         fileblocks module because it calls st_blocks.
52562         * lib/stat-size.h: New file, adapted from coreutils' system.h.
52563         * doc/gnulib.texi: Include stat-size.texi.
52564         * doc/stat-size.texi: Documentation for this module.
52565         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
52566         * m4/fileblocks.m4: Mention that stat-size depends on the call to
52567         AC_STRUCT_ST_BLOCKS.
52569 2011-06-09  Bruno Haible  <bruno@clisp.org>
52571         thread: Support pthreads-win32.
52572         * lib/glthread/thread.h (gl_thread_self): Define differently on
52573         pthreads-win32.
52574         (gl_null_thread): New declaration.
52575         (gl_thread_self_pointer): New macro.
52576         * lib/glthread/thread.c (gl_null_thread): New constant.
52577         * tests/test-lock.c: Use gl_thread_self_pointer instead of
52578         gl_thread_self.
52579         * tests/test-tls.c: Likewise.
52580         Suggested by Paul Eggert. Reported by Eric Blake.
52582 2011-06-09  Bruno Haible  <bruno@clisp.org>
52584         thread: Fix confusion between NULL and 0.
52585         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
52586         Reported by Paul Eggert.
52588 2011-06-09  Bruno Haible  <bruno@clisp.org>
52590         spawn-pipe tests: Avoid test failure on HP-UX 11.
52591         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
52592         is closed.
52594 2011-06-09  Bruno Haible  <bruno@clisp.org>
52596         acl tests: Fix compilation error on HP-UX 11.
52597         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
52599 2011-06-09  Bruno Haible  <bruno@clisp.org>
52601         rmdir: Avoid test failure on HP-UX 10.20.
52602         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
52603         EEXIST.
52605 2011-06-08  Eric Blake  <eblake@redhat.com>
52607         perror: fix test on mingw
52608         * modules/perror-tests (Depends-on): Add dup2.
52610         strerror_r-posix: fix on MacOS
52611         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
52612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
52613         logic bug.
52614         * lib/strerror_r.c (strerror_r): Fix the bug.
52615         * lib/strerror.c (strerror): Likewise.
52616         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
52617         problem.
52618         * doc/posix-functions/strerror.texi (strerror): Likewise.
52619         * doc/posix-functions/perror.texi (perror): Likewise.
52620         * tests/test-strerror.c (main): Enhance test.
52621         * tests/test-strerror_r.c (main): Likewise.
52623 2011-06-08  Bruno Haible  <bruno@clisp.org>
52625         gnulib-tool: Better isolation between different gnulib-tool invocations.
52626         * gnulib-tool: New option --witness-c-macro.
52627         (witness_c_macro): New variable.
52628         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
52629         AM_CPPFLAGS define it as a C macro.
52630         (func_emit_tests_Makefile_am): Likewise.
52631         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
52632         read it from there.
52633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
52634         m4_define, not AC_DEFUN.
52635         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
52636         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
52637         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
52638         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
52639         s|...|...|, to substitute the values of the GNULIB_* module indicator
52640         variables.
52641         * modules/dirent (Makefile.am): Likewise.
52642         * modules/fcntl-h (Makefile.am): Likewise.
52643         * modules/iconv-h (Makefile.am): Likewise.
52644         * modules/langinfo (Makefile.am): Likewise.
52645         * modules/locale (Makefile.am): Likewise.
52646         * modules/math (Makefile.am): Likewise.
52647         * modules/netdb (Makefile.am): Likewise.
52648         * modules/poll-h (Makefile.am): Likewise.
52649         * modules/pty (Makefile.am): Likewise.
52650         * modules/search (Makefile.am): Likewise.
52651         * modules/signal (Makefile.am): Likewise.
52652         * modules/spawn (Makefile.am): Likewise.
52653         * modules/stdio (Makefile.am): Likewise.
52654         * modules/stdlib (Makefile.am): Likewise.
52655         * modules/string (Makefile.am): Likewise.
52656         * modules/sys_ioctl (Makefile.am): Likewise.
52657         * modules/sys_select (Makefile.am): Likewise.
52658         * modules/sys_socket (Makefile.am): Likewise.
52659         * modules/sys_stat (Makefile.am): Likewise.
52660         * modules/sys_times (Makefile.am): Likewise.
52661         * modules/sys_utsname (Makefile.am): Likewise.
52662         * modules/sys_wait (Makefile.am): Likewise.
52663         * modules/termios (Makefile.am): Likewise.
52664         * modules/time (Makefile.am): Likewise.
52665         * modules/unistd (Makefile.am): Likewise.
52666         * modules/wchar (Makefile.am): Likewise.
52668 2011-06-08  Eric Blake  <eblake@redhat.com>
52670         strerror: simplify replacement
52671         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
52672         * modules/strerror (configure.ac): No prereqs needed here...
52673         * modules/strerror-override (configure.ac): ...but this needs it.
52674         (Files): Add file for needed prereq macro.
52676 2011-06-08  Bruno Haible  <bruno@clisp.org>
52678         strerror_r-posix: Tweaks.
52679         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
52680         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
52681         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
52682         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
52683         (gl_FUNC_STRERROR_R): ... to here.
52684         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
52686 2011-06-07  Eric Blake  <eblake@redhat.com>
52688         perror: document fixed bugs
52689         * doc/posix-functions/perror.texi (perror): Document recent
52690         patches.
52692 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
52694         stat-time: get_stat_birthtime failure is better-defined
52695         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
52696         return a timestamp whose tv_sec and tv_nsec values are both -1.
52697         Previously, the spec said only that the tv_nsec value was negative.
52698         This upward-compatible change simplifies GNU tar a bit.
52700 2011-06-07  Eric Blake  <eblake@redhat.com>
52702         strerror_r-posix: work around cygwin 1.7.9
52703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
52704         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
52705         bug without replacing strerror_r.
52706         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
52707         strerror_r is buggy, but without requiring strerror_r compilation.
52708         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
52710         test-perror: relax test to ignore cygwin bug
52711         * tests/test-perror2.c (main): Relax test on requiring detection
52712         of stream errors, and use unbuffered stream.
52713         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
52714         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
52715         * doc/posix-functions/fputc.texi (fputc): Likewise.
52716         * doc/posix-functions/fputs.texi (fputs): Likewise.
52717         * doc/posix-functions/fputws.texi (fputws): Likewise.
52718         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
52719         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
52720         * doc/posix-functions/getopt.texi (getopt): Likewise.
52721         * doc/posix-functions/perror.texi (perror): Likewise.
52722         * doc/posix-functions/printf.texi (printf): Likewise.
52723         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
52724         * doc/posix-functions/psignal.texi (psignal): Likewise.
52725         * doc/posix-functions/putc.texi (putc): Likewise.
52726         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
52727         Likewise.
52728         * doc/posix-functions/putchar.texi (putchar): Likewise.
52729         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
52730         Likewise.
52731         * doc/posix-functions/puts.texi (puts): Likewise.
52732         * doc/posix-functions/putwc.texi (putwc): Likewise.
52733         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52734         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52735         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52736         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
52737         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52738         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52739         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
52740         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
52742 2011-05-22  Bruno Haible  <bruno@clisp.org>
52744         strerror: Move AC_LIBOBJ invocations to module description.
52745         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
52746         gl_PREREQ_STRERROR invocations from here...
52747         * modules/strerror (configure.ac): ... to here.
52749 2011-05-21  Bruno Haible  <bruno@clisp.org>
52751         perror: Use common idiom.
52752         * modules/perror (configure.ac): Reorder statements.
52754 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
52756         tests: fix usage message in 'mktempd_'
52757         * tests/init.sh (mktempd_): In the usage message, use literal
52758         'mktempd_', not '$ME' (which is even undefined), as the name of
52759         the subroutine.
52761 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
52763         tests init: new function 'fatal_', for hard errors
52764         Before this patch, the only way offered by tests/init.sh to
52765         properly signal a hard error was the `framework_failure_'
52766         function.  But the error message issued by that function,
52767         as its name would suggest, refers to a set-up failure in the
52768         testsuite, while hard errors can obviously also be due to
52769         other reasons.  The best way to fix this inconsistency is to
52770         introduce a new function with a more general error message.
52771         * tests/init.sh (fatal_): New function.
52773 2011-06-06  Eric Blake  <eblake@redhat.com>
52775         canonicalize-lgpl: use common idiom
52776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
52777         over newer POSIX -Rf.
52778         Reported by Bruno Haible.
52780         canonicalize-lgpl: work around AIX realpath bug
52781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
52782         * doc/posix-functions/realpath.texi (realpath): Document it.
52783         Reported by Bruno Haible.
52785         strerror: work around FreeBSD bug
52786         * lib/strerror.c (strerror): Special case 0.
52787         Reported by Bruno Haible.
52789         strerror-override: avoid bloating errno module
52790         * modules/errno (Files, configure.ac): Move replacement strings...
52791         * modules/strerror-override: ...to new module.
52792         * modules/strerror (Depends-on): Add strerror-override.
52793         * modules/strerror_r-posix (Depends-on): Likewise.
52794         * MODULES.html.sh: Document new module.
52795         Reported by Bruno Haible.
52797 2011-06-06  Bruno Haible  <bruno@clisp.org>
52799         spawn-pipe tests: Rename program.
52800         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
52801         * tests/test-spawn-pipe-child.c: Update comment.
52802         * tests/test-spawn-pipe.sh: Update.
52803         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
52805         spawn-pipe tests: Link the child program only against libc.
52806         * tests/test-spawn-pipe-child.c: New file, extracted from
52807         tests/test-spawn-pipe.c.
52808         (main): Expect only one argument.
52809         (is_open): New function, copied from tests/test-pipe.c.
52810         * tests/test-spawn-pipe.c: Don't include <errno.h>.
52811         (child_main): Remove function.
52812         (test_pipe): Pass only one argument to the child program.
52813         (main): Remove child process code. Expect the child program's name as
52814         first argument.
52815         * tests/test-spawn-pipe.sh: Pass the child program's name as first
52816         argument.
52817         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
52818         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
52819         test-spawn-pipe-child against no libraries.
52821 2011-06-06  Bruno Haible  <bruno@clisp.org>
52823         careadlinkat: Avoid mismatch between ssize_t and int.
52824         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
52825         * lib/careadlinkat.c (careadlinkatcwd): Define always.
52827 2011-06-06  Jim Meyering  <meyering@redhat.com>
52829         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
52830         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
52831         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
52833 2011-06-05  Bruno Haible  <bruno@clisp.org>
52835         ansi-c++-opt: Interoperability with libtool.
52836         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
52837         set the variable to "no", not to ":".
52838         * NEWS: Mention the change.
52840 2011-06-05  Bruno Haible  <bruno@clisp.org>
52842         acl: Fix test failure on AIX 7.
52843         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
52844         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
52846 2011-06-05  Bruno Haible  <bruno@clisp.org>
52848         pipe-filter-ii: Fix test failure on AIX and IRIX.
52849         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
52850         with EAGAIN, retry with a smaller buffer size.
52852 2011-06-05  Bruno Haible  <bruno@clisp.org>
52854         localename: Fix link dependencies.
52855         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
52856         * modules/localename-tests (Makefile.am): Link test-localename with
52857         $(LIBTHREAD).
52859 2011-06-05  Bruno Haible  <bruno@clisp.org>
52861         error: Avoid gcc warning.
52862         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
52864 2011-06-05  Bruno Haible  <bruno@clisp.org>
52866         unsetenv: Avoid gcc warning.
52867         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
52869 2011-06-05  Bruno Haible  <bruno@clisp.org>
52871         setenv: Avoid gcc warning.
52872         * lib/setenv.c (setenv): Provide declaration if system lacks it.
52874 2011-06-05  Bruno Haible  <bruno@clisp.org>
52876         sys_select: Ensure memset is declared also on AIX 7.
52877         * lib/sys_select.in.h: Include <string.h> also on AIX.
52878         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
52879         self-contained also on AIX 7.1.
52881 2011-06-04  Jim Meyering  <meyering@redhat.com>
52883         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
52884         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
52885         function name, "error".
52886         (_gl_translatable_diag_func_re): New configurable variable.
52888 2011-06-04  Bruno Haible  <bruno@clisp.org>
52890         getopt: Avoid gcc warning.
52891         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
52893 2011-06-04  Bruno Haible  <bruno@clisp.org>
52895         strerror_r: Fix comments.
52896         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
52897         commit.
52899 2011-06-04  Bruno Haible  <bruno@clisp.org>
52901         perror: Fix compilation error.
52902         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
52903         Undefine fprintf, not sprintf.
52904         * modules/perror (Depends-on): Remove intprops, verify.
52906 2011-06-04  Bruno Haible  <bruno@clisp.org>
52908         setlocale: Enable replacement on Cygwin 1.5.
52909         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
52910         Cygwin 1.5.x.
52911         * doc/posix-functions/setlocale.texi: Mention that the problem with the
52912         LC_CTYPE category also exists on Cygwin 1.5.x.
52914 2011-06-04  Bruno Haible  <bruno@clisp.org>
52916         strerror-override: Don't disable symbol renamings.
52917         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
52918         * lib/strerror-override.c: Include config.h.
52919         (strerror_override): Don't undefine.
52921 2011-06-03  Bruno Haible  <bruno@clisp.org>
52923         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
52924         * lib/localename.h: Update copyright header.
52925         * lib/localename.c: Likewise.
52926         * lib/relocatable.h: Likewise.
52927         * lib/relocatable.c: Likewise.
52929 2011-06-02  Bruno Haible  <bruno@clisp.org>
52931         doc: Fix a module name.
52932         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
52934 2011-06-02  Bruno Haible  <bruno@clisp.org>
52936         pipe2: Remove dependency on 'nonblocking' module.
52937         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
52938         O_NONBLOCK is defined by gnulib.
52939         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
52940         is zero.
52941         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
52942         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
52943         defined by gnulib.
52944         (get_nonblocking_flag): New function.
52945         (main): Test O_NONBLOCK flag only if it is nonzero.
52946         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
52948 2011-06-03  Jim Meyering  <meyering@redhat.com>
52950         maint: three new prohibit-header-without-use rules
52951         Prohibit use of cloexec.h, posixver.h, same.h without use.
52952         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
52953         (sc_prohibit_posixver_without_use): Likewise.
52954         (sc_prohibit_same_without_use): Likewise.
52956 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52958         allocator: 'die' routine is now given requested size
52959         * lib/allocator.h (struct allocator.die): New size arg.
52960         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
52961         If the actual problem is an ssize_t limitation, not a size_t or
52962         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
52964 2011-06-01  Eric Blake  <eblake@redhat.com>
52966         strerror: drop strerror_r dependency
52967         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
52968         * lib/strerror-override.c (strerror_override): ...to new file.
52969         * lib/strerror-override.h: Add prototype.
52970         * lib/strerror-impl.h: Delete.
52971         * lib/strerror.c (strerror): New implementation.
52972         * modules/errno (Files): Add new files.
52973         (configure.ac): Compile new file as appropriate.
52974         * modules/strerror (Files): Drop unused file.
52975         (Depends-on): Drop strerror_r-posix.
52976         * MODULES.html.sh: Document strerror_r-posix.
52977         Requested by Sam Steingold.
52979         perror: call strerror_r directly
52980         * modules/perror (Files): Drop strerror-impl.h.
52981         * lib/perror.c (perror): Use our own stack buffer, rather than
52982         calling a wrapper that uses static storage.
52983         * doc/posix-functions/perror.texi (perror): Document a limitation
52984         of our replacement.
52986         strerror_r: fix includes for FreeBSD
52987         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
52988         since we use abort on some platforms.
52989         Reported by Matthias Bolte.
52991 2011-05-31  Bruno Haible  <bruno@clisp.org>
52993         Fix link errors in tests: openat-die uses gettext-h.
52994         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
52995         against $(LIBINTL).
52996         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
52997         against $(LIBINTL).
52998         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
52999         $(LIBINTL).
53000         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
53001         against $(LIBINTL).
53002         * modules/linkat-tests (Makefile.am): Link test-linkat against
53003         $(LIBINTL).
53004         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
53005         $(LIBINTL).
53006         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
53007         against $(LIBINTL).
53008         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
53009         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
53010         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
53011         $(LIBINTL).
53012         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
53013         $(LIBINTL).
53014         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
53015         $(LIBINTL).
53016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53018 2011-05-31  Bruno Haible  <bruno@clisp.org>
53020         Fix link errors in tests: wait-process uses gettext-h.
53021         * modules/nonblocking-pipe-tests (Makefile.am): Set
53022         test_nonblocking_pipe_main_LDADD.
53023         * modules/nonblocking-socket-tests (Makefile.am): Link
53024         test-nonblocking-socket-main against $(LIBINTL).
53025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53027 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
53029         assert-h: work around 'verify' incompatibility
53030         * lib/verify.h: Use @...@ directives, not ifdef.
53031         * modules/assert-h (assert.h): Implement the directives.
53032         (assert.h): Substitute the symbol-prefix more consistently.
53034 2011-05-29  Jim Meyering  <meyering@redhat.com>
53036         trim: remove three superfluous assignments
53037         * lib/trim.c (trim2): Remove three superfluous assignments
53038         and correct brace positioning.
53040 2011-05-29  Bruno Haible  <bruno@clisp.org>
53042         wctype-h: Avoid namespace pollution on Solaris 2.6.
53043         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
53044         identifiers.
53045         * doc/posix-headers/wctype.texi: Mention the problem.
53046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53048 2011-05-28  Jim Meyering  <meyering@redhat.com>
53050         parse-datetime.y: accommodate -Wstrict-overflow
53051         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
53052         placate -Wstrict-overflow.
53054         trim: avoid a warning from -O2 -Wstrict-overflow
53055         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
53057 2011-05-29  Bruno Haible  <bruno@clisp.org>
53059         gnulib-tool: Fix bug in yesterday's commit.
53060         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
53061         twice.
53063 2011-05-29  Bruno Haible  <bruno@clisp.org>
53065         Allow multiple gnulib generated include files to be combined.
53066         * gnulib-tool (func_compute_include_guard_prefix): New function.
53067         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
53068         ${gl_include_guard_prefix} references.
53069         (func_import, func_create_testdir): Invoke
53070         func_compute_include_guard_prefix.
53071         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
53072         * lib/ctype.in.h: Likewise.
53073         * lib/dirent.in.h: Likewise.
53074         * lib/errno.in.h: Likewise.
53075         * lib/fcntl.in.h: Likewise.
53076         * lib/float.in.h: Likewise.
53077         * lib/getopt.in.h: Likewise.
53078         * lib/iconv.in.h: Likewise.
53079         * lib/langinfo.in.h: Likewise.
53080         * lib/locale.in.h: Likewise.
53081         * lib/math.in.h: Likewise.
53082         * lib/netdb.in.h: Likewise.
53083         * lib/netinet_in.in.h: Likewise.
53084         * lib/poll.in.h: Likewise.
53085         * lib/pthread.in.h: Likewise.
53086         * lib/pty.in.h: Likewise.
53087         * lib/sched.in.h: Likewise.
53088         * lib/se-selinux.in.h: Likewise.
53089         * lib/search.in.h: Likewise.
53090         * lib/signal.in.h: Likewise.
53091         * lib/spawn.in.h: Likewise.
53092         * lib/stdarg.in.h: Likewise.
53093         * lib/stddef.in.h: Likewise.
53094         * lib/stdint.in.h: Likewise.
53095         * lib/stdio.in.h: Likewise.
53096         * lib/stdlib.in.h: Likewise.
53097         * lib/string.in.h: Likewise.
53098         * lib/strings.in.h: Likewise.
53099         * lib/sys_file.in.h: Likewise.
53100         * lib/sys_ioctl.in.h: Likewise.
53101         * lib/sys_select.in.h: Likewise.
53102         * lib/sys_socket.in.h: Likewise.
53103         * lib/sys_stat.in.h: Likewise.
53104         * lib/sys_time.in.h: Likewise.
53105         * lib/sys_times.in.h: Likewise.
53106         * lib/sys_uio.in.h: Likewise.
53107         * lib/sys_utsname.in.h: Likewise.
53108         * lib/sys_wait.in.h: Likewise.
53109         * lib/sysexits.in.h: Likewise.
53110         * lib/termios.in.h: Likewise.
53111         * lib/time.in.h: Likewise.
53112         * lib/unistd.in.h: Likewise.
53113         * lib/wchar.in.h: Likewise.
53114         * lib/wctype.in.h: Likewise.
53115         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
53116         * modules/ctype (Makefile.am): Likewise.
53117         * modules/dirent (Makefile.am): Likewise.
53118         * modules/errno (Makefile.am): Likewise.
53119         * modules/fcntl-h (Makefile.am): Likewise.
53120         * modules/float (Makefile.am): Likewise.
53121         * modules/getopt-posix (Makefile.am): Likewise.
53122         * modules/iconv-h (Makefile.am): Likewise.
53123         * modules/langinfo (Makefile.am): Likewise.
53124         * modules/locale (Makefile.am): Likewise.
53125         * modules/math (Makefile.am): Likewise.
53126         * modules/netdb (Makefile.am): Likewise.
53127         * modules/netinet_in (Makefile.am): Likewise.
53128         * modules/poll-h (Makefile.am): Likewise.
53129         * modules/pthread (Makefile.am): Likewise.
53130         * modules/pty (Makefile.am): Likewise.
53131         * modules/sched (Makefile.am): Likewise.
53132         * modules/search (Makefile.am): Likewise.
53133         * modules/selinux-h (Makefile.am): Likewise.
53134         * modules/signal (Makefile.am): Likewise.
53135         * modules/spawn (Makefile.am): Likewise.
53136         * modules/stdarg (Makefile.am): Likewise.
53137         * modules/stddef (Makefile.am): Likewise.
53138         * modules/stdint (Makefile.am): Likewise.
53139         * modules/stdio (Makefile.am): Likewise.
53140         * modules/stdlib (Makefile.am): Likewise.
53141         * modules/string (Makefile.am): Likewise.
53142         * modules/strings (Makefile.am): Likewise.
53143         * modules/sys_file (Makefile.am): Likewise.
53144         * modules/sys_ioctl (Makefile.am): Likewise.
53145         * modules/sys_select (Makefile.am): Likewise.
53146         * modules/sys_socket (Makefile.am): Likewise.
53147         * modules/sys_stat (Makefile.am): Likewise.
53148         * modules/sys_time (Makefile.am): Likewise.
53149         * modules/sys_times (Makefile.am): Likewise.
53150         * modules/sys_uio (Makefile.am): Likewise.
53151         * modules/sys_utsname (Makefile.am): Likewise.
53152         * modules/sys_wait (Makefile.am): Likewise.
53153         * modules/sysexits (Makefile.am): Likewise.
53154         * modules/termios (Makefile.am): Likewise.
53155         * modules/time (Makefile.am): Likewise.
53156         * modules/unistd (Makefile.am): Likewise.
53157         * modules/wchar (Makefile.am): Likewise.
53158         * modules/wctype-h (Makefile.am): Likewise.
53159         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
53161 2011-05-29  Bruno Haible  <bruno@clisp.org>
53163         assert-h: Allow multiple gnulib generated replacements to coexist.
53164         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
53166 2011-05-29  Bruno Haible  <bruno@clisp.org>
53168         argp: Allow coexistence with strerror_r-posix module.
53169         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
53170         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
53171         by gnulib's <string.h> replacement), assume it has the POSIX signature,
53172         not the glibc signature.
53174 2011-05-28  Bruno Haible  <bruno@clisp.org>
53176         gnulib-tool: Alternative structure of testdirs, similar to --import.
53177         * gnulib-tool: New option --single-configure.
53178         (func_usage): Document it.
53179         (single_configure): New variable.
53180         (func_modules_transitive_closure_separately,
53181         func_modules_transitive_closure_separately,
53182         func_determine_use_libtests, func_modules_add_dummy_separately,
53183         func_modules_to_filelist_separately): New functions, extracted from
53184         func_import.
53185         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
53186         (func_import): Use the new functions.
53187         (func_create_testdir): Set final_modules. Handle $single_configure =
53188         true case.
53190 2011-05-28  Bruno Haible  <bruno@clisp.org>
53192         getloadavg: Remove an unreliable safety check.
53193         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
53194         getloadavg.c is in place.
53195         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
53196         Reported by Sam Steingold <sds@gnu.org>.
53198 2011-05-28  Bruno Haible  <bruno@clisp.org>
53200         doc: Cleanup yet another file produced by texinfo.tex.
53201         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
53203 2011-05-28  Bruno Haible  <bruno@clisp.org>
53205         Finish the conditional dependencies mechanism.
53206         * gnulib-tool: New option --no-conditional-dependencies.
53207         (func_usage): Document it. Don't mark --conditional-dependencies as
53208         experimental.
53209         (cond_dependencies): The possible values can now be true, false, empty.
53210         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
53211         (func_import): Store setting in gnulib-cache.m4 and read it from there.
53212         * doc/gnulib-tool.texi (Conditional dependencies): New section.
53214 2011-05-28  Bruno Haible  <bruno@clisp.org>
53216         doc: Use a recent texinfo.tex.
53217         * doc/Makefile (tex_opts): New variable.
53218         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
53220 2011-05-28  Jim Meyering  <meyering@redhat.com>
53222         intprops.h: adjust comment to match code change
53223         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
53224         only once, it *may* have side effects.  Also fix an unrelated typo.
53225         (_GL_INT_SIGNED): Likewise.
53227 2011-05-26  Simon Josefsson  <simon@josefsson.org>
53229         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
53231 2011-05-26  Bruno Haible  <bruno@clisp.org>
53233         mbsrchr: Avoid collision with system function on Interix.
53234         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
53235         Reported by Markus Duft <mduft@gentoo.org>.
53237 2011-05-15  James Youngman  <jay@gnu.org>
53239         getopt: for ambiguous options, enumerate the possibilities.
53240         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
53241         the ambiguous options when an ambiguous prefix is given. This was
53242         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
53243         glibc change was
53244         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
53246 2011-05-25  Eric Blake  <eblake@redhat.com>
53248         getcwd: work around mingw bug
53249         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
53250         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53251         Reported by Matthias Bolte.
53253 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
53255         test-intprops: disable -Wtype-limits diagnostics
53256         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
53257         diagnostics.  Otherwise, the integer overflow macros generate many
53258         diagnostics.  Reported by Jim Meyering in
53259         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53261         intprops: shorten, to pacify gcc -Woverlength-strings
53262         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
53263         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
53264         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
53265         likely to run afoul of C compiler limits for string constant lengths.
53266         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53268 2011-05-24  Eric Blake  <eblake@redhat.com>
53270         docs: document recently fixed glibc printf bug
53271         * doc/posix-functions/fprintf.texi (fprintf): Document it.
53272         * doc/posix-functions/printf.texi (printf): Likewise.
53273         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53274         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53276         closein-tests: convert to init.sh
53277         * modules/closein-tests (Files): Add init.sh
53278         * tests/test-closein.sh Use it.
53280         yesno-tests: convert to init.sh
53281         * modules/yesno-tests (Files): Add init.sh.
53282         * tests/test-yesno.sh: Use it.
53284         atexit-tests: ensure reliable exit status
53285         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
53286         Reported by Bruno Haible.
53288 2011-05-24  Bruno Haible  <bruno@clisp.org>
53290         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
53291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
53292         gl_PREREQ_STRERROR_R invocations from here...
53293         * modules/strerror_r-posix (configure.ac): ... to here.
53295 2011-05-24  Eric Blake  <eblake@redhat.com>
53297         strerror_r: fix missing header
53298         * lib/strerror_r.c: Avoid compiler warning about snprintf.
53300         strerror_r: fix AIX test failures
53301         * lib/strerror_r.c (strerror_r): Convert silent truncation to
53302         ERANGE failure.
53304         strerror_r: fix Solaris test failures
53305         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
53306         failures.
53307         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
53309         strerror_r: enforce POSIX recommendations
53310         * lib/strerror_r.c (safe_copy): New helper method.
53311         (strerror_r): Guarantee a non-empty string.
53312         * tests/test-strerror_r.c (main): Enhance tests to incorporate
53313         recent POSIX rulings and to match our strerror guarantees.
53314         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
53316 2011-05-24  Jim Meyering  <meyering@redhat.com>
53318         test-perror2.c: avoid warning about unused variable
53319         * tests/test-perror2.c (main): Remove declaration of unused "fp".
53321 2011-05-24  Eric Blake  <eblake@redhat.com>
53323         perror: avoid spurious test failure on HP-UX
53324         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
53326         tests: fix logic bug in init.sh
53327         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
53328         shell.
53330 2011-05-24  Jim Meyering  <meyering@redhat.com>
53332         utimensat: do not reference an out-of-scope buffer
53333         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
53334         declared in an inner scope, yet "times" would be dereferenced outside
53335         the scope in which "ts" was valid.
53336         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
53337         of ts[2] "out/up", so that the use of aliased "times" (via
53338         "times = ts;") does not end up referencing an out-of-scope "ts"
53340         opendir-safer.c: don't clobber errno; don't close negative FD
53341         * lib/opendir-safer.c (opendir_safer):
53342         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
53343         file descriptor, and more importantly, don't clobber the
53344         offending errno value with EINVAL.  Before, upon failure
53345         of dup_safer, we would pass the negative file descriptor to
53346         fdopendir, which would clobber errno.
53348 2011-05-23  Bruno Haible  <bruno@clisp.org>
53350         idcache: Fix module description.
53351         * modules/idcache (Include): Set to "idcache.h".
53353 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
53355         gnulib-tool: fix portability problem with MacOS sed
53356         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
53357         before the "}".  Problem reported by Leo in
53358         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
53359         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
53360         sed_extract_condition1, sed_extract_condition2.
53362 2011-05-23  Bruno Haible  <bruno@clisp.org>
53364         hash: Simplify autoconf macro.
53365         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
53367 2011-05-23  Bruno Haible  <bruno@clisp.org>
53369         getugroups: Fix module description.
53370         * modules/getugroups (Include): Set to "getugroups.h".
53372 2011-05-23  Bruno Haible  <bruno@clisp.org>
53374         linkat: Simplify autoconf macro.
53375         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
53377 2011-05-23  Bruno Haible  <bruno@clisp.org>
53378             Eric Blake  <eblake@redhat.com>
53380         linkat, renameat: Update dependencies.
53381         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
53382         * modules/linkat (Depends-on): Likewise. Remove also readlink,
53383         symlinkat.
53385 2011-05-23  Jim Meyering  <meyering@redhat.com>
53387         maint.mk: more tight_scope improvements
53388         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
53389         (_gl_TS_headers): Define only in if-0'd block.
53390         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
53391         sometimes we must *not* use it.  Adjust uses accordingly.
53392         (sc_tight_scope): Use much simpler grep-based test to determine
53393         whether we skip this rule.
53395         maint.mk: generalize/improve the tight-scope rule
53396         * top/maint.mk: Emit a warning when the test is skipped.
53397         (_gl_TS_dir): Add $(srcdir)/ prefix.
53398         (_gl_TS_function_match): Simplify, rather than trying
53399         to enumerate common types.  Otherwise, it would fail to match an
53400         "extern unsigned char const *" declaration in idutils.
53401         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
53402         a way to support use of that type of macro.
53403         (_gl_TS_var_match): Simplify regexp.
53404         (_gl_TS_obj_files): New configurable variable.
53405         (_gl_TS_headers): Likewise.
53407 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53409         verify: fix bug when gnulib <assert.h> is also included
53410         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
53411         is defined, not if _GL_STATIC_ASSERT_H is not defined.
53412         Perhaps there's a better way, but this fixes the immediate problem.
53413         Problem reported by Bruno Haible in
53414         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
53416 2011-05-22  Bruno Haible  <bruno@clisp.org>
53418         xgetcwd: Simplify autoconf macro.
53419         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
53421 2011-05-22  Bruno Haible  <bruno@clisp.org>
53423         New module 'mktime-internal'.
53424         * modules/mktime-internal: New file.
53425         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
53426         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
53427         mktime_internal as a C macro if libc has __mktime_internal.
53428         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
53429         conditions.
53430         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
53432 2011-05-22  Bruno Haible  <bruno@clisp.org>
53434         timegm: Correct mktime replacement statements.
53435         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
53436         defining mktime as a C macro. This completes a 2009-07-28 commit.
53438 2011-05-22  Bruno Haible  <bruno@clisp.org>
53440         timegm: Simplify autoconf macro.
53441         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
53443 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
53445         clock-time: change to LGPLv2+.
53446         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
53447         BSD-like but we have no mark for that; this is good enough for now.
53449 2011-05-21  Bruno Haible  <bruno@clisp.org>
53451         strerror_r: Fix comments.
53452         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
53454 2011-05-21  Bruno Haible  <bruno@clisp.org>
53456         relocatable-prog-wrapper: Fix possible link error.
53457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
53458         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
53459         (gl_FUNC_SETENV): ... to here.
53460         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
53461         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
53463 2011-05-21  Bruno Haible  <bruno@clisp.org>
53465         relocatable-prog-wrapper: Assume strerror() exists.
53466         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
53467         m4/strerror.m4.
53468         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
53469         * lib/relocwrapper.c: Remove mention of strerror module.
53470         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
53471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
53472         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
53473         C macro.
53475 2011-05-21  Bruno Haible  <bruno@clisp.org>
53477         select: Simplify replacement idiom.
53478         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
53479         Win32 platforms.
53480         * lib/sys_select.in.h (select): Simplify accordingly.
53481         * modules/select (Depends-on): Likewise.
53483 2011-05-21  Bruno Haible  <bruno@clisp.org>
53485         mkdir-p: Simplify autoconf macro.
53486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
53487         gl_FUNC_LCHOWN.
53489 2011-05-21  Eric Blake  <eblake@redhat.com>
53491         strerror_r: avoid clobbering strerror on cygwin
53492         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
53493         fall back instead to sys_errlist.
53494         * modules/strerror (configure.ac): Add witness.
53495         * tests/test-strerror_r.c (main): Enhance test.
53496         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
53497         * tests/test-perror2.c (main): Free memory before exit.
53499 2011-05-21  Bruno Haible  <bruno@clisp.org>
53501         mkdtemp: Use gnulib naming conventions.
53502         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
53503         * modules/mkdtemp (configure.ac): Update.
53505 2011-05-20  Eric Blake  <eblake@redhat.com>
53507         strerror_r: avoid corrupting errno on Solaris
53508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
53509         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
53511         strerror_r: avoid compiler warning
53512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
53514         strerror_r: simplify AIX code
53515         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
53517         test-perror: avoid spurious failure on FreeBSD
53518         * modules/perror-tests (Depends-on): Add strerror, now that
53519         strerror_r no longer pulls it in.
53521 2011-05-20  Bruno Haible  <bruno@clisp.org>
53523         strerror_r-posix: Remove unused dependencies.
53524         * modules/strerror_r-posix (Depends-on): Remove strerror.
53525         Reported by Eric Blake.
53527 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53529         intprops: remove assumption about A|B representation
53530         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
53531         is a valid integer if both A and B are.  Although this is true for
53532         all known practical hosts, the C standard doesn't guarantee it,
53533         and the code need not assume it.  Also, this change may work around
53534         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
53535         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
53537 2011-05-20  Eric Blake  <eblake@redhat.com>
53539         perror: work around FreeBSD bug
53540         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
53541         is broken.  Move AC_LIBOBJ...
53542         * modules/perror (configure.ac): Here.
53543         * doc/posix-functions/perror.texi (perror): Document this.
53544         * tests/test-perror2.c (main): Enhance test.
53546         test-perror: check for strerror interactions
53547         * tests/macros.h (STREQ): Add macro.
53548         * modules/perror-tests (Files): Add second test.
53549         * tests/test-perror2.c (main): New file.
53550         * doc/posix-functions/perror.texi (perror): Document glibc bug.
53552         test-perror: rewrite to use init script
53553         * modules/perror-tests (Files): Add init.sh.
53554         * tests/test-perror.sh: Use temporary directory.
53556 2011-05-20  Jim Meyering  <meyering@redhat.com>
53558         maint: replace misused "a" with "an"
53559         * doc/intprops.texi: "a integer"
53560         * doc/regex.texi: "a explanation"
53561         * lib/alignof.h: "a object"
53562         * lib/argmatch.h: "a explanation"
53563         * lib/argp-help.c: "a option" and "a OPTION_DOC"
53564         * lib/stdint.in.h: "a integer"
53565         * lib/userspec.c: "a owner"
53566         * doc/gnulib.texi: Fix "a idea", and reword.
53568 2011-05-19  Jim Meyering  <meyering@redhat.com>
53570         maint: correct misuse of "a" and "an"
53571         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
53572         * lib/argp-help.c: "an docum...": s/an/a/
53573         * lib/argp-parse.c: "An vector": s/An/A/
53574         * lib/execute.c: "an native": s/an/a/
53575         * lib/spawn-pipe.c: Likewise.
53576         * lib/gc.h: "an Gc_rc": s/an/a/
53577         * lib/unigbrk.in.h: "an grapheme": s/an/a/
53578         * lib/fts.c: "an stat.st_dev": s/an/a/
53580 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53582         intprops-tests: work around HP-UX 11.23 cc bug with constants
53583         * tests/test-intprops.c (VERIFY): New macro.
53584         (main): Use it, instead of verify, to work around the compiler bug; see
53585         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
53587         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
53588         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
53589         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
53590         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
53591         (_GL_REMAINDER_OVERFLOW): Use it.
53593         intprops-tests: revert unsigned part of previous change
53594         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
53595         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
53596         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
53597         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
53599 2011-05-19  Bruno Haible  <bruno@clisp.org>
53601         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
53602         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
53603         strerror_r() returned without filling the buffer.
53604         Reported by Eric Blake.
53606 2011-05-19  Eric Blake  <eblake@redhat.com>
53608         strerror_r: guarantee unchanged errno
53609         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
53610         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
53611         failure.
53612         * tests/test-strerror_r.c (main): Enhance test.
53614 2011-05-19  Bruno Haible  <bruno@clisp.org>
53616         strerror_r: Reorder #if blocks.
53617         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
53618         for consistency with the previous commit.
53620 2011-05-19  Bruno Haible  <bruno@clisp.org>
53622         perror: Avoid clobbering the strerror buffer when possible.
53623         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
53624         * lib/strerror.c: Include it.
53625         * modules/strerror (Files): Add lib/strerror-impl.h.
53626         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
53627         (my_strerror): New function, defined through lib/strerror-impl.h.
53628         (perror): Use it instead of strerror.
53629         * modules/perror (Files): Add lib/strerror-impl.h.
53630         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
53632 2011-05-19  Eric Blake  <eblake@redhat.com>
53634         strerror_r: fix on newer cygwin
53635         * lib/strerror_r.c (strerror_r): Cygwin now has
53636         __xpg_strerror_r, use it.
53638 2011-05-19  Bruno Haible  <bruno@clisp.org>
53640         strerror_r: Avoid clobbering the strerror buffer when possible.
53641         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
53642         (sys_nerr, sys_errlist): New declarations.
53643         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
53644         HP-UX, native Win32, IRIX, and 32-bit Solaris.
53645         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
53647 2011-05-19  Bruno Haible  <bruno@clisp.org>
53649         strerror_r: Fix test failure on mingw.
53650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
53651         EXTEND_STRERROR_R.
53652         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
53653         macros from errno.in.h instead.
53655 2011-05-19  Eric Blake  <eblake@redhat.com>
53657         strerror: relax test for Solaris
53658         * tests/test-strerror.c (main): Permit Solaris behavior.
53659         * tests/test-strerror_r.c (main): Likewise.
53661         strerror: enforce POSIX ruling on strerror(0)
53662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
53663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
53664         * lib/strerror_r.c (rpl_strerror_r): Work around it.
53665         * doc/posix-functions/strerror.texi (strerror): Document it.
53666         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
53667         * tests/test-strerror.c (main): Strengthen test.
53668         * tests/test-strerror_r.c (main): Likewise.
53670 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53672         intprop-tests: port to older and more-pedantic compilers
53673         * modules/intprops-tests (Files): Add tests/macros.h.
53674         * tests/test-intprops.c: Include macros.h.
53675         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
53676         it's no longer documented to expand to an integer constant expression.
53677         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
53678         argument is floating point, as it's no longer documented to expand
53679         to an integer constant expression in that case.
53680         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
53681         compiler bugs reported by Bruno Haible.  See
53682         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
53683         (U0, U1): New constants, to work around the same bugs.  Also,
53684         in tests, use e.g., "(unsigned int) 39" rather than "39u".
53686         intprops: work around C compiler bugs
53687         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
53688         bug in Sun C 5.11 2010/08/13 and other compilers; see
53689         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
53691         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
53692         * doc/intprops.texi (Integer Type Determination): Fix
53693         documentation for TYPE_IS_INTEGER: it returns an constant
53694         expression, not an integer constant expression.  Fix doc for
53695         TYPE_SIGNED: it returns an integer constant expression only if its
53696         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
53697         hardly worth documented that way....)
53699 2011-05-18  Bruno Haible  <bruno@clisp.org>
53701         strerror_r: Avoid clobbering the strerror buffer when possible.
53702         * lib/strerror_r.c (strerror_r): Merge the three implementations.
53703         Handle gnulib defined errno values here. When strerror() returns NULL
53704         or an empty string, return EINVAL.
53705         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
53706         gnulib defined errno values here.
53707         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
53709 2011-05-18  Eric Blake  <eblake@redhat.com>
53711         fnmatch: avoid compiler warning
53712         * lib/fnmatch_loop.c (FCT): Use correct type.
53713         Reported by Matthias Bolte.
53715 2011-05-13  Jim Meyering  <meyering@redhat.com>
53717         maint.mk: three new prohibit_<HDR>_without_use rules
53718         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
53719         (sc_prohibit_stdio-safer_without_use): Likewise.
53720         (sc_prohibit_xfreopen_without_use): Likewise.
53722 2011-05-17  Jim Meyering  <meyering@redhat.com>
53724         announce-gen: fail if the NEWS delta is empty
53725         If there's nothing noteworthy in NEWS, then either you forgot
53726         or you shouldn't be releasing.
53727         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
53729 2011-05-17  Pádraig Brady  <P@draigBrady.com>
53731         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
53732         reserved symbols starting with double underscore from the check.
53734 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53736         intprops: add doc
53737         * doc/intprops.texi: New file, documenting intprops.
53738         * doc/gnulib.texi (Particular Modules): Include it.
53740         verify: add doc to gnulib manual and fix example
53741         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
53742         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
53743         (Compile-time Assertions): Fix example so it can't overflow.
53745 2011-05-17  Jim Meyering  <meyering@redhat.com>
53747         warnings.m4: don't usurp save_CPPFLAGS variable name
53748         * m4/warnings.m4: Prefix local temporary variable name with gl_.
53750         doc: fix typo
53751         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
53753 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53754             Bruno Haible  <bruno@clisp.org>
53756         doc: Tweak recent change.
53757         * README (Portability guidelines): Tweak new text.
53758         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
53759         Interix 6.1.
53761 2011-05-16  Eric Blake  <eblake@redhat.com>
53763         inttypes: avoid autoconf warning
53764         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
53765         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53767 2011-05-16  Sam Steingold  <sds@gnu.org>
53768         and Eric Blake  <eblake@redhat.com>
53770         vc-list-files: accept multiple directory operands
53771         * build-aux/vc-list-files: Iterate over all remaining operands.
53773 2011-05-16  Bruno Haible  <bruno@clisp.org>
53775         Fix confusion regarding deprecated modules.
53776         * modules/calloc (Status, Notice): Mark module as deprecated, not
53777         obsolete.
53778         * modules/fnmatch-posix (Status, Notice): Likewise.
53779         * modules/getdate (Status, Notice): Likewise.
53780         * modules/getopt (Status, Notice): Likewise.
53781         * modules/malloc (Status, Notice): Likewise.
53782         * modules/pipe (Status, Notice): Likewise.
53783         * modules/realloc (Status, Notice): Likewise.
53784         * modules/rename-dest-slash (Status, Notice): Likewise.
53785         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
53786         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
53787         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
53788         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
53789         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
53791 2011-05-16  Bruno Haible  <bruno@clisp.org>
53793         doc: List the target platforms.
53794         * doc/gnulib-intro.texi (Target Platforms): New section.
53795         * doc/gnulib.texi (Introduction): Update menu.
53796         * README (Portability guidelines): Refer to the new section. Update
53797         statement about oldest supported environment. Remove rationale why
53798         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
53799         unportable C89 function.
53800         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
53801         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
53803 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53805         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
53807 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53809         intprops-tests: new module
53810         * modules/intprops-tests, tests/test-intprops.c: New files.
53812         intprops: add safe, portable integer overflow checking
53813         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
53814         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
53815         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
53816         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
53817         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
53818         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
53819         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
53820         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
53821         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
53822         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
53823         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
53825 2011-05-12  James Youngman  <jay@gnu.org>
53827         Add a test for glibc's Bugzilla bug #12378.
53828         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
53829         doesn't allow the literal matching of a lone "[" (which is
53830         required by POSIX).
53831         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
53833 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
53835         Sync glibc change fixing Bugzilla bug #12378.
53836         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
53837         beginning and fall back to matching as normal character if the
53838         string ends before the matching ']' is found.  This is what POSIX
53839         requires.
53841 2011-05-13  Eric Blake  <eblake@redhat.com>
53843         getcwd-lgpl: relax test for FreeBSD
53844         * doc/posix-functions/getcwd.texi (getcwd): Document portability
53845         issue.
53846         * tests/test-getcwd-lgpl.c (main): Relax test.
53847         Reported by Matthias Bolte.
53849 2011-05-11  Eric Blake  <eblake@redhat.com>
53851         test-fflush: silence compiler warning
53852         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
53854 2011-05-11  Bruno Haible  <bruno@clisp.org>
53856         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
53857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
53858         * modules/canonicalize (Depends-on): Add 'nocrash'.
53859         * modules/canonicalize-lgpl (Depends-on): Likewise.
53860         * doc/posix-functions/realpath.texi: Update platforms list.
53861         Reported by Ryan Schmidt <ryandesign@macports.org>.
53863 2011-05-11  Bruno Haible  <bruno@clisp.org>
53865         group-member: Declare function in <unistd.h>.
53866         * lib/unistd.in.h (group_member): New declaration.
53867         * lib/group-member.h: Remove file.
53868         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
53869         * tests/test-unistd-c++.cc: Check signature of group_member.
53870         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
53871         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
53872         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
53873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
53874         HAVE_GROUP_MEMBER.
53875         * modules/group-member (Files): Remove lib/group-member.h.
53876         (Depends-on): Add unistd. Specify conditions.
53877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53878         (Include): Change to <unistd.h>.
53879         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
53880         HAVE_GROUP_MEMBER.
53881         * NEWS: Mention the change.
53882         * lib/euidaccess.c: Don't include group-member.h.
53884 2011-05-11  Bruno Haible  <bruno@clisp.org>
53886         group-member: Document module.
53887         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
53888         module.
53890 2011-05-11  Bruno Haible  <bruno@clisp.org>
53892         fclose: Fix mistake earlier today.
53893         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
53895 2011-05-11  Eric Blake  <eblake@redhat.com>
53897         fclose: preserve fflush errors
53898         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
53899         Reported by Jim Meyering.
53901         bootstrap: support a prereq of 'rpcgen -' on RHEL5
53902         * build-aux/bootstrap (check_versions): When no specific version
53903         is required, merely check that the app produces an exit status
53904         that indicates its existence.
53906         maint.mk: drop redundant check
53907         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
53908         the same but better.
53910 2011-05-11  Bruno Haible  <bruno@clisp.org>
53912         fclose: Fix possible link error.
53913         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
53914         unregister_shadow_fd. Improve comments.
53915         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
53916         Eric Blake.
53918 2011-05-11  Jim Meyering  <meyering@redhat.com>
53920         maint.mk: improve "can not" detection and generalize rule name
53921         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
53922         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
53923         Use the same technique as in sc_prohibit_doubled_word, so that
53924         we recognize "can not" also when the words are separated by a newline.
53925         Suggested by Eric Blake.
53926         (perl_filename_lineno_text_): Define.  Factored out of...
53927         (prohibit_doubled_word_): ...here.  Use the new definition.
53928         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
53929         (prohibit_undesirable_word_seq_RE_): New overridable variable.
53930         (ignore_undesirable_word_sequence_RE_): New overridable variable.
53932 2011-05-10  Eric Blake  <eblake@redhat.com>
53934         fclose: avoid double close race when possible
53935         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
53936         all but WINDOWS_SOCKETS.
53938 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
53940         openat: correct new comment
53941         * lib/openat-proc.c (openat_proc_name): Correct the comment.
53943 2011-05-10  Jim Meyering  <meyering@redhat.com>
53945         openat: add comments
53946         * lib/openat-proc.c (openat_proc_name): Add comments,
53947         mostly from Eric Blake.
53949 2011-05-09  Eric Blake  <eblake@redhat.com>
53951         openat: reduce syscalls in first probe of /proc
53952         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
53953         be a directory.  Simplify the probe for .. bugs.
53954         * modules/openat (Depends-on): Drop same-inode.
53955         Reported by Bastien ROUCARIES.
53957 2011-05-09  Jim Meyering  <meyering@redhat.com>
53959         maint.mk: change semantics/name of tight_scope variables
53960         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
53961         Rename variables to align with semantics that make them more useful.
53963         maint.mk: tweak new rule's name not to impinge
53964         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
53965         (sc_tight_scope): Use new rule name rather than $@-0.
53967         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
53968         * top/maint.mk (sc_tight_scope): New rule.
53969         (sc_tight_scope-0): New rule, ifdef'd out.
53970         (_gl_TS_dir): Default.
53971         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
53972         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
53974 2011-05-09  Simon Josefsson  <simon@josefsson.org>
53976         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
53977         Haible <bruno@clisp.org>.
53979 2011-05-08  Bruno Haible  <bruno@clisp.org>
53981         Comments.
53982         * m4/isnanf.m4: Add comment.
53983         * m4/isnanl.m4: Likewise.
53985 2011-05-08  Bruno Haible  <bruno@clisp.org>
53987         glob: Remove obsolete macro.
53988         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
53990 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
53992         intprops: Sun C 5.11 supports __typeof__
53993         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
53994         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
53995         which is new.
53996         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
53998         intprops: switch to usual gnulib indenting and naming
53999         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
54000         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
54002         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
54004 2011-05-08  Jim Meyering  <meyering@redhat.com>
54006         maint.mk: suppress "Entering/Leaving directory" diag in announcement
54007         * top/maint.mk (release-prep): Use make's --no-print-directory
54008         option when generating the announcement.  This eliminates the
54009         pesky "make[2]: Entering/Leaving directory" diagnostics in the
54010         generated announcement template.
54012 2011-05-08  Bruno Haible  <bruno@clisp.org>
54014         tzset: Fix gettimeofday wrapper on Solaris 2.6.
54015         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
54016         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
54018 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
54020         ignore-value, verify: Omit include files from lib_SOURCES.
54021         * modules/ignore-value, modules/verify (Makefile.am):
54022         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
54023         that leads Automake to duplicate use of am__objects_... variables
54024         in Makefile.in.  See
54025         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
54027 2011-05-07  Bruno Haible  <bruno@clisp.org>
54029         fclose: Simplify autoconf macro.
54030         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
54031         defined.
54033 2011-05-07  Bruno Haible  <bruno@clisp.org>
54035         canonicalize-lgpl: Fix autoconf macro ordering bug.
54036         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
54037         gl_STDLIB_H_DEFAULTS.
54039 2011-05-06  Eric Blake  <eblake@redhat.com>
54041         maintainer-makefile: make sc_po_check easier to tune
54042         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
54043         to probe for strings, such as an alternate location for gnulib.
54045         fclose: guarantee behavior on seekable stdin
54046         * modules/fclose (Depends-on): Add fflush.
54047         * doc/posix-functions/fclose.texi (fclose): Document this.
54048         * tests/test-fclose.c (main): Make test for this unconditional.
54050 2011-05-06  Bruno Haible  <bruno@clisp.org>
54052         fflush, fpurge: Relicense under LGPLv2+.
54053         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
54054         * modules/fpurge (License): Likewise.
54055         With permission from Eric Blake and Jim Meyering.
54056         Suggested by Eric Blake.
54058 2011-05-06  Karl Berry  <karl@gnu.org>
54060         * MODULES.html.sh (func_all_modules): remove exit.
54062 2011-05-06  Jim Meyering  <meyering@redhat.com>
54064         maint.mk: use info-gnu@ as the default only for a stable release
54065         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
54066         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
54067         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
54068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
54070 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
54072         assert-h: new module, which supports C1X-style static_assert
54073         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
54074         * lib/verify.h: Revamp so that this can be copied into assert.h,
54075         while retaining the ability to use it standalone as before.
54076         Rename private identifiers so as not to encroach on the
54077         standard C namespace, since this is now used by assert.h.
54078         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
54079         the old verify_true.
54080         (_GL_VERIFY_TRUE): New macro, with much of the contents of
54081         the old verify_true.  Use _GL_VERIFY_TYPE.
54082         (_GL_VERIFY): New macro, with much of the contents of the old verify.
54083         (static_assert): New macro, if _GL_STATIC_ASSERT_H
54084         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
54085         defined when this file is copied into the replacement assert.h.
54086         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
54087         and _Static_assert is not built in.
54088         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
54089         defined, and use the new macros mentioned above.
54090         * doc/posix-headers/assert.texi: Document this.
54092 2011-05-05  Bruno Haible  <bruno@clisp.org>
54094         fclose, fflush: Respect rules for use of AC_LIBOBJ.
54095         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
54096         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
54097         gl_REPLACE_FCLOSE here.
54098         * modules/fflush (Depends-on): Remove fclose.
54099         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
54100         combination with module 'fclose'.
54102 2011-05-05  Bruno Haible  <bruno@clisp.org>
54104         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
54105         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
54106         gl_FUNC_FFLUSH.
54107         (gl_FUNC_FFLUSH): Use it.
54108         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
54109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
54110         gl_REPLACE_FSEEKO here.
54112 2011-05-05  Bruno Haible  <bruno@clisp.org>
54114         tzset: Relicense under LGPL.
54115         * modules/tzset (License): Change to LGPL.
54116         No agreement needed; it's a no-op.
54118         strtoimax, strtoumax: Relicense under LGPL.
54119         * modules/strtoimax (License): Change to LGPL.
54120         * modules/strtoumax (License): Likewise.
54121         With permission from Jim Meyering, Paul Eggert:
54122         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
54123         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
54125         getgroups: Relicense under LGPL.
54126         * modules/getgroups (License): Change to LGPL.
54127         With permission from Jim Meyering, Paul Eggert, Eric Blake:
54128         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54129         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54130         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54132         nanosleep: Relicense under LGPL.
54133         * modules/nanosleep (License): Change to LGPL.
54134         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
54135         Haible:
54136         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54137         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54138         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54139         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54141         futimens: Relicense under LGPL.
54142         * modules/futimens (License): Change to LGPL.
54143         With permission from Eric Blake:
54144         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54146         fflush: Relicense under LGPL.
54147         * modules/fflush (License): Change to LGPL.
54148         With permission from Eric Blake, Bruno Haible, Jim Meyering:
54149         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54150         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54151         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
54153         tmpfile: Relicense under LGPL.
54154         * modules/tmpfile (License): Change to LGPL.
54155         With permission from Ben Pfaff:
54156         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54158         isfinite: Relicense under LGPL.
54159         * modules/isfinite (License): Change to LGPL.
54160         With permission from Ben Pfaff, Bruno Haible:
54161         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54162         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
54164         acosl..tanl: Relicense under LGPL.
54165         * modules/acosl (License): Change to LGPL.
54166         * modules/asinl (License): Likewise.
54167         * modules/atanl (License): Likewise.
54168         * modules/cosl (License): Likewise.
54169         * modules/expl (License): Likewise.
54170         * modules/logl (License): Likewise.
54171         * modules/sinl (License): Likewise.
54172         * modules/sqrtl (License): Likewise.
54173         * modules/tanl (License): Likewise.
54174         Source code originally from glibc and Paolo Bonzini. Agreements:
54175         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
54176         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
54178 2011-05-05  Bruno Haible  <bruno@clisp.org>
54180         signal: Define sighandler_t.
54181         * lib/signal.in.h (sighandler_t): New type.
54182         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
54183         whether sighandler_t is defined.
54184         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
54185         * modules/signal (Depends-on): Add extensions.
54186         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
54187         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
54188         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
54190 2011-05-05  Eric Blake  <eblake@redhat.com>
54192         maint: remove useless REPLACE_*_H macros
54193         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
54194         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54195         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54196         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
54197         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54198         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54199         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
54200         * m4/btowc.m4: Update callers.
54201         * m4/dirfd.m4: Likewise.
54202         * m4/duplocale.m4: Likewise.
54203         * m4/fchdir.m4: Likewise.
54204         * m4/fdopendir.m4: Likewise.
54205         * m4/inet_ntop.m4: Likewise.
54206         * m4/inet_pton.m4: Likewise.
54207         * m4/ioctl.m4: Likewise.
54208         * m4/mbrlen.m4: Likewise.
54209         * m4/mbrtowc.m4: Likewise.
54210         * m4/mbsinit.m4: Likewise.
54211         * m4/mbsnrtowcs.m4: Likewise.
54212         * m4/mbsrtowcs.m4: Likewise.
54213         * m4/poll.m4: Likewise.
54214         * m4/setlocale.m4: Likewise.
54215         * m4/wcrtomb.m4: Likewise.
54216         * m4/wcsnrtombs.m4: Likewise.
54217         * m4/wcsrtombs.m4: Likewise.
54218         * m4/wctob.m4: Likewise.
54219         * m4/wcwidth.m4: Likewise.
54220         * modules/posix_spawn: Likewise.
54221         * modules/posix_spawn_file_actions_addclose: Likewise.
54222         * modules/posix_spawn_file_actions_adddup2: Likewise.
54223         * modules/posix_spawn_file_actions_addopen: Likewise.
54224         * modules/posix_spawn_file_actions_destroy: Likewise.
54225         * modules/posix_spawn_file_actions_init: Likewise.
54226         * modules/posix_spawnattr_destroy: Likewise.
54227         * modules/posix_spawnattr_getflags: Likewise.
54228         * modules/posix_spawnattr_getpgroup: Likewise.
54229         * modules/posix_spawnattr_getschedparam: Likewise.
54230         * modules/posix_spawnattr_getschedpolicy: Likewise.
54231         * modules/posix_spawnattr_getsigdefault: Likewise.
54232         * modules/posix_spawnattr_getsigmask: Likewise.
54233         * modules/posix_spawnattr_init: Likewise.
54234         * modules/posix_spawnattr_setflags: Likewise.
54235         * modules/posix_spawnattr_setpgroup: Likewise.
54236         * modules/posix_spawnattr_setschedparam: Likewise.
54237         * modules/posix_spawnattr_setschedpolicy: Likewise.
54238         * modules/posix_spawnattr_setsigdefault: Likewise.
54239         * modules/posix_spawnattr_setsigmask: Likewise.
54240         * modules/posix_spawnp: Likewise.
54242 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
54244         Add option to do-release-commit-and-tag to specify branch.
54245         * build-aux/do-release-commit-and-tag: Add --branch.
54247 2011-05-03  Bruno Haible  <bruno@clisp.org>
54249         Avoid unnecessary compilation units, through conditional dependencies.
54250         * modules/accept (Depends-on): Add conditions to the dependencies.
54251         * modules/acosl (Depends-on): Likewise.
54252         * modules/argz (Depends-on): Likewise.
54253         * modules/asinl (Depends-on): Likewise.
54254         * modules/atanl (Depends-on): Likewise.
54255         * modules/atoll (Depends-on): Likewise.
54256         * modules/bind (Depends-on): Likewise.
54257         * modules/btowc (Depends-on): Likewise.
54258         * modules/canonicalize-lgpl (Depends-on): Likewise.
54259         * modules/ceil (Depends-on): Likewise.
54260         * modules/ceilf (Depends-on): Likewise.
54261         * modules/ceill (Depends-on): Likewise.
54262         * modules/chdir-long (Depends-on): Likewise.
54263         * modules/chown (Depends-on): Likewise.
54264         * modules/close (Depends-on): Likewise.
54265         * modules/connect (Depends-on): Likewise.
54266         * modules/cosl (Depends-on): Likewise.
54267         * modules/dirfd (Depends-on): Likewise.
54268         * modules/dprintf (Depends-on): Likewise.
54269         * modules/dprintf-posix (Depends-on): Likewise.
54270         * modules/error (Depends-on): Likewise.
54271         * modules/euidaccess (Depends-on): Likewise.
54272         * modules/expl (Depends-on): Likewise.
54273         * modules/faccessat (Depends-on): Likewise.
54274         * modules/fchdir (Depends-on): Likewise.
54275         * modules/fclose (Depends-on): Likewise.
54276         * modules/fcntl (Depends-on): Likewise.
54277         * modules/fdopendir (Depends-on): Likewise.
54278         * modules/fflush (Depends-on): Likewise.
54279         * modules/floor (Depends-on): Likewise.
54280         * modules/floorf (Depends-on): Likewise.
54281         * modules/floorl (Depends-on): Likewise.
54282         * modules/fnmatch (Depends-on): Likewise.
54283         * modules/fopen (Depends-on): Likewise.
54284         * modules/fprintf-posix (Depends-on): Likewise.
54285         * modules/frexp (Depends-on): Likewise.
54286         * modules/frexp-nolibm (Depends-on): Likewise.
54287         * modules/frexpl (Depends-on): Likewise.
54288         * modules/frexpl-nolibm (Depends-on): Likewise.
54289         * modules/fseek (Depends-on): Likewise.
54290         * modules/fsusage (Depends-on): Likewise.
54291         * modules/ftell (Depends-on): Likewise.
54292         * modules/ftello (Depends-on): Likewise.
54293         * modules/futimens (Depends-on): Likewise.
54294         * modules/getcwd (Depends-on): Likewise.
54295         * modules/getcwd-lgpl (Depends-on): Likewise.
54296         * modules/getdelim (Depends-on): Likewise.
54297         * modules/getdomainname (Depends-on): Likewise.
54298         * modules/getgroups (Depends-on): Likewise.
54299         * modules/gethostname (Depends-on): Likewise.
54300         * modules/getline (Depends-on): Likewise.
54301         * modules/getlogin_r (Depends-on): Likewise.
54302         * modules/getopt-posix (Depends-on): Likewise.
54303         * modules/getpeername (Depends-on): Likewise.
54304         * modules/getsockname (Depends-on): Likewise.
54305         * modules/getsockopt (Depends-on): Likewise.
54306         * modules/getsubopt (Depends-on): Likewise.
54307         * modules/getusershell (Depends-on): Likewise.
54308         * modules/glob (Depends-on): Likewise.
54309         * modules/grantpt (Depends-on): Likewise.
54310         * modules/iconv_open (Depends-on): Likewise.
54311         * modules/iconv_open-utf (Depends-on): Likewise.
54312         * modules/inet_ntop (Depends-on): Likewise.
54313         * modules/inet_pton (Depends-on): Likewise.
54314         * modules/ioctl (Depends-on): Likewise.
54315         * modules/isapipe (Depends-on): Likewise.
54316         * modules/isfinite (Depends-on): Likewise.
54317         * modules/isinf (Depends-on): Likewise.
54318         * modules/lchown (Depends-on): Likewise.
54319         * modules/ldexpl (Depends-on): Likewise.
54320         * modules/link (Depends-on): Likewise.
54321         * modules/linkat (Depends-on): Likewise.
54322         * modules/listen (Depends-on): Likewise.
54323         * modules/logl (Depends-on): Likewise.
54324         * modules/lstat (Depends-on): Likewise.
54325         * modules/mbrlen (Depends-on): Likewise.
54326         * modules/mbrtowc (Depends-on): Likewise.
54327         * modules/mbsinit (Depends-on): Likewise.
54328         * modules/mbsnrtowcs (Depends-on): Likewise.
54329         * modules/mbsrtowcs (Depends-on): Likewise.
54330         * modules/mbtowc (Depends-on): Likewise.
54331         * modules/memcmp (Depends-on): Likewise.
54332         * modules/mkdir (Depends-on): Likewise.
54333         * modules/mkdtemp (Depends-on): Likewise.
54334         * modules/mkfifo (Depends-on): Likewise.
54335         * modules/mkfifoat (Depends-on): Likewise.
54336         * modules/mknod (Depends-on): Likewise.
54337         * modules/mkostemp (Depends-on): Likewise.
54338         * modules/mkostemps (Depends-on): Likewise.
54339         * modules/mkstemp (Depends-on): Likewise.
54340         * modules/mkstemps (Depends-on): Likewise.
54341         * modules/mktime (Depends-on): Likewise.
54342         * modules/nanosleep (Depends-on): Likewise.
54343         * modules/open (Depends-on): Likewise.
54344         * modules/openat (Depends-on): Likewise.
54345         * modules/perror (Depends-on): Likewise.
54346         * modules/poll (Depends-on): Likewise.
54347         * modules/popen (Depends-on): Likewise.
54348         * modules/posix_spawn (Depends-on): Likewise.
54349         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
54350         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54351         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54352         * modules/posix_spawnp (Depends-on): Likewise.
54353         * modules/pread (Depends-on): Likewise.
54354         * modules/printf-posix (Depends-on): Likewise.
54355         * modules/ptsname (Depends-on): Likewise.
54356         * modules/putenv (Depends-on): Likewise.
54357         * modules/pwrite (Depends-on): Likewise.
54358         * modules/readline (Depends-on): Likewise.
54359         * modules/readlink (Depends-on): Likewise.
54360         * modules/readlinkat (Depends-on): Likewise.
54361         * modules/recv (Depends-on): Likewise.
54362         * modules/recvfrom (Depends-on): Likewise.
54363         * modules/regex (Depends-on): Likewise.
54364         * modules/remove (Depends-on): Likewise.
54365         * modules/rename (Depends-on): Likewise.
54366         * modules/renameat (Depends-on): Likewise.
54367         * modules/rmdir (Depends-on): Likewise.
54368         * modules/round (Depends-on): Likewise.
54369         * modules/roundf (Depends-on): Likewise.
54370         * modules/roundl (Depends-on): Likewise.
54371         * modules/rpmatch (Depends-on): Likewise.
54372         * modules/select (Depends-on): Likewise.
54373         * modules/send (Depends-on): Likewise.
54374         * modules/sendto (Depends-on): Likewise.
54375         * modules/setenv (Depends-on): Likewise.
54376         * modules/setlocale (Depends-on): Likewise.
54377         * modules/setsockopt (Depends-on): Likewise.
54378         * modules/shutdown (Depends-on): Likewise.
54379         * modules/sigaction (Depends-on): Likewise.
54380         * modules/signbit (Depends-on): Likewise.
54381         * modules/sigprocmask (Depends-on): Likewise.
54382         * modules/sinl (Depends-on): Likewise.
54383         * modules/sleep (Depends-on): Likewise.
54384         * modules/snprintf (Depends-on): Likewise.
54385         * modules/snprintf-posix (Depends-on): Likewise.
54386         * modules/socket (Depends-on): Likewise.
54387         * modules/sprintf-posix (Depends-on): Likewise.
54388         * modules/sqrtl (Depends-on): Likewise.
54389         * modules/stat (Depends-on): Likewise.
54390         * modules/strchrnul (Depends-on): Likewise.
54391         * modules/strdup-posix (Depends-on): Likewise.
54392         * modules/strerror (Depends-on): Likewise.
54393         * modules/strerror_r-posix (Depends-on): Likewise.
54394         * modules/strndup (Depends-on): Likewise.
54395         * modules/strnlen (Depends-on): Likewise.
54396         * modules/strptime (Depends-on): Likewise.
54397         * modules/strsep (Depends-on): Likewise.
54398         * modules/strsignal (Depends-on): Likewise.
54399         * modules/strstr-simple (Depends-on): Likewise.
54400         * modules/strtod (Depends-on): Likewise.
54401         * modules/strtoimax (Depends-on): Likewise.
54402         * modules/strtok_r (Depends-on): Likewise.
54403         * modules/strtoumax (Depends-on): Likewise.
54404         * modules/symlink (Depends-on): Likewise.
54405         * modules/symlinkat (Depends-on): Likewise.
54406         * modules/tanl (Depends-on): Likewise.
54407         * modules/tcgetsid (Depends-on): Likewise.
54408         * modules/tmpfile (Depends-on): Likewise.
54409         * modules/trunc (Depends-on): Likewise.
54410         * modules/truncf (Depends-on): Likewise.
54411         * modules/truncl (Depends-on): Likewise.
54412         * modules/uname (Depends-on): Likewise.
54413         * modules/unlink (Depends-on): Likewise.
54414         * modules/unlockpt (Depends-on): Likewise.
54415         * modules/unsetenv (Depends-on): Likewise.
54416         * modules/usleep (Depends-on): Likewise.
54417         * modules/utimensat (Depends-on): Likewise.
54418         * modules/vasprintf (Depends-on): Likewise.
54419         * modules/vdprintf (Depends-on): Likewise.
54420         * modules/vdprintf-posix (Depends-on): Likewise.
54421         * modules/vfprintf-posix (Depends-on): Likewise.
54422         * modules/vprintf-posix (Depends-on): Likewise.
54423         * modules/vsnprintf (Depends-on): Likewise.
54424         * modules/vsnprintf-posix (Depends-on): Likewise.
54425         * modules/vsprintf-posix (Depends-on): Likewise.
54426         * modules/wcrtomb (Depends-on): Likewise.
54427         * modules/wcscasecmp (Depends-on): Likewise.
54428         * modules/wcscspn (Depends-on): Likewise.
54429         * modules/wcsdup (Depends-on): Likewise.
54430         * modules/wcsncasecmp (Depends-on): Likewise.
54431         * modules/wcsnrtombs (Depends-on): Likewise.
54432         * modules/wcspbrk (Depends-on): Likewise.
54433         * modules/wcsrtombs (Depends-on): Likewise.
54434         * modules/wcsspn (Depends-on): Likewise.
54435         * modules/wcsstr (Depends-on): Likewise.
54436         * modules/wcstok (Depends-on): Likewise.
54437         * modules/wcswidth (Depends-on): Likewise.
54438         * modules/wctob (Depends-on): Likewise.
54439         * modules/wctomb (Depends-on): Likewise.
54440         * modules/wctype (Depends-on): Likewise.
54441         * modules/wcwidth (Depends-on): Likewise.
54442         * modules/write (Depends-on): Likewise.
54444 2011-05-03  Bruno Haible  <bruno@clisp.org>
54446         Support for conditional dependencies.
54447         * doc/gnulib.texi (Module description): Document the syntax of
54448         conditional dependencies.
54449         * gnulib-tool: New option --conditional-dependencies.
54450         (func_usage): Document it.
54451         (cond_dependencies): New variable.
54452         (func_get_automake_snippet_conditional,
54453         func_get_automake_snippet_unconditional): New functions, extracted from
54454         func_get_automake_snippet.
54455         (func_get_automake_snippet): Use them.
54456         (sed_first_32_chars): New variable.
54457         (func_module_shellfunc_name): New function.
54458         (func_module_shellvar_name): New function.
54459         (func_module_conditional_name): New function.
54460         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
54461         func_cond_module_condition): New functions.
54462         (func_modules_transitive_closure): Add support for conditional
54463         dependencies.
54464         (func_emit_lib_Makefile_am): For a conditional module, enclose the
54465         conditional automake snippet in an automake conditional.
54466         (func_emit_autoconf_snippets): Emit shell functions that contain the
54467         code for conditional modules.
54468         (func_import, func_create_testdir): Update specification.
54470 2011-05-03  Eric Blake  <eblake@redhat.com>
54472         test-getaddrinfo: report error information
54473         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
54475 2011-05-03  Jim Meyering  <meyering@redhat.com>
54477         bootstrap: avoid build failure when $GZIP is set
54478         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
54479         program name.  If defined at all, it is supposed to list gzip options.
54480         Reported by Alan Curry in http://debbugs.gnu.org/8609
54482 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
54484         readme-release: new module with release instructions
54485         * modules/readme-release: New module.
54486         * top/README-release: New file, from coreutils, grep, diffutils.
54487         * MODULES.html.sh (Support for maintaining and releasing): Add it.
54489 2011-05-02  Eric Blake  <eblake@redhat.com>
54491         fflush: also replace fclose when fixing fflush
54492         * modules/fflush (Depends-on): Add fclose.
54493         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
54494         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
54495         memstreams with no backing fd.
54496         * doc/posix-functions/fclose.texi (fclose): Document the use of
54497         fflush module to fix the bug.
54498         * tests/test-fclose.c (main): Relax test when fclose is used in
54499         isolation.
54501         fclose: add some tests
54502         * modules/fclose-tests: New test module.
54503         * tests/test-fclose.c: New file.
54504         * doc/posix-functions/fclose.texi (fclose): Document the bug.
54506         fclose: reduced dependencies
54507         * modules/fclose (Depends-on): Switch from fflush/fseeko to
54508         simpler lseek.
54509         * lib/fclose.c (rpl_fclose): Likewise.
54510         Reported by Simon Josefsson.
54512         exit: drop remaining clients
54513         * modules/argmatch (Depends-on): Replace exit with stdlib.
54514         * modules/copy-file (Depends-on): Likewise.
54515         * modules/execute (Depends-on): Likewise.
54516         * modules/exitfail (Depends-on): Likewise.
54517         * modules/obstack (Depends-on): Likewise.
54518         * modules/pagealign_alloc (Depends-on): Likewise.
54519         * modules/pipe-filter-gi (Depends-on): Likewise.
54520         * modules/pipe-filter-ii (Depends-on): Likewise.
54521         * modules/savewd (Depends-on): Likewise.
54522         * modules/spawn-pipe (Depends-on): Likewise.
54523         * modules/wait-process (Depends-on): Likewise.
54524         * modules/xsetenv (Depends-on): Likewise.
54525         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
54526         * modules/git-merge-changelog (Depends-on): Likewise.
54527         * modules/long-options (Depends-on): Likewise.
54528         * modules/pt_chown (Depends-on): Likewise.
54529         * modules/sysexits (Depends-on): Likewise.
54531         freading: relax license from LGPLv3+ to LGPLv2+
54532         * modules/freading (License): Relax LGPL version.
54534 2011-05-02  Bruno Haible  <bruno@clisp.org>
54536         fchdir: Remove unused dependencies.
54537         * modules/fchdir (Depends-on): Remove include_next.
54539 2011-05-02  Bruno Haible  <bruno@clisp.org>
54541         gnulib-tool: Refactor.
54542         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
54543         from func_emit_autoconf_snippets.
54544         (func_emit_autoconf_snippets): Use it.
54546 2011-05-02  Simon Josefsson  <simon@josefsson.org>
54548         * NEWS: Document removal of 'exit'.
54549         * modules/exit: Remove file.
54551 2011-05-01  Bruno Haible  <bruno@clisp.org>
54553         Update DEPENDENCIES.
54554         * DEPENDENCIES (gettext): Recommend the newest release.
54555         Reported by Simon Josefsson.
54557 2011-05-01  Bruno Haible  <bruno@clisp.org>
54559         gnulib-tool: Reduce code duplication.
54560         * gnulib-tool (func_emit_autoconf_snippets): New function.
54561         (func_import, func_create_testdir): Use it.
54563 2011-04-30  Eric Blake  <eblake@redhat.com>
54565         fclose: don't fail on non-seekable input stream
54566         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
54567         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
54568         since fflush is allowed to fail in that case.
54570 2011-04-30  Bruno Haible  <bruno@clisp.org>
54572         dup3: cleanup
54573         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
54575 2011-04-30  Bruno Haible  <bruno@clisp.org>
54577         netdb: Make it work in C++ mode.
54578         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
54579         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
54580         module.
54581         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
54582         gl_MODULE_INDICATOR_FOR_TESTS.
54583         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
54584         * modules/netdb-c++-tests: New file.
54585         * tests/test-netdb-c++.cc: New file.
54587 2011-04-30  Bruno Haible  <bruno@clisp.org>
54589         New modules 'vfscanf', 'vscanf'.
54590         * modules/vfscanf: New file.
54591         * modules/vscanf: New file.
54592         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
54593         here.
54594         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
54595         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
54597 2011-04-30  Bruno Haible  <bruno@clisp.org>
54599         passfd: Add comments.
54600         * lib/passfd.c: Add comments about platforms.
54602 2011-04-30  Bruno Haible  <bruno@clisp.org>
54604         sys_uio: Make <sys/uio.h> self-contained.
54605         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
54606         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
54608 2011-04-30  Bruno Haible  <bruno@clisp.org>
54610         sys_socket: Ensure 'struct iovec' definition.
54611         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
54612         <sys/socket.h>.
54613         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
54615 2011-04-30  Bruno Haible  <bruno@clisp.org>
54617         sys_uio: Protect definition of 'struct iovec'.
54618         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
54619         it as a C struct.
54621 2011-04-30  Bruno Haible  <bruno@clisp.org>
54623         manywarnings: fix indentation
54624         * m4/manywarnings.m4: Indent by 2 spaces consistently.
54626 2011-04-30  Pádraig Brady  <P@draigBrady.com>
54628         manywarnings: add -Wno-missing-field-initializers if needed.
54629         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
54630         option if it's needed to allow initialization with { 0, }
54632 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
54634         announce-gen: cosmetic improvement
54635         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
54637 2011-04-29  Jim Meyering  <meyering@redhat.com>
54639         vc-list-files: indent with spaces, not TABs
54640         * build-aux/vc-list-files: Convert leading TABs to spaces,
54641         to match the style of most other files in gnulib.
54643         announce-gen: indent with spaces, not TABs
54644         * build-aux/announce-gen: Convert all TABs to spaces, to match
54645         the style of most other files in gnulib.
54647 2011-04-29  Eric Blake  <eblake@redhat.com>
54649         quotearg: avoid uninitialized variable use
54650         * lib/quotearg.c (quoting_options_from_style): Initialize
54651         remaining fields, and ensure that custom styles are only used via
54652         quoting_options rather than quoting_style.
54654 2011-04-29  Jim Meyering  <meyering@redhat.com>
54656         maint.mk: remove unused VC-tag variable
54657         * top/maint.mk (VC-tag): Remove unused variable.
54659 2011-04-29  Bruno Haible  <bruno@clisp.org>
54661         netdb: fix gai_strerror replacements
54662         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
54663         * modules/netdb: Substitute it.
54665 2011-04-29  Jim Meyering  <meyering@redhat.com>
54667         test-getcwd.c: avoid new set-but-not-used warning
54668         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
54669         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
54670         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
54671         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
54673         test-hash.c: avoid a new shadowing warning
54674         * tests/test-hash.c (main): Don't shadow "dup".
54676 2011-04-28  Eric Blake  <eblake@redhat.com>
54678         getaddrinfo: fix gai_strerror signature
54679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
54680         and work around mingw with UNICODE defined.
54681         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
54682         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
54683         * modules/netdb (Makefile.am): Substitute it.
54684         * lib/netdb.in.h (gai_strerror): Declare replacement.
54685         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
54686         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
54687         the fix.
54689         getsockopt: avoid compiler warning
54690         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
54691         Reported by Matthias Bolte.
54693         tests: drop unused link dependency
54694         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
54695         * modules/dirent-safer-tests (Makefile.am): Likewise.
54696         * modules/fdopendir-tests (Makefile.am): Likewise.
54697         * modules/mkfifoat-tests (Makefile.am): Likewise.
54698         * modules/openat-safer-tests (Makefile.am): Likewise.
54699         * modules/openat-tests (Makefile.am): Likewise.
54700         * modules/readlinkat-tests (Makefile.am): Likewise.
54701         * modules/symlinkat-tests (Makefile.am): Likewise.
54702         * modules/linkat-tests (Makefile.am): Likewise.
54703         (Depends-on): Switch to filenamecat-lgpl.
54704         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
54705         LIBINTL.
54706         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
54707         * tests/test-linkat.c (main): Don't require xalloc.
54709         hash, mgetgroups: drop xalloc dependency
54710         * lib/hash.c (includes): Adjust includes.
54711         * lib/mgetgroups.c (includes): Likewise.
54712         (xgetgroups): Move...
54713         * lib/xgetgroups.c: ...to new file.
54714         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
54715         * modules/xgetgroups: New file, split from...
54716         * modules/mgetgroups: ...here.
54717         (Depends-on): Add xalloc-oversized.
54718         * modules/hash (Depends-on): Likewise.
54719         * modules/hash-tests (Depends-on): Drop xalloc.
54720         (test_hash_LDADD): Drop unused library.
54721         * tests/test-hash.c (main): Break xalloc dependency.
54722         (includes): Drop unused include.
54724         xalloc-oversized: new module
54725         * modules/xalloc-oversized: New module.
54726         * modules/xalloc (Depends-on): Add it.
54727         * lib/xalloc.h (xalloc_oversized): Move...
54728         * lib/xalloc-oversized.h: ...into new file.
54730         utimecmp: drop dependency on xmalloc
54731         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
54732         due to memory pressure.
54733         * modules/utimecmp (Depends-on): Drop xalloc.
54735 2011-04-27  Eric Blake  <eblake@redhat.com>
54737         getcwd: fix mingw bugs
54738         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
54739         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
54740         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
54742 2011-04-27  Bruno Haible  <bruno@clisp.org>
54744         mkstemps: Ensure declaration on MacOS X 10.5.
54745         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
54746         * doc/glibc-functions/mkstemps.texi: Document header file problem on
54747         MacOS X.
54749 2011-04-27  Bruno Haible  <bruno@clisp.org>
54751         mkstemp: More documentation.
54752         * doc/posix-functions/mkstemp.texi: Document header file problem on
54753         MacOS X.
54755 2011-04-27  Bruno Haible  <bruno@clisp.org>
54757         mkstemp: Tweak configure message when cross-compiling.
54758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
54759         result as a guess.
54761 2011-04-27  Bruno Haible  <bruno@clisp.org>
54763         clean-temp: Clarify what it does.
54764         * lib/clean-temp.h: Add more comments.
54765         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
54766         module.
54767         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
54768         * doc/glibc-functions/mkstemps.texi: Likewise.
54769         * doc/glibc-functions/mkostemps.texi: Likewise.
54771 2011-04-27  Eric Blake  <eblake@redhat.com>
54773         fchdir: avoid extra chdir and fix test
54774         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
54775         getcwd-lgpl.
54776         * lib/fchdir.c (get_name): Any absolute name will do; it does not
54777         have to be canonical.
54778         (canonicalize_file_name): Drop unused macro.
54779         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
54781         filenamecat-lgpl: fix licence
54782         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
54783         when it was first created.
54785         linkat, renameat: add missing dependency
54786         * modules/linkat (Depends-on): Require getcwd-lgpl.
54787         * modules/renameat (Depends-on): Likewise.
54789         tests: reduce dependencies
54790         * tests/test-linkat.c (main): Use lighter-weight getcwd.
54791         * tests/test-renameat.c (main): Likewise.
54792         * modules/linkat-tests (Depends-on): Relax dependency.
54793         * modules/renameat-tests (Depends-on): Likewise.
54794         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
54795         dependency explicit.
54797         save-cwd: reduce default dependency
54798         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
54799         * lib/save-cwd.c: Update comments.
54800         * NEWS: Document the semantic change.
54802         getcwd: enhance tests
54803         * tests/test-getcwd-lgpl.c: New file, taken from...
54804         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
54805         repeat long path stress tests from m4 probe.
54806         * modules/getcwd-lgpl-tests: New module.
54807         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
54808         * m4/getcwd-abort-bug.m4: Update comment.
54809         * m4/getcwd-path-max.m4: Likewise.
54811         getcwd-lgpl: new module
54812         * modules/getcwd-lgpl: New module.
54813         * lib/getcwd-lgpl.c: New file.
54814         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54815         * MODULES.html.sh (lacking POSIX:2008): Likewise.
54816         * modules/getcwd (configure.ac): Set C witness.
54817         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
54819         getcwd: tweak comments
54820         * m4/getcwd-abort-bug.m4: Fix comments.
54821         * m4/getcwd-path-max.m4: Likewise.
54822         * m4/getcwd.m4: Likewise.
54824 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
54825         and Eric Blake  <eblake@redhat.com>
54827         mkstemp: replace if system version uses wrong permissions
54828         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
54829         read/write mode bits set in file created by mkstemp.
54830         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
54832 2011-04-27  Eric Blake  <eblake@redhat.com>
54834         passfd: avoid compiler warning
54835         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
54836         Reported by Laine Stump.
54838 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
54840         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
54841         required by the NetBSD (and perhaps other 4.4BSD derived) join.
54843 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
54844         and Eric Blake  <eblake@redhat.com>
54846         mkstemp: mention clean-temp module
54847         * lib/mkstemp.c: Add comment.
54848         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
54850 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
54852         inttypes: also provide default values for 32-bit tests
54853         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
54854         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
54856 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54858         strtoumax: remove dependency on strtoimax
54859         This is like the strtoull change of yesterday.
54860         * modules/strtoumax (Files): Add lib/strtoimax.c.
54861         (Depends-on): Remove strtoimax and add verify.
54863         inttypes-incomplete: new module
54864         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
54865         all but the PRI* and SCN* parts of gl_INTTYPES_H.
54866         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
54867         of gl_INTTYPES_H.
54868         (gl_INTTYPES_H): Rewrite in terms of these new macros.
54869         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
54870         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
54871         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
54872         * modules/strtoumax, modules/xstrtol (Depends-on):
54873         Depend on inttypes-incomplete, not inttypes.
54874         * modules/inttypes-incomplete: New module, containing the contents
54875         of the old modules/inttypes module, except that the Files: section
54876         omits m4/inttypes-pri.m4, and the configure.ac section invokes
54877         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
54878         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
54879         (Depends-on): Depend only on inttypes-incomplete.
54880         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
54882         inttypes: omit now-redundant strtoimax and strtoumax work
54883         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
54884         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
54886         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
54887         This supports apps that need pointers to strtoimax and strtoumax,
54888         and ports to HP-UX 11.00 64.bit, which has macros that expand to
54889         nonexistent functions.  See
54890         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
54891         et seq.
54892         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
54893         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
54894         a macro.
54895         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
54897 2011-04-25  Simon Josefsson  <simon@josefsson.org>
54899         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
54901 2011-04-25  Bruno Haible  <bruno@clisp.org>
54903         strtol, strtoul: Mark modules as obsolete.
54904         * modules/strtol (Status, Notice): New sections.
54905         * modules/strtoul (Status, Notice): New sections.
54907 2011-04-25  Bruno Haible  <bruno@clisp.org>
54909         strtod: Remove check for strtod, unless supporting old platforms.
54910         * modules/strtod-obsolete: New file.
54911         * m4/strtod-obsolete.m4: New file.
54912         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
54913         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
54914         * modules/strtod (Depends-on): Add strtod-obsolete.
54915         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
54917 2011-04-25  Bruno Haible  <bruno@clisp.org>
54919         strcase: Make module obsolete.
54920         * modules/strcase (Status, Notice): New sections.
54922 2011-04-25  Bruno Haible  <bruno@clisp.org>
54924         dup2: Remove check for dup2, unless supporting old obsolete platforms.
54925         * modules/dup2-obsolete: New file.
54926         * m4/dup2-obsolete.m4: New file.
54927         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
54928         gl_FUNC_DUP2_OBSOLETE is not also defined.
54929         * modules/dup2 (Depends-on): Add dup2-obsolete.
54930         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
54932 2011-04-25  Bruno Haible  <bruno@clisp.org>
54934         strnlen: Avoid memchr related link error on old obsolete platforms.
54935         * modules/memchr-obsolete: New file.
54936         * m4/memchr-obsolete.m4: New file.
54937         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
54938         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
54939         * modules/memchr (Depends-on): Add memchr-obsolete.
54940         * modules/strnlen (Depends-on): Likewise.
54941         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
54943 2011-04-25  Jim Meyering  <meyering@redhat.com>
54945         maint.mk: makefile_at_at_check extend and clean up
54946         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
54947         in addition to */Makefile.am.
54948         Exempt legitimate uses of @VAR@ notation, e.g.,
54949         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
54950         Remove obsolete coreutils-specific comment.
54951         Prompted by discussion here:
54952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
54954 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54956         strtoul: remove dependency on strtol
54957         This is so that 'configure' need not check for strtol merely because
54958         the application needs strtoul.
54959         * modules/strtoul (Files): Add lib/strtol.c.
54960         (Depends-on): Remove strtol.
54962         strtoull: remove dependency on strtoul
54963         This is like the strtoll change.
54964         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
54965         (Depends-on): Remove strtoul.
54967         strtoll: remove dependency on strtol
54968         This is so that 'configure' need not check for strtol merely because
54969         the application needs strtoll.
54970         * modules/strtoll (Files): Add lib/strtol.c.
54971         (Depends-on): Remove strtol.
54973 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54975         inttypes: Move some configure check to module 'imaxdiv'.
54976         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
54977         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
54978         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
54980 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54982         inttypes: Move some configure check to module 'imaxabs'.
54983         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
54984         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
54985         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
54987 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54989         inttypes: Remove configure tests that are not needed since 2009-12-31.
54990         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
54991         gl_cv_header_working_inttypes_h.
54993 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54995         * modules/strnlen (Depends-on): Remove memchr.
54996         The strnlen implementation doesn't need the memchr module's fixes; see
54997         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
54999         strtol: remove dependency on wchar
55000         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
55001         * modules/strtol (Depends-on): Remove wchar.
55003 2011-04-21  Eric Blake  <eblake@redhat.com>
55005         passfd: fix test regression on Linux
55006         * modules/passfd-tests (configure.ac): Correct socketpair check.
55008         passfd: speed up configure and drop unused code
55009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
55010         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
55011         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
55012         Instead of probing at configure for unix_scm_rights_bsd44_way,
55013         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
55014         check to a struct member probe.
55015         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
55016         (sendfd, recvfd): Update preprocessor checks.
55017         * modules/passfd (Files): Reflect rename, and drop unused file.
55018         (Depends-on): Drop unused dependency.
55020         passfd: allow compilation on mingw
55021         * modules/sys_socket (Depends-on): Add sys_uio.
55022         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
55023         iovec and a minimal struct msghdr.
55024         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
55025         * tests/test-sys_socket.c (main): Enhance test.
55026         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
55027         guaranteed to provide what we need.
55028         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
55029         * modules/passfd-tests (Depends-on): Add sys_wait.
55030         * tests/test-passfd.c (main): Skip test on mingw, for now.
55031         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
55032         partial 'struct msghdr' implementation.
55034         sys_uio: new module
55035         * modules/sys_uio: New module.
55036         * modules/sys_uio-tests: Likewise.
55037         * lib/sys_uio.in.h: New file.
55038         * m4/sys_uio_h.m4: Likewise.
55039         * tests/test-sys_uio.c: Likewise.
55040         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
55041         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
55043 2011-04-20  Jim Meyering  <meyering@redhat.com>
55045         useless-if-before-free: avoid false-positive
55046         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
55047         disjunct so that it too requires a terminating ";".  Without that,
55048         this script would identify as useless one statement from gcc that
55049         was not:
55050           if (aligned_ptr)
55051             free (((void **) aligned_ptr) [-1]);
55053 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
55055         doc: update users.txt.
55056         * users.txt: Add barcode.
55058 2011-04-19  Bruno Haible  <bruno@clisp.org>
55060         ioctl: Remove link dependency on native Windows.
55061         * lib/fd-hook.h: Renamed from lib/close-hook.h.
55062         (gl_close_fn, gl_ioctl_fn): New types.
55063         (struct fd_hook): Renamed from struct close_hook. Change type of
55064         private_close_fn field. Add private_ioctl_fn field.
55065         (close_hook_fn): Add parameter for primary close method.
55066         (execute_close_hooks, execute_all_close_hooks): Likewise.
55067         (ioctl_hook_fn): New type.
55068         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
55069         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55070         argument.
55071         (unregister_fd_hook): Renamed from unregister_close_hook.
55072         * lib/fd-hook.c: Renamed from lib/close-hook.c.
55073         Don't include <unistd.h>.
55074         (close): Remove undef.
55075         (anchor): Update.
55076         (execute_close_hooks): Add argument for primary close method.
55077         (execute_all_close_hooks): Likewise.
55078         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
55079         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55080         argument. Allow each argument to be NULL.
55081         (unregister_fd_hook): Renamed from unregister_close_hook.
55082         * lib/close.c (rpl_close): Pass 'close' function pointer to
55083         execute_all_close_hooks.
55084         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
55085         (primary_ioctl): New function.
55086         (ioctl): Don't call ioctlsocket here. Instead, call
55087         execute_all_ioctl_hooks.
55088         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
55089         close method.
55090         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
55091         (fd_sockets_hook): Renamed from close_sockets_hook.
55092         (gl_sockets_startup, gl_sockets_cleanup): Update.
55093         * modules/fd-hook: Renamed from modules/close-hook. Update.
55094         * modules/close (Depends-on): Add fd-hook, remove close-hook.
55095         * modules/sockets (Depends-on): Likewise.
55096         * modules/ioctl (Depends-on): Add fd-hook.
55097         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
55098         GNULIB_SOCKET.
55100 2011-04-19  Bruno Haible  <bruno@clisp.org>
55102         Move the support of O_NONBLOCK in open() to the 'open' module.
55103         * modules/nonblocking (Depends-on): Remove 'open'.
55104         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
55105         gl_cv_have_open_O_NONBLOCK.
55106         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
55107         O_NONBLOCK support.
55108         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
55110 2011-04-17  Bruno Haible  <bruno@clisp.org>
55112         pipe2: Simplify code.
55113         * lib/pipe2.c (pipe2): Reduce code duplication.
55115 2011-04-17  Bruno Haible  <bruno@clisp.org>
55117         nonblocking: Add comment.
55118         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
55120 2011-04-17  Bruno Haible  <bruno@clisp.org>
55122         nonblocking: Add tests for sockets.
55123         * tests/test-nonblocking-socket.sh: New file.
55124         * tests/test-nonblocking-socket-main.c: New file.
55125         * tests/test-nonblocking-socket-child.c: New file.
55126         * tests/test-nonblocking-socket.h: New file.
55127         * tests/socket-server.h: New file.
55128         * tests/socket-client.h: New file.
55129         * modules/nonblocking-socket-tests: New file.
55130         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
55132 2011-04-17  Bruno Haible  <bruno@clisp.org>
55134         nonblocking: Add tests for pipes.
55135         * tests/test-nonblocking-pipe.sh: New file.
55136         * tests/test-nonblocking-pipe-main.c: New file.
55137         * tests/test-nonblocking-pipe-child.c: New file.
55138         * tests/test-nonblocking-pipe.h: New file.
55139         * tests/test-nonblocking-writer.h: New file.
55140         * tests/test-nonblocking-reader.h: New file.
55141         * tests/test-nonblocking-misc.h: New file.
55142         * modules/nonblocking-pipe-tests: New file.
55143         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
55145 2011-04-16  Bruno Haible  <bruno@clisp.org>
55147         gettext: Clarify the needed programmer actions.
55148         * modules/gettext (Notice): New field.
55149         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55151 2011-04-16  Bruno Haible  <bruno@clisp.org>
55153         strchrnul: Tweak last commit.
55154         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
55155         bug.
55156         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
55157         as in _GL_FUNCDECL_SYS.
55158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
55159         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
55161 2011-04-15  Eric Blake  <eblake@redhat.com>
55163         strchrnul: work around cygwin bug
55164         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
55165         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
55166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
55167         * modules/string (Makefile.am): Substitute it.
55168         * lib/string.in.h (strchrnul): Use it.
55170 2011-04-15  Bruno Haible  <bruno@clisp.org>
55172         Don't require lib/stdio-write.c when only module 'stdio' is used.
55173         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
55174         invocation.
55175         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
55177 2011-04-14  Bruno Haible  <bruno@clisp.org>
55179         Support non-blocking pipe I/O in read() on native Windows.
55180         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
55181         (read): New declaration.
55182         * lib/read.c: New file.
55183         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
55184         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
55185         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
55186         vscanf): New declarations.
55187         * lib/stdio-read.c: New file.
55188         * m4/read.m4: New file.
55189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
55190         REPLACE_READ.
55191         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
55192         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55193         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
55194         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
55195         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
55196         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55197         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55198         * modules/read: New file.
55199         * modules/nonblocking (Files): Add lib/stdio-read.c.
55200         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
55201         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
55202         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55203         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55204         * modules/pread (Depends-on): Add read.
55205         * modules/safe-read (Depends-on): Likewise.
55206         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
55207         gets, scanf, vfscanf, vscanf): Verify signatures.
55208         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
55209         problem with non-blocking pipes.
55210         * doc/posix-functions/fgetc.texi: Likewise.
55211         * doc/posix-functions/fgets.texi: Likewise.
55212         * doc/posix-functions/fread.texi: Likewise.
55213         * doc/posix-functions/fscanf.texi: Likewise.
55214         * doc/posix-functions/getc.texi: Likewise.
55215         * doc/posix-functions/getchar.texi: Likewise.
55216         * doc/posix-functions/gets.texi: Likewise.
55217         * doc/posix-functions/scanf.texi: Likewise.
55218         * doc/posix-functions/vfscanf.texi: Likewise.
55219         * doc/posix-functions/vscanf.texi: Likewise.
55221 2011-04-14  Bruno Haible  <bruno@clisp.org>
55223         Support non-blocking pipe I/O in write() on native Windows.
55224         * lib/write.c (rpl_write): Split a write request that failed merely
55225         because the byte count was larger than the pipe buffer's size.
55226         * doc/posix-functions/write.texi: Mention the problem with large byte
55227         counts.
55229 2011-04-14  Bruno Haible  <bruno@clisp.org>
55231         wchar: Ensure that wchar_t gets defined on uClibc.
55232         * lib/wchar.in.h: On uClibc, include <stddef.h>.
55233         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
55235 2011-04-13  Bruno Haible  <bruno@clisp.org>
55237         safe-write, full-read: Avoid unnecessary compilation units.
55238         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
55239         (Depends-on): Remove safe-read. Add ssize_t.
55240         * modules/full-read (Files): Add lib/full-write.c.
55241         (Depends-on): Add full-write.
55243 2011-04-13  Bruno Haible  <bruno@clisp.org>
55245         Support non-blocking pipe I/O and SIGPIPE in pwrite().
55246         * modules/pwrite (Depends-on): Add 'write'.
55248 2011-04-13  Bruno Haible  <bruno@clisp.org>
55250         Support non-blocking pipe I/O in write() on native Windows.
55251         * lib/unistd.in.h (write): Enable replacement also if
55252         GNULIB_UNISTD_H_NONBLOCKING is 1.
55253         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
55254         (rpl_write): When failing to write on a non-blocking pipe, change
55255         errno from ENOSPC to EAGAIN.
55256         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
55257         putchar, puts, vfprintf, vprintf): Enable replacement also if
55258         GNULIB_STDIO_H_NONBLOCKING is 1.
55259         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
55260         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
55261         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
55262         CALL_WITH_SIGPIPE_EMULATION.
55263         (CALL_WITH_SIGPIPE_EMULATION): Use them.
55264         * m4/nonblocking.m4: New file.
55265         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
55266         for non-blocking I/O support.
55267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55268         GNULIB_UNISTD_H_NONBLOCKING.
55269         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
55270         required for non-blocking I/O support.
55271         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
55272         * modules/nonblocking (Files): Add m4/nonblocking.m4,
55273         lib/stdio-write.c, m4/asm-underscore.m4.
55274         (Depends-on): Add stdio, unistd.
55275         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
55276         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
55277         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
55278         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
55279         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
55280         problem with non-blocking pipes.
55281         * doc/posix-functions/fputc.texi: Likewise.
55282         * doc/posix-functions/fputs.texi: Likewise.
55283         * doc/posix-functions/fwrite.texi: Likewise.
55284         * doc/posix-functions/printf.texi: Likewise.
55285         * doc/posix-functions/putc.texi: Likewise.
55286         * doc/posix-functions/putchar.texi: Likewise.
55287         * doc/posix-functions/puts.texi: Likewise.
55288         * doc/posix-functions/vfprintf.texi: Likewise.
55289         * doc/posix-functions/vprintf.texi: Likewise.
55290         * doc/posix-functions/write.texi: Likewise.
55292 2011-04-10  Jim Meyering  <meyering@redhat.com>
55294         maint.mk: prohibit doubled words
55295         Detect them also when they're separated by a newline.
55296         There are 3 ways to customize it:
55297           - disable the test on a per file basis, as usual with rules using
55298             $(VC_LIST_EXCEPT)
55299           - replace the default doubled-word-selecting regexp (affects all files)
55300           - ignore a particular file-vs-doubled-word match
55301         I nearly used that last one to ignore the "is is" match in
55302         coreutils' NEWS file, since the text was "ls -is is ..."
55303         To do that, I would have added this line to cfg.mk:
55304           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
55305         but it would have ignored any "is is" match in NEWS.
55306         Low probability, but still...
55307         Instead, I changed the text, slightly:
55308           -  ls -is is now consistent with ls -lis in ignoring values returned
55309           +  "ls -is" is now consistent with ls -lis in ignoring values returned
55310         * top/maint.mk (prohibit_double_word_RE_): Provide default.
55311         (prohibit_doubled_word_): Define.
55312         (sc_prohibit_doubled_word): New rule.
55313         (sc_prohibit_the_the): Remove.  Subsumed by the above.
55315 2011-04-10  Jim Meyering  <meyering@redhat.com>
55317         maint: fix doubled-word typo in comment
55318         * m4/gethostname.m4: s/is is/it is/
55319         * m4/getdomainname.m4: Likewise.
55321 2011-04-10  Jim Meyering  <meyering@redhat.com>
55323         maint: remove doubled word: s/it it/it/
55324         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
55326 2011-04-10  Jim Meyering  <meyering@redhat.com>
55328         maint.mk: remove useless semicolon and backslash
55329         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
55330         semicolon and backslash.
55332 2011-04-10  Bruno Haible  <bruno@clisp.org>
55334         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
55335         * modules/stdint-tests (Depends-on): Add wchar.
55337 2011-04-10  Jim Meyering  <meyering@redhat.com>
55339         maint: remove doubled words in comments, e.g., s/a a/a/
55340         * lib/strptime.c (day_of_the_week): s/the the/the/
55341         * tests/test-chown.h (test_chown): s/a a/a/
55343         test-chown.h: correct a cast
55344         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
55345         when the destination is a stat.st_gid.
55347 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
55349         getaddrinfo: Fix test for sa_len member.
55350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
55351         include <sys/types.h> before <sys/socket.h>.
55353 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55355         maint: change "can not" to "cannot"
55356         * doc/posix-functions/iconv.texi (iconv): This one crossed line
55357         boundaries.
55359 2011-04-09  Jim Meyering  <meyering@redhat.com>
55361         maint: change "a a" to "a"
55362         * tests/test-lchown.h (test_lchown): s/a a/a/
55364         maint.mk: prohibit \<the the\>
55365         * top/maint.mk (sc_prohibit_the_the): New rule.
55367         maint: fix "the the" in comment
55368         * lib/count-one-bits.h: s/the the/the/
55370         maint: change "can not" to "cannot"
55371         But do not change the occurrences in maintain.texi or in
55372         build-aux/po/Makefile.in.in, which I presume comes from gettext.
55373         * doc/gnulib-tool.texi: s/can not/cannot/
55374         * doc/posix-functions/accept.texi (accept): Likewise.
55375         * doc/posix-functions/socket.texi (socket): Likewise.
55376         * lib/mbrtowc.c: Likewise.
55378         maint.mk: prohibit use of "can not"
55379         * top/maint.mk (sc_prohibit_can_not): New rule.
55380         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
55382 2011-04-09  Bruno Haible  <bruno@clisp.org>
55384         careadlinkat: Guard against misuse of careadlinkatcwd.
55385         * lib/careadlinkat.c: Include <stdlib.h>.
55386         (careadlinkatcwd): Check that the fd argument is as expected.
55388 2011-04-09  Bruno Haible  <bruno@clisp.org>
55390         careadlinkat: Use common coding style.
55391         * lib/careadlinkat.c: Move gnulib includes after system includes.
55393 2011-04-09  Bruno Haible  <bruno@clisp.org>
55395         careadlinkat: Clarify specification.
55396         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
55397         (careadlinkatcwd): Add comment.
55398         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
55400 2011-04-09  Bruno Haible  <bruno@clisp.org>
55402         areadlinkat: Avoid link error on many platforms.
55403         * modules/areadlinkat (Depends-on): Add areadlink.
55405 2011-04-09  Bruno Haible  <bruno@clisp.org>
55407         allocator, careadlinkat: Fix double-inclusion guard.
55408         * lib/allocator.h: Fix double-inclusion guard.
55409         * lib/careadlinkat.h: Likewise.
55411 2011-04-09  Bruno Haible  <bruno@clisp.org>
55413         relocatable-prog-wrapper: Update after module 'areadlink' changed.
55414         * lib/relocwrapper.c: Update dependencies hierarchy.
55415         * build-aux/install-reloc: Update list of files to be compiled.
55416         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
55417         lib/allocator.[hc].
55419 2011-04-08  Eric Blake  <eblake@redhat.com>
55421         strftime: silence gnulib-tool warning
55422         * modules/strftime-tests (Depends-on): Drop automatic dependency.
55424 2011-04-08  Bruno Haible  <bruno@clisp.org>
55426         verify: Fix syntax error with GCC 4.6 in C++ mode.
55427         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
55428         (HAVE_STATIC_ASSERT): New macro.
55429         (verify_true, verify): Use 'static_assert' if it is supported and
55430         '_Static_assert' is not supported.
55432 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
55434         allocator: New module.
55435         * modules/allocator, lib/allocator.c: New files.
55436         * lib/allocator.h (stdlib_allocator): New decl.
55437         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
55438         Remove.  Do not include <stdlib.h>.
55439         (careadlinkat): Use stdlib_allocator instead of rolling our own.
55440         * modules/careadlinkat (Files): Remove lib/allocator.h.
55441         (Depends-on): Add allocator.
55443         stdlib: let modules use system malloc, realloc
55444         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
55445         if !_GL_USE_STDLIB_ALLOC.
55446         (malloc, realloc): Limit this change to a smaller scope.
55448         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
55449         (malloc, realloc): Don't #undef; no longer needed.
55450         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55451         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55452         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
55453         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55454         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55455         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55456         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55457         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
55459         careadlinkat: rename members to avoid problem
55460         * lib/allocator.h (struct allocator): Rename members from
55461         malloc/realloc to allocate/reallocate, to avoid problems if malloc
55462         and realloc are #define'd.  Reported by Eric Blake in
55463         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
55464         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
55466 2011-04-08  Eric Blake  <eblake@redhat.com>
55468         nonblocking: reduce dependency
55469         * tests/test-nonblocking.c: Only test sockets when in use.
55470         * modules/nonblocking-tests (Depends-on): Drop socket.
55471         (Makefile.am): Link even if sockets are not present.
55472         * modules/pipe2-tests (Makefile.am): Likewise.
55473         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
55475         pipe2: fix O_NONBLOCK support on mingw
55476         * modules/pipe2 (Depends-on): Add nonblocking.
55477         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
55478         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
55479         * tests/test-nonblocking.c (main): Likewise.
55480         * modules/pipe2-tests (Makefile.am): Avoid link failure.
55482         fcntl-h: fix O_ACCMODE on cygwin
55483         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
55484         * lib/fcntl.in.h (O_ACCMODE): Fix it.
55486         pipe-filter: drop O_NONBLOCK workarounds
55487         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
55488         * modules/pipe-filter-ii (Depends-on): Likewise.
55489         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
55491         nonblocking: provide O_NONBLOCK for mingw
55492         * modules/nonblocking (Depends-on): Add open.
55493         (configure.ac): Set new witness macro.
55494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
55495         * modules/fcntl-h (Makefile.am): Substitute it.
55496         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
55497         nonblocking module is in use.
55498         * lib/nonblocking.c: Adjust portability test.
55499         * lib/open.c (open): Don't let native open see gnulib flag.
55500         * tests/test-fcntl-h.c (main): Enhance test.
55501         * tests/test-open.h (test_open): Likewise.
55502         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
55504         careadlinkat: fix compilation error on mingw
55505         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
55506         within struct allocator.
55508 2011-04-06  Eric Blake  <eblake@redhat.com>
55510         binary-io: relicense under LGPLv2+
55511         * modules/binary-io (License): Relax to LGPLv2+.
55512         Requested for libvirt, and required by pipe2.
55514 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
55516         verify: use _Static_assert if available
55517         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
55518         (verify_true, verify): Use it if available.  This generates better
55519         diagnostics with GCC 4.6.0 and later.
55521 2011-04-05  Bruno Haible  <bruno@clisp.org>
55523         Remove leftover generated .h files after config.status changed.
55525         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
55526         GL_GENERATE_ALLOCA_H.
55527         * modules/alloca-opt (Makefile.am): Remove alloca.h if
55528         GL_GENERATE_ALLOCA_H evaluates to false.
55530         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
55531         GL_GENERATE_ARGZ_H.
55532         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
55533         evaluates to false.
55535         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
55536         GL_GENERATE_BYTESWAP_H.
55537         * modules/byteswap (Makefile.am): Remove byteswap.h if
55538         GL_GENERATE_BYTESWAP_H evaluates to false.
55540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
55541         GL_GENERATE_ERRNO_H.
55542         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
55543         evaluates to false.
55545         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
55546         GL_GENERATE_FLOAT_H.
55547         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
55548         evaluates to false.
55550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
55551         GL_GENERATE_FNMATCH_H.
55552         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
55553         GL_GENERATE_FNMATCH_H evaluates to false.
55555         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
55556         GL_GENERATE_GLOB_H.
55557         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
55558         evaluates to false.
55560         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
55561         automake conditional GL_GENERATE_ICONV_H.
55562         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
55563         evaluates to false.
55565         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
55566         GL_GENERATE_NETINET_IN_H.
55567         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
55568         GL_GENERATE_NETINET_IN_H evaluates to false.
55570         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
55571         conditional GL_GENERATE_PTHREAD_H.
55572         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
55573         * modules/pthread (Makefile.am): Remove pthread.h if
55574         GL_GENERATE_PTHREAD_H evaluates to false.
55576         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
55577         GL_GENERATE_SCHED_H.
55578         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
55579         evaluates to false.
55581         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
55582         conditional GL_GENERATE_SELINUX_CONTEXT_H.
55583         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
55584         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
55586         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
55587         GL_GENERATE_STDARG_H.
55588         * modules/stdarg (Makefile.am): Remove stdarg.h if
55589         GL_GENERATE_STDARG_H evaluates to false.
55591         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
55592         GL_GENERATE_STDBOOL_H.
55593         * modules/stdbool (Makefile.am): Remove stdbool.h if
55594         GL_GENERATE_STDBOOL_H evaluates to false.
55596         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
55597         conditional GL_GENERATE_STDDEF_H.
55598         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
55599         * modules/stddef (Makefile.am): Remove stddef.h if
55600         GL_GENERATE_STDDEF_H evaluates to false.
55602         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
55603         GL_GENERATE_STDINT_H.
55604         * modules/stdint (Makefile.am): Remove stdint.h if
55605         GL_GENERATE_STDINT_H evaluates to false.
55607         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
55608         GL_GENERATE_SYSEXITS_H.
55609         * modules/sysexits (Makefile.am): Remove sysexits.h if
55610         GL_GENERATE_SYSEXITS_H evaluates to false.
55612         Reported by Karl Berry and Ralf Wildenhues.
55614 2011-04-05  Bruno Haible  <bruno@clisp.org>
55616         Ensure to rebuild generated .h files when config.status has changed.
55617         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
55618         config.status.
55619         * modules/ctype (Makefile.am): Likewise.
55620         * modules/dirent (Makefile.am): Likewise.
55621         * modules/errno (Makefile.am): Likewise.
55622         * modules/fcntl-h (Makefile.am): Likewise.
55623         * modules/float (Makefile.am): Likewise.
55624         * modules/getopt-posix (Makefile.am): Likewise.
55625         * modules/glob (Makefile.am): Likewise.
55626         * modules/iconv-h (Makefile.am): Likewise.
55627         * modules/inttypes (Makefile.am): Likewise.
55628         * modules/langinfo (Makefile.am): Likewise.
55629         * modules/locale (Makefile.am): Likewise.
55630         * modules/math (Makefile.am): Likewise.
55631         * modules/netdb (Makefile.am): Likewise.
55632         * modules/netinet_in (Makefile.am): Likewise.
55633         * modules/poll-h (Makefile.am): Likewise.
55634         * modules/pthread (Makefile.am): Likewise.
55635         * modules/pty (Makefile.am): Likewise.
55636         * modules/sched (Makefile.am): Likewise.
55637         * modules/search (Makefile.am): Likewise.
55638         * modules/selinux-h (Makefile.am): Likewise.
55639         * modules/signal (Makefile.am): Likewise.
55640         * modules/spawn (Makefile.am): Likewise.
55641         * modules/stdarg (Makefile.am): Likewise.
55642         * modules/stdbool (Makefile.am): Likewise.
55643         * modules/stddef (Makefile.am): Likewise.
55644         * modules/stdint (Makefile.am): Likewise.
55645         * modules/stdio (Makefile.am): Likewise.
55646         * modules/stdlib (Makefile.am): Likewise.
55647         * modules/string (Makefile.am): Likewise.
55648         * modules/strings (Makefile.am): Likewise.
55649         * modules/sys_file (Makefile.am): Likewise.
55650         * modules/sys_ioctl (Makefile.am): Likewise.
55651         * modules/sys_select (Makefile.am): Likewise.
55652         * modules/sys_socket (Makefile.am): Likewise.
55653         * modules/sys_stat (Makefile.am): Likewise.
55654         * modules/sys_time (Makefile.am): Likewise.
55655         * modules/sys_times (Makefile.am): Likewise.
55656         * modules/sys_utsname (Makefile.am): Likewise.
55657         * modules/sys_wait (Makefile.am): Likewise.
55658         * modules/sysexits (Makefile.am): Likewise.
55659         * modules/termios (Makefile.am): Likewise.
55660         * modules/time (Makefile.am): Likewise.
55661         * modules/unistd (Makefile.am): Likewise.
55662         * modules/wchar (Makefile.am): Likewise.
55663         * modules/wctype-h (Makefile.am): Likewise.
55664         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
55666 2011-04-05  Bruno Haible  <bruno@clisp.org>
55668         pipe2: Relicense under LGPLv2+.
55669         * modules/pipe2 (License): Change to LGPLv2+.
55670         Requested by Eric Blake, for libvirt.
55672 2011-04-05  Bruce Korb  <bkorb@gnu.org>
55674         bootstrap: compute gnulib_extra_files after updating build_aux
55675         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
55676         change build_aux or also supply gnulib_extra_files.  Handle correctly.
55678 2011-04-05  Eric Blake  <eblake@redhat.com>
55680         bootstrap: preserve git whitelist item sorting
55681         * build-aux/bootstrap (sort_patterns): New function.
55682         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
55684 2011-04-05  Simon Josefsson  <simon@josefsson.org>
55686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
55687         sc_space_tab check.
55689 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
55691         areadlink, areadlinkat: rewrite in terms of careadlinkat
55692         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
55693         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
55694         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
55695         (malloc, realloc): Remove #undefs.
55696         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
55697         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
55698         readlink, ssize_t, stdint, unistd.
55699         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
55700         areadlink, stdint.
55702         careadlinkat: new module
55703         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
55704         * modules/careadlinkat: New files, written by me with
55705         a review and feedback from Ben Pfaff in
55706         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
55708 2011-04-01  Bruno Haible  <bruno@clisp.org>
55710         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
55711         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
55712         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
55713         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
55714         Reported by Bruce Korb <bruce.korb@gmail.com>.
55716 2011-04-01  Bruno Haible  <bruno@clisp.org>
55718         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
55719         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
55720         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
55721         * modules/wcpcpy (Depends-on): Add extensions.
55722         * modules/wcpncpy (Depends-on): Likewise.
55723         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
55724         systems.
55725         * doc/posix-functions/wcpncpy.texi: Likewise.
55726         * doc/posix-functions/wcwidth.texi: Likewise.
55728 2011-03-31  Eric Blake  <eblake@redhat.com>
55730         nonblocking: fix mingw test failures
55731         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
55732         non-blocking flag on regular file.
55733         (get_nonblocking_flag): Set errno on invalid fd.
55734         * tests/test-nonblocking.c (main): Avoid test failure on
55735         directories if fchdir is not active.
55736         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
55738 2011-03-31  Bruno Haible  <bruno@clisp.org>
55740         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
55741         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
55742         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
55743         Reported by Simon Josefsson <simon@josefsson.org>.
55745 2011-03-31  Bruno Haible  <bruno@clisp.org>
55746         and Eric Blake  <eblake@redhat.com>
55748         nonblocking: new module
55749         * modules/nonblocking: New module.
55750         * modules/nonblocking-tests: Likewise.
55751         * lib/nonblocking.h: New file.
55752         * lib/nonblocking.c: Likewise.
55753         * tests/test-nonblocking.c: New test.
55754         * lib/ioctl.c (ioctl) [mingw]: Update comment.
55756 2011-03-30  Bruno Haible  <bruno@clisp.org>
55758         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
55759         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
55760         instead of 'printf' format for GCC >= 4.4.
55761         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
55762         (fprintf, printf, vfprintf, vprintf): Declare with
55763         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
55764         the system's vfprintf() function.
55765         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
55767 2011-03-30  Eric Blake  <eblake@redhat.com>
55769         passfd: fix scoping bug
55770         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
55771         before sendmsg/recvmsg.
55773         passfd: standardize coding conventions
55774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
55775         can be learned at compile time.
55776         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
55777         ifdefs.
55778         (sendfd, recvfd): Follow gnulib code conventions.
55780         passfd: fix incorrect sendmsg arguments
55781         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
55782         incorrect msg_controllen value.
55783         * modules/passfd-tests (Depends-on): Check for alarm.
55784         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
55785         Reported by Bastien ROUCARIES.
55787 2011-03-30  Bruno Haible  <bruno@clisp.org>
55789         c-strcasestr: Relicense under LGPLv2+.
55790         * modules/c-strcasestr (License): Change to LGPLv2+.
55791         Requested by Eric Blake, for libvirt.
55793 2011-03-30  Simon Josefsson  <simon@josefsson.org>
55795         * users.txt: Add libidn2.  Fix libtasn1 link.
55797 2011-03-30  Jim Meyering  <meyering@redhat.com>
55799         tests: readlink* ("",... fails with EINVAL on newer kernels
55800         readlink and readlinkat have typically failed with ENOENT for
55801         the invalid, empty file name,  "".  However, with the advent
55802         of linux-2.6.39, they fail with EINVAL.
55803         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
55804         when operating on the empty file name.
55805         * tests/test-readlink.h (test_readlink): Likewise.
55807 2011-03-29  Bruno Haible  <bruno@clisp.org>
55809         Relicense some modules under LGPLv2+, for libidn2.
55810         * modules/array-mergesort (License): Change to LGPLv2+.
55811         * modules/c-strcaseeq (License): Likewise.
55812         * modules/striconveh (License): Likewise.
55813         * modules/striconveha (License): Likewise.
55814         * modules/uniconv/base (License): Likewise.
55815         * modules/uniconv/u8-conv-from-enc (License): Likewise.
55816         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
55817         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
55818         * modules/unictype/base (License): Likewise.
55819         * modules/unictype/bidiclass-of (License): Likewise.
55820         * modules/unictype/category-M (License): Likewise.
55821         * modules/unictype/category-none (License): Likewise.
55822         * modules/unictype/category-of (License): Likewise.
55823         * modules/unictype/category-test (License): Likewise.
55824         * modules/unictype/category-test-withtable (License): Likewise.
55825         * modules/unictype/combining-class (License): Likewise.
55826         * modules/unictype/joiningtype-of (License): Likewise.
55827         * modules/unictype/scripts (License): Likewise.
55828         * modules/uninorm/base (License): Likewise.
55829         * modules/uninorm/canonical-decomposition (License): Likewise.
55830         * modules/uninorm/composition (License): Likewise.
55831         * modules/uninorm/decompose-internal (License): Likewise.
55832         * modules/uninorm/decomposition-table (License): Likewise.
55833         * modules/uninorm/nfc (License): Likewise.
55834         * modules/uninorm/nfd (License): Likewise.
55835         * modules/uninorm/u32-normalize (License): Likewise.
55836         * modules/unistr/base (License): Likewise.
55837         * modules/unistr/u32-cpy (License): Likewise.
55838         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
55839         * modules/unistr/u32-to-u8 (License): Likewise.
55840         * modules/unistr/u32-uctomb (License): Likewise.
55841         * modules/unistr/u8-check (License): Likewise.
55842         * modules/unistr/u8-mblen (License): Likewise.
55843         * modules/unistr/u8-mbtouc (License): Likewise.
55844         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
55845         * modules/unistr/u8-mbtoucr (License): Likewise.
55846         * modules/unistr/u8-prev (License): Likewise.
55847         * modules/unistr/u8-strlen (License): Likewise.
55848         * modules/unistr/u8-to-u32 (License): Likewise.
55849         * modules/unistr/u8-uctomb (License): Likewise.
55850         * modules/unitypes (License): Likewise.
55851         Requested by Simon Josefsson.
55853 2011-03-29  Simon Josefsson  <simon@josefsson.org>
55855         lib-symbol-visibility: Add a notice.
55856         * modules/lib-symbol-visibility (Notice): New field.
55858 2011-03-29  Bruno Haible  <bruno@clisp.org>
55860         getaddrinfo: Doc fix.
55861         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
55862         section "fixed in Gnulib".
55864 2011-03-28  Simon Josefsson  <simon@josefsson.org>
55866         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
55867         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
55869 2011-03-26  Bruno Haible  <bruno@clisp.org>
55871         unictype/property-byname: Reduce the number of load-time relocations.
55872         * lib/unictype/pr_byname.c: Include <stdlib.h>.
55873         (UC_PROPERTY_INDEX_*): New enumeration values.
55874         (uc_property_byname): Convert an index from the lookup table to an
55875         uc_property_t.
55876         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
55877         values.
55879 2011-03-26  Bruno Haible  <bruno@clisp.org>
55881         unictype/property-byname: Allow omitted word separators and aliases.
55882         * lib/unictype/pr_byname.gperf: Add property names without word
55883         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
55884         for 'space'.
55886 2011-03-26  Bruno Haible  <bruno@clisp.org>
55888         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
55889         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
55890         also hyphens to space.
55891         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
55892         without spaces.
55893         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
55895 2011-03-26  Bruno Haible  <bruno@clisp.org>
55897         unictype/joiningtype-byname: Recognize long names as well.
55898         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
55899         a long name.
55900         * lib/unictype/joiningtype_byname.c: Include <string.h>,
55901         unictype/joiningtype_byname.h.
55902         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
55903         * lib/unictype/joiningtype_byname.gperf: New file.
55904         * modules/unictype/joiningtype-byname (Files): Add
55905         lib/unictype/joiningtype_byname.gperf.
55906         (Depends-on): Add gperf.
55907         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
55908         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
55909         long names.
55911         Tests for module 'unictype/joiningtype-longname'.
55912         * modules/unictype/joiningtype-longname-tests: New file.
55913         * tests/unictype/test-joiningtype_longname.c: New file.
55915         New module 'unictype/joiningtype-longname'.
55916         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
55917         * lib/unictype/joiningtype_longname.c: New file.
55918         * modules/unictype/joiningtype-longname: New file.
55919         * modules/unictype/joiningtype-all (Depends-on): Add
55920         unictype/joiningtype-longname.
55922 2011-03-26  Bruno Haible  <bruno@clisp.org>
55924         unictype/bidiclass-byname: Recognize long names as well.
55925         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
55926         name.
55927         * lib/unictype/bidi_byname.c: Include <string.h>,
55928         unictype/bidi_byname.h.
55929         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
55930         * lib/unictype/bidi_byname.gperf: New file.
55931         * modules/unictype/bidiclass-byname (Files): Add
55932         lib/unictype/bidi_byname.gperf.
55933         (Depends-on): Add gperf.
55934         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
55935         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
55936         long names.
55938         Tests for module 'unictype/bidiclass-longname'.
55939         * modules/unictype/bidiclass-longname-tests: New file.
55940         * tests/unictype/test-bidi_longname.c: New file.
55942         New module 'unictype/bidiclass-longname'.
55943         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
55944         * lib/unictype/bidi_longname.c: New file.
55945         * modules/unictype/bidiclass-longname: New file.
55946         * modules/unictype/bidiclass-all (Depends-on): Add
55947         unictype/bidiclass-longname.
55949 2011-03-26  Bruno Haible  <bruno@clisp.org>
55951         unictype/bidi*: Rename modules.
55952         * modules/unictype/bidiclass-all: Renamed from
55953         modules/unictype/bidicategory-all.
55954         * modules/unictype/bidiclass-name: Renamed from
55955         modules/unictype/bidiclass-name.
55956         (Description): Update.
55957         * modules/unictype/bidiclass-name-tests: Renamed from
55958         modules/unictype/bidicategory-name-tests.
55959         * modules/unictype/bidiclass-byname: Renamed from
55960         modules/unictype/bidicategory-byname.
55961         (Description): Update.
55962         * modules/unictype/bidiclass-byname-tests: Renamed from
55963         modules/unictype/bidicategory-byname-tests.
55964         * modules/unictype/bidiclass-of: Renamed from
55965         modules/unictype/bidicategory-of.
55966         (Description): Update.
55967         * modules/unictype/bidiclass-of-tests: Renamed from
55968         modules/unictype/bidicategory-of-tests.
55969         * modules/unictype/bidiclass-test: Renamed from
55970         modules/unictype/bidicategory-test.
55971         (Description): Update.
55972         * modules/unictype/bidiclass-test-tests: Renamed from
55973         modules/unictype/bidicategory-test-tests.
55974         * modules/unictype/bidicategory-all: New file, a simple redirection.
55975         * modules/unictype/bidicategory-name: Likewise.
55976         * modules/unictype/bidicategory-byname: Likewise.
55977         * modules/unictype/bidicategory-of: Likewise.
55978         * modules/unictype/bidicategory-test: Likewise.
55979         * modules/unictype/property-bidi-* (Dependencies): Update.
55980         * lib/unictype/bidi_*.c: Update comment.
55982 2011-03-26  Bruno Haible  <bruno@clisp.org>
55984         unictype/bidi*: Rename functions, part 2.
55985         * modules/unictype/bidicategory-name (configure.ac): Update required
55986         libunistring version.
55987         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
55989 2011-03-25  Bruno Haible  <bruno@clisp.org>
55991         New module 'unictype/combining-class-all'.
55992         * modules/unictype/combining-class-all: New file.
55994         Tests for module 'unictype/combining-class-byname'.
55995         * modules/unictype/combining-class-byname-tests: New file.
55996         * tests/unictype/test-combiningclass_byname.c: New file.
55998         New module 'unictype/combining-class-byname'.
55999         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
56000         * lib/unictype/combiningclass_byname.c: New file.
56001         * lib/unictype/combiningclass_byname.gperf: New file.
56002         * modules/unictype/combining-class-byname: New file.
56004         Tests for module 'unictype/combining-class-longname'.
56005         * modules/unictype/combining-class-longname-tests: New file.
56006         * tests/unictype/test-combiningclass_longname.c: New file.
56008         New module 'unictype/combining-class-longname'.
56009         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
56010         * lib/unictype/combiningclass_longname.c: New file.
56011         * modules/unictype/combining-class-longname: New file.
56013         Tests for module 'unictype/combining-class-name'.
56014         * modules/unictype/combining-class-name-tests: New file.
56015         * tests/unictype/test-combiningclass_name.c: New file.
56017         New module 'unictype/combining-class-name'.
56018         * lib/unictype.in.h (uc_combining_class_name): New declaration.
56019         * lib/unictype/combiningclass_name.c: New file.
56020         * modules/unictype/combining-class-name: New file.
56022 2011-03-25  Bruno Haible  <bruno@clisp.org>
56024         unictype/combining-class: Rename source files.
56025         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
56026         of unictype/combining.h.
56027         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
56028         Update.
56029         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
56030         * modules/unictype/combining-class (Description): Fix.
56031         (Files, Makefile.am): Update.
56032         * tests/unictype/test-combiningclass.c: Renamed from
56033         tests/unictype/test-combining.c.
56034         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
56036 2011-03-25  Bruno Haible  <bruno@clisp.org>
56038         unictype: Update list of canonical combining classes.
56039         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
56041 2011-03-25  Bruno Haible  <bruno@clisp.org>
56043         unictype/category-byname: Recognize long names as well.
56044         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
56045         a long name.
56046         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
56047         unictype/categ_byname.h.
56048         (UC_CATEGORY_INDEX_*): New enumeration values.
56049         (uc_general_category_byname): Use uc_general_category_lookup and
56050         convert from index to value.
56051         * lib/unictype/categ_byname.gperf: New file.
56052         * modules/unictype/category-byname (Files): Add
56053         lib/unictype/categ_byname.gperf.
56054         (Depends-on): Add gperf.
56055         (Makefile.am): Add rule for generating unictype/categ_byname.h.
56056         * tests/unictype/test-categ_byname.c (main): Test the recognition of
56057         long names.
56059         Tests for module 'unictype/category-longname'.
56060         * modules/unictype/category-longname-tests: New file.
56061         * tests/unictype/test-categ_longname.c: New file.
56063         New module 'unictype/category-longname'.
56064         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
56065         * lib/unictype/categ_longname.c: New file.
56066         * modules/unictype/category-longname: New file.
56067         * modules/unictype/category-all (Depends-on): Add it.
56069 2011-03-25  Bruno Haible  <bruno@clisp.org>
56071         Tests for module 'unictype/category-LC'.
56072         * modules/unictype/category-LC-tests: New file.
56073         * tests/unictype/test-categ_LC.c: New file, automatically generated.
56075         New module 'unictype/category-LC'.
56076         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
56077         (UC_CATEGORY_LC): New declaration.
56078         (UC_CASED_LETTER): New macro.
56079         * lib/gen-uni-tables.c (is_category_LC): New function.
56080         (output_categories): Also handle category LC.
56081         (UC_CATEGORY_MASK_LC): New enumeration value.
56082         (general_category_byname): Also handle category LC.
56083         * lib/unictype/categ_LC.c: New file.
56084         * lib/unictype/categ_LC.h: New file, automatically generated.
56085         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
56086         category LC.
56087         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
56088         * modules/unictype/category-LC: New file.
56089         * modules/unictype/category-byname (Depends-on): Add
56090         unictype/category-LC.
56091         * modules/unictype/category-all (Depends-on): Likewise.
56093 2011-03-25  Eric Blake  <eblake@redhat.com>
56095         xmalloc: revert yesterday's regression
56096         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
56097         realloc's underlying behavior (allowing allocation of zero-size
56098         objects, especially if malloc-gnu is also in use).
56100 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
56102         maint.mk: add missing version to VC-tag
56103         * top/maint.mk: git tag was missing actual tag name; add it.
56105         valgrind: do leak checking, and exit with code 1 on error (not 0)
56106         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
56107         to VALGRIND.
56109 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
56111         posix-modules: say what it does.
56112         * posix-modules: Add a line to the --help output saying what it does.
56114 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
56116         xmalloc: Do not leak if underlying realloc is C99 compatible.
56117         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
56118         This avoids a leak on C99-based systems.  See
56119         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
56121 2011-03-24  Eric Blake  <eblake@redhat.com>
56123         realloc: document portability problem
56124         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
56125         passing 0 size to realloc.
56127 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
56129         doc: update users.txt
56130         * users.txt: Add cvsps, tmpwatch
56132 2011-03-23  Matt Rice  <ratmice@gmail.com>
56134         doc: update users.txt
56135         * users.txt: Add gdb.
56137 2011-03-23  Jim Meyering  <meyering@redhat.com>
56139         doc: update users.txt
56140         Looking through matches up to the following URL (there are still
56141         several more pages), I found several projects that use gnulib:
56142         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
56143         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
56144         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
56146 2011-03-22  Bruno Haible  <bruno@clisp.org>
56148         unictype/bidi*: Rename functions.
56149         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
56150         uc_bidi_class, uc_is_bidi_class): New declarations.
56151         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
56152         uc_bidi_category_byname.
56153         (uc_bidi_category_byname): New function.
56154         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
56155         u_bidi_category_name.
56156         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
56157         (uc_bidi_category_name): New function.
56158         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
56159         uc_bidi_category.
56160         (uc_bidi_category): New function.
56161         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
56162         uc_is_bidi_category. Invoke uc_bidi_class.
56163         (uc_is_bidi_category): New function.
56164         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
56165         instead of uc_bidi_category_byname.
56166         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
56167         instead of uc_bidi_category_name.
56168         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
56169         uc_bidi_category.
56170         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
56171         instead of uc_is_bidi_category.
56173 2011-03-21  Bruno Haible  <bruno@clisp.org>
56175         New module 'unictype/joininggroup-all'.
56176         * modules/unictype/joininggroup-all: New file.
56178         Tests for module 'unictype/joininggroup-of'.
56179         * modules/unictype/joininggroup-of-tests: New file.
56180         * tests/unictype/test-joininggroup_of.c: New file.
56181         * tests/unictype/test-joininggroup_of.h: New file, automatically
56182         generated by gen-uni-tables.
56184         New module 'unictype/joininggroup-of'.
56185         * modules/unictype/joininggroup-of: New file.
56186         * lib/unictype/joininggroup_of.c: New file.
56187         * lib/unictype/joininggroup_of.h: New file, automatically generated by
56188         gen-uni-tables.
56190         Tests for module 'unictype/joininggroup-byname'.
56191         * modules/unictype/joininggroup-byname-tests: New file.
56192         * tests/unictype/test-joininggroup_byname.c: New file.
56194         New module 'unictype/joininggroup-byname'.
56195         * modules/unictype/joininggroup-byname: New file.
56196         * lib/unictype/joininggroup_byname.c: New file.
56197         * lib/unictype/joininggroup_byname.gperf: New file.
56199         Tests for module 'unictype/joininggroup-name'.
56200         * modules/unictype/joininggroup-name-tests: New file.
56201         * tests/unictype/test-joininggroup_name.c: New file.
56203         New module 'unictype/joininggroup-name'.
56204         * modules/unictype/joininggroup-name: New file.
56205         * lib/unictype/joininggroup_name.c: New file.
56206         * lib/unictype/joininggroup_name.h: New file.
56208         New module 'unictype/joiningtype-all'.
56209         * modules/unictype/joiningtype-all: New file.
56211         Tests for module 'unictype/joiningtype-of'.
56212         * modules/unictype/joiningtype-of-tests: New file.
56213         * tests/unictype/test-joiningtype_of.c: New file.
56214         * tests/unictype/test-joiningtype_of.h: New file, automatically
56215         generated by gen-uni-tables.
56217         New module 'unictype/joiningtype-of'.
56218         * modules/unictype/joiningtype-of: New file.
56219         * lib/unictype/joiningtype_of.c: New file.
56220         * lib/unictype/joiningtype_of.h: New file, automatically generated by
56221         gen-uni-tables.
56223         Tests for module 'unictype/joiningtype-byname'.
56224         * modules/unictype/joiningtype-byname-tests: New file.
56225         * tests/unictype/test-joiningtype_byname.c: New file.
56227         New module 'unictype/joiningtype-byname'.
56228         * modules/unictype/joiningtype-byname: New file.
56229         * lib/unictype/joiningtype_byname.c: New file.
56231         Tests for module 'unictype/joiningtype-name'.
56232         * modules/unictype/joiningtype-name-tests: New file.
56233         * tests/unictype/test-joiningtype_name.c: New file.
56235         New module 'unictype/joiningtype-name'.
56236         * modules/unictype/joiningtype-name: New file.
56237         * lib/unictype/joiningtype_name.c: New file.
56239         unictype: Add support for Arabic shaping properties.
56240         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
56241         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
56242         declarations.
56243         (UC_JOINING_GROUP_*): New enumeration values.
56244         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
56245         declarations.
56246         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
56247         (unicode_joining_type): New variable.
56248         (UC_JOINING_GROUP_*): New enumeration values.
56249         (unicode_joining_group): New variable.
56250         (fill_arabicshaping, joining_type_as_c_identifier,
56251         output_joining_type_test, output_joining_type,
56252         joining_group_as_c_identifier, output_joining_group_test,
56253         output_joining_group): New functions.
56254         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
56255         fill_arabicshaping and output_joining_type_test, output_joining_type,
56256         output_joining_group_test, output_joining_group.
56257         Reported by Simon Josefsson.
56259 2011-03-21  Jim Meyering  <meyering@redhat.com>
56261         strftime: fix a bug in yesterday's change
56262         * lib/strftime.c (add): Accommodate width's initial value of -1.
56263         Otherwise, nstrftime would copy uninitialized data into
56264         the result buffer.
56266 2011-03-21  Jim Meyering  <meyering@redhat.com>
56268         tests: add strftime-tests module
56269         * tests/test-strftime.c: New file.
56270         * modules/strftime-tests: New module.
56272 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56274         strftime: don't assume a byte count fits in 'int'
56275         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
56276         found this problem by static analysis, using gcc -Wstrict-overflow
56277         (GCC 4.5.2, x86-64).  This reported an optimization that depended
56278         on an integer overflow having undefined behavior, but it turns out
56279         that the argument is a size, which might not fit in 'int' anyway,
56281 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56283         stdio: don't require ignore_value around fwrite
56285         This patch works around libc bug 11959
56286         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
56287         Without this patch, applications must often write
56288         ignore_value (fwrite (...)) even though the ignore_value is
56289         not helpful here.  It's common to write many objects, using
56290         fwrite/printf/etc., and then use ferror to detect output error.
56292         I considered making this patch optional, but decided against it,
56293         because libc is obviously being inconsistent here: there is no
56294         reason libc should insist that user code must inspect fwrite
56295         return's value without also insisting that it inspect printf's,
56296         putchar's, etc.  If user code wants to have a strict style where
56297         all these functions' values are checked (so that ferror need not
56298         be checked), we could add support for that style in a new gnulib
56299         module, but in the meantime it's better to be consistent and to
56300         support common usage.
56302         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
56303         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
56304         that we are compiling in checking mode, and if not C++, and
56305         if not already wrapping fwrite for some other reason.
56306         (fwrite): #define to rpl_fwrite if the latter is defined.
56308 2011-03-20  Bruno Haible  <bruno@clisp.org>
56310         verror: Fix compilation error introduced on 2011-02-13.
56311         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
56312         instead of __attribute__.
56313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56315 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56316             Bruno Haible  <bruno@clisp.org>
56318         socklen: do not depend on sys_socket
56319         While trying to modify Emacs to use gnulib's socklen module,
56320         I discovered a circular dependency: socklen depends on sys_socket
56321         and vice versa.  Emacs can use socklen, but it does not need
56322         sys_socket because it has its own substitute for sys/socket.h.
56323         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
56324         gl_TYPE_SOCKLEN_T.
56325         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
56326         gl_PREREQ_SYS_H_SOCKET.
56327         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
56328         gl_PREREQ_SYS_H_SOCKET.
56329         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
56330         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
56331         * modules/socklen (Depends-on): Do not depend on sys_socket.
56332         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
56334 2011-03-20  Jim Meyering  <meyering@redhat.com>
56336         maint.mk: sort file names *after* new transformation
56337         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
56338         prefix would have led to an unwarranted failure in GNU parted.
56339         Sort after that transformation.
56341 2011-03-19  Jim Meyering  <meyering@redhat.com>
56343         maint.mk: fix po-file syntax-check rule
56344         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
56345         Patch by Bruno Haible.
56347 2011-03-19  Bruno Haible  <bruno@clisp.org>
56349         socklen: Update comment.
56350         * m4/socklen.m4: Update comment about platforms.
56352 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56353             Bruno Haible  <bruno@clisp.org>
56355         inet_ntop, inet_pton: Simplify.
56356         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
56357         documented to provide socklen_t and we already depend on sys_socket.
56358         * modules/inet_pton (Depends-on): Likewise.
56359         * lib/arpa_inet.in.h: Adjust comment.
56361 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56362             Bruno Haible  <bruno@clisp.org>
56364         netdb: Simplify.
56365         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
56366         documented to provide socklen_t and we already depend on sys_socket.
56367         * lib/netdb.in.h: Adjust comment.
56369 2011-03-19  Bruno Haible  <bruno@clisp.org>
56371         sys_socket, netdb: Document problem with socklen_t.
56372         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
56373         platforms.
56374         * doc/posix-headers/netdb.texi: Likewise.
56376 2011-03-18  Eric Blake  <eblake@redhat.com>
56378         maint.mk: let po check work in VPATH build
56379         * top/maint.mk (po_file): Allow cfg.mk override.
56380         (sc_po_check): Allow VPATH use.
56381         Reported by Jiri Denemark.
56383 2011-03-16  Jim Meyering  <meyering@redhat.com>
56385         maint.mk: allow fine-grained syntax-check exclusion via Make variables
56386         Before, you would have had to create one .x-sc_ file per rule in order
56387         to exempt offending files.  Now, you may instead use a Make variable --
56388         usually defined in cfg.mk -- whose name identifies the affected rule.
56389         * top/maint.mk (_sc_excl): Define.
56390         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
56391         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
56393 2011-03-13  Bruno Haible  <bruno@clisp.org>
56395         ignore-value tests: Avoid warnings.
56396         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
56397         empty for gcc < 3.4.
56399 2011-03-13  Bruno Haible  <bruno@clisp.org>
56401         passfd: Fix link error on Solaris.
56402         * modules/passfd (Description): Correct.
56403         (Depends-on): Add socketlib.
56404         (Link): New section.
56405         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
56407 2011-03-13  Bruno Haible  <bruno@clisp.org>
56409         passfd: Fix link error on AIX 5.2.
56410         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
56412 2011-03-13  Bruno Haible  <bruno@clisp.org>
56414         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
56415         * lib/sys_socket.in.h: Include <stddef.h>.
56416         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
56417         CMSG_FIRSTHDR. Remove unused variable.
56419 2011-03-13  Bruno Haible  <bruno@clisp.org>
56421         passfd: Fix compilation error on OpenBSD.
56422         * lib/passfd.c: Include <sys/uio.h>.
56424 2011-03-13  Bruno Haible  <bruno@clisp.org>
56426         passfd test: Fix warnings.
56427         * tests/test-passfd.c: Include <sys/wait.h>.
56428         (main): Fix typo.
56430 2011-03-13  Bruno Haible  <bruno@clisp.org>
56432         passfd module, part 4, tweaks.
56433         * tests/test-passfd.c: Reorder includes.
56434         (main): Fix perror and printf calls.
56436 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
56438         passfd module, part 4.
56439         * modules/passfd-tests: New file.
56440         * tests/test-passfd.c: New file.
56442 2011-03-13  Jim Meyering  <meyering@redhat.com>
56444         Makefile: rely on GNU make; derive syntax-check rule names
56445         Rather than requiring that each sc_ rule be listed as a dependent
56446         of "check", use features of GNU make to derive the list.
56447         * Makefile (syntax-check-rules): Define.
56448         (check): Depend on the new variable, not the hard-coded list.
56450 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
56451             Bruno Haible  <bruno@clisp.org>
56453         passfd module, part 3.
56454         * lib/passfd.h (recvfd): Add a flags argument.
56455         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
56456         (recvfd): Add a flags argument.
56457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
56458         exists.
56459         * modules/passfd (Depends-on): Add cloexec.
56460         Suggested by Eric Blake.
56462 2011-03-13  Bruno Haible  <bruno@clisp.org>
56464         passfd module, part 2, tweaks.
56465         * modules/passfd (Files): Reorder.
56466         (Depends-on): Remove errno.
56467         (Include): Remove <sys/socket.h>, <sys/un.h>.
56468         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
56469         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
56470         specification header. Include <sys/socket.h> always. Don't include
56471         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
56472         (sendfd): Clarify that it sets errno when it fails.
56473         (recvfd): Fix specification.
56475 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
56477         passfd module, part 2.
56478         * modules/passfd: New file.
56479         * lib/passfd.h: New file.
56480         * lib/passfd.c: New file.
56482 2011-03-12  Bruno Haible  <bruno@clisp.org>
56484         wcswidth, mbswidth: Avoid integer overflow.
56485         * lib/wcswidth.c: Include <limits.h>.
56486         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
56487         * lib/mbswidth.c: Include <limits.h>.
56488         (mbsnwidth): Avoid 'int' overflow.
56489         Reported by Jim Meyering.
56491 2011-03-12  Bruno Haible  <bruno@clisp.org>
56493         futimens, utimensat: Avoid endless recursion on Solaris 10.
56494         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
56495         Solaris.
56496         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
56497         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
56499 2011-03-11  Jim Meyering  <meyering@redhat.com>
56501         maint.mk: relax a regexp to accommodate other formatting styles
56502         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
56503         between "ngettext" and the following "(".
56505 2011-03-11  Pádraig Brady  <P@draigBrady.com>
56507         maint.mk: suppress a false positive warning
56508         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
56509         diagnostics are marked with ngettext.
56511 2011-03-10  Eric Blake  <eblake@redhat.com>
56513         wchar: add explicit dependencies, for Tru64
56514         * modules/mbmemcasecoll (Depends-on): Add wchar.
56515         * modules/mbtowc (Depends-on): Likewise.
56516         * modules/vasnprintf (Depends-on): Likewise.
56517         * modules/unistdio/u-printf-args (Depends-on): Likewise.
56518         * modules/wctomb (Depends-on): Likewise.
56519         Reported by Peter O'Gorman.
56521 2011-03-08  Bruno Haible  <bruno@clisp.org>
56523         passfd module, part 1, tweaks.
56524         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
56525         Improve indentation. Improve AC_MSG_CHECKING messages.
56526         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
56527         gl_SOCKET_FAMILIES.
56529 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
56531         passfd module, part 1.
56532         * m4/afunix.m4: New file.
56533         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
56534         sockets.
56536 2011-03-08  Bruno Haible  <bruno@clisp.org>
56538         regex-quote: New API.
56539         * lib/regex-quote.h: Include <stdbool.h>.
56540         (struct regex_quote_spec): New type.
56541         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
56542         New declarations.
56543         (regex_quote_length, regex_quote_copy, regex_quote): Take a
56544         'const struct regex_quote_spec *' argument.
56545         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
56546         (pcre_special): New constant.
56547         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
56548         New functions.
56549         (regex_quote_length, regex_quote_copy, regex_quote): Take a
56550         'const struct regex_quote_spec *' argument.
56551         * modules/regex-quote (Depends-on): Add stdbool.
56552         * tests/test-regex-quote.c (check): Update for new API. Add test for
56553         anchored results.
56554         * NEWS: Mention the API change.
56555         Reported by Reuben Thomas and Eric Blake.
56557 2011-03-06  Bruno Haible  <bruno@clisp.org>
56559         regex-quote: Fix creation of POSIX extended regular expressions.
56560         * lib/regex-quote.c (ere_special): Add grouping and alternation
56561         operators.
56563 2011-03-05  Bruno Haible  <bruno@clisp.org>
56565         doc: Improve doc regarding autopoint vs. gnulib.
56566         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
56567         disable autopoint while running autoreconf.
56568         Suggested by Ralf Wildenhues.
56570 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56572         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
56573         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
56575 2011-03-03  Bruce Korb  <bkorb@gnu.org>
56577         parse-duration: remove xalloc.h dependency
56578         * lib/parse-duration.c (parse_period): handle NULL return from
56579         strdup instead of calling xstrdup().
56580         * modules/parse-duration: remove "xalloc" dependency
56582 2011-03-03  Matthew Booth  <mbooth@redhat.com>
56584         bootstrap: honor m4_base when running aclocal
56585         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
56587 2011-03-02  Jim Meyering  <meyering@redhat.com>
56589         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
56590         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
56591         on request from Matt Booth.
56593 2011-03-01  Eric Blake  <eblake@redhat.com>
56595         test-link: work on Hurd
56596         * tests/test-link.h (test_link): Hurd rejects linking directories
56597         with EISDIR instead of the POSIX-mandated EPERM.
56599 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
56601         stdio: simplify by moving files to printf-posix, sigpipe
56602         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
56603         since this symbol is needed only if printf is replaced.
56604         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
56605         Require gl_ASM_SYMBOL_PREFIX.
56606         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
56607         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
56608         (Depends-on): Add 'raise'.
56609         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
56610         * modules/stdio (Files): Remove lib/stdio-write.c,
56611         m4/asm-underscore.m4.
56612         (Depends-on): Remove 'raise'.
56614         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
56615         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
56616         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
56617         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
56619 2011-02-28  Bruno Haible  <bruno@clisp.org>
56621         localcharset: Assume ANSI C behaviour of free().
56622         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
56623         calling free().
56624         Suggested by Simon Josefsson <simon@josefsson.org>.
56626 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
56627             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
56628             Bruno Haible  <bruno@clisp.org>  (tiny change)
56630         On Cygwin, use /proc file system instead of win32 API.
56631         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
56632         Win32 file names.
56633         (DllMain): Simplify by removing Cygwin specific code.
56634         (find_shared_library_fullname): Use Linux specific implementation also
56635         for Cygwin.
56636         (get_shared_library_fullname): Update accordingly.
56637         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
56638         Win32 file names.
56639         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
56640         Cygwin specific code.
56642 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
56643             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
56645         Fix OpenMP flag detection for various Fortran compilers.
56646         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
56647         OpenMP-conditional compilation construct, to force compile
56648         failure with missing OpenMP flag.
56649         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
56651 2011-02-25  Eric Blake  <eblake@redhat.com>
56653         strstr: expand test coverage
56654         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
56655         compilation.
56656         * tests/test-memmem.c (main): Duplicate tests.
56657         * tests/test-strcasestr.c (main): Likewise.
56658         * tests/test-c-strcasestr.c (main): Likewise.
56660 2011-02-25  Jim Meyering  <meyering@redhat.com>
56662         maint.mk: detect missing-NL-at-EOF, too
56663         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
56664         it also detects when a file lacks a newline at EOF.
56665         (require_exactly_one_NL_at_EOF_): Renamed from
56666         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
56667         since people may well have .x-sc_... file names tied to the
56668         existing name.  Suggested by Eric Blake.
56670 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56672         dirname: move m4/dos.m4 functionality into lib/dosname.h
56674         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
56675         extracts symbols from it, puts them into config.h; but it's much
56676         easier to use the symbols directly.  filename.h already does this,
56677         but it disagrees with dos.m4 in some respects.  This patch
56678         introduces a different include file dosname.h that packages up
56679         dos.m4, and then later we can work on merging filename.h and
56680         dosname.h.  Applications that need only the easy-to-configure
56681         symbols should consider including dosname.h rather than dirname.h.
56682         * NEWS: Mention incompatible changes.
56683         * m4/dos.m4: Remove.
56684         * lib/dosname.h, modules/dosname: New files.
56685         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
56686         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
56687         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
56688         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
56689         Include dosname.h, not dirname.h.
56690         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
56691         Include dosname.h, for definitions of symbols like ISSLASH
56692         that used to be in config.h.
56693         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
56694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
56695         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
56696         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
56697         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
56698         * modules/rmdir (Files): Likewise.
56699         * modules/stat (Files): Likewise.
56700         * modules/unlink (Files): Likewise.
56701         * modules/dirname-lgpl (Depends-on): Add dosname.
56702         * modules/lstat (Depends-on): Likewise.
56703         * modules/openat (Depends-on): Likewise.
56704         * modules/rmdir (Depends-on): Likewise.
56705         * modules/savewd (Depends-on): Likewise.
56706         * modules/stat (Depends-on): Likewise.
56707         * modules/unlink (Depends-on): Likewise.
56708         * modules/openat (Depends-on): Remove dirname-lgpl.
56709         * modules/savewd (Depends-on): Likewise.
56710         * tests/test-dirname.c: Do not use removed symbols like
56711         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
56712         the remaining symbols, e.g., ISSLASH ('\\').
56714 2011-02-25  Eric Blake  <eblake@redhat.com>
56716         strstr: revert patches that introduced bug and pessimization
56717         * lib/str-two-way.h: Add another reference.
56718         (two_way_short_needle, two_way_long_needle): Revert changes from
56719         2011-02-24; they pessimize search speed.
56720         (critical_factorization): Partially revert changes from
56721         2010-06-22; they violate the requirement that the left half of the
56722         needle be smaller than the period of the needle.
56724 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56726         filenamecat: remove unnecessary dependency on dirname-lgpl
56727         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
56728         is no direct dependency, just an indirect one via filenamecat-lgpl.
56730         remove: remove unnecessary use of m4/dos.m4
56731         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
56732         * modules/remove (FILES): Remove m4/dos.m4.
56734         * lib/openat-proc.c: Don't include dirname.h; not needed.
56736         backupfile: remove unnecessary use of m4/dos.m4
56737         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
56738         of its symbols are used by the backupfile code.  backupfile.c does
56739         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
56740         for the rare case of programs that want all their backup file
56741         names to live within 8+3 limits, and dos.m4 doesn't address that.
56742         * modules/backupfile (Files): Remove m4/dos.m4.
56744 2011-02-24  Jim Meyering  <meyering@redhat.com>
56746         strstr: fix a bug whereby strstr would mistakenly return NULL
56747         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
56748         in period calculation.
56749         (two_way_long_needle): Likewise.
56750         The original problem was reported by Mike Stump in
56751         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
56752         Ralf Wildenhues provided the short needle and haystack.
56753         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
56754         Add a more involved test to trigger the bug in two_way_long_needle.
56756 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
56758         gnulib-tool: remove use of bold display in help screen
56759         * gnulib-tool (func_usage): Do not use bold display anymore in the
56760         help screen.  That was just meant to be a temporary emphasis for a
56761         backward-incompatible change.
56763 2011-02-23  Bruno Haible  <bruno@clisp.org>
56765         Fix misindentation of preprocessor directives.
56766         * lib/argp-namefrob.h: Reindent preprocessor directives.
56767         * lib/getopt_int.h (struct _getopt_data): Likewise.
56768         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
56769         * lib/vasnprintf.c (decode_long_double): Likewise.
56770         * tests/test-argmatch.c: Insert blank lines, for clarity.
56771         * tests/test-exclude.c: Likewise.
56773 2011-02-22  Bruno Haible  <bruno@clisp.org>
56775         ioctl: Fix for MacOS X in 64-bit mode.
56776         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
56777         value.
56778         Suggested by Eric Blake.
56779         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
56781 2011-02-22  Jim Meyering  <meyering@redhat.com>
56783         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
56784         * Makefile (sc_cpp_indent_check): Don't limit the check to files
56785         in lib/.
56787 2011-02-22  Eric Blake  <eblake@redhat.com>
56789         maint: avoid any CDPATH issue
56790         * Makefile (sc_cpp_indent_check): Anchor cd argument.
56792         maint: adjust cpp indentation for my modules, as well
56793         * Makefile (sc_cpp_indent_check): Add my name.
56794         * lib/fbufmode.c: Filter through cppi.
56795         * lib/fpurge.c: Likewise.
56796         * lib/freadable.c: Likewise.
56797         * lib/freading.c: Likewise.
56798         * lib/fwritable.c: Likewise.
56799         * lib/fwriting.c: Likewise.
56800         * lib/sigaction.c: Likewise.
56802 2011-02-22  Jim Meyering  <meyering@redhat.com>
56804         maint: adjust cpp indentation to reflect nesting depth
56805         I.e., in a block of code that begins with an unnested "#if",
56806         put one space between the "#" in column 1 and following token.
56807         For example,
56808         -#include <sys/vfs.h>
56809         +# include <sys/vfs.h>
56810         Do this only in .c files that are part of a module I maintain.
56811         * lib/linkat.c: Filter through cppi.
56812         * lib/nanosleep.c: Likewise.
56813         * lib/openat.c: Likewise.
56814         * lib/openat-die.c: Likewise.
56815         * lib/dup3.c: Likewise.
56816         * lib/fchownat.c: Likewise.
56817         * lib/flock.c: Likewise.
56818         * lib/fsync.c: Likewise.
56819         * lib/fts.c: Likewise.
56820         * lib/getpass.c: Likewise.
56821         * lib/gettimeofday.c: Likewise.
56822         * lib/userspec.c: Likewise.
56823         * Makefile (sc_cpp_indent_check): New rule, to check this.
56825 2011-02-22  Bruno Haible  <bruno@clisp.org>
56827         New module 'wctomb'.
56828         * lib/stdlib.in.h (wctomb): New declaration.
56829         * lib/wctomb.c: New file.
56830         * lib/wctomb-impl.h: New file.
56831         * m4/wctomb.m4: New file.
56832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
56833         REPLACE_WCTOMB.
56834         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
56835         REPLACE_WCTOMB.
56836         * modules/wctomb: New file.
56837         * tests/test-stdlib-c++.cc: Test signature of wctomb.
56838         * doc/posix-functions/wctomb.texi: Mention the new module.
56839         * modules/wctob (Depends-on): Add wctomb.
56841 2011-02-22  Bruno Haible  <bruno@clisp.org>
56843         New module 'mbtowc'.
56844         * lib/stdlib.in.h (mbtowc): New declaration.
56845         * lib/mbtowc.c: New file.
56846         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
56847         * m4/mbtowc.m4: New file.
56848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
56849         REPLACE_MBTOWC.
56850         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
56851         REPLACE_MBTOWC.
56852         * modules/mbtowc: New file.
56853         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
56854         * doc/posix-functions/mbtowc.texi: Mention the new module.
56855         * modules/btowc (Depends-on): Add mbtowc.
56857 2011-02-22  Bruno Haible  <bruno@clisp.org>
56859         wcrtomb: Add more tests for native Windows platforms.
56860         * tests/test-wcrtomb-w32-1.sh: New file.
56861         * tests/test-wcrtomb-w32-2.sh: New file.
56862         * tests/test-wcrtomb-w32-3.sh: New file.
56863         * tests/test-wcrtomb-w32-4.sh: New file.
56864         * tests/test-wcrtomb-w32-5.sh: New file.
56865         * tests/test-wcrtomb-w32.c: New file.
56866         * modules/wcrtomb-tests (Files): Add them.
56867         (Makefile.am): Arrange to run these tests.
56868         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
56869         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
56871 2011-02-20  Bruno Haible  <bruno@clisp.org>
56873         wcrtomb: Enhance test.
56874         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
56876 2011-02-20  Bruno Haible  <bruno@clisp.org>
56878         mbrtowc: Tiny optimization.
56879         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
56881 2011-02-20  Jim Meyering  <meyering@redhat.com>
56883         test-exclude.c: remove unmatched #endif
56884         * tests/test-exclude.c: Remove stray #endif, left over from
56885         the change of a week ago.
56887 2011-02-19  Jim Meyering  <meyering@redhat.com>
56889         git-version-gen: skip "-dirty" check when appropriate
56890         * build-aux/git-version-gen: Don't run any git commands when the
56891         version string comes from .tarball-version.  Prior to this, we
56892         would run git update-index --refresh even from a just-unpacked
56893         tarball directory, and that could affect a .git/ directory in a
56894         parent of the build directory.  Reported by Mike Frysinger.
56896 2011-02-19  Bruno Haible  <bruno@clisp.org>
56898         unictype/property-byname: Reduce the size of the 'data' segment.
56899         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
56901 2011-02-19  Bruno Haible  <bruno@clisp.org>
56903         unictype/scripts: Reduce the size of the 'data' segment.
56904         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
56905         '%pic'.
56906         * lib/unictype/scripts_byname.gperf: Regenerated.
56908 2011-02-19  Bruno Haible  <bruno@clisp.org>
56910         stdint: Update documentation.
56911         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
56913 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
56915         stdint: omit redundant check for wchar.h
56916         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
56917         always tests whether wchar.h exists, so remove the now-redundant test.
56919 2011-02-18  Bruno Haible  <bruno@clisp.org>
56921         stdint: Cut dependency to module 'wchar'.
56922         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
56923         include the necessary prerequisites.
56924         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
56925         * modules/stdint (Depends-on): Remove wchar.
56926         (Makefile.am): Substitute HAVE_WCHAR_H.
56927         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
56929 2011-02-18  Eric Blake  <eblake@redhat.com>
56931         longlong: skip, rather than fail, on cross-compilation
56932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
56933         when cross-compiling; regression from 2011-02-16.
56935 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
56937         * NEWS: Mention 2011-02-08 change to stdlib.
56939 2011-02-17  Bruno Haible  <bruno@clisp.org>
56941         getloadavg: Add comments about platforms.
56942         * m4/getloadavg.m4: Add comment.
56943         * lib/getloadavg.c: Likewise.
56945 2011-02-17  Bruno Haible  <bruno@clisp.org>
56947         getloadavg: Fix link error on Solaris 2.6.
56948         * modules/getloadavg (Link): New section.
56949         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
56950         linking test-getloadavg.
56951         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
56952         getloadavg.
56954 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
56956         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
56957         It was 'int', but this doesn't match the IRIX 6.5 manual.
56958         Suggested by Bruno Haible in
56959         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
56961 2011-02-17  Bruno Haible  <bruno@clisp.org>
56963         havelib: Fix comments.
56964         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
56965         change.
56967 2011-02-17  Bruno Haible  <bruno@clisp.org>
56969         havelib: Update config.rpath.
56970         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
56972 2011-02-17  Bruno Haible  <bruno@clisp.org>
56974         getloadavg test: Add some plausibility checks.
56975         * tests/test-getloadavg.c (check_avg): Print a warning when the value
56976         is improbable.
56978 2011-02-16  Eric Blake  <eblake@redhat.com>
56980         maintainer-makefile: make syntax-check a no-op from tarballs
56981         * top/maint.mk (no-vc-detected): New rule.
56982         (local-checks-available): Use it to avoid hanging if someone tries
56983         'make syntax-check' from a tarball.  Also append to any non-syntax
56984         checks already defined in cfg.mk.
56986 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
56988         longlong: tune, particularly for common case of c99
56990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
56991         or running anything if c99, or if unsigned long long int does not
56992         work.  In either case, we know the answer without further tests.
56993         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
56994         it at most once, and use its results for both long long int and
56995         unsigned long long int.  This is more likely to be efficient in
56996         the common case where the program wants to check for both long
56997         long int and unsigned long long int.
56998         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
56999         since the answer is already known.
57001 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
57003         getloadavg: set errno
57004         * lib/getloadavg.c: Set errno when returning -1.  If no other
57005         error number looks appropriate, set it to ENOSYS if the getloadavg
57006         looks like it can't possibly ever work, ENOTSUP otherwise.
57007         Suggested by Bruno Haible in
57008         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
57010         getloadavg: trim unused parts and speed up 'configure'
57011         * NEWS: Document this.
57012         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
57013         always compiled if getloadavg is absent.
57014         Move test code to ...
57015         * tests/test-getloadavg.c: New file, containing previous
57016         contents of test from lib/getloadavg.c.  It also contains
57017         suggestions by Bruno Haible in
57018         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
57019         * modules/getloadavg-tests: New file.
57020         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
57021         Do tests in the same order as they're needed for getloadavg.c.
57022         Omit setgid-related tests that generate symbols KMEM_GROUP,
57023         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
57024         Do only the tests that are needed to see whether the system has
57025         getloadavg, moving the other tests into ...
57026         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
57027         NLIST_NAME_UNION; nobody should be using it.  Do not define
57028         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
57029         relevant, as the user of this module shouldn't care how getloadavg
57030         is implemented.
57032         getloadavg: omit unused var
57033         * lib/getloadavg.c (getloadavg): Omit unused local variable.
57035 2011-02-15  Jim Meyering  <meyering@redhat.com>
57037         doc: update users.txt
57038         * users.txt: Update iwhd's URL.
57040 2011-02-13  Bruno Haible  <bruno@clisp.org>
57042         Consistent macro naming for macros that use GCC __attribute__.
57043         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
57044         _ATTRIBUTE_NONNULL_.
57045         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
57046         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
57047         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
57048         ATTRIBUTE_DEPRECATED.
57049         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
57050         ATTRIBUTE_NORETURN.
57051         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57052         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57053         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57054         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57055         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
57056         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
57057         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
57058         ATTRIBUTE_SENTINEL.
57059         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
57060         ATTRIBUTE_RETURN_CHECK.
57061         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
57062         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
57063         ATTRIBUTE_NORETURN.
57064         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
57065         Reported by Paul Eggert.
57067 2011-02-13  Bruno Haible  <bruno@clisp.org>
57069         Don't interfere with a program's definition of __attribute__.
57070         * lib/argp.h (__attribute__): Remove definition.
57071         (_GL_ATTRIBUTE_FORMAT): New macro.
57072         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
57073         * lib/argp-fmtstream.h (__attribute__): Remove definition.
57074         (_GL_ATTRIBUTE_FORMAT): New macro.
57075         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
57076         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
57077         GCC 3 or newer.
57078         * lib/error.h (__attribute__): Remove definition.
57079         (_GL_ATTRIBUTE_FORMAT): New macro.
57080         (error, error_at_line): Use it.
57081         * lib/hash.h (__attribute__): Remove definition.
57082         (ATTRIBUTE_WUR): Update definition. Define always.
57083         * lib/openat.h (__attribute__): Remove definition.
57084         (ATTRIBUTE_NORETURN): Update definition. Define always.
57085         * lib/sigpipe-die.h (__attribute__): Remove definition.
57086         (ATTRIBUTE_NORETURN): Update definition. Define always.
57087         * lib/vasnprintf.h (__attribute__): Remove definition.
57088         (_GL_ATTRIBUTE_FORMAT): New macro.
57089         (asnprintf, vasnprintf): Use it.
57090         * lib/xalloc.h (__attribute__): Remove definition.
57091         (ATTRIBUTE_NORETURN): Update definition. Define always.
57092         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
57093         * lib/xmemdup0.h (__attribute__): Remove definition.
57094         (ATTRIBUTE_NORETURN): Update definition. Define always.
57095         * lib/xprintf.h (__attribute__): Remove definition.
57096         (_GL_ATTRIBUTE_FORMAT): New macro.
57097         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
57098         * lib/xstrtol.h (__attribute__): Remove definition.
57099         (ATTRIBUTE_NORETURN): Update definition. Define always.
57100         * lib/xvasprintf.h (__attribute__): Remove definition.
57101         (_GL_ATTRIBUTE_FORMAT): New macro.
57102         (xasprintf, xvasprintf): Use it.
57103         * tests/test-argmatch.c (__attribute__): Remove definition.
57104         (ATTRIBUTE_NORETURN): Update definition. Define always.
57105         * tests/test-exclude.c (__attribute__): Remove definition.
57106         (ATTRIBUTE_NORETURN): Update definition. Define always.
57107         Reported by Paul Eggert.
57109 2011-02-13  Bruno Haible  <bruno@clisp.org>
57111         mbrtowc: Add more tests for native Windows platforms.
57112         * tests/test-mbrtowc-w32-1.sh: New file.
57113         * tests/test-mbrtowc-w32-2.sh: New file.
57114         * tests/test-mbrtowc-w32-3.sh: New file.
57115         * tests/test-mbrtowc-w32-4.sh: New file.
57116         * tests/test-mbrtowc-w32-5.sh: New file.
57117         * tests/test-mbrtowc-w32.c: New file.
57118         * modules/mbrtowc-tests (Files): Add them.
57119         (Makefile.am): Arrange to run these tests.
57120         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
57121         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
57123 2011-02-13  Bruno Haible  <bruno@clisp.org>
57125         mbrtowc: Work around native Windows bug.
57126         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
57127         guess when no suitable locale for testing was found.
57128         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
57130 2011-02-13  Bruno Haible  <bruno@clisp.org>
57132         mbsinit: Work around mingw bug.
57133         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
57134         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
57135         Windows.
57136         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
57138 2011-02-13  Bruno Haible  <bruno@clisp.org>
57140         mbsinit: Don't crash for a NULL argument.
57141         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
57142         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
57144 2011-02-13  Bruno Haible  <bruno@clisp.org>
57146         Don't interfere with a program's definition of __attribute__.
57147         * lib/stdio.in.h (__attribute__): Remove definition.
57148         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
57149         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
57150         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
57151         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
57152         * lib/string.in.h (__attribute__): Remove definition.
57153         Reported by Paul Eggert.
57155 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57157         stdlib: don't get in the way of non-GCC __attribute__
57158         See thread starting at
57159         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
57160         Revert previous stdlib change, installing the following instead:
57161         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
57162         to get in the way of a non-GCC compiler that supports __attribute__.
57163         (_GL_ATTRIBUTE_RETURN): New macro.
57164         (_Exit): Use it instead of __attribute__.
57166 2011-02-12  Bruno Haible  <bruno@clisp.org>
57168         quotearg test: Avoid test failure on mingw.
57169         * tests/test-quotearg.sh: Convert the locale identifier from native
57170         Windows syntax to Unix syntax.
57172 2011-02-12  Bruno Haible  <bruno@clisp.org>
57174         setlocale: Prefer gnulib's override over libintl's override.
57175         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
57176         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
57177         GNULIB_defined_setlocale is set.
57179 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57181         stdlib: support non-GCC __attribute__
57183         Fix a serious and tricky problem encountered when attempting to
57184         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
57185         5.5, but it crashed due to memory corruption on Solaris 10 with
57186         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
57187         bits that are otherwise zero.  This tagging is optional inside
57188         Emacs but is preferred and is used when __attribute__ ((__aligned
57189         (8))) works, as it does with both recent-enough GCC and with Sun C
57190         5.11.  However, Sun C 5.11 is not GCC and does not #define
57191         __GNUC__ and __GNUC_MINOR__.
57193         When I added the getloadavg module to Emacs, it brought in
57194         stdlib.in.h, which contained this fragment:
57196            #ifndef __attribute__
57197            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
57198            #  define __attribute__(Spec)   /* empty */
57199            # endif
57200            #endif
57202         When files that include <stdlib.h> were compiled with Sun C 5.11,
57203         the above code disabled __attribute__ ((__aligned (8))), which
57204         caused variables to not be properly aligned, which eventually led
57205         to the pointer corruption mentioned above.  (This was a bit hard
57206         to diagnose, unfortunately.)
57208         Several "#define __attribute__(X) /* empty */" code snippets need
57209         to be eradicated from Gnulib to work with non-GCC compilers that
57210         support __attribute__.  The Autoconf way to do this is to test for
57211         each kind of attribute that we want support for, and selectively
57212         enable that in source code.
57214         Fix this problem just for stdlib.h, by adding a test for the
57215         __noreturn__ attribute, and change stdlib.in.h to use that test
57216         when needed.  This technique can be easily generalized to the
57217         other *.in.h files and attributes, and a similar technique can be
57218         used for *.h and *.c files.  This patch is enough to solve the
57219         problem for Emacs + getloadavg, and I thought I'd publish it for
57220         feedback before undertaking further, similar fixes in other
57221         modules.
57223         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
57224         because it's not needed for stdlib.h.  It merely substitutes the
57225         value directly into stdlib.h.  We may well need to #define it, or
57226         similar symbols, for other modules, but it's nice to also have an
57227         option to not #define it for applications like Emacs that do not
57228         need it.
57230         * lib/stdlib.in.h (__attribute__): Do not #define.
57231         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
57232         be defined only if the _Exit module is also used.
57233         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
57234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
57235         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
57236         platforms.
57237         * modules/_Exit (Files): Add m4/attribute.m4.
57238         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
57239         * m4/attribute.m4: New file.
57241 2011-02-12  Bruno Haible  <bruno@clisp.org>
57243         wcsrtombs: Work around bug on native Windows.
57244         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
57245         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
57246         instead of len.
57247         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
57249 2011-02-12  Bruno Haible  <bruno@clisp.org>
57251         mbsrtowcs: Work around bug on native Windows.
57252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
57253         against mingw bug.
57254         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
57256 2011-02-12  Bruno Haible  <bruno@clisp.org>
57258         Avoid setlocale bugs in tests.
57259         * modules/btowc (Dependencies): Add setlocale.
57260         * modules/c-strcase (Dependencies): Likewise.
57261         * modules/mbmemcasecmp (Dependencies): Likewise.
57262         * modules/mbmemcasecoll (Dependencies): Likewise.
57263         * modules/mbrtowc (Dependencies): Likewise.
57264         * modules/mbscasecmp (Dependencies): Likewise.
57265         * modules/mbscasestr (Dependencies): Likewise.
57266         * modules/mbschr (Dependencies): Likewise.
57267         * modules/mbscspn (Dependencies): Likewise.
57268         * modules/mbsinit (Dependencies): Likewise.
57269         * modules/mbsncasecmp (Dependencies): Likewise.
57270         * modules/mbsnrtowcs (Dependencies): Likewise.
57271         * modules/mbspbrk (Dependencies): Likewise.
57272         * modules/mbspcasecmp (Dependencies): Likewise.
57273         * modules/mbsrchr (Dependencies): Likewise.
57274         * modules/mbsrtowcs (Dependencies): Likewise.
57275         * modules/mbsspn (Dependencies): Likewise.
57276         * modules/mbsstr (Dependencies): Likewise.
57277         * modules/nl_langinfo (Dependencies): Likewise.
57278         * modules/quotearg (Dependencies): Likewise.
57279         * modules/unicase/locale-language (Dependencies): Likewise.
57280         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
57281         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
57282         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
57283         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
57284         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
57285         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
57286         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
57287         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
57288         * modules/vasnprintf-posix (Dependencies): Likewise.
57289         * modules/wcrtomb (Dependencies): Likewise.
57290         * modules/wcsnrtombs (Dependencies): Likewise.
57291         * modules/wcsrtombs (Dependencies): Likewise.
57293 2011-02-12  Bruno Haible  <bruno@clisp.org>
57295         setlocale: Workaround native Windows bug.
57296         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
57297         succeeds but sets LC_CTYPE to "C", report a failure.
57298         * tests/test-setlocale2.sh: New file.
57299         * tests/test-setlocale2.c: New file.
57300         * modules/setlocale-tests (Files): Add the new files.
57301         (Makefile.am): Enable test-setlocale2.sh test.
57302         * doc/posix-functions/setlocale.texi: Mention workaround.
57304 2011-02-11  Bruno Haible  <bruno@clisp.org>
57306         Tests for module 'setlocale'.
57307         * modules/setlocale-tests: New file.
57308         * tests/test-setlocale1.sh: New file.
57309         * tests/test-setlocale1.c: New file.
57311         New module 'setlocale'.
57312         * lib/locale.in.h (setlocale): New declaration.
57313         * lib/setlocale.c: New file, based on
57314         gettext/gettext-runtime/intl/setlocale.c.
57315         * m4/setlocale.m4: New file.
57316         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
57317         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
57318         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
57319         REPLACE_SETLOCALE.
57320         * modules/setlocale: New file.
57321         * tests/test-locale-c++.cc: Test the declaration of setlocale.
57322         * doc/posix-functions/setlocale.texi: Mention the new module.
57324 2011-02-11  Bruno Haible  <bruno@clisp.org>
57326         Prepare for locale dependent tests on mingw.
57327         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
57328         because it has the wrong locale encoding.
57329         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
57330         French_France.1252 instead of "fr".
57331         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
57332         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
57333         because it has the wrong locale encoding.
57334         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
57335         native Windows, try Turkish_Turkey.65001.
57336         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
57337         Chinese_China.54936.
57339         Prepare for locale dependent tests on mingw.
57340         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
57341         differently.
57342         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
57343         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
57344         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57347 2011-02-11  Eric Blake  <eblake@redhat.com>
57349         strptime: avoid compiler warnings
57350         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
57351         compiler warnings about dead code.
57352         Reported by Daniel P. Berrange.
57354 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
57356         doc: update users.txt
57357         * users.txt: Add rcs.
57359 2011-02-10  John W. Eaton  <jwe@gnu.org>
57361         doc: update users.txt
57362         * users.txt: Add octave.
57364 2011-02-10  Jim Meyering  <meyering@redhat.com>
57366         doc: update users.txt
57367         * users.txt: Add iwhd.
57369 2011-02-09  Bruno Haible  <bruno@clisp.org>
57371         gnulib-tool: Make copyright notice adjustment more robust.
57372         * gnulib-tool (func_import): In sed_transform_main_lib_file,
57373         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
57374         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
57375         License".
57376         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
57378 2011-02-06  Bruno Haible  <bruno@clisp.org>
57380         New module 'towctrans'.
57381         * modules/towctrans: New file.
57382         * lib/wctype.in.h (towctrans): New declaration.
57383         * lib/towctrans.c: New file.
57384         * lib/towctrans-impl.h: New file.
57385         * m4/towctrans.m4: New file.
57386         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
57387         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
57388         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
57389         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
57390         * doc/posix-functions/towctrans.texi: Mention the new module.
57392 2011-02-06  Bruno Haible  <bruno@clisp.org>
57394         New module 'wctrans'.
57395         * modules/wctrans: New file.
57396         * lib/wctype.in.h (wctrans): New declaration.
57397         * lib/wctrans.c: New file.
57398         * lib/wctrans-impl.h: New file.
57399         * m4/wctrans.m4: New file.
57400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
57401         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
57402         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
57403         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
57404         * doc/posix-functions/wctrans.texi: Mention the new module.
57406 2011-02-06  Bruno Haible  <bruno@clisp.org>
57408         New module 'iswctype'.
57409         * modules/iswctype: New file.
57410         * lib/wctype.in.h (iswctype): New declaration.
57411         * lib/iswctype.c: New file.
57412         * lib/iswctype-impl.h: New file.
57413         * m4/iswctype.m4: New file.
57414         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
57415         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
57416         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
57417         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
57418         * doc/posix-functions/iswctype.texi: Mention the new module and the
57419         HP-UX 11.00 problem.
57421 2011-02-06  Bruno Haible  <bruno@clisp.org>
57423         New module 'wctype'.
57424         * modules/wctype: Change to represent the wctype() substitute.
57425         * lib/wctype.in.h (wctype): New declaration.
57426         * lib/wctype.c: New file.
57427         * lib/wctype-impl.h: New file.
57428         * m4/wctype.m4: New file.
57429         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
57430         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
57431         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
57432         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
57433         * doc/posix-functions/wctype.texi: Mention the new module and the
57434         HP-UX 11.00 problem.
57436 2011-02-06  Bruno Haible  <bruno@clisp.org>
57438         wctype-h: Ensure wctype_t and wctrans_t are defined.
57439         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
57440         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
57441         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
57442         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
57443         HAVE_WCTRANS_T.
57444         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
57446 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
57448         flock: fix license typo
57450         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
57451         omitted.
57453 2011-02-08  Bruno Haible  <bruno@clisp.org>
57455         Split large sed scripts, for HP-UX sed.
57456         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
57457         to avoid HP-UX limit of 99 commands, in the near future.
57458         * modules/stdlib (Makefile.am): Likewise.
57459         * modules/unistd (Makefile.am): Likewise.
57460         * modules/wchar (Makefile.am): Likewise.
57461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57462         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
57463         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
57465 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
57466             Bruno Haible  <bruno@clisp.org>
57468         stdlib: improve random_r modularization
57469         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
57470         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
57471         you also need the random_r module to get this material right.
57472         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
57473         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
57474         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
57476 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
57478         stdlib: don't depend on stdint
57479         * lib/stdlib.in.h: Don't include <stdint.h> merely because
57480         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
57481         be independent of whether stdint.h is needed.
57482         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
57483         here, instead of ...
57484         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
57485         struct random_data should be using the random_r module, not just
57486         the stdlib module (which wouldn't make sense: what package needs
57487         just struct random_data without also needing random_r?).
57488         * modules/stdlib (Depends-on): Remove stdint.
57490         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
57491         See the thread rooted at
57492         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
57493         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
57494         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
57495         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
57496         __VMS)); previously it was always included (via fcntl--.h).
57497         (getloadavg): Do not use c_strtod.  Instead, approximate it by
57498         hand; this is good enough for load averages.  Also, do not use
57499         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
57500         flags directly if available and don't bother otherwise.  (Packages
57501         that need the extra reliability should use the modules that define
57502         these flags on older platforms that lack them.)
57503         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
57504         fcntl-safer.
57506 2011-02-08  Jim Meyering  <meyering@redhat.com>
57508         di-set.h, ino-map.h: add multiple-inclusion guard
57509         Technically, the guard is required only for ino-map.h, due to its
57510         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
57511         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
57512         * lib/ino-map.h: Likewise.
57514 2011-02-06  Bruno Haible  <bruno@clisp.org>
57516         iswblank: Ensure declaration on glibc systems.
57517         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
57518         * modules/iswblank (Dependencies): Add 'extensions'.
57519         * doc/posix-functions/iswblank.texi: Document the glibc problem.
57521 2011-02-06  Bruno Haible  <bruno@clisp.org>
57523         New module 'iswblank'.
57524         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
57525         * modules/iswblank: New file.
57526         * modules/wctype-h (Files): Remove lib/iswblank.c.
57527         (Makefile.am): Substitute GNULIB_ISWBLANK.
57528         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
57529         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
57530         (gl_WCTYPE_H_DEFAULTS): New macro.
57531         (gl_WCTYPE_H): Require it. Remove iswblank related code.
57532         * modules/iswblank-tests: New file.
57533         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
57534         * tests/test-wctype-h.c (main): Remove iswblank tests.
57535         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
57536         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
57537         of 'wctype-h'.
57538         * NEWS: Mention the change.
57539         * modules/mbchar (Depends-on): Add iswblank.
57541 2011-02-08  Bruno Haible  <bruno@clisp.org>
57543         di-set tests: Refactor.
57544         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
57545         unnecessary includes.
57546         (ASSERT): Remove macro.
57547         (main): Make C90 compliant by avoiding variable declaration after
57548         statement.
57549         * modules/di-set-tests (Files): Add tests/macros.h.
57551 2011-02-08  Bruno Haible  <bruno@clisp.org>
57553         ino-map tests: Refactor.
57554         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
57555         unnecessary includes.
57556         (ASSERT): Remove macro.
57557         (main): Make C90 compliant by avoiding variable declaration after
57558         statement.
57559         * modules/ino-map-tests (Files): Add tests/macros.h.
57561 2011-02-08  Jim Meyering  <meyering@redhat.com>
57563         di-set: add "const" to a cast
57564         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
57565         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
57567 2011-02-06  Bruno Haible  <bruno@clisp.org>
57569         Rename module 'wctype' to 'wctype-h'.
57570         * modules/wctype-h: Renamed from modules/wctype.
57571         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
57572         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
57573         (Files, Depends-on, Makefile.am): Update.
57574         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
57575         (Files, Makefile.am): Update.
57576         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
57577         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
57578         * doc/posix-headers/wctype.texi: Update.
57579         * doc/posix-functions/iswalnum.texi: Update.
57580         * doc/posix-functions/iswalpha.texi: Update.
57581         * doc/posix-functions/iswblank.texi: Update.
57582         * doc/posix-functions/iswcntrl.texi: Update.
57583         * doc/posix-functions/iswdigit.texi: Update.
57584         * doc/posix-functions/iswgraph.texi: Update.
57585         * doc/posix-functions/iswlower.texi: Update.
57586         * doc/posix-functions/iswprint.texi: Update.
57587         * doc/posix-functions/iswpunct.texi: Update.
57588         * doc/posix-functions/iswspace.texi: Update.
57589         * doc/posix-functions/iswupper.texi: Update.
57590         * doc/posix-functions/iswxdigit.texi: Update.
57591         * doc/posix-functions/towlower.texi: Update.
57592         * doc/posix-functions/towupper.texi: Update.
57593         * NEWS: Mention the change.
57594         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
57595         * modules/mbchar (Dependencies): Likewise.
57596         * modules/mbswidth (Dependencies): Likewise.
57597         * modules/quotearg (Dependencies): Likewise.
57598         * modules/regex (Dependencies): Likewise.
57599         * modules/wcscasecmp (Dependencies): Likewise.
57600         * modules/wcsncasecmp (Dependencies): Likewise.
57601         * modules/wcwidth (Dependencies): Likewise.
57603 2011-02-06  Bruno Haible  <bruno@clisp.org>
57605         New module 'wcswidth'.
57606         * modules/wcswidth: New file.
57607         * lib/wchar.in.h (wcswidth): New declaration.
57608         * lib/wcswidth.c: New file.
57609         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
57610         * m4/wcswidth.m4: New file.
57611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
57612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
57613         REPLACE_WCSWIDTH.
57614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
57615         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
57616         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
57617         * doc/posix-functions/wcswidth.texi: Mention the new module.
57619 2011-02-06  Bruno Haible  <bruno@clisp.org>
57621         New module 'wcstok'.
57622         * modules/wcstok: New file.
57623         * lib/wchar.in.h (wcstok): New declaration.
57624         * lib/wcstok.c: New file.
57625         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
57626         * m4/wcstok.m4: New file.
57627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
57628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
57629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
57630         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
57631         * doc/posix-functions/wcstok.texi: Mention the new module.
57633 2011-02-06  Bruno Haible  <bruno@clisp.org>
57635         New module 'wcsstr'.
57636         * modules/wcsstr: New file.
57637         * lib/wchar.in.h (wcsstr): New declaration.
57638         * lib/wcsstr.c: New file.
57639         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
57640         * m4/wcsstr.m4: New file.
57641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
57642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
57643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
57644         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
57645         * doc/posix-functions/wcsstr.texi: Mention the new module.
57647 2011-02-06  Bruno Haible  <bruno@clisp.org>
57649         New module 'wcspbrk'.
57650         * modules/wcspbrk: New file.
57651         * lib/wchar.in.h (wcspbrk): New declaration.
57652         * lib/wcspbrk.c: New file.
57653         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
57654         * m4/wcspbrk.m4: New file.
57655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
57656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
57657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
57658         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
57659         * doc/posix-functions/wcspbrk.texi: Mention the new module.
57661 2011-02-06  Bruno Haible  <bruno@clisp.org>
57663         New module 'wcsspn'.
57664         * modules/wcsspn: New file.
57665         * lib/wchar.in.h (wcsspn): New declaration.
57666         * lib/wcsspn.c: New file.
57667         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
57668         * m4/wcsspn.m4: New file.
57669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
57670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
57671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
57672         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
57673         * doc/posix-functions/wcsspn.texi: Mention the new module.
57675 2011-02-06  Bruno Haible  <bruno@clisp.org>
57677         New module 'wcscspn'.
57678         * modules/wcscspn: New file.
57679         * lib/wchar.in.h (wcscspn): New declaration.
57680         * lib/wcscspn.c: New file.
57681         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
57682         * m4/wcscspn.m4: New file.
57683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
57684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
57685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
57686         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
57687         * doc/posix-functions/wcscspn.texi: Mention the new module.
57689 2011-02-06  Bruno Haible  <bruno@clisp.org>
57691         New module 'wcsrchr'.
57692         * modules/wcsrchr: New file.
57693         * lib/wchar.in.h (wcsrchr): New declaration.
57694         * lib/wcsrchr.c: New file.
57695         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
57696         * m4/wcsrchr.m4: New file.
57697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
57698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
57699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
57700         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
57701         * doc/posix-functions/wcsrchr.texi: Mention the new module.
57703 2011-02-06  Bruno Haible  <bruno@clisp.org>
57705         New module 'wcschr'.
57706         * modules/wcschr: New file.
57707         * lib/wchar.in.h (wcschr): New declaration.
57708         * lib/wcschr.c: New file.
57709         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
57710         * m4/wcschr.m4: New file.
57711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
57712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
57713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
57714         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
57715         * doc/posix-functions/wcschr.texi: Mention the new module.
57717 2011-02-06  Bruno Haible  <bruno@clisp.org>
57719         New module 'wcsdup'.
57720         * modules/wcsdup: New file.
57721         * lib/wchar.in.h (wcsdup): New declaration.
57722         * lib/wcsdup.c: New file.
57723         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
57724         * m4/wcsdup.m4: New file.
57725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
57726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
57727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
57728         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
57729         * doc/posix-functions/wcsdup.texi: Mention the new module.
57731 2011-02-06  Bruno Haible  <bruno@clisp.org>
57733         New module 'wcsxfrm'.
57734         * modules/wcsxfrm: New file.
57735         * lib/wchar.in.h (wcsxfrm): New declaration.
57736         * lib/wcsxfrm.c: New file.
57737         * lib/wcsxfrm-impl.h: New file.
57738         * m4/wcsxfrm.m4: New file.
57739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
57740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
57741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
57742         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
57743         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
57745 2011-02-06  Bruno Haible  <bruno@clisp.org>
57747         New module 'wcscoll'.
57748         * modules/wcscoll: New file.
57749         * lib/wchar.in.h (wcscoll): New declaration.
57750         * lib/wcscoll.c: New file.
57751         * lib/wcscoll-impl.h: New file.
57752         * m4/wcscoll.m4: New file.
57753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
57754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
57755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
57756         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
57757         * doc/posix-functions/wcscoll.texi: Mention the new module.
57759 2011-02-06  Bruno Haible  <bruno@clisp.org>
57761         New module 'wcsncasecmp'.
57762         * modules/wcsncasecmp: New file.
57763         * lib/wchar.in.h (wcsncasecmp): New declaration.
57764         * lib/wcsncasecmp.c: New file.
57765         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
57766         * m4/wcsncasecmp.m4: New file.
57767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
57768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
57769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
57770         HAVE_WCSNCASECMP.
57771         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
57772         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
57774 2011-02-06  Bruno Haible  <bruno@clisp.org>
57776         New module 'wcscasecmp'.
57777         * modules/wcscasecmp: New file.
57778         * lib/wchar.in.h (wcscasecmp): New declaration.
57779         * lib/wcscasecmp.c: New file.
57780         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
57781         * m4/wcscasecmp.m4: New file.
57782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
57783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
57784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
57785         HAVE_WCSCASECMP.
57786         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
57787         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
57789 2011-02-05  Bruno Haible  <bruno@clisp.org>
57791         New module 'wcsncmp'.
57792         * modules/wcsncmp: New file.
57793         * lib/wchar.in.h (wcsncmp): New declaration.
57794         * lib/wcsncmp.c: New file.
57795         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
57796         * m4/wcsncmp.m4: New file.
57797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
57798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
57799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
57800         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
57801         * doc/posix-functions/wcsncmp.texi: Mention the new module.
57803 2011-02-05  Bruno Haible  <bruno@clisp.org>
57805         New module 'wcscmp'.
57806         * modules/wcscmp: New file.
57807         * lib/wchar.in.h (wcscmp): New declaration.
57808         * lib/wcscmp.c: New file.
57809         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
57810         * m4/wcscmp.m4: New file.
57811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
57812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
57813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
57814         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
57815         * doc/posix-functions/wcscmp.texi: Mention the new module.
57817 2011-02-05  Bruno Haible  <bruno@clisp.org>
57819         New module 'wcsncat'.
57820         * modules/wcsncat: New file.
57821         * lib/wchar.in.h (wcsncat): New declaration.
57822         * lib/wcsncat.c: New file.
57823         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
57824         * m4/wcsncat.m4: New file.
57825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
57826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
57827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
57828         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
57829         * doc/posix-functions/wcsncat.texi: Mention the new module.
57831 2011-02-05  Bruno Haible  <bruno@clisp.org>
57833         New module 'wcscat'.
57834         * modules/wcscat: New file.
57835         * lib/wchar.in.h (wcscat): New declaration.
57836         * lib/wcscat.c: New file.
57837         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
57838         * m4/wcscat.m4: New file.
57839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
57840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
57841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
57842         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
57843         * doc/posix-functions/wcscat.texi: Mention the new module.
57845 2011-02-05  Bruno Haible  <bruno@clisp.org>
57847         New module 'wcpncpy'.
57848         * modules/wcpncpy: New file.
57849         * lib/wchar.in.h (wcpncpy): New declaration.
57850         * lib/wcpncpy.c: New file.
57851         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
57852         * m4/wcpncpy.m4: New file.
57853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
57854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
57855         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
57856         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
57857         * doc/posix-functions/wcpncpy.texi: Mention the new module.
57859 2011-02-05  Bruno Haible  <bruno@clisp.org>
57861         New module 'wcsncpy'.
57862         * modules/wcsncpy: New file.
57863         * lib/wchar.in.h (wcsncpy): New declaration.
57864         * lib/wcsncpy.c: New file.
57865         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
57866         * m4/wcsncpy.m4: New file.
57867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
57868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
57869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
57870         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
57871         * doc/posix-functions/wcsncpy.texi: Mention the new module.
57873 2011-02-05  Bruno Haible  <bruno@clisp.org>
57875         New module 'wcpcpy'.
57876         * modules/wcpcpy: New file.
57877         * lib/wchar.in.h (wcpcpy): New declaration.
57878         * lib/wcpcpy.c: New file.
57879         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
57880         * m4/wcpcpy.m4: New file.
57881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
57882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
57883         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
57884         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
57885         * doc/posix-functions/wcpcpy.texi: Mention the new module.
57887 2011-02-05  Bruno Haible  <bruno@clisp.org>
57889         New module 'wcscpy'.
57890         * modules/wcscpy: New file.
57891         * lib/wchar.in.h (wcscpy): New declaration.
57892         * lib/wcscpy.c: New file.
57893         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
57894         * m4/wcscpy.m4: New file.
57895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
57896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
57897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
57898         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
57899         * doc/posix-functions/wcscpy.texi: Mention the new module.
57901 2011-02-05  Bruno Haible  <bruno@clisp.org>
57903         New module 'wcsnlen'.
57904         * modules/wcsnlen: New file.
57905         * lib/wchar.in.h (wcsnlen): New declaration.
57906         * lib/wcsnlen.c: New file.
57907         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
57908         * m4/wcsnlen.m4: New file.
57909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
57910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
57911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
57912         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
57913         * doc/posix-functions/wcsnlen.texi: Mention the new module.
57915 2011-02-05  Bruno Haible  <bruno@clisp.org>
57917         New module 'wcslen'.
57918         * modules/wcslen: New file.
57919         * lib/wchar.in.h (wcslen): New declaration.
57920         * lib/wcslen.c: New file.
57921         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
57922         * m4/wcslen.m4: New file.
57923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
57924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
57925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
57926         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
57927         * doc/posix-functions/wcslen.texi: Mention the new module.
57929 2011-02-05  Bruno Haible  <bruno@clisp.org>
57931         New module 'wmemset'.
57932         * modules/wmemset: New file.
57933         * lib/wchar.in.h (wmemset): New declaration.
57934         * lib/wmemset.c: New file.
57935         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
57936         * m4/wmemset.m4: New file.
57937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
57938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
57939         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
57940         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
57941         * doc/posix-functions/wmemset.texi: Mention the new module.
57943 2011-02-05  Bruno Haible  <bruno@clisp.org>
57945         New module 'wmemmove'.
57946         * modules/wmemmove: New file.
57947         * lib/wchar.in.h (wmemmove): New declaration.
57948         * lib/wmemmove.c: New file.
57949         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
57950         * m4/wmemmove.m4: New file.
57951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
57952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
57953         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
57954         HAVE_WMEMMOVE.
57955         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
57956         * doc/posix-functions/wmemmove.texi: Mention the new module.
57958 2011-02-05  Bruno Haible  <bruno@clisp.org>
57960         New module 'wmemcpy'.
57961         * modules/wmemcpy: New file.
57962         * lib/wchar.in.h (wmemcpy): New declaration.
57963         * lib/wmemcpy.c: New file.
57964         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
57965         * m4/wmemcpy.m4: New file.
57966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
57967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
57968         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
57969         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
57970         * doc/posix-functions/wmemcpy.texi: Mention the new module.
57972 2011-02-05  Bruno Haible  <bruno@clisp.org>
57974         New module 'wmemcmp'.
57975         * modules/wmemcmp: New file.
57976         * lib/wchar.in.h (wmemcmp): New declaration.
57977         * lib/wmemcmp.c: New file.
57978         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
57979         * m4/wmemcmp.m4: New file.
57980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
57981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
57982         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
57983         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
57984         * doc/posix-functions/wmemcmp.texi: Mention the new module.
57986 2011-02-07  Jim Meyering  <meyering@redhat.com>
57988         di-set, ino-map: new modules, from coreutils
57989         * lib/di-set.c: New file.
57990         * lib/di-set.h: Likewise.
57991         * lib/ino-map.c: Likewise.
57992         * lib/ino-map.h: Likewise.
57993         * modules/di-set: Likewise.
57994         * modules/di-set-tests: Likewise.
57995         * modules/ino-map: Likewise.
57996         * modules/ino-map-tests: Likewise.
57997         * tests/test-di-set.c: Likewise.
57998         * tests/test-ino-map.c: Likewise.
58000 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
58002         getloadavg: merge minor changes from Emacs
58004         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
58005         (getloadavg): Use memset, not bzero.
58007         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
58008         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
58009         clash (bug#86).
58011 2010-11-14  Bruno Haible  <bruno@clisp.org>
58013         Allow multiple gnulib generated replacements to coexist.
58014         * lib/getopt.in.h (struct option): Avoid identical redefinition.
58015         * lib/inttypes.in.h (imaxdiv_t): Likewise.
58016         * lib/langinfo.in.h (nl_item): Likewise.
58017         * lib/math.in.h (_NaN, NAN): Likewise.
58018         * lib/netdb.in.h (struct addrinfo): Likewise.
58019         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
58020         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
58021         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
58022         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
58023         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
58024         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
58025         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
58026         pthread_mutexattr_init, pthread_mutexattr_settype,
58027         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
58028         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
58029         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
58030         pthread_spin_trylock, pthread_spin_unlock): Likewise.
58031         * lib/sched.in.h (struct sched_param): Likewise.
58032         * lib/se-selinux.in.h (security_class_t, security_context_t,
58033         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
58034         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
58035         lsetfilecon, fsetfilecon, security_check_context,
58036         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
58037         Likewise.
58038         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
58039         Likewise.
58040         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
58041         _gl_function_taking_int_returning_void_t, union sigval,
58042         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
58043         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
58044         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58045         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
58046         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
58047         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
58048         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
58049         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
58050         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
58051         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
58052         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
58053         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
58054         socklen_t, rpl_fd_isset): Likewise.
58055         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
58056         * lib/sys_time.in.h (struct timeval): Likewise.
58057         * lib/sys_times.in.h (struct tms): Likewise.
58058         * lib/sys_utsname.in.h (struct utsname):
58059         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
58060         * lib/unistd.in.h (getpagesize): Likewise.
58061         * lib/wchar.in.h (mbstate_t): Likewise.
58062         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58063         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
58064         towlower, towupper): Likewise.
58065         Reported by Sam Steingold <sds@gnu.org>.
58067 2011-02-05  Eric Blake  <eblake@redhat.com>
58069         unsetenv: work around Haiku issues
58070         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
58071         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
58073 2010-12-30  Bruce Korb  <bkorb@gnu.org>
58075         libposix: avoid calling error() within libposix
58076         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
58077         is defined.
58079 2011-02-05  Eric Blake  <eblake@redhat.com>
58081         strerror_r-posix: port to cygwin
58082         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
58083         implementation.
58084         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
58085         * tests/test-strerror_r.c (main): Fix test.
58086         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
58087         issue.
58089 2011-02-05  Bruno Haible  <bruno@clisp.org>
58091         New module 'wmemchr'.
58092         * modules/wmemchr: New file.
58093         * lib/wchar.in.h (wmemchr): New declaration.
58094         * lib/wmemchr.c: New file.
58095         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
58096         * m4/wmemchr.m4: New file.
58097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
58098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
58099         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
58100         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
58101         * doc/posix-functions/wmemchr.texi: Mention the new module.
58103 2011-02-04  Eric Blake  <eblake@redhat.com>
58105         fdopendir: detect FreeBSD bug
58106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
58107         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
58109 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58111         stdbool: do not define HAVE_STDBOOL_H
58112         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
58113         AC_HEADER_STDBOOL.  All uses changed.  Do not define
58114         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
58115         imported from the latest Autoconf git.  It was motivated by Emacs,
58116         which uses gnulib but does not need HAVE_STDBOOL_H.
58118 2011-02-04  Bruno Haible  <bruno@clisp.org>
58120         wcsnrtombs: Prepare for new module wwcsnrtombs.
58121         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
58122         * lib/wcsnrtombs.c: Include it.
58123         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
58125         wcsrtombs: Prepare for new module wwcsrtombs.
58126         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
58127         * lib/wcsrtombs.c: Include it.
58128         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
58130         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
58131         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
58132         * lib/mbsnrtowcs.c: Include it.
58133         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
58135         mbsrtowcs: Prepare for new module mbsrtowwcs.
58136         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
58137         * lib/mbsrtowcs.c: Include it.
58138         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
58140 2011-02-04  Bruno Haible  <bruno@clisp.org>
58142         vasnprintf: Reduce use of malloc for small format strings.
58143         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
58144         (arguments): Add room for the first 7 arguments.
58145         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
58146         (char_directives, u8_directives, u16_directives, u32_directives): Add
58147         room for the first 7 directives.
58148         * lib/printf-parse.c: Include <string.h>.
58149         (PRINTF_PARSE): Change memory handling code so that it uses the first
58150         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
58151         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
58152         Reported by Pádraig Brady <P@draigbrady.com>.
58154 2011-01-31  Eric Blake  <eblake@redhat.com>
58156         dup2: work around Haiku bug
58157         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
58158         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
58159         * doc/posix-functions/dup2.texi (dup2): Document the bug.
58160         * tests/test-dup2.c (main): Enhance test.
58162 2011-01-31  Simon Josefsson  <simon@josefsson.org>
58164         doc: off_t is not available in eglibc 2.11.2 stdio.h.
58165         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
58166         declared by eglibc 2.11.2.
58167         * lib/stdio.in.h: Likewise.
58169 2011-01-31  Eric Blake  <eblake@redhat.com>
58171         ignore-value: add missing test dependency
58172         * tests/test-ignore-value.c: Revert previous change; stdio.h
58173         provides off_t.
58174         * modules/ignore-value-tests (Depends-on): Add missing dependency.
58176 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
58178         mktime: clarify long_int width checking
58179         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
58180         the top level, to make it clearer that the assumption about
58181         long_int width is being checked.  See
58182         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
58184 2011-01-30  Simon Josefsson  <simon@josefsson.org>
58186         ignore-value: Fix self-test.
58187         * tests/test-ignore-value.c: Include sys/types.h for off_t.
58189 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58191         TYPE_MAXIMUM: avoid theoretically undefined behavior
58192         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
58193         negative number, which the C Standard says has undefined behavior.
58194         In practice this is not a problem, but might as well do it by the book.
58195         Reported by Rich Felker and Eric Blake; see
58196         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
58197         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
58198         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58200         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
58201         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58202         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
58204         mktime: #undef mktime before #defining it
58205         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
58207         mktime: systematically normalize tm_isdst comparisons
58208         * lib/mktime.c (isdst_differ): New function.
58209         (__mktime_internal): Use it systematically for all isdst comparisons.
58210         This completes the fix for libc BZ #6723, and removes the need for
58211         normalizing tm_isdst.  See
58212         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
58213         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
58215         mktime: fix some integer overflow issues and sidestep the rest
58217         This was prompted by a bug report by Benjamin Lindner for MinGW
58218         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
58219         His bug is due to signed integer overflow (0 - INT_MIN), and I
58220         I scanned through mktime.c looking for other integer overflow
58221         problems, fixing all the bugs I found.
58223         Although the C Standard says the resulting code is still not safe
58224         in the presence of integer overflow, in practice it should be good
58225         enough for all real-world two's-complement implementations, except
58226         for debugging environments that deliberately trap on integer
58227         overflow (e.g., gcc -ftrapv).
58229         * lib/mktime.c (WRAPV): New macro.
58230         (SHR): Also check that long_int and time_t shift right in the
58231         usual way, before using the fast-but-unportable method.
58232         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
58233         used.  The code already assumed two's complement, so there's
58234         no need to test for alternatives.  All uses removed.
58235         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
58236         the C standard.  Problem reported by Rich Felker in
58237         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
58238         (twos_complement_arithmetic): Also check long_int and time_t.
58239         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
58240         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
58241         (__mktime_internal): Avoid integer overflow with unary subtraction
58242         in two instances where -1 - X is an adequate replacement for -X,
58243         since the calculations are approximate.
58245 2011-01-29  Eric Blake  <eblake@redhat.com>
58247         mktime: avoid infinite loop
58248         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
58249         type; behavior is still undefined but portable to all known targets.
58250         Reported by Rich Felker.
58252 2011-01-29  Simon Josefsson  <simon@josefsson.org>
58254         rename, unlink, same-inode: Relicense.
58255         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
58256         * modules/unlink (License): Likewise.
58257         * modules/same-inode (License): Likewise.
58259 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58261         mktime: avoid problems on NetBSD 5 / i386
58262         * lib/mktime.c (long_int): New type.  This works around a problem
58263         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
58264         but time_t is 64 bits, and where I expect the existing code is
58265         wrong in some cases.
58266         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
58267         (ydhms_diff): Bring back the compile-time check for wide-enough
58268         year and yday.
58270         mktime: fix misspelling in comment
58271         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
58272         This merges all recent glibc changes of importance.
58274 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58276         move-if-change: cope with concurrent mv of identical file.
58277         * build-aux/move-if-change (CMPPROG): Accept environment
58278         variable as an override for `cmp'.
58279         (usage): Document CMPPROG.
58280         Adjust comparison to drop stdout.  Cope with failure of mv if
58281         the target file exists and is identical to the source, for
58282         parallel builds.
58283         Report from H.J. Lu against binutils in PR binutils/12283.
58285 2011-01-28  Bruce Korb  <bkorb@gnu.org>
58287         * users.txt: Mention sharutils.
58289 2011-01-28  Simon Josefsson  <simon@josefsson.org>
58291         * users.txt: Mention OATH Toolkit.
58293 2011-01-27  Bruno Haible  <bruno@clisp.org>
58295         Prepare for supporting FreeBSD 10.
58296         * build-aux/config.libpath: Remove handling of freebsd1*.
58298 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
58300         Prepare for supporting FreeBSD 10.
58301         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
58302         match FreeBSD 10.0.
58304 2011-01-27  Bruno Haible  <bruno@clisp.org>
58306         vma-iter, get-rusage-as: Add OpenBSD support.
58307         * modules/vma-iter (configure.ac): Test for mquery.
58308         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
58309         * lib/vma-iter.c: Include <sys/mman.h>.
58310         (vma_iterate): Add an implementation based on mquery().
58311         * lib/resource-ext.h (get_rusage_as): Update comments.
58312         * lib/get-rusage-as.c: Likewise.
58313         * lib/get-rusage-data.c: Likewise.
58315 2011-01-26  Karl Berry  <karl@gnu.org>
58317         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
58318         variables to make it easier to override the makeinfo program used.
58320 2011-01-26  Eric Blake  <eblake@redhat.com>
58322         fcntl: work around Haiku F_DUPFD bugs
58323         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
58324         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
58325         cloexec bit on duplication.
58326         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
58328 2011-01-26  Bruno Haible  <bruno@clisp.org>
58330         Enable memory leak tests on AIX.
58331         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
58332         * tests/test-fprintf-posix3.c (main): Likewise.
58334 2011-01-26  Bruno Haible  <bruno@clisp.org>
58336         Tests for module 'get-rusage-data'.
58337         * modules/get-rusage-data-tests: New file.
58338         * tests/test-get-rusage-data.c: New file.
58340         New module 'get-rusage-data'.
58341         * lib/resource-ext.h (get_rusage_data): New declaration.
58342         * lib/get-rusage-data.c: New file.
58343         * modules/get-rusage-data: New file.
58345 2011-01-25  Bruno Haible  <bruno@clisp.org>
58347         get-rusage-as: Allow for easier testing.
58348         * lib/resource-ext.h (get_rusage_as): Add comment.
58349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
58350         (main): New function for interactive testing.
58352 2011-01-25  Bruno Haible  <bruno@clisp.org>
58354         vma-iter: Treat Haiku like BeOS.
58355         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
58356         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
58358 2011-01-25  Eric Blake  <eblake@redhat.com>
58360         c-stack: fix regression on cygwin when libsigsegv is present
58361         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
58363 2011-01-24  Bruno Haible  <bruno@clisp.org>
58365         vma-iter: Avoid empty intervals.
58366         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
58367         on an empty interval.
58369 2011-01-24  Jim Meyering  <meyering@redhat.com>
58371         u64: remove unnecessary #include
58372         * lib/u64.h: Don't include <stddef.h>.  It was not used.
58374 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58376         Allow the user to avoid the HAVE_RAW_DECL_* macros.
58377         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
58379 2011-01-23  Bruno Haible  <bruno@clisp.org>
58381         New module 'vma-iter'.
58382         * lib/vma-iter.h: New file.
58383         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
58384         * modules/vma-iter: New file.
58385         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
58386         for get_rusage_as_via_iterator.
58387         (vma_iterate_callback): New function.
58388         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
58389         * modules/get-rusage-as (Depends-on): Add vma-iter.
58391 2011-01-23  Bruno Haible  <bruno@clisp.org>
58393         uninorm: Tweak includes.
58394         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
58395         Reported by Jim Meyering.
58397 2011-01-23  Bruno Haible  <bruno@clisp.org>
58399         get-rusage-as: Improve on NetBSD.
58400         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
58401         /proc, like on FreeBSD.
58403 2011-01-23  Jim Meyering  <meyering@redhat.com>
58405         xreadlink.h: remove unnecessary #include
58406         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
58408         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
58409         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
58411 2011-01-23  Bruno Haible  <bruno@clisp.org>
58413         get-rusage-as: Fix bug.
58414         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
58415         original limit when aborting the first loop.
58417 2011-01-23  Bruno Haible  <bruno@clisp.org>
58419         wctype: Ensure valid C syntax.
58420         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
58421         unconditionally, instead of gl_NEXT_HEADERS conditionally.
58423 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58425         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
58426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
58427         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
58428         as they are needed only for configure's test case.
58429         This removes two unnecessary symbols from config.h.
58431         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
58432         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
58433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
58434         AC_CHECK_HEADERS_ONCE on a header that we also invoke
58435         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
58436         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
58437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
58438         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
58439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58440         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
58445         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
58446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58447         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
58448         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58450 2011-01-21  Eric Blake  <eblake@redhat.com>
58452         maintainer-makefile: work with older git for submodule check
58453         * top/maint.mk (public-submodule-commit): Rewrite to avoid
58454         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
58455         Reported by Matthias Bolte.
58457         bootstrap: minor portability fixes
58458         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
58459         (usage): Omit leading capital and trailing . on help phrases, per
58460         GNU Coding Standards.
58461         (check_versions, top level): Prefix messages with script name.
58463 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
58465         bootstrap: support --no-git option
58466         * build-aux/bootstrap: Add --no-git option, to be used when
58467         --gnulib-srcdir points to the exact desired checkout.
58469 2011-01-21  Eric Blake  <eblake@redhat.com>
58471         strerror_r-posix: work with glibc 2.13
58472         * lib/strerror_r.c (strerror_r): Fix return type.
58474 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58475             Bruno Haible  <bruno@clisp.org>
58477         uN_strstr: New unit tests.
58478         * modules/unistr/u8-strstr-tests: New file.
58479         * modules/unistr/u16-strstr-tests: New file.
58480         * modules/unistr/u32-strstr-tests: New file.
58481         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
58482         * tests/unistr/test-u8-strstr.c: New file.
58483         * tests/unistr/test-u16-strstr.c: New file.
58484         * tests/unistr/test-u32-strstr.c: New file.
58486 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58487             Bruno Haible  <bruno@clisp.org>
58489         Make uN_strstr functions O(n) worst-case.
58490         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
58491         16-bit and 32-bit unit cases, use the unibyte algorithm from
58492         lib/mbsstr.c.
58493         * lib/unistr/u8-strstr.c: Include <string.h>.
58494         (UNIT_IS_UINT8_T): New macro.
58495         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
58496         (U_STRLEN, U_STRNLEN): New macros.
58497         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
58498         (U_STRLEN, U_STRNLEN): New macros.
58499         * modules/unistr/u8-strstr (Depends-on): Add strstr.
58500         (configure.ac): Update required libunistring version.
58501         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
58502         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
58503         malloca.
58504         (configure.ac): Update required libunistring version.
58505         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
58506         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
58507         malloca.
58508         (configure.ac): Update required libunistring version.
58510 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58511             Bruno Haible  <bruno@clisp.org>
58513         Prepare for faster uN_strstr functions.
58514         * lib/str-kmp.h: Support definable UNITs.
58515         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
58516         needle_len argument.
58517         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
58518         * lib/mbscasestr.c (mbscasestr): Likewise.
58520 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58522         malloca-tests: make faster by unsetting MALLOC_PERTURB_
58523         * tests/test-malloca.c (main): Unset the environment variable
58524         to greatly speed up the test.
58525         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
58526         * modules/malloca-tests: Depend on unsetenv.
58528 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58530         ignore-value: remove stdint dependency
58531         * lib/ignore-value.h: Remove <stdint.h>
58532         * modules/ignore-value: Remove stdint dependency.
58534 2011-01-21  Jim Meyering  <meyering@redhat.com>
58536         maint.mk: adjust variable name to be consistent with other gl_ vars
58537         * top/maint.mk (gl_public_submodule_commit): Rename the variable
58538         to be lower case.
58540 2011-01-20  Jim Meyering  <meyering@redhat.com>
58542         maint.mk: make "check" depend on public-submodule-commit by default
58543         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
58545 2011-01-20  Bruno Haible  <bruno@clisp.org>
58547         mbfile, mbiter: Complete change from 2008-12-21.
58548         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
58549         * m4/mbiter.m4 (gl_MBITER): Likewise.
58551 2011-01-20  Jim Meyering  <meyering@redhat.com>
58553         init.sh: insert space between each function name and "()"
58554         * tests/init.sh: Make it a little easier to see that a function's
58555         name is "warn_", and not "warn" when looking at the first part of
58556         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
58558 2011-01-20  Jim Meyering  <meyering@redhat.com>
58560         mountlist: clean up code formatting
58561         * lib/mountlist.c (read_file_system_list): Split a long line,
58562         correct bracing style, use NULL in place of "(struct statfs *)0",
58563         don't parenthesize return value, add spaces around "=" and after
58564         ";-in-for-stmt".
58566 2011-01-14  Markus Duft  <mduft@gentoo.org>
58568         mountlist: add support for Interix
58569         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
58570         Apply statvfs to all entries of /dev/fs.
58571         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
58572         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
58574 2011-01-20  Jim Meyering  <meyering@redhat.com>
58576         maint.mk: improve the public-submodule-commit rule
58577         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
58578         to suppress printing of its commands... unless V=1.
58579         Add git submodule's --quiet option to suppress printing of e.g.,
58580         "Entering gnulib" output.
58581         "cd" into $(srcdir) before running git submodule.
58583 2011-01-20  Bruno Haible  <bruno@clisp.org>
58585         include_next: Fix bug introduced on 2011-01-18.
58586         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
58587         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
58588         ac_cv_header_... variable if the second argument is not 'check'.
58589         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
58590         gl_NEXT_HEADERS_INTERNAL.
58592 2011-01-20  Bruno Haible  <bruno@clisp.org>
58594         Allow the user to avoid the GNULIB_TEST_* macros.
58595         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
58596         Suggested by Paul Eggert.
58598 2011-01-14  Jim Meyering  <meyering@redhat.com>
58600         bootstrap: avoid failure when there is no .gitmodules file
58601         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
58602         has been assigned to, even when its value is the empty string.
58603         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
58604         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
58605         Reported by John W. Eaton <jwe@gnu.org>.
58607 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58609         assume <ctype.h>, ..., <time.h> exist
58610         For years gnulib has been assuming the existence of the headers
58611         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
58612         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
58613         them, since they don't appear to be needed.
58614         * README (Portability guidelines): Document this.
58615         * lib/flock.c: Assume <fcntl.h> exists.
58616         * lib/regex_internal.h: Assume <locale.h> exists.
58617         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
58618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
58619         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
58620         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
58621         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
58622         * m4/regex.m4 (gl_REGEX): Likewise.
58623         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
58624         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
58625         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
58626         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
58627         * tests/test-argp.c: Likewise.
58628         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
58630         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
58631         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
58632         AA_APPLE_UNIVERSAL_BUILD.  See
58633         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
58634         * NEWS: Document this.
58636 2011-01-19  Eric Blake  <eblake@redhat.com>
58638         c-stack: assume stack overflow if SA_SIGINFO unsupported
58639         * lib/c-stack.c (SIGACTION_WORKS): Rename...
58640         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
58641         sigaction will work.
58642         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
58643         behavior match Linux.
58644         * tests/test-c-stack.c (main): Prefer NULL for pointers.
58646         stdbool-tests: accommodate Haiku
58647         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
58649         binary-io: fix O_TEXT on Haiku
58650         * modules/binary-io (Depends-on): Add fcntl-h.
58651         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
58652         than blindly undefining O_TEXT.
58653         Reported by Scott McCreary.
58655 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58657         include_next: do not check for standard headers like stddef.h
58659         I found this problem when modifying Emacs to use gnulib.
58660         I noticed that it added HAVE_STDDEF_H to config.h, even though
58661         gnulib always assumes <stddef.h> exists as per README and this
58662         symbol is unnecessary.
58663         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
58664         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
58665         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
58666         faster for headers like stddef.h that are known to exist.
58667         (gl_CHECK_NEXT_HEADERS): Use it.
58668         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
58669         rather than gl_CHECK_NEXT_HEADERS.
58670         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
58671         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
58673 2011-01-18  Eric Blake  <eblake@redhat.com>
58675         ansi-c++-opt: skip C++ dependency style if C++ is unused
58676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
58677         tests when we know C++ compilation is not desired.
58678         Reported by Scott McCreary.
58680 2011-01-18  Bruno Haible  <bruno@clisp.org>
58682         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
58683         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
58684         (main): Perform test also when getrlimit and setrlimit don't exist or
58685         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
58686         limiting the address space size using setrlimit, compare the address
58687         space size before and after the test.
58688         * tests/test-dprintf-posix2.c: Likewise.
58689         * tests/test-fprintf-posix3.sh: Update skip messages.
58690         * tests/test-dprintf-posix2.sh: Likewise.
58691         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
58692         * modules/dprintf-posix-tests (Depends-on): Likewise.
58693         Reported by Bruce Korb <bkorb@gnu.org> and
58694         Gary V. Vaughan <gary@gnu.org>.
58696 2011-01-18  Bruno Haible  <bruno@clisp.org>
58698         get-rusage-as: Improvement for Cygwin.
58699         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
58700         areas that are merely reserved.
58702 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58704         strftime: remove dependencies on multibyte modules
58706         strftime depended on mbrlen, mbsinit, and wchar, but these modules
58707         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
58708         only if __osf__ is defined, and I suspect OSF doesn't need these
58709         other modules.  If my guess is wrong, we'll need to come up with a
58710         variant of strftime that doesn't need the multibyte modules.
58712         I discovered this problem when attempting modify Emacs to use the
58713         strftime module.  With the previous gnulib, this caused Emacs to
58714         need 31 new files, ranging from lib/config.charset to
58715         m4/wint_t.m4.  This was overkill and I expect would be offputting
58716         to the Emacs maintainers.  After this change, only 6 new files are
58717         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
58718         stdbool.m4, and tm_gmtoff.m4.
58720         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
58721         Suggested by Bruno Haible in
58722         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
58723         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
58724         and do not check for wchar.h.
58725         * modules/strftime (Files): Remove m4/mbstate_t.m4.
58726         (Depends-on): Remove mbrlen, mbsinit, wchar.
58728 2011-01-18  Bruno Haible  <bruno@clisp.org>
58730         Tests for module 'get-rusage-as'.
58731         * modules/get-rusage-as-tests: New file.
58732         * tests/test-get-rusage-as.c: New file.
58734         New module 'get-rusage-as'.
58735         * modules/get-rusage-as: New file.
58736         * lib/resource-ext.h: New file.
58737         * lib/get-rusage-as.c: New file.
58739 2011-01-17  Eric Blake  <eblake@redhat.com>
58741         sigaction: relax license from LGPLv3+ to LGPLv2+
58742         * modules/sigaction (License): Relax to LGPLv2+.
58744 2011-01-14  Bruno Haible  <bruno@clisp.org>
58746         filemode: Make function declarations usable in C++ mode.
58747         * lib/filemode.h: Enclose function declarations in extern "C" block.
58748         Reported by John W. Eaton <jwe@gnu.org>.
58750 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
58752         save-cwd: no longer include "xgetcwd.h"
58753         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
58754         This avoids a compilation failure in projects that use save-cwd
58755         without also using the xgetcwd module.
58757 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58759         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
58760         This is so that a program like Emacs, which needs only dtoastr,
58761         does not have to bother with distributing and compiling ftoastr
58762         and ldtoastr.
58763         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
58764         * modules/dtoastr, modules/ldtoastr: New files.
58765         * modules/ftoastr: Now works just for 'float'.
58766         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
58767         (Makefile.am): Remove ftoastr.h (not needed and no effect),
58768         dtoastr.c, ldtoastr.c.
58770 2011-01-11  Jim Meyering  <meyering@redhat.com>
58772         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
58773         There is no need to work around the lack of the fchdir function,
58774         since gnulib can now provide a replacement when required.
58775         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
58776         * modules/save-cwd (Depends-on): Add fchdir.
58778 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58780         openat, save-cwd: avoid xmalloc
58782         This removes a direct (but undocumented) dependency of openat on
58783         xalloc, along with an indirect dependency via save-cwd.  It also
58784         removes a dependency of save-cwd on xgetcwd, and thereby
58785         indirectly on xalloc.  This change causes the openat substitute
58786         to fall back on save_cwd when memory is tight, and for save_cwd to
58787         fail instead of dying when memory is tight, but that's good enough.
58788         Problem and initial idea for fix reported by Bastien Roucaries in
58789         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
58791         * lib/openat-proc.c: Include stdlib.h (for malloc), not
58792         xalloc.h (for xmalloc).
58793         (openat_proc_name): Use malloc, not xmalloc.
58794         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
58795         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
58797         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
58798         This avoids heap allocation for file names whose lengths are in
58799         the range 512..1023, with the upper bound increasing to at most
58800         4031 depending on the platform's PATH_MAX.  (We do not want
58801         pathmax.h here as it might supply a non-constant PATH_MAX.)
58802         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
58803         Perhaps they should be moved to malloca.h?
58804         (OPENAT_BUFFER_SIZE): Use them.
58806 2011-01-10  Bruno Haible  <bruno@clisp.org>
58808         doc: Update users.txt.
58809         * users.txt: Add recutils.
58811 2011-01-09  Karl Berry  <karl@gnu.org>
58813         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
58815         * doc/configmake.texi: New file.
58816         * doc/gnulib.texi: Include it.
58817         * modules/configmake: Move documentation from here.
58819 2011-01-09  Bruno Haible  <bruno@clisp.org>
58821         Update to Unicode 6.0.0.
58822         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
58823         (get_lbp): Update for Unicode 6.0.0.
58824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
58825         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
58826         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
58827         U+11001, U+11038..U+11046. Remove U+06DE.
58828         (uc_width): Fix bounds of planes.
58829         * tests/uniwidth/test-uc_width2.sh: Same updates as in
58830         lib/uniwidth/width.c.
58831         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
58832         trailing whitespace removed.
58833         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
58834         without comments, but with the original copyright notice.
58835         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
58836         * lib/unicase/ignorable.h: Likewise.
58837         * lib/unicase/tocasefold.h: Likewise.
58838         * lib/unicase/tolower.h: Likewise.
58839         * lib/unicase/totitle.h: Likewise.
58840         * lib/unicase/toupper.h: Likewise.
58841         * lib/unictype/bidi_of.h: Likewise.
58842         * lib/unictype/blocks.h: Likewise.
58843         * lib/unictype/categ_C.h: Likewise.
58844         * lib/unictype/categ_Cn.h: Likewise.
58845         * lib/unictype/categ_L.h: Likewise.
58846         * lib/unictype/categ_Ll.h: Likewise.
58847         * lib/unictype/categ_Lm.h: Likewise.
58848         * lib/unictype/categ_Lo.h: Likewise.
58849         * lib/unictype/categ_Lu.h: Likewise.
58850         * lib/unictype/categ_M.h: Likewise.
58851         * lib/unictype/categ_Mc.h: Likewise.
58852         * lib/unictype/categ_Me.h: Likewise.
58853         * lib/unictype/categ_Mn.h: Likewise.
58854         * lib/unictype/categ_N.h: Likewise.
58855         * lib/unictype/categ_Nd.h: Likewise.
58856         * lib/unictype/categ_No.h: Likewise.
58857         * lib/unictype/categ_P.h: Likewise.
58858         * lib/unictype/categ_Po.h: Likewise.
58859         * lib/unictype/categ_S.h: Likewise.
58860         * lib/unictype/categ_Sc.h: Likewise.
58861         * lib/unictype/categ_Sk.h: Likewise.
58862         * lib/unictype/categ_Sm.h: Likewise.
58863         * lib/unictype/categ_So.h: Likewise.
58864         * lib/unictype/categ_of.h: Likewise.
58865         * lib/unictype/combining.h: Likewise.
58866         * lib/unictype/ctype_alnum.h: Likewise.
58867         * lib/unictype/ctype_alpha.h: Likewise.
58868         * lib/unictype/ctype_graph.h: Likewise.
58869         * lib/unictype/ctype_lower.h: Likewise.
58870         * lib/unictype/ctype_print.h: Likewise.
58871         * lib/unictype/ctype_punct.h: Likewise.
58872         * lib/unictype/ctype_upper.h: Likewise.
58873         * lib/unictype/decdigit.h: Likewise.
58874         * lib/unictype/digit.h: Likewise.
58875         * lib/unictype/numeric.h: Likewise.
58876         * lib/unictype/pr_alphabetic.h: Likewise.
58877         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58878         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58879         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58880         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58881         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58882         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58883         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58884         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58885         * lib/unictype/pr_case_ignorable.h: Likewise.
58886         * lib/unictype/pr_cased.h: Likewise.
58887         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
58888         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
58889         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
58890         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
58891         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
58892         * lib/unictype/pr_combining.h: Likewise.
58893         * lib/unictype/pr_composite.h: Likewise.
58894         * lib/unictype/pr_currency_symbol.h: Likewise.
58895         * lib/unictype/pr_decimal_digit.h: Likewise.
58896         * lib/unictype/pr_deprecated.h: Likewise.
58897         * lib/unictype/pr_format_control.h: Likewise.
58898         * lib/unictype/pr_grapheme_base.h: Likewise.
58899         * lib/unictype/pr_grapheme_extend.h: Likewise.
58900         * lib/unictype/pr_grapheme_link.h: Likewise.
58901         * lib/unictype/pr_id_continue.h: Likewise.
58902         * lib/unictype/pr_id_start.h: Likewise.
58903         * lib/unictype/pr_ideographic.h: Likewise.
58904         * lib/unictype/pr_lowercase.h: Likewise.
58905         * lib/unictype/pr_math.h: Likewise.
58906         * lib/unictype/pr_numeric.h: Likewise.
58907         * lib/unictype/pr_other_alphabetic.h: Likewise.
58908         * lib/unictype/pr_other_id_continue.h: Likewise.
58909         * lib/unictype/pr_other_math.h: Likewise.
58910         * lib/unictype/pr_punctuation.h: Likewise.
58911         * lib/unictype/pr_sentence_terminal.h: Likewise.
58912         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58913         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58914         * lib/unictype/pr_unified_ideograph.h: Likewise.
58915         * lib/unictype/pr_uppercase.h: Likewise.
58916         * lib/unictype/pr_xid_continue.h: Likewise.
58917         * lib/unictype/pr_xid_start.h: Likewise.
58918         * lib/unictype/scripts.h: Likewise.
58919         * lib/unictype/scripts_byname.gperf: Likewise.
58920         * lib/unictype/sy_java_ident.h: Likewise.
58921         * lib/unigbrk/gbrkprop.h: Likewise.
58922         * lib/unilbrk/lbrkprop1.h: Likewise.
58923         * lib/unilbrk/lbrkprop2.h: Likewise.
58924         * lib/uninorm/decomposition-table2.h: Likewise.
58925         * lib/uniwbrk/wbrkprop.h: Likewise.
58926         * tests/unicase/test-cased.c: Likewise.
58927         * tests/unicase/test-ignorable.c: Likewise.
58928         * tests/unicase/test-uc_tolower.c: Likewise.
58929         * tests/unicase/test-uc_totitle.c: Likewise.
58930         * tests/unicase/test-uc_toupper.c: Likewise.
58931         * tests/unictype/test-categ_C.c: Likewise.
58932         * tests/unictype/test-categ_Cn.c: Likewise.
58933         * tests/unictype/test-categ_L.c: Likewise.
58934         * tests/unictype/test-categ_Ll.c: Likewise.
58935         * tests/unictype/test-categ_Lm.c: Likewise.
58936         * tests/unictype/test-categ_Lo.c: Likewise.
58937         * tests/unictype/test-categ_Lu.c: Likewise.
58938         * tests/unictype/test-categ_M.c: Likewise.
58939         * tests/unictype/test-categ_Mc.c: Likewise.
58940         * tests/unictype/test-categ_Me.c: Likewise.
58941         * tests/unictype/test-categ_Mn.c: Likewise.
58942         * tests/unictype/test-categ_N.c: Likewise.
58943         * tests/unictype/test-categ_Nd.c: Likewise.
58944         * tests/unictype/test-categ_No.c: Likewise.
58945         * tests/unictype/test-categ_P.c: Likewise.
58946         * tests/unictype/test-categ_Po.c: Likewise.
58947         * tests/unictype/test-categ_S.c: Likewise.
58948         * tests/unictype/test-categ_Sc.c: Likewise.
58949         * tests/unictype/test-categ_Sk.c: Likewise.
58950         * tests/unictype/test-categ_Sm.c: Likewise.
58951         * tests/unictype/test-categ_So.c: Likewise.
58952         * tests/unictype/test-ctype_alnum.c: Likewise.
58953         * tests/unictype/test-ctype_alpha.c: Likewise.
58954         * tests/unictype/test-ctype_graph.c: Likewise.
58955         * tests/unictype/test-ctype_lower.c: Likewise.
58956         * tests/unictype/test-ctype_print.c: Likewise.
58957         * tests/unictype/test-ctype_punct.c: Likewise.
58958         * tests/unictype/test-ctype_upper.c: Likewise.
58959         * tests/unictype/test-decdigit.h: Likewise.
58960         * tests/unictype/test-digit.h: Likewise.
58961         * tests/unictype/test-numeric.h: Likewise.
58962         * tests/unictype/test-pr_alphabetic.c: Likewise.
58963         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58964         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58965         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58967         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58968         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58970         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58971         * tests/unictype/test-pr_case_ignorable.c: Likewise.
58972         * tests/unictype/test-pr_cased.c: Likewise.
58973         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
58974         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
58975         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
58976         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
58977         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
58978         * tests/unictype/test-pr_combining.c: Likewise.
58979         * tests/unictype/test-pr_composite.c: Likewise.
58980         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58982         * tests/unictype/test-pr_deprecated.c: Likewise.
58983         * tests/unictype/test-pr_format_control.c: Likewise.
58984         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58985         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58986         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58987         * tests/unictype/test-pr_id_continue.c: Likewise.
58988         * tests/unictype/test-pr_id_start.c: Likewise.
58989         * tests/unictype/test-pr_ideographic.c: Likewise.
58990         * tests/unictype/test-pr_lowercase.c: Likewise.
58991         * tests/unictype/test-pr_math.c: Likewise.
58992         * tests/unictype/test-pr_numeric.c: Likewise.
58993         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58994         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58995         * tests/unictype/test-pr_other_math.c: Likewise.
58996         * tests/unictype/test-pr_punctuation.c: Likewise.
58997         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58998         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58999         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59000         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59001         * tests/unictype/test-pr_uppercase.c: Likewise.
59002         * tests/unictype/test-pr_xid_continue.c: Likewise.
59003         * tests/unictype/test-pr_xid_start.c: Likewise.
59004         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59005         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59006         changes.
59007         * lib/unictype/categ_Cc.h: Likewise.
59008         * lib/unictype/categ_Cf.h: Likewise.
59009         * lib/unictype/categ_Co.h: Likewise.
59010         * lib/unictype/categ_Cs.h: Likewise.
59011         * lib/unictype/categ_Lt.h: Likewise.
59012         * lib/unictype/categ_Nl.h: Likewise.
59013         * lib/unictype/categ_Pc.h: Likewise.
59014         * lib/unictype/categ_Pd.h: Likewise.
59015         * lib/unictype/categ_Pe.h: Likewise.
59016         * lib/unictype/categ_Pf.h: Likewise.
59017         * lib/unictype/categ_Pi.h: Likewise.
59018         * lib/unictype/categ_Ps.h: Likewise.
59019         * lib/unictype/categ_Z.h: Likewise.
59020         * lib/unictype/categ_Zl.h: Likewise.
59021         * lib/unictype/categ_Zp.h: Likewise.
59022         * lib/unictype/categ_Zs.h: Likewise.
59023         * lib/unictype/ctype_blank.h: Likewise.
59024         * lib/unictype/ctype_cntrl.h: Likewise.
59025         * lib/unictype/ctype_digit.h: Likewise.
59026         * lib/unictype/ctype_space.h: Likewise.
59027         * lib/unictype/ctype_xdigit.h: Likewise.
59028         * lib/unictype/mirror.h: Likewise.
59029         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59030         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59032         * lib/unictype/pr_bidi_control.h: Likewise.
59033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59035         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59036         * lib/unictype/pr_bidi_pdf.h: Likewise.
59037         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59038         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59039         * lib/unictype/pr_dash.h: Likewise.
59040         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59041         * lib/unictype/pr_diacritic.h: Likewise.
59042         * lib/unictype/pr_extender.h: Likewise.
59043         * lib/unictype/pr_hex_digit.h: Likewise.
59044         * lib/unictype/pr_hyphen.h: Likewise.
59045         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59046         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59047         * lib/unictype/pr_ignorable_control.h: Likewise.
59048         * lib/unictype/pr_iso_control.h: Likewise.
59049         * lib/unictype/pr_join_control.h: Likewise.
59050         * lib/unictype/pr_left_of_pair.h: Likewise.
59051         * lib/unictype/pr_line_separator.h: Likewise.
59052         * lib/unictype/pr_logical_order_exception.h: Likewise.
59053         * lib/unictype/pr_non_break.h: Likewise.
59054         * lib/unictype/pr_not_a_character.h: Likewise.
59055         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59056         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59057         * lib/unictype/pr_other_id_start.h: Likewise.
59058         * lib/unictype/pr_other_lowercase.h: Likewise.
59059         * lib/unictype/pr_other_uppercase.h: Likewise.
59060         * lib/unictype/pr_paired_punctuation.h: Likewise.
59061         * lib/unictype/pr_paragraph_separator.h: Likewise.
59062         * lib/unictype/pr_pattern_syntax.h: Likewise.
59063         * lib/unictype/pr_pattern_white_space.h: Likewise.
59064         * lib/unictype/pr_private_use.h: Likewise.
59065         * lib/unictype/pr_quotation_mark.h: Likewise.
59066         * lib/unictype/pr_radical.h: Likewise.
59067         * lib/unictype/pr_soft_dotted.h: Likewise.
59068         * lib/unictype/pr_space.h: Likewise.
59069         * lib/unictype/pr_titlecase.h: Likewise.
59070         * lib/unictype/pr_variation_selector.h: Likewise.
59071         * lib/unictype/pr_white_space.h: Likewise.
59072         * lib/unictype/pr_zero_width.h: Likewise.
59073         * lib/unictype/sy_c_ident.h: Likewise.
59074         * lib/unictype/sy_c_whitespace.h: Likewise.
59075         * lib/unictype/sy_java_whitespace.h: Likewise.
59076         * lib/uninorm/composition-table.gperf: Likewise.
59077         * lib/uninorm/decomposition-table1.h: Likewise.
59078         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
59079         LB8.
59080         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59081         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59082         * modules/unictype/*: Bump version number of expected libunistring
59083         version.
59085 2011-01-09  Bruno Haible  <bruno@clisp.org>
59087         Update to Unicode 5.2.0.
59088         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
59089         trailing whitespace removed.
59091 2011-01-09  Bruno Haible  <bruno@clisp.org>
59093         New Unicode character properties, from Unicode 5.2.0.
59094         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
59095         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
59096         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
59097         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
59098         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
59099         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
59100         uc_is_property_cased, uc_is_property_case_ignorable,
59101         uc_is_property_changes_when_lowercased,
59102         uc_is_property_changes_when_uppercased,
59103         uc_is_property_changes_when_titlecased,
59104         uc_is_property_changes_when_casefolded,
59105         uc_is_property_changes_when_casemapped): New declarations.
59106         * lib/unictype/pr_byname.gperf: Add the new properties.
59107         * modules/unictype/property-byname (Depends-on): Depend on the new
59108         properties modules.
59109         * modules/unictype/property-all (Depends-on): Likewise.
59110         * MODULES.html.sh (Unicode string functions): Add
59111         unictype/property-case-ignorable, unictype/property-cased,
59112         unictype/property-changes-when-casefolded,
59113         unictype/property-changes-when-casemapped,
59114         unictype/property-changes-when-lowercased,
59115         unictype/property-changes-when-titlecased,
59116         unictype/property-changes-when-uppercased.
59118         New module 'unictype/property-changes-when-casemapped'.
59119         * modules/unictype/property-changes-when-casemapped: New file.
59120         * lib/unictype/pr_changes_when_casemapped.c: New file.
59121         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
59122         generated by gen-uni-tables.
59123         * modules/unictype/property-changes-when-casemapped-tests: New file.
59124         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
59125         automatically generated by gen-uni-tables.
59127         New module 'unictype/property-changes-when-casefolded'.
59128         * modules/unictype/property-changes-when-casefolded: New file.
59129         * lib/unictype/pr_changes_when_casefolded.c: New file.
59130         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
59131         generated by gen-uni-tables.
59132         * modules/unictype/property-changes-when-casefolded-tests: New file.
59133         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
59134         automatically generated by gen-uni-tables.
59136         New module 'unictype/property-changes-when-titlecased'.
59137         * modules/unictype/property-changes-when-titlecased: New file.
59138         * lib/unictype/pr_changes_when_titlecased.c: New file.
59139         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
59140         generated by gen-uni-tables.
59141         * modules/unictype/property-changes-when-titlecased-tests: New file.
59142         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
59143         automatically generated by gen-uni-tables.
59145         New module 'unictype/property-changes-when-uppercased'.
59146         * modules/unictype/property-changes-when-uppercased: New file.
59147         * lib/unictype/pr_changes_when_uppercased.c: New file.
59148         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
59149         generated by gen-uni-tables.
59150         * modules/unictype/property-changes-when-uppercased-tests: New file.
59151         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
59152         automatically generated by gen-uni-tables.
59154         New module 'unictype/property-changes-when-lowercased'.
59155         * modules/unictype/property-changes-when-lowercased: New file.
59156         * lib/unictype/pr_changes_when_lowercased.c: New file.
59157         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
59158         generated by gen-uni-tables.
59159         * modules/unictype/property-changes-when-lowercased-tests: New file.
59160         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
59161         automatically generated by gen-uni-tables.
59163         New module 'unictype/property-case-ignorable'.
59164         * modules/unictype/property-case-ignorable: New file.
59165         * lib/unictype/pr_case_ignorable.c: New file.
59166         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
59167         by gen-uni-tables.
59168         * modules/unictype/property-case-ignorable-tests: New file.
59169         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
59170         generated by gen-uni-tables.
59172         New module 'unictype/property-cased'.
59173         * modules/unictype/property-cased: New file.
59174         * lib/unictype/pr_cased.c: New file.
59175         * lib/unictype/pr_cased.h: New file, automatically generated by
59176         gen-uni-tables.
59177         * modules/unictype/property-cased-tests: New file.
59178         * tests/unictype/test-pr_cased.c: New file, automatically generated by
59179         gen-uni-tables.
59181 2011-01-09  Bruno Haible  <bruno@clisp.org>
59183         Update to Unicode 5.2.0.
59184         * lib/gen-uni-tables.c (output_predicate, output_category,
59185         output_combclass, output_bidi_category, output_decimal_digit_test,
59186         output_decimal_digit, output_digit_test, output_digit,
59187         output_numeric_test, output_numeric, output_mirror, output_scripts,
59188         output_scripts_byname, output_blocks, output_ident_category): Fix
59189         comment header.
59190         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
59191         get_wbp.
59192         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
59193         items.
59194         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
59195         Changes_When_Lowercased, Changes_When_Uppercased,
59196         Changes_When_Titlecased, Changes_When_Casefolded,
59197         Changes_When_Casemapped.
59198         (is_property_alphabetic, is_property_default_ignorable_code_point):
59199         Update for Unicode 5.2.0.
59200         (is_property_cased, is_property_case_ignorable,
59201         is_property_changes_when_lowercased,
59202         is_property_changes_when_uppercased,
59203         is_property_changes_when_titlecased,
59204         is_property_changes_when_casefolded,
59205         is_property_changes_when_casemapped): New functions.
59206         (output_properties): Output also the properties cased, case_ignorable,
59207         changes_when_lowercased, changes_when_uppercased,
59208         changes_when_titlecased, changes_when_casefolded,
59209         changes_when_casemapped.
59210         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
59211         Unicode TR#11 revision 17 -> 19.
59212         (LBP_CP): New enumeration value.
59213         (LBP_*): Adjust values accordingly.
59214         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59215         TR#14 revision 22 -> 24.
59216         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
59217         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
59218         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59219         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
59220         is_WBP_MIDLETTER.
59221         (output_composition_tables): Allow for 24 bits instead of 16 bits in
59222         the code1 and code2 of each composition rule.
59223         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
59224         * lib/unicase/ignorable.h: Likewise.
59225         * lib/unicase/tocasefold.h: Likewise.
59226         * lib/unicase/tolower.h: Likewise.
59227         * lib/unicase/totitle.h: Likewise.
59228         * lib/unicase/toupper.h: Likewise.
59229         * lib/unictype/bidi_of.h: Likewise.
59230         * lib/unictype/blocks.h: Likewise.
59231         * lib/unictype/categ_C.h: Likewise.
59232         * lib/unictype/categ_Cf.h: Likewise.
59233         * lib/unictype/categ_Cn.h: Likewise.
59234         * lib/unictype/categ_L.h: Likewise.
59235         * lib/unictype/categ_Ll.h: Likewise.
59236         * lib/unictype/categ_Lm.h: Likewise.
59237         * lib/unictype/categ_Lo.h: Likewise.
59238         * lib/unictype/categ_Lu.h: Likewise.
59239         * lib/unictype/categ_M.h: Likewise.
59240         * lib/unictype/categ_Mc.h: Likewise.
59241         * lib/unictype/categ_Mn.h: Likewise.
59242         * lib/unictype/categ_N.h: Likewise.
59243         * lib/unictype/categ_Nd.h: Likewise.
59244         * lib/unictype/categ_Nl.h: Likewise.
59245         * lib/unictype/categ_No.h: Likewise.
59246         * lib/unictype/categ_P.h: Likewise.
59247         * lib/unictype/categ_Pd.h: Likewise.
59248         * lib/unictype/categ_Po.h: Likewise.
59249         * lib/unictype/categ_S.h: Likewise.
59250         * lib/unictype/categ_Sc.h: Likewise.
59251         * lib/unictype/categ_So.h: Likewise.
59252         * lib/unictype/categ_of.h: Likewise.
59253         * lib/unictype/combining.h: Likewise.
59254         * lib/unictype/ctype_alnum.h: Likewise.
59255         * lib/unictype/ctype_alpha.h: Likewise.
59256         * lib/unictype/ctype_graph.h: Likewise.
59257         * lib/unictype/ctype_lower.h: Likewise.
59258         * lib/unictype/ctype_print.h: Likewise.
59259         * lib/unictype/ctype_punct.h: Likewise.
59260         * lib/unictype/ctype_upper.h: Likewise.
59261         * lib/unictype/decdigit.h: Likewise.
59262         * lib/unictype/digit.h: Likewise.
59263         * lib/unictype/numeric.h: Likewise.
59264         * lib/unictype/pr_alphabetic.h: Likewise.
59265         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59266         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59267         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59268         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59269         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59270         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59271         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59272         * lib/unictype/pr_combining.h: Likewise.
59273         * lib/unictype/pr_composite.h: Likewise.
59274         * lib/unictype/pr_currency_symbol.h: Likewise.
59275         * lib/unictype/pr_dash.h: Likewise.
59276         * lib/unictype/pr_decimal_digit.h: Likewise.
59277         * lib/unictype/pr_deprecated.h: Likewise.
59278         * lib/unictype/pr_diacritic.h: Likewise.
59279         * lib/unictype/pr_extender.h: Likewise.
59280         * lib/unictype/pr_grapheme_base.h: Likewise.
59281         * lib/unictype/pr_grapheme_extend.h: Likewise.
59282         * lib/unictype/pr_grapheme_link.h: Likewise.
59283         * lib/unictype/pr_id_continue.h: Likewise.
59284         * lib/unictype/pr_id_start.h: Likewise.
59285         * lib/unictype/pr_ideographic.h: Likewise.
59286         * lib/unictype/pr_ignorable_control.h: Likewise.
59287         * lib/unictype/pr_logical_order_exception.h: Likewise.
59288         * lib/unictype/pr_lowercase.h: Likewise.
59289         * lib/unictype/pr_numeric.h: Likewise.
59290         * lib/unictype/pr_other_alphabetic.h: Likewise.
59291         * lib/unictype/pr_punctuation.h: Likewise.
59292         * lib/unictype/pr_sentence_terminal.h: Likewise.
59293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59294         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59295         * lib/unictype/pr_unified_ideograph.h: Likewise.
59296         * lib/unictype/pr_uppercase.h: Likewise.
59297         * lib/unictype/pr_xid_continue.h: Likewise.
59298         * lib/unictype/pr_xid_start.h: Likewise.
59299         * lib/unictype/pr_zero_width.h: Likewise.
59300         * lib/unictype/scripts.h: Likewise.
59301         * lib/unictype/scripts_byname.gperf: Likewise.
59302         * lib/unictype/sy_java_ident.h: Likewise.
59303         * lib/unigbrk/gbrkprop.h: Likewise.
59304         * lib/unilbrk/lbrkprop1.h: Likewise.
59305         * lib/unilbrk/lbrkprop2.h: Likewise.
59306         * lib/unilbrk/lbrktables.h: Likewise.
59307         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
59308         LBP_CP. Implement rule LB30.
59309         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
59310         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
59311         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
59312         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
59313         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
59314         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
59315         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
59316         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
59317         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
59318         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
59319         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
59320         bits instead of 16 bits in the code1 and code2 of each composition
59321         rule.
59322         (uc_composition): Update for Unicode 5.2.0.
59323         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
59324         * lib/uninorm/decomposition-table2.h: Likewise.
59325         * lib/uniwbrk/wbrkprop.h: Likewise.
59326         * tests/unicase/test-cased.c: Likewise.
59327         * tests/unicase/test-ignorable.c: Likewise.
59328         * tests/unicase/test-uc_tolower.c: Likewise.
59329         * tests/unicase/test-uc_totitle.c: Likewise.
59330         * tests/unicase/test-uc_toupper.c: Likewise.
59331         * tests/unictype/test-categ_C.c: Likewise.
59332         * tests/unictype/test-categ_Cf.c: Likewise.
59333         * tests/unictype/test-categ_Cn.c: Likewise.
59334         * tests/unictype/test-categ_L.c: Likewise.
59335         * tests/unictype/test-categ_Ll.c: Likewise.
59336         * tests/unictype/test-categ_Lm.c: Likewise.
59337         * tests/unictype/test-categ_Lo.c: Likewise.
59338         * tests/unictype/test-categ_Lu.c: Likewise.
59339         * tests/unictype/test-categ_M.c: Likewise.
59340         * tests/unictype/test-categ_Mc.c: Likewise.
59341         * tests/unictype/test-categ_Mn.c: Likewise.
59342         * tests/unictype/test-categ_N.c: Likewise.
59343         * tests/unictype/test-categ_Nd.c: Likewise.
59344         * tests/unictype/test-categ_Nl.c: Likewise.
59345         * tests/unictype/test-categ_No.c: Likewise.
59346         * tests/unictype/test-categ_P.c: Likewise.
59347         * tests/unictype/test-categ_Pd.c: Likewise.
59348         * tests/unictype/test-categ_Po.c: Likewise.
59349         * tests/unictype/test-categ_S.c: Likewise.
59350         * tests/unictype/test-categ_Sc.c: Likewise.
59351         * tests/unictype/test-categ_So.c: Likewise.
59352         * tests/unictype/test-ctype_alnum.c: Likewise.
59353         * tests/unictype/test-ctype_alpha.c: Likewise.
59354         * tests/unictype/test-ctype_graph.c: Likewise.
59355         * tests/unictype/test-ctype_lower.c: Likewise.
59356         * tests/unictype/test-ctype_print.c: Likewise.
59357         * tests/unictype/test-ctype_punct.c: Likewise.
59358         * tests/unictype/test-ctype_upper.c: Likewise.
59359         * tests/unictype/test-decdigit.h: Likewise.
59360         * tests/unictype/test-digit.h: Likewise.
59361         * tests/unictype/test-numeric.h: Likewise.
59362         * tests/unictype/test-pr_alphabetic.c: Likewise.
59363         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59364         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59365         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59366         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59367         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59369         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59370         * tests/unictype/test-pr_combining.c: Likewise.
59371         * tests/unictype/test-pr_composite.c: Likewise.
59372         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59373         * tests/unictype/test-pr_dash.c: Likewise.
59374         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59375         * tests/unictype/test-pr_deprecated.c: Likewise.
59376         * tests/unictype/test-pr_diacritic.c: Likewise.
59377         * tests/unictype/test-pr_extender.c: Likewise.
59378         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59379         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59380         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59381         * tests/unictype/test-pr_id_continue.c: Likewise.
59382         * tests/unictype/test-pr_id_start.c: Likewise.
59383         * tests/unictype/test-pr_ideographic.c: Likewise.
59384         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59385         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59386         * tests/unictype/test-pr_lowercase.c: Likewise.
59387         * tests/unictype/test-pr_numeric.c: Likewise.
59388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59389         * tests/unictype/test-pr_punctuation.c: Likewise.
59390         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59391         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59392         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59393         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59394         * tests/unictype/test-pr_uppercase.c: Likewise.
59395         * tests/unictype/test-pr_xid_continue.c: Likewise.
59396         * tests/unictype/test-pr_xid_start.c: Likewise.
59397         * tests/unictype/test-pr_zero_width.c: Likewise.
59398         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59399         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
59400         changed behaviour: line breaking is now disallowed between a letter
59401         or '=' and '('.
59402         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59403         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59404         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59405         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
59406         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59407         lib/uniwidth/width.c.
59408         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
59409         without comments, but with the original copyright notice.
59410         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59411         changes.
59412         * lib/unictype/categ_Cc.h: Likewise.
59413         * lib/unictype/categ_Co.h: Likewise.
59414         * lib/unictype/categ_Cs.h: Likewise.
59415         * lib/unictype/categ_Lt.h: Likewise.
59416         * lib/unictype/categ_Me.h: Likewise.
59417         * lib/unictype/categ_Pc.h: Likewise.
59418         * lib/unictype/categ_Pe.h: Likewise.
59419         * lib/unictype/categ_Pf.h: Likewise.
59420         * lib/unictype/categ_Pi.h: Likewise.
59421         * lib/unictype/categ_Ps.h: Likewise.
59422         * lib/unictype/categ_Sk.h: Likewise.
59423         * lib/unictype/categ_Sm.h: Likewise.
59424         * lib/unictype/categ_Z.h: Likewise.
59425         * lib/unictype/categ_Zl.h: Likewise.
59426         * lib/unictype/categ_Zp.h: Likewise.
59427         * lib/unictype/categ_Zs.h: Likewise.
59428         * lib/unictype/ctype_blank.h: Likewise.
59429         * lib/unictype/ctype_cntrl.h: Likewise.
59430         * lib/unictype/ctype_digit.h: Likewise.
59431         * lib/unictype/ctype_space.h: Likewise.
59432         * lib/unictype/ctype_xdigit.h: Likewise.
59433         * lib/unictype/mirror.h: Likewise.
59434         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59435         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59436         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59437         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59438         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59439         * lib/unictype/pr_bidi_control.h: Likewise.
59440         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59441         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59442         * lib/unictype/pr_bidi_pdf.h: Likewise.
59443         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59444         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59445         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59446         * lib/unictype/pr_format_control.h: Likewise.
59447         * lib/unictype/pr_hex_digit.h: Likewise.
59448         * lib/unictype/pr_hyphen.h: Likewise.
59449         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59450         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59451         * lib/unictype/pr_iso_control.h: Likewise.
59452         * lib/unictype/pr_join_control.h: Likewise.
59453         * lib/unictype/pr_left_of_pair.h: Likewise.
59454         * lib/unictype/pr_line_separator.h: Likewise.
59455         * lib/unictype/pr_math.h: Likewise.
59456         * lib/unictype/pr_non_break.h: Likewise.
59457         * lib/unictype/pr_not_a_character.h: Likewise.
59458         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59459         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59460         * lib/unictype/pr_other_id_continue.h: Likewise.
59461         * lib/unictype/pr_other_id_start.h: Likewise.
59462         * lib/unictype/pr_other_lowercase.h: Likewise.
59463         * lib/unictype/pr_other_math.h: Likewise.
59464         * lib/unictype/pr_other_uppercase.h: Likewise.
59465         * lib/unictype/pr_paired_punctuation.h: Likewise.
59466         * lib/unictype/pr_paragraph_separator.h: Likewise.
59467         * lib/unictype/pr_pattern_syntax.h: Likewise.
59468         * lib/unictype/pr_pattern_white_space.h: Likewise.
59469         * lib/unictype/pr_private_use.h: Likewise.
59470         * lib/unictype/pr_quotation_mark.h: Likewise.
59471         * lib/unictype/pr_radical.h: Likewise.
59472         * lib/unictype/pr_soft_dotted.h: Likewise.
59473         * lib/unictype/pr_space.h: Likewise.
59474         * lib/unictype/pr_titlecase.h: Likewise.
59475         * lib/unictype/pr_variation_selector.h: Likewise.
59476         * lib/unictype/pr_white_space.h: Likewise.
59477         * lib/unictype/sy_c_ident.h: Likewise.
59478         * lib/unictype/sy_c_whitespace.h: Likewise.
59479         * lib/unictype/sy_java_whitespace.h: Likewise.
59480         * modules/uni*/*: Bump version number of expected libunistring version.
59481         Reported by Simon Josefsson.
59483 2011-01-09  Karl Heuer  <kwzh@gnu.org>
59485         useless-if-before-free: fix typo in --help and make the internal,
59486         automatic version date update process work once again.
59487         --help output contained a NUL character instead of the
59488         backslash-zero that was intended.  Also, the "must lie within
59489         the first 8 lines" line is on line 9, and hence not getting
59490         automatically updated.
59491         * build-aux/useless-if-before-free: Fix the former by adding a
59492         backslash, and the latter by condensing the three lines of what-it-does
59493         to a single line, leaving one line of slack for the future.
59495 2011-01-09  Bruno Haible  <bruno@clisp.org>
59497         uniwidth/width: Fix width of U+1D173..U+1D17A.
59498         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
59499         symbolic_width, output_width_property_test): New functions.
59500         (main): Invoke output_nonspacing_property, output_width_property_test.
59501         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
59502         U+1D173..U+1D17A.
59503         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
59504         1.
59505         * modules/uniwidth/*: Bump version number of expected libunistring
59506         version.
59507         * modules/unilbrk/*: Likewise.
59509 2011-01-08  Bruno Haible  <bruno@clisp.org>
59511         uninorm tests: Preserve copyright of Unicode data file.
59512         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
59513         Mention modifications.
59515 2011-01-08  Bruno Haible  <bruno@clisp.org>
59517         gen-uni-tables: Prepare for Unicode 5.2.0.
59518         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
59519         (debug_output_lbp, output_lbp): Update.
59521 2011-01-08  Bruno Haible  <bruno@clisp.org>
59523         unilbrk: Clarify gen-uni-tables.c code.
59524         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
59525         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
59526         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
59528 2011-01-07  Bruno Haible  <bruno@clisp.org>
59530         strtod: Restore errno when successfully parsing Infinity or NaN.
59531         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
59532         restore the original errno.
59534 2011-01-07  Bruno Haible  <bruno@clisp.org>
59536         remove test: Avoid failure on HP-UX 11.
59537         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
59539 2011-01-07  Bruno Haible  <bruno@clisp.org>
59541         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
59542         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
59543         error code.
59545 2011-01-07  Pádraig Brady  <P@draigBrady.com>
59547         ignore-value: fixup comments, and add Eric Blake
59548         as an author since he rewrote the macros.
59549         * lib/ignore-value.h (ignore_value):  State that
59550         we now support aggregates.  Also specify exactly
59551         when the GCC warn_unused_result feature was added.
59553 2011-01-06  Eric Blake  <eblake@redhat.com>
59555         ignore-value: support aggregate types
59556         * lib/ignore-value.h (ignore_value): Provide separate gcc
59557         definition.
59558         * modules/ignore-value-tests: New test module.
59559         * tests/test-ignore-value.c: New test.
59561         maint.mk: improve sc_prohibit_strcmp regex
59562         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
59563         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
59564         definition of STRNEQ.
59566         signal: work around Haiku issue with SIGBUS
59567         * lib/siglist.h: Add comment.
59568         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
59569         strsignal's favoring of SIGSEGV.
59570         * tests/test-signal.c (main): Avoid test failure.
59571         * doc/posix-headers/signal.texi (signal.h): Document the issue.
59572         Reported by Scott McCreary.
59574         maint.mk: add pre-release check to ensure submodule commits are public
59575         * top/maint.mk (public-submodule-commit): New rule.
59576         (submodule-checks): New variable.
59577         (alpha beta stable): Depend on the variable.
59579 2011-01-05  Pádraig Brady  <P@draigBrady.com>
59580         and Jim Meyering  <meyering@redhat.com>
59582         ignore-value: make ignore_value more generic; deprecate ignore_ptr
59583         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
59584         (ATTRIBUTE_DEPRECATED): Define.
59585         (_ignore_case): New function.
59586         (ignore_value): New macro, to replace the old function.
59587         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
59588         * modules/ignore-value (Depends-on): Add stdint.
59590 2011-01-04  Eric Blake  <eblake@redhat.com>
59592         doc: regenerate INSTALL
59593         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
59594         @firstparagraphindent support, now that autoconf dropped it.
59595         (INSTALL_PRELUDE): Reinstate old macro.
59596         * doc/install.texi: Resync from autoconf.
59597         * doc/INSTALL: Reflect recent autoconf update.
59598         * doc/INSTALL.ISO: Likewise.
59599         * doc/INSTALL.UTF-8: Likewise.
59600         Reported by Karl Berry.
59602 2011-01-04  Bruce Korb  <address@hidden>
59604         git-version-gen: avoid a sub-shell
59605         * build-aux/git-version-gen: Redirect stderr in `...` via
59606         "exec 2>...", rather than via an added sub-shell.
59608 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
59610         git-version-gen: use (...) rather than sh -c '...'
59611         * build-aux/git-version-gen: Rather than hard-coding a shell's name
59612         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
59614 2011-01-03  Jim Meyering  <meyering@redhat.com>
59616         git-version-gen: convert leading TABs to spaces
59617         * build-aux/git-version-gen: Expand leading TABs.
59619         git-version-gen: handle failed "git rev-list"
59620         * build-aux/git-version-gen: Rather than leaking a "fatal" error
59621         from git and proceeding as if it had succeeded but printed no SHA1
59622         checksums, suppress the diagnostic and handle the failure.
59623         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
59625         git-version-gen: include command name in one more diagnostic
59626         * build-aux/git-version-gen: When the required .tarball-version file
59627         was missing or unreadable, you might see the diagnostic from "cat",
59628         but no trace of the name of the invoking script.  Now, you still see
59629         the diagnostic from cat, but also get one from "git-version-gen: ".
59630         Inspired by a patch from Bruce Korb.
59632         update-copyright: adjust test to match changed code
59633         * tests/test-update-copyright.sh: Change test's expected output
59634         to match new actual output.
59636 2011-01-02  Bruno Haible  <bruno@clisp.org>
59638         getlogin_r: Avoid test failure on HP-UX 11.
59639         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
59640         ERANGE when the second argument is zero.
59641         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
59642         portability problem.
59644 2011-01-02  Bruce Korb  <bkorb@gnu.org>
59646         * build-aux/update-copyright: doc Simon's changes
59648 2011-01-02  Simon Josefsson  <simon@josefsson.org>
59650         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
59651         environment variable.
59653 2011-01-02  Bruno Haible  <bruno@clisp.org>
59655         unigbrk: Avoid gcc warnings.
59656         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
59657         unused variable.
59658         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
59659         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
59660         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
59661         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
59662         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
59663         Change type of first argument to 'const char *'.
59664         (main): Remove unused variable.
59665         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
59666         type of first argument to 'const char *'.
59667         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
59668         Likewise.
59669         (main): Change type of variable 's'.
59670         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
59671         to 'int'.
59673 2011-01-02  Bruno Haible  <bruno@clisp.org>
59675         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
59676         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
59677         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
59678         bug.
59679         * lib/pwrite.c: Undo 2010-12-31 patch.
59680         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
59682 2011-01-02  Bruno Haible  <bruno@clisp.org>
59684         pread: Fix test whether it works.
59685         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
59687 2011-01-02  Bruno Haible  <bruno@clisp.org>
59689         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
59690         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
59691         ends in "6". Don't require a specific month name. Try also the locale
59692         names found on HP-UX 11 and Solaris 7.
59694 2011-01-02  Bruno Haible  <bruno@clisp.org>
59696         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
59697         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
59698         C linkage.
59699         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
59701 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
59703         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
59704         for consistency, since the "cluster" term is not used elsewhere.
59705         * lib/unigbrk.in.h: Update name.
59706         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
59707         * lib/unigbrk/u16-grapheme-next.c: Update name.
59708         * lib/unigbrk/u16-grapheme-prev.c: Update name.
59709         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
59710         * lib/unigbrk/u32-grapheme-next.c: Update name.
59711         * lib/unigbrk/u32-grapheme-prev.c: Update name.
59712         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
59713         * lib/unigbrk/u8-grapheme-next.c: Update name.
59714         * lib/unigbrk/u8-grapheme-prev.c: Update name.
59715         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
59716         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
59717         Suggested by Bruno Haible.
59719 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
59721         Remove module 'u8-grapheme-len' as too redundant with
59722         'u8-grapheme-next'.
59723         * modules/unigbrk/u8-grapheme-len: Delete file.
59724         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
59725         * lib/unigbrk.in.h: Remove prototype for deleted function.
59726         * lib/unigbrk/u8-grapheme-len.c: Delete file.
59727         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
59729         Remove module 'u16-grapheme-len' as too redundant with
59730         'u16-grapheme-next'.
59731         * modules/unigbrk/u16-grapheme-len: Delete file.
59732         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
59733         * lib/unigbrk.in.h: Remove prototype for deleted function.
59734         * lib/unigbrk/u16-grapheme-len.c: Delete file.
59735         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
59737         Remove module 'u32-grapheme-len' as too redundant with
59738         'u32-grapheme-next'.
59739         * modules/unigbrk/u32-grapheme-len: Delete file.
59740         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
59741         * lib/unigbrk.in.h: Remove prototype for deleted function.
59742         * lib/unigbrk/u32-grapheme-len.c: Delete file.
59743         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
59745         Suggested by Bruno Haible.
59747 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
59749         * unigbrk.in.h: Fix typo: "ben" => "been".
59750         Reported by Bruno Haible.
59752 2011-01-01  Jim Meyering  <meyering@redhat.com>
59754         maint: update almost all copyright ranges to include 2011
59755         Run the new "make update-copyright" rule.
59757 2011-01-01  Jim Meyering  <meyering@redhat.com>
59759         maint: update-copyright: exempt doc/INSTALL*
59760         * Makefile (update-copyright): Also exclude doc/INSTALL*,
59761         since they are generated.  Suggested by Bruno Haible.
59763 2011-01-01  Jim Meyering  <meyering@redhat.com>
59765         maint: refine the update-copyright rule
59766         * Makefile (update-copyright): Also exclude any file that includes
59767         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
59768         code that merely generates the comment.
59770 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
59772         New module 'u8-grapheme-len'.
59773         * modules/unigbrk/u8-grapheme-len: New file.
59774         * modules/unigbrk/u8-grapheme-len-tests: New file.
59775         * lib/unigbrk.in.h: Add prototype for new function.
59776         * lib/unigbrk/u8-grapheme-len.c: New file.
59777         * tests/unigbrk/test-u8-grapheme-len.c: New file.
59779         New module 'u16-grapheme-len'.
59780         * modules/unigbrk/u16-grapheme-len: New file.
59781         * modules/unigbrk/u16-grapheme-len-tests: New file.
59782         * lib/unigbrk.in.h: Add prototype for new function.
59783         * lib/unigbrk/u16-grapheme-len.c: New file.
59784         * tests/unigbrk/test-u16-grapheme-len.c: New file.
59786         New module 'u32-grapheme-len'.
59787         * modules/unigbrk/u32-grapheme-len: New file.
59788         * modules/unigbrk/u32-grapheme-len-tests: New file.
59789         * lib/unigbrk.in.h: Add prototype for new function.
59790         * lib/unigbrk/u32-grapheme-len.c: New file.
59791         * tests/unigbrk/test-u32-grapheme-len.c: New file.
59793         New module 'u8-grapheme-next'.
59794         * modules/unigbrk/u8-grapheme-next: New file.
59795         * modules/unigbrk/u8-grapheme-next-tests: New file.
59796         * lib/unigbrk.in.h: Add prototype for new function.
59797         * lib/unigbrk/u8-grapheme-next.c: New file.
59798         * tests/unigbrk/test-u8-grapheme-next.c: New file.
59800         New module 'u16-grapheme-next'.
59801         * modules/unigbrk/u16-grapheme-next: New file.
59802         * modules/unigbrk/u16-grapheme-next-tests: New file.
59803         * lib/unigbrk.in.h: Add prototype for new function.
59804         * lib/unigbrk/u16-grapheme-next.c: New file.
59805         * tests/unigbrk/test-u16-grapheme-next.c: New file.
59807         New module 'u32-grapheme-next'.
59808         * modules/unigbrk/u32-grapheme-next: New file.
59809         * modules/unigbrk/u32-grapheme-next-tests: New file.
59810         * lib/unigbrk.in.h: Add prototype for new function.
59811         * lib/unigbrk/u32-grapheme-next.c: New file.
59812         * tests/unigbrk/test-u32-grapheme-next.c: New file.
59814         New module 'u8-grapheme-prev'.
59815         * modules/unigbrk/u8-grapheme-prev: New file.
59816         * modules/unigbrk/u8-grapheme-prev-tests: New file.
59817         * lib/unigbrk.in.h: Add prototype for new function.
59818         * lib/unigbrk/u8-grapheme-prev.c: New file.
59819         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
59821         New module 'u16-grapheme-prev'.
59822         * modules/unigbrk/u16-grapheme-prev: New file.
59823         * modules/unigbrk/u16-grapheme-prev-tests: New file.
59824         * lib/unigbrk.in.h: Add prototype for new function.
59825         * lib/unigbrk/u16-grapheme-prev.c: New file.
59826         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
59828         New module 'u32-grapheme-prev'.
59829         * modules/unigbrk/u32-grapheme-prev: New file.
59830         * modules/unigbrk/u32-grapheme-prev-tests: New file.
59831         * lib/unigbrk.in.h: Add prototype for new function.
59832         * lib/unigbrk/u32-grapheme-prev.c: New file.
59833         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
59835         New module 'u8-grapheme-breaks'.
59836         * modules/unigbrk/u8-grapheme-breaks: New file.
59837         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
59838         * lib/unigbrk.in.h: Add prototype for new function.
59839         * lib/unigbrk/u8-grapheme-breaks.c: New file.
59840         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
59842         New module 'u16-grapheme-breaks'.
59843         * modules/unigbrk/u16-grapheme-breaks: New file.
59844         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
59845         * lib/unigbrk.in.h: Add prototype for new function.
59846         * lib/unigbrk/u16-grapheme-breaks.c: New file.
59847         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
59849         New module 'u32-grapheme-breaks'.
59850         * modules/unigbrk/u32-grapheme-breaks: New file.
59851         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
59852         * lib/unigbrk.in.h: Add prototype for new function.
59853         * lib/unigbrk/u32-grapheme-breaks.c: New file.
59854         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
59856         New module 'ulc-grapheme-breaks'.
59857         * modules/unigbrk/ulc-grapheme-breaks: New file.
59858         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
59859         * m4/locale-ar.m4: New file.
59860         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
59861         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
59862         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
59864 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
59866         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
59867         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
59868         modified how this file was generated before I initially submitted
59869         the module, but failed to regenerate it.  This meant that several
59870         of the level2 entries were wrong.
59871         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
59872         Remove the division-by-2 that is folded into the table now that
59873         gbrkprop.h has been regenerated properly.  Now -1 entries are
59874         handled correctly.
59876         New module 'unigbrk/uc-gbrk-prop-tests'.
59877         * modules/unigbrk/uc-gbrk-prop-tests: New file.
59878         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
59879         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
59880         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
59882 2011-01-01  Bruno Haible  <bruno@clisp.org>
59884         Avoid use of hexadecimal escapes.
59885         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
59886         instead of hexadecimal escapes.
59888 2011-01-01  Jim Meyering  <meyering@redhat.com>
59890         maint: new rule to update copyright year ranges
59891         * Makefile (update-copyright): New rule.
59893         maint: indent with TABs in Makefile
59894         * Makefile: Expand leading sequences of spaces to TABs
59896         version-etc: update the copyright year it reports
59897         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
59899 2010-12-31  Bruno Haible  <bruno@clisp.org>
59901         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
59902         * lib/isfinite.c (zerof, zerod, zerol): New variables.
59903         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
59904         zero.
59906 2010-12-31  Bruno Haible  <bruno@clisp.org>
59908         pwrite: Work around HP-UX 11.11 bug.
59909         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
59910         works and set REPLACE_PWRITE if not.
59911         * lib/pwrite.c (pwrite): Add an implementation that uses the system
59912         function.
59913         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
59915 2010-12-31  Bruno Haible  <bruno@clisp.org>
59917         pread: Work around HP-UX 11 bugs.
59918         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
59919         and set REPLACE_PREAD if not.
59920         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
59922 2010-12-31  Eric Blake  <eblake@redhat.com>
59924         nl_langinfo: fix YESEXPR on Irix 6.5
59925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
59926         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
59927         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
59928         it.
59930 2010-12-31  Bruno Haible  <bruno@clisp.org>
59932         iconv: Document HP-UX 11 bug.
59933         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
59935 2010-12-31  Bruno Haible  <bruno@clisp.org>
59937         ldexpl: Fix link error on HP-UX 11.
59938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
59939         LDEXPL_LIBM, using $ISNANL_LIBM.
59941 2010-12-31  Eric Blake  <eblake@redhat.com>
59943         ftello: avoid compilation failure with SunStudio c89
59944         * lib/ftello.c (ftello): Use lseek, not llseek.
59946         tests: avoid failing coreutils tests on cygwin
59947         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
59948         (create_exe_shims_): Return 0 when skipping.
59950 2010-12-31  Bruno Haible  <bruno@clisp.org>
59952         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
59953         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
59955 2010-12-31  Bruno Haible  <bruno@clisp.org>
59957         waitpid: Fix link error in C++ mode.
59958         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
59960 2010-12-31  Bruno Haible  <bruno@clisp.org>
59962         isnan: Use GCC built-ins when possible.
59963         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
59964         __builtin_isnan.
59965         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
59966         (isnan): Define using GCC built-ins for GCC >= 4.0.
59968 2010-12-31  Bruno Haible  <bruno@clisp.org>
59970         isnand: Fix mistake.
59971         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
59972         __builtin_isnand.
59974 2010-12-31  Bruno Haible  <bruno@clisp.org>
59976         open: Avoid C++ error on HP-UX 11.
59977         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
59979 2010-12-31  Bruno Haible  <bruno@clisp.org>
59981         time_r: Add missing declarations on HP-UX 11.
59982         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
59983         instead of HAVE_LOCALTIME_R.
59984         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
59985         HAVE_LOCALTIME_R always.
59986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
59987         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
59988         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
59989         HAVE_LOCALTIME_R.
59990         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
59991         * doc/posix-functions/localtime_r.texi: Likewise.
59993 2010-12-29  Eric Blake  <eblake@redhat.com>
59995         mountlist: tweak previous commit
59996         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
59997         Reported by Paul Eggert.
59999         mountlist: fix local drive detection on cygwin
60000         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
60001         that works for cygwin.
60003 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60005         ftoastr, snprintf: ftoastr + snprintf module
60006         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
60007         since the snprintf module now should be good enough here.
60008         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
60009         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
60010         and gl_MODULE_INDICATOR([snprintf]), but the former enables
60011         GNULIB_SNPRINTF only for the test directory, and the latter
60012         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
60013         seems to suffice by itself.
60015 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60017         alloca: one step towards thread-safety
60018         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
60019         need for a static variable.  All callers changed.  This does not
60020         make the alloca replacement thread-safe, but it's one step.
60022         tests: minor indenting change
60023         * tests/init.sh: Sync from coreutils housekeeping patch
60024         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
60025         to keep lines within 80 columns.
60027 2010-12-28  Jim Meyering  <meyering@redhat.com>
60029         regex: don't infloop on persistent failing calloc
60030         * lib/regexec.c (build_trtable): Return failure indication upon
60031         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
60032         In glibc, this was fixed for version 2.13:
60033         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
60035 2010-12-28  Bruno Haible  <bruno@clisp.org>
60036             Paul Eggert <eggert@cs.ucla.edu>
60038         linkat: Make implementation robust against system behaviour variations.
60039         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
60040         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
60041         way, and to -2 if it needs a generic runtime test.
60042         * lib/linkat.c (solaris_optimized_link_immediate,
60043         solaris_optimized_link_follow): New functions.
60044         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
60045         (check_same_link): Use it.
60047 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
60049         New module 'unigbrk/base'.
60050         * modules/unigbrk/base: New file.
60051         * lib/unigbrk.in.h: New file.
60053         New module 'unigbrk/uc-gbrk-prop'.
60054         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
60055         * modules/unigbrk/uc-gbrk-prop: New file.
60056         * lib/unigbrk/gbrkprop.h: New file.
60057         * lib/unigbrk/uc-gbrk-prop.c: New file.
60059         New module 'unigbrk/uc-is-grapheme-break'.
60060         * modules/unigbrk/uc-is-grapheme-break: New file.
60061         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
60062         * lib/unigbrk/uc-is-grapheme-break.c: New file.
60063         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
60064         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
60065         * tests/unigbrk/GraphemeBreakTest.txt: New file.
60067         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
60069 2010-12-27  Bruno Haible  <bruno@clisp.org>
60071         linkat test: Avoid failure on Solaris 11 2010-11.
60072         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
60074 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60076         utimens: work around glibc rounding bug on more platforms
60077         * lib/utimens.c (fdutimens): Work around rounding bug even if
60078         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
60079         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
60081 2010-12-27  Bruno Haible  <bruno@clisp.org>
60083         select tests: Improve comments.
60084         * tests/test-select.c (do_select): Add comments.
60086 2010-12-27  Bruno Haible  <bruno@clisp.org>
60088         select tests: Safer way of handling timeout.
60089         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
60090         at every invocation.
60092 2010-12-27  Bruno Haible  <bruno@clisp.org>
60094         select tests: Use 'bool' where appropriate.
60095         * tests/test-select.c (connect_to_socket): Change argument type to
60096         'bool'.
60098 2010-12-27  Bruno Haible  <bruno@clisp.org>
60100         select tests: Use existing modules.
60101         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
60102         (configure.ac): Don't test for unistd.h.
60103         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
60104         declared in <unistd.h>.
60106 2010-12-27  Bruno Haible  <bruno@clisp.org>
60108         mbrtowc: Work around a Solaris 7 bug.
60109         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
60110         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
60111         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
60112         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
60113         MBRTOWC_NULL_ARG1_BUG.
60114         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
60115         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
60116         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
60117         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
60119 2010-12-27  Jim Meyering  <meyering@redhat.com>
60121         read-file.c: tweak syntax
60122         * lib/read-file.c (fread_file): Remove space after "*" in function
60123         definitions.
60125 2010-12-27  Bruno Haible  <bruno@clisp.org>
60127         times test: Avoid gcc warnings on OSF/1.
60128         * tests/test-times.c (main): Cast printf arguments from clock_t to
60129         'long int'.
60131 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60133         utimens: work around glibc rounding bug on older Linux kernels
60134         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
60135         on Linux with a glibc whose utimes might not work, then work
60136         around a longstanding glibc bug involving rounding rather than
60137         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
60138         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60140 2010-12-26  Bruno Haible  <bruno@clisp.org>
60142         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
60143         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
60144         _GL_CXXALIAS_SYS.
60145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60147 2010-12-26  Bruno Haible  <bruno@clisp.org>
60149         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
60150         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
60151         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60152         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
60153         looking for the declaration.
60154         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60155         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
60156         problem.
60157         * doc/posix-functions/inet_pton.texi: Likewise.
60159 2010-12-26  Bruno Haible  <bruno@clisp.org>
60161         arpa_inet: Use the common idioms with C++ support.
60162         * lib/arpa_inet.in.h: Include c++defs.h.
60163         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
60164         support.
60165         * modules/arpa_inet (Depends-on): Add c++defs.
60166         (Makefile.am): Substitute the contents of c++defs.h.
60167         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
60168         * modules/arpa_inet-c++-tests: New file.
60169         * tests/test-arpa_inet-c++.cc: New file.
60171 2010-12-25  Bruno Haible  <bruno@clisp.org>
60173         Fix more C++ link errors on Solaris 8.
60174         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
60175         $(LIB_EACCESS).
60176         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
60177         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
60178         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
60179         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
60180         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
60182 2010-12-25  Bruno Haible  <bruno@clisp.org>
60184         printf-posix: Fix link error when a non-GCC compiler is used.
60185         * lib/stdio.in.h (printf): When not using GCC, override printf
60186         correctly.
60187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60189 2010-12-25  Bruno Haible  <bruno@clisp.org>
60191         strerror_r-posix: Update doc.
60192         * doc/posix-functions/strerror_r.texi: Update doc about the return
60193         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
60195 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60197         utimens: simplify the logic of the previous change
60198         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
60199         This should not affect whether the test succeeds or fails.
60201         utimens: configure better on hosts with NFS clock skew
60202         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
60203         uses the clock of the local host.  It might use the clock of the
60204         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
60205         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60207 2010-12-25  Bruno Haible  <bruno@clisp.org>
60209         ptsname test: Avoid failure on Solaris.
60210         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
60211         open a pseudo-terminal; don't use BSD-style ptys.
60212         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
60214 2010-12-25  Bruno Haible  <bruno@clisp.org>
60216         ptsname: Avoid ERANGE failure on some systems.
60217         * lib/ptsname.c (buffer): Increase size.
60219 2010-12-25  Bruno Haible  <bruno@clisp.org>
60221         rename, renameat: Avoid test failures at NFS mounted locations.
60222         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
60223         so that subsequent mkdir calls succeed.
60225 2010-12-25  Bruno Haible  <bruno@clisp.org>
60227         iswblank: Fix C++ link error on Solaris 8.
60228         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
60229         _GL_FUNCDECL_SYS.
60231 2010-12-25  Bruno Haible  <bruno@clisp.org>
60233         unistd: Fix C++ link error on Solaris 8.
60234         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
60236 2010-12-25  Bruno Haible  <bruno@clisp.org>
60238         readlink doc: Mention an old glibc bug.
60239         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
60241 2010-12-25  Bruno Haible  <bruno@clisp.org>
60243         fcntl-h: Fix for use of C++ on glibc systems.
60244         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60245         also on glibc systems in C++ mode.
60246         Reported by Gary V. Vaughan <gary@gnu.org>.
60248 2010-12-25  Bruno Haible  <bruno@clisp.org>
60250         roundl-ieee: Make it work on OSF/1 5.1 with cc.
60251         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
60253 2010-12-25  Bruno Haible  <bruno@clisp.org>
60255         truncl-ieee: Make it work on OSF/1 5.1 with cc.
60256         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
60257         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
60258         test whether truncl works according to ISO C 99 with IEC 60559.
60259         * m4/truncl-ieee.m4: New file.
60260         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
60261         m4/signbit.m4.
60262         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
60264 2010-12-25  Bruno Haible  <bruno@clisp.org>
60266         ceill-ieee: Make it work on OSF/1 5.1 with cc.
60267         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
60268         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
60269         test whether ceill works according to ISO C 99 with IEC 60559.
60270         * m4/ceill-ieee.m4: New file.
60271         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
60272         m4/signbit.m4.
60273         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
60275 2010-12-25  Bruno Haible  <bruno@clisp.org>
60277         Ensure all prerequisites of <wchar.h> are included.
60278         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
60279         before <wchar.h>.
60280         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
60281         gl_MBRLEN_NUL_RETVAL): Likewise.
60282         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
60283         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
60284         AC_FUNC_MBRTOWC): Likewise.
60285         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
60288         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
60289         Likewise.
60290         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
60291         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
60292         (gl_WCHAR_H): Improve comments.
60293         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60295 2010-12-25  Bruno Haible  <bruno@clisp.org>
60297         strtok_r: Fix C syntax error in autoconf macro.
60298         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
60299         characters in test program.
60301 2010-12-24  Bruno Haible  <bruno@clisp.org>
60303         ceil, trunc, round: Fix gcc warnings.
60304         * lib/ceil.c (MIN): Undefine before redefining.
60305         * lib/trunc.c (MIN): Likewise.
60306         * lib/round.c (MIN): Likewise.
60307         Include <math.h> first.
60309 2010-12-24  Bruno Haible  <bruno@clisp.org>
60311         select tests: Avoid failures on OSF/1 5.1.
60312         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
60313         failure of closing the last socket; it may fail with ECONNRESET.
60315 2010-12-24  Eric Blake  <eblake@redhat.com>
60317         stdint: avoid HP-UX 10.20 preprocessor bug
60318         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
60319         than #if.
60320         * tests/test-floor2.c (main): Likewise.
60321         Reported by Peter O'Gorman.
60323         pipe: make obsoletion transition easier
60324         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
60325         * modules/pipe (Files): Include revived file.
60326         (Include): Drop reference, to mirror getdate's behavior.
60328 2010-12-24  Bruno Haible  <bruno@clisp.org>
60330         sys_socket: Hide mismatch of declarations on NonStop Kernel.
60331         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
60332         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
60333         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60335 2010-12-24  Bruno Haible  <bruno@clisp.org>
60337         gethostname: Ensure declaration on NonStop Kernel.
60338         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
60339         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60341 2010-12-24  Bruno Haible  <bruno@clisp.org>
60343         sys_select: Ensure all necessary types on NonStop Kernel.
60344         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
60345         include <sys/time.h>.
60346         * doc/posix-headers/sys_select.texi: Mention that it's missing on
60347         NonStop Kernel.
60348         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60350 2010-12-24  Bruno Haible  <bruno@clisp.org>
60352         sys_select: Remove unneeded include.
60353         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
60354         have <sys/select.h>.
60356 2010-12-24  Bruno Haible  <bruno@clisp.org>
60358         gethostname: Provide a fallback for HOST_NAME_MAX.
60359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
60360         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
60361         instead.
60362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60364 2010-12-24  Bruno Haible  <bruno@clisp.org>
60366         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
60367         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
60368         (SA_RESTART): Likewise.
60369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60371 2010-12-24  Bruno Haible  <bruno@clisp.org>
60373         signal: Define NSIG.
60374         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
60375         * tests/test-signal.c (nsig): New variable.
60376         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60378 2010-12-24  Bruno Haible  <bruno@clisp.org>
60380         rename, renameat: Avoid test failures on OSF/1 5.1.
60381         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
60382         alternative error codes.
60383         * tests/test-renameat.c (main): Likewise.
60385 2010-12-24  Bruno Haible  <bruno@clisp.org>
60387         *printf: Detect large precisions bug on Solaris 10/SPARC.
60388         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
60389         by Paul Eggert.
60390         * tests/test-snprintf-posix.h (test_function): Add this test code here
60391         too.
60392         * tests/test-sprintf-posix.h (test_function): Likewise.
60393         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60394         * tests/test-vasprintf-posix.c (test_function): Likewise.
60395         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
60396         around by gnulib.
60397         * doc/posix-functions/printf.texi: Likewise.
60398         * doc/posix-functions/snprintf.texi: Likewise.
60399         * doc/posix-functions/sprintf.texi: Likewise.
60400         * doc/posix-functions/vfprintf.texi: Likewise.
60401         * doc/posix-functions/vprintf.texi: Likewise.
60402         * doc/posix-functions/vsnprintf.texi: Likewise.
60403         * doc/posix-functions/vsprintf.texi: Likewise.
60404         * doc/posix-functions/dprintf.texi: Undo last commit.
60405         * doc/posix-functions/vdprintf.texi: Likewise.
60407 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60409         tests: port test-fdutimensat.c to Solaris 8
60410         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
60411         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
60412         On Solaris 8, it fails with errno == ENOSYS, because there is no
60413         futimens (so it can't use the fd), and there is no lutimens (so it
60414         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
60416         vsnprintf: make more consistent with snprintf; doc fixes
60418         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
60419         the byte count return problem was promoted from the snprintf-posix
60420         to the snprintf module.
60421         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
60422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
60423         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
60424         * tests/test-snprintf.c (main): Check the byte count returned.
60425         * tests/test-vsnprintf.c (main): Likewise.
60427 2010-12-23  Eric Blake  <eblake@redhat.com>
60429         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
60430         * modules/sigpipe (License): Relax license.
60432 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60434         doc: document Solaris printf bug with large float precisions
60435         * doc/posix-functions/dprintf.texi (dprintf):
60436         * doc/posix-functions/fprintf.texi (fprintf):
60437         * doc/posix-functions/printf.texi (printf):
60438         * doc/posix-functions/snprintf.texi (snprintf):
60439         * doc/posix-functions/sprintf.texi (sprintf):
60440         * doc/posix-functions/vdprintf.texi (vdprintf):
60441         * doc/posix-functions/vfprintf.texi (vfprintf):
60442         * doc/posix-functions/vprintf.texi (vprintf):
60443         * doc/posix-functions/vsnprintf.texi (vsnprintf):
60444         * doc/posix-functions/vsprintf.texi (vsprintf):
60445         Mention that these functions mishandle large floating point
60446         precisions on Solaris 10.  The same bug is also present in Solaris
60447         8, and I assume earlier.  This causes "cd gnulib-tests; make
60448         check" to fail on Solaris 8 (and I assume, later) when building
60449         the latest coreutils, in test-vasprintf-posix's call to
60450         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
60451         the wide flavors (e.g., wprintf) so this patch just updates the
60452         documentation for the narrow ones.
60454         test-posixtm.c: add two tests
60455         * tests/test-posixtm.c: Add two tests, to highlight the
60456         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
60457         around this bug; this is merely to document it.
60459 2010-12-22  Bruno Haible  <bruno@clisp.org>
60461         getlogin_r: Work around portability problem on OSF/1.
60462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
60463         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
60464         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
60465         test for a truncated result.
60466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
60467         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
60468         * modules/getlogin_r (Depends-on): Add memchr.
60469         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
60471 2010-12-22  Bruno Haible  <bruno@clisp.org>
60473         ptsname: Avoid test failure on OSF/1 5.1.
60474         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
60475         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
60476         (same_slave): New function.
60477         (main): Use it to compare ptsname's result with the expected file name.
60479 2010-12-22  Bruno Haible  <bruno@clisp.org>
60481         Port extended stdio modules to HP NonStop Kernel.
60482         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
60483         macros.
60484         * lib/fbufmode.c: Update comments.
60485         * lib/fflush.c: Likewise.
60486         * lib/fpurge.c: Likewise.
60487         * lib/freadable.c: Likewise.
60488         * lib/freadahead.c: Likewise.
60489         * lib/freading.c: Likewise.
60490         * lib/freadptr.c: Likewise.
60491         * lib/freadseek.c: Likewise.
60492         * lib/fseeko.c: Likewise.
60493         * lib/fseterr.c: Likewise.
60494         * lib/fwritable.c: Likewise.
60495         * lib/fwriting.c: Likewise.
60496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60498 2010-12-22  Bruno Haible  <bruno@clisp.org>
60500         ttyname_r: Work around bug on OSF/1 5.1.
60501         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
60502         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
60503         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
60504         present.
60505         * lib/ttyname_r.c (ttyname_r): Update comments.
60507 2010-12-22  Bruno Haible  <bruno@clisp.org>
60509         round: Implement result sign according to IEEE 754.
60510         * lib/round.c (MIN, MINUS_ZERO): New macros.
60511         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
60512         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
60513         * tests/test-round-ieee.c (main): Likewise.
60514         * tests/test-roundl-ieee.c (main): Likewise.
60516         trunc: Implement result sign according to IEEE 754.
60517         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
60518         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
60519         * tests/test-trunc2.c: Include minus-zero.h.
60520         (MINUS_ZERO): New macro.
60521         (trunc_reference): Keep in sync with lib/trunc.c.
60522         * tests/test-truncf2.c: Include minus-zero.h.
60523         (MINUS_ZERO): New macro.
60524         (truncf_reference): Keep in sync with lib/trunc.c.
60525         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
60526         * tests/test-trunc-ieee.c (main): Likewise.
60527         * tests/test-truncl-ieee.c (main): Likewise.
60529         ceil: Implement result sign according to IEEE 754.
60530         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
60531         (FUNC): Return -0.0 for -1 < x < 0.
60532         * tests/test-ceil2.c: Include minus-zero.h.
60533         (MINUS_ZERO): New macro.
60534         (ceil_reference): Keep in sync with lib/ceil.c.
60535         * tests/test-ceilf2.c: Include minus-zero.h.
60536         (MINUS_ZERO): New macro.
60537         (ceilf_reference): Keep in sync with lib/ceil.c.
60538         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
60539         * tests/test-ceil-ieee.c (main): Likewise.
60540         * tests/test-ceill-ieee.c (main): Likewise.
60542         floor: Implement result sign according to IEEE 754.
60543         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
60544         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
60545         * tests/test-floorf2.c (floorf_reference): Likewise.
60546         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
60547         * tests/test-floor-ieee.c (main): Likewise.
60548         * tests/test-floorl-ieee.c (main): Likewise.
60550 2010-12-22  Bruno Haible  <bruno@clisp.org>
60552         getaddrinfo: Update doc.
60553         * doc/posix-functions/gai_strerror.texi: Return type is also different
60554         on AIX and HP-UX.
60556 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60558         getaddrinfo, inet_ntop: Update doc for Solaris.
60559         * doc/posix-functions/gai_strerror.texi: Return type is also an
60560         issue on Solaris 9 and earlier.
60561         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
60562         on Solaris 10 and earlier.
60564 2010-12-21  Bruno Haible  <bruno@clisp.org>
60566         New module 'roundl-ieee'.
60567         * modules/roundl-ieee: New file.
60568         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
60569         test whether roundl works according to ISO C 99 with IEC 60559.
60570         * m4/roundl-ieee.m4: New file.
60571         * modules/roundl-ieee-tests: New file.
60572         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
60573         * tests/test-roundl.c (main): Remove signbit tests.
60574         * modules/roundl-tests (Depends-on): Remove signbit.
60575         * doc/posix-functions/roundl.texi: Mention the new module.
60577 2010-12-21  Bruno Haible  <bruno@clisp.org>
60579         New module 'truncl-ieee'.
60580         * modules/truncl-ieee: New file.
60581         * modules/truncl-ieee-tests: New file.
60582         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
60583         * tests/test-truncl.c (main): Remove signbit tests.
60584         * modules/truncl-tests (Depends-on): Remove signbit.
60585         * doc/posix-functions/truncl.texi: Mention the new module.
60587 2010-12-21  Bruno Haible  <bruno@clisp.org>
60589         New module 'ceill-ieee'.
60590         * modules/ceill-ieee: New file.
60591         * modules/ceill-ieee-tests: New file.
60592         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
60593         * tests/test-ceill.c (main): Remove signbit tests.
60594         * modules/ceill-tests (Depends-on): Remove signbit.
60595         * doc/posix-functions/ceill.texi: Mention the new module.
60597 2010-12-21  Bruno Haible  <bruno@clisp.org>
60599         New module 'floorl-ieee'.
60600         * modules/floorl-ieee: New file.
60601         * modules/floorl-ieee-tests: New file.
60602         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
60603         * tests/test-floorl.c (main): Remove signbit tests.
60604         * modules/floorl-tests (Depends-on): Remove signbit.
60605         * doc/posix-functions/floorl.texi: Mention the new module.
60607 2010-12-21  Bruno Haible  <bruno@clisp.org>
60609         New module 'round-ieee'.
60610         * modules/round-ieee: New file.
60611         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
60612         whether round works according to ISO C 99 with IEC 60559.
60613         * m4/round-ieee.m4: New file.
60614         * modules/round-ieee-tests: New file.
60615         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
60616         * tests/test-round1.c (main): Remove signbit tests.
60617         * modules/round-tests (Depends-on): Remove 'signbit'.
60618         * doc/posix-functions/round.texi: Mention the new module.
60620 2010-12-21  Bruno Haible  <bruno@clisp.org>
60622         New module 'trunc-ieee'.
60623         * modules/trunc-ieee: New file.
60624         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
60625         whether trunc works according to ISO C 99 with IEC 60559.
60626         * m4/trunc-ieee.m4: New file.
60627         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
60628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
60629         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
60630         * modules/trunc-ieee-tests: New file.
60631         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
60632         * tests/test-trunc1.c (main): Remove signbit tests.
60633         * modules/trunc-tests (Depends-on): Remove 'signbit'.
60634         * doc/posix-functions/trunc.texi: Mention the new module.
60636 2010-12-21  Bruno Haible  <bruno@clisp.org>
60638         New module 'ceil-ieee'.
60639         * modules/ceil-ieee: New file.
60640         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
60641         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
60642         ISO C 99 with IEC 60559.
60643         * m4/ceil-ieee.m4: New file.
60644         * modules/ceil (Files): Add lib/ceil.c.
60645         (Depends-on): Add 'float'.
60646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
60647         * lib/math.in.h (ceil): New declaration.
60648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
60649         REPLACE_CEIL.
60650         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
60651         * modules/ceil-ieee-tests: New file.
60652         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
60653         * tests/test-math-c++.cc: Check the signature of 'ceil'.
60654         * doc/posix-functions/ceil.texi: Mention the new module.
60656 2010-12-21  Bruno Haible  <bruno@clisp.org>
60658         New module 'floor-ieee'.
60659         * modules/floor-ieee: New file.
60660         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
60661         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
60662         ISO C 99 with IEC 60559.
60663         * m4/floor-ieee.m4: New file.
60664         * modules/floor (Files): Add lib/floor.c.
60665         (Depends-on): Add 'float'.
60666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
60667         * lib/math.in.h (floor): New declaration.
60668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
60669         REPLACE_FLOOR.
60670         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
60671         * modules/floor-ieee-tests: New file.
60672         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
60673         * tests/test-math-c++.cc: Check the signature of 'floor'.
60674         * doc/posix-functions/floor.texi: Mention the new module.
60676 2010-12-21  Bruno Haible  <bruno@clisp.org>
60678         New module 'roundf-ieee'.
60679         * modules/roundf-ieee: New file.
60680         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
60681         test whether roundf works according to ISO C 99 with IEC 60559.
60682         * m4/roundf-ieee.m4: New file.
60683         * modules/roundf-ieee-tests: New file.
60684         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
60685         * tests/test-roundf1.c (main): Remove signbit tests.
60686         * modules/roundf-tests (Depends-on): Remove 'signbit'.
60687         * doc/posix-functions/roundf.texi: Mention the new module.
60689 2010-12-21  Bruno Haible  <bruno@clisp.org>
60691         New module 'truncf-ieee'.
60692         * modules/truncf-ieee: New file.
60693         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
60694         test whether truncf works according to ISO C 99 with IEC 60559.
60695         * m4/truncf-ieee.m4: New file.
60696         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
60697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
60698         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
60699         * modules/truncf-ieee-tests: New file.
60700         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
60701         * tests/test-truncf1.c (main): Remove signbit tests.
60702         * modules/truncf-tests (Depends-on): Remove 'signbit'.
60703         * doc/posix-functions/truncf.texi: Mention the new module.
60705 2010-12-21  Bruno Haible  <bruno@clisp.org>
60707         New module 'ceilf-ieee'.
60708         * modules/ceilf-ieee: New file.
60709         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
60710         test whether ceilf works according to ISO C 99 with IEC 60559.
60711         * m4/ceilf-ieee.m4: New file.
60712         * modules/ceilf-ieee-tests: New file.
60713         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
60714         * tests/test-ceilf1.c (main): Remove signbit tests.
60715         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
60716         * doc/posix-functions/ceilf.texi: Mention the new module.
60718 2010-12-21  Bruno Haible  <bruno@clisp.org>
60720         New module 'floorf-ieee'.
60721         * modules/floorf-ieee: New file.
60722         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
60723         test whether floorf works according to ISO C 99 with IEC 60559.
60724         * m4/floorf-ieee.m4: New file.
60725         * modules/floorf-ieee-tests: New file.
60726         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
60727         * tests/test-floorf1.c (main): Remove signbit tests.
60728         * modules/floorf-tests (Depends-on): Remove 'signbit'.
60729         * doc/posix-functions/floorf.texi: Mention the new module.
60731 2010-12-21  Bruno Haible  <bruno@clisp.org>
60733         Support for minus zero in autoconf macros.
60734         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
60735         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
60736         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
60737         * tests/minus-zero.h: Update comments.
60739 2010-12-21  Bruno Haible  <bruno@clisp.org>
60741         Tests for module 'ceil'.
60742         * modules/ceil-tests: New file.
60743         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
60744         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
60746 2010-12-21  Bruno Haible  <bruno@clisp.org>
60748         Tests for module 'floor'.
60749         * modules/floor-tests: New file.
60750         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
60751         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
60753 2010-12-21  Bruno Haible  <bruno@clisp.org>
60755         math: Fix indentation.
60756         * lib/math.in.h (floorf): Fix indentation.
60758 2010-12-21  Bruno Haible  <bruno@clisp.org>
60760         Fix cross-compilation guesses on Solaris.
60761         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
60762         not match "solaris2.10".
60763         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
60764         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
60765         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
60767 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60769         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
60770         This fixes a problem observed with the latest coreutils snapshot
60771         that caused a test to fail on Solaris 8.  src/csplit.c's call
60772         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
60773         earlier, instead of returning the number of bytes that would have
60774         been generated; this causes csplit to incorrectly report memory
60775         exhaustion.
60776         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
60777         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
60778         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
60779         comments to match.
60780         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
60781         Fix typo in matching older versions of Solaris: "solaris2.10"
60782         is matched by the shell pattern "solaris2.[0-9]*".  This matters
60783         only for guessing while cross-compiling.
60784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
60786 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
60788         ftoastr: fix comment again
60789         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
60790         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
60791         Also, simplify example a bit by using flags = 0.
60793 2010-12-20  Bruno Haible  <bruno@clisp.org>
60795         round*, trunc*: Update documentation regarding glibc.
60796         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
60797         * doc/posix-functions/round.texi: Likewise.
60798         * doc/posix-functions/roundl.texi: Likewise.
60799         * doc/posix-functions/truncf.texi: Likewise.
60800         * doc/posix-functions/trunc.texi: Likewise.
60801         * doc/posix-functions/truncl.texi: Likewise.
60803 2010-12-20  Bruno Haible  <bruno@clisp.org>
60805         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
60806         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
60807         * doc/posix-functions/round.texi: Likewise.
60808         * doc/posix-functions/roundl.texi: Likewise.
60810 2010-12-20  Bruno Haible  <bruno@clisp.org>
60812         ttyname_r: Add missing declaration on HP-UX 11.
60813         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
60814         HAVE_TTYNAME_R.
60815         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
60816         declared. Set HAVE_TTYNAME_R always.
60817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60818         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
60819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
60820         HAVE_TTYNAME_R.
60821         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
60823 2010-12-20  Bruno Haible  <bruno@clisp.org>
60825         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
60826         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
60827         * doc/posix-functions/getlogin_r.texi: Likewise.
60828         * tests/test-getlogin.c: Include <errno.h>.
60829         (main): Avoid test failure on HP-UX 11.11.
60830         * tests/test-getlogin_r.c (main): Likewise.
60832 2010-12-20  Bruno Haible  <bruno@clisp.org>
60834         getlogin_r: Add missing declaration on HP-UX 11.
60835         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
60836         declared also when it exists as a function.
60837         * doc/posix-functions/getlogin_r.texi: Document this workaround.
60839 2010-12-20  Bruno Haible  <bruno@clisp.org>
60841         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
60842         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
60843         through wcrtomb.
60845 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60847         ftoastr: fix comment
60848         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
60849         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
60851 2010-12-19  Bruno Haible  <bruno@clisp.org>
60853         isnan: Ensure it is a macro.
60854         * lib/math.in.h (isnan): Define as a macro if not already a macro.
60855         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
60856         Solaris.
60858 2010-12-19  Bruno Haible  <bruno@clisp.org>
60860         ldexpl test: Fix link error on OSF/1 5.1.
60861         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
60863 2010-12-19  Bruno Haible  <bruno@clisp.org>
60865         wctype: Make it work in C++ mode on OSF/1 5.1.
60866         * lib/wctype.in.h (iswblank): Declare but not define here.
60867         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
60868         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
60869         * modules/wctype (Files): Add lib/iswblank.c.
60871 2010-12-19  Bruno Haible  <bruno@clisp.org>
60873         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
60874         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
60875         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
60877 2010-12-19  Bruno Haible  <bruno@clisp.org>
60879         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
60880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
60881         _POSIX_PII_SOCKET.
60882         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
60883         * doc/posix-functions/recvfrom.texi: Likewise.
60884         * doc/posix-functions/send.texi: Likewise.
60885         * doc/posix-functions/sendto.texi: Likewise.
60887 2010-12-19  Bruno Haible  <bruno@clisp.org>
60889         tcgetsid: Add missing declaration on OSF/1 5.1.
60890         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
60891         HAVE_TCGETSID.
60892         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
60893         Don't set HAVE_TCGETSID.
60894         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
60895         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
60896         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
60897         HAVE_TCGETSID.
60898         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
60900 2010-12-19  Bruno Haible  <bruno@clisp.org>
60902         stdio: Fix problem with popen() declaration on OSF/1 5.1.
60903         * lib/stdio.in.h: During the include_next statement, let recursive
60904         includes of this file include only the system header file.
60906 2010-12-19  Bruno Haible  <bruno@clisp.org>
60908         iconv_open: Fix regression from 2010-12-04.
60909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
60910         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
60912 2010-12-19  Bruno Haible  <bruno@clisp.org>
60914         stdbool test: Avoid a gcc warning.
60915         * tests/test-stdbool.c (main): Fail if e1 is false.
60916         Reported by Jim Meyering.
60918 2010-12-19  Jim Meyering  <meyering@redhat.com>
60920         setenv: restore to working order
60921         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
60922         mistakenly removed.
60923         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
60924         HAVE_SETENV.
60925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
60926         HAVE_SETENV.
60928 2010-12-19  Bruno Haible  <bruno@clisp.org>
60930         Document some different function declarations on OSF/1 5.1.
60931         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
60932         * doc/posix-functions/inet_ntop.texi: Likewise.
60933         * doc/posix-functions/gethostname.texi: Likewise.
60934         * lib/unistd.in.h (gethostname): Update comment.
60936 2010-12-19  Bruno Haible  <bruno@clisp.org>
60938         doc: Mention vasprintf-posix module.
60939         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
60940         the 'vasprintf-posix' module.
60941         * doc/glibc-functions/vasprintf.texi: Likewise.
60943 2010-12-19  Bruno Haible  <bruno@clisp.org>
60945         unsetenv: Add missing declaration on OSF/1 5.1.
60946         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
60947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
60948         Don't set HAVE_UNSETENV. In the test program, set _BSD.
60949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
60950         not HAVE_UNSETENV.
60951         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
60952         HAVE_UNSETENV.
60953         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
60955 2010-12-19  Bruno Haible  <bruno@clisp.org>
60957         setenv: Add missing declaration on OSF/1 5.1.
60958         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
60959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
60960         declared. Don't set HAVE_SETENV.
60961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
60962         not HAVE_SETENV.
60963         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
60964         HAVE_SETENV.
60965         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
60967 2010-12-19  Bruno Haible  <bruno@clisp.org>
60969         nl_langinfo tests: Avoid gcc warning.
60970         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
60972 2010-12-19  Bruno Haible  <bruno@clisp.org>
60974         mknod: Avoid error in C++ mode on OSF/1 with GCC.
60975         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
60976         _GL_CXXALIAS_SYS.
60978 2010-12-19  Bruno Haible  <bruno@clisp.org>
60980         stdbool: Relax test.
60981         * tests/test-stdbool.c (e): Don't require that casts from a variable's
60982         address to 'bool' work in static initializer, for compilers other than
60983         GCC.
60985 2010-12-19  Bruno Haible  <bruno@clisp.org>
60987         ftello: Add missing declaration on OSF/1 5.1.
60988         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
60989         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
60990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
60991         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
60992         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
60994 2010-12-19  Bruno Haible  <bruno@clisp.org>
60996         fseeko: Add missing declaration on OSF/1 5.1.
60997         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
60998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
60999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
61000         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
61001         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
61003 2010-12-19  Bruno Haible  <bruno@clisp.org>
61005         fchdir: Add missing declaration on OSF/1 5.1.
61006         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
61007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
61008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
61009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
61010         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
61012 2010-12-19  Bruno Haible  <bruno@clisp.org>
61014         relocatable-prog-wrapper: Separate from relocatable-prog.
61015         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
61016         uninstall-relocwrapper rule here.
61017         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
61018         Reported by Ian Beckwith <ianb@erislabs.net>.
61020 2010-12-19  Bruno Haible  <bruno@clisp.org>
61022         unistr/u8-mbsnlen: Add missing dependency.
61023         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
61024         Reported by Ian Beckwith <ianb@erislabs.net>.
61026 2010-12-19  Bruno Haible  <bruno@clisp.org>
61028         iconv: Make it possible again to use this module without 'iconv-h'.
61029         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
61030         if it is not defined.
61031         Reported by Ian Beckwith <ianb@erislabs.net>.
61033 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61035         acl: port to Solaris 8 when copying from tmpfs to ufs
61036         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
61037         error number.  Problem observed on Solaris 8 with latest
61038         coreutils, with "mv A B", where A is on a tmpfs file system and B
61039         is on a ufs file system.  This caused coreutils' mv/part-symlink
61040         test to fail.
61042         tests: set fail=0 at start
61043         * tests/init.sh (setup_): Move fail=0 initialization here ...
61044         (mktempd_): ... from here, so that tests can rely on fail being
61045         set to 0 initially.  This fixes a problem in coreutils; see:
61046         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
61048 2010-12-18  Bruno Haible  <bruno@clisp.org>
61050         memmem-simple: Stylistic changes.
61051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
61052         Fix preprocessor directive indentation.
61054 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61056         memmem, memmem-simple: reorganize and expand empty needle check
61057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
61058         functional checks to memmem-simple so that one has a fully functional
61059         memmem by using just this module.
61060         Restrict the performance only check to the memmem module.
61061         Also expand the empty needle check to ensure the correct
61062         pointer is returned, not just a non NULL pointer.
61063         * doc/glibc-functions/memmem.texi: Rearrange the portability
61064         documentation to correlate with the rearranged checks.
61065         Clarify exactly how the memmem and memmem-simple modules
61066         relate to each other.
61068 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61069             Bruno Haible  <bruno@clisp.org>
61071         Improve cross-compilation guesses for uClibc.
61072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
61073         that uClibc does not have the glibc bug.
61074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
61075         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
61077 2010-12-14  Eric Blake  <eblake@redhat.com>
61079         configmake: provide fallbacks for oldest supported autotools
61080         * m4/configmake.m4: New file.
61081         * modules/configmake (Files): Ship it.
61082         (configure.ac): Use it to guarantee fallbacks.
61084 2010-12-13  Pádraig Brady  <P@draigBrady.com>
61086         read-file: Improve handling of large files
61087         * lib/read-file.c (fread_file): Minimize realloc()s
61088         for regular files, and better manage sizes around SIZE_MAX.
61090 2010-12-13  Eric Blake  <eblake@redhat.com>
61092         cloexec, fcntl: relax license
61093         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
61094         consent from all contributors.
61095         * modules/fcntl (License): Likewise.
61097 2010-12-10  Bruno Haible  <bruno@clisp.org>
61099         Tests for module 'pipe-posix'.
61100         * modules/pipe-posix-tests: New file.
61101         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
61103 2010-12-10  Bruno Haible  <bruno@clisp.org>
61105         pipe-posix: Make it work in C++ mode.
61106         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
61107         (pipe): Use common idiom, not a macro definition.
61108         * lib/pipe.c: New file.
61109         * m4/pipe.m4: New file.
61110         * modules/pipe-posix (Description): Enhance.
61111         (Files): Add lib/pipe.c, m4/pipe.m4.
61112         (configure.ac): Invoke gl_FUNC_PIPE.
61113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
61114         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
61115         * tests/test-unistd-c++.cc: Check the signature of pipe.
61117 2010-12-10  Bruno Haible  <bruno@clisp.org>
61119         Rename module 'pipe' to 'spawn-pipe'.
61120         * modules/spawn-pipe: New file, renamed from modules/pipe.
61121         (Files, configure.ac, Makefile.am): Update.
61122         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
61123         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
61124         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
61125         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
61126         "spawn-pipe.h" instead of "pipe.h".
61127         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
61128         to gl_SPAWN_PIPE.
61129         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
61130         (Files, Makefile.am): Update.
61131         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
61132         Update.
61133         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
61134         Include "spawn-pipe.h" instead of "pipe.h".
61135         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
61136         * lib/javacomp.c: Likewise.
61137         * lib/javaversion.c: Likewise.
61138         * lib/pipe-filter-gi.c: Likewise.
61139         * lib/pipe-filter-ii.c: Likewise.
61140         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
61141         * modules/javacomp (Depends-on): Likewise.
61142         * modules/javaversion (Depends-on): Likewise.
61143         * modules/pipe-filter-gi (Depends-on): Likewise.
61144         * modules/pipe-filter-ii (Depends-on): Likewise.
61145         * MODULES.html.sh (Executing programs): Update.
61146         * NEWS: Mention the change.
61148 2010-12-10  Eric Blake  <eblake@redhat.com>
61150         pipe-posix: new module
61151         * modules/pipe-posix: New file.
61152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
61153         (gl_UNISTD_H): Check for declaration.
61154         * modules/unistd (Makefile.am): Substitute it.
61155         * lib/unistd.in.h (pipe): Provide it for mingw.
61156         * doc/posix-functions/pipe.texi (pipe): Update documentation.
61157         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
61159 2010-12-07  Bruno Haible  <bruno@clisp.org>
61161         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
61162         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
61163         u8_strcmp_gnu.
61164         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
61166 2010-12-06  Bruno Haible  <bruno@clisp.org>
61168         Update internal documentation.
61169         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
61171 2010-12-04  Bruno Haible  <bruno@clisp.org>
61173         Put more information about failed tests into the test return codes.
61174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
61175         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
61176         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61178         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
61179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61181         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61182         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
61183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
61185         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61186         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
61187         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61188         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
61189         returns a bit mask.
61190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
61191         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
61192         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
61193         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
61194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61198         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61200         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61201         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61204         * m4/link.m4 (gl_FUNC_LINK): Likewise.
61205         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61206         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
61207         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
61208         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61209         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
61210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61211         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
61213         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61214         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61215         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61216         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
61217         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61218         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61219         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
61220         gl_PRINTF_PRECISION): Likewise.
61221         * m4/regex.m4 (gl_REGEX): Likewise.
61222         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
61224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
61225         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
61229         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
61230         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61231         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61232         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61236         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61237         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
61238         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
61239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61241         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
61242         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
61243         enumerated value.
61244         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
61246 2010-12-04  Bruno Haible  <bruno@clisp.org>
61248         Update for Solaris 11 2010-11.
61249         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
61250         Express, released in November 2010.
61252 2010-12-04  Bruno Haible  <bruno@clisp.org>
61254         nproc: Relax license.
61255         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
61256         and Paul Eggert.
61257         Requested by Ludovic Courtès <ludo@gnu.org>.
61259 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61261         utimecmp: fine-grained src to nearby coarse-grained dest
61263         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
61264         and the source is on a file system with higher-resolution time
61265         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
61266         not work, and the time stamps are close together, the algorithm to
61267         determine the exact resolution from the read-back mtime was buggy:
61268         it had a "!=" where it should have had an "==".  This bug has been
61269         in the code ever since it was introduced to gnulib.
61270         Problem reported by Dan Jacobson in
61271         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
61273 2010-11-30  Bruno Haible  <bruno@clisp.org>
61275         strerror_r-posix: Fix autoconf test.
61276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
61278 2010-11-28  Bruno Haible  <bruno@clisp.org>
61279             Paul Eggert  <eggert@cs.ucla.edu>
61281         Tests for module 'getdomainname'.
61282         * modules/getdomainname-tests: New file.
61283         * tests/test-getdomainname.c: New file, based on
61284         tests/test-gethostname.c.
61286 2010-11-28  Bruno Haible  <bruno@clisp.org>
61287             Paul Eggert  <eggert@cs.ucla.edu>
61289         getdomainname: Use the system function when possible.
61290         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
61291         (getdomainname): Replace if needed. Provide the declaration if it is
61292         missing. Don't use _GL_CXXALIAS_SYS_CAST.
61293         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
61294         (getdomainname): When the system has getdomainname, call the system
61295         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
61296         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
61297         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
61298         found in libnsl. Look for the declaration also in <netdb.h>. Replace
61299         the function if its second argument is of type 'int' or if it is found
61300         in libnsl.
61301         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
61302         <sys/systeminfo.h> and sysinfo().
61303         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
61304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61305         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
61306         HAVE_GETDOMAINNAME.
61307         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
61308         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
61309         * doc/glibc-functions/getdomainname.texi: Document the problems with
61310         the getdomainname declaration.
61312 2010-11-28  Bruno Haible  <bruno@clisp.org>
61314         sys_socket: Ensure ss_family field on AIX.
61315         * lib/sys_socket.in.h (ss_family): New macro definition.
61316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
61317         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
61318         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61319         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
61320         * modules/sys_socket (Makefile.am): Substitute
61321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
61322         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
61324 2010-11-27  Bruno Haible  <bruno@clisp.org>
61326         readline: Improve configure output.
61327         * m4/readline.m4 (gl_FUNC_READLINE): Make the
61328         "checking for readline..." result understandable.
61330 2010-11-27  Bruno Haible  <bruno@clisp.org>
61332         *printf-posix: Detect a bug on Solaris 10/x86.
61333         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
61334         for floating-point output.
61335         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
61336         directive.
61337         * tests/test-snprintf-posix.h (test_function): Likewise.
61338         * tests/test-sprintf-posix.h (test_function): Likewise.
61339         * tests/test-vasprintf-posix.c (test_function): Likewise.
61340         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
61341         * doc/posix-functions/printf.texi: Likewise.
61342         * doc/posix-functions/snprintf.texi: Likewise.
61343         * doc/posix-functions/sprintf.texi: Likewise.
61344         * doc/posix-functions/vfprintf.texi: Likewise.
61345         * doc/posix-functions/vprintf.texi: Likewise.
61346         * doc/posix-functions/vsnprintf.texi: Likewise.
61347         * doc/posix-functions/vsprintf.texi: Likewise.
61348         * doc/glibc-functions/obstack_printf.texi: Likewise.
61349         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
61351 2010-11-27  Bruno Haible  <bruno@clisp.org>
61353         Fix link error when module libunistring-optional is in use.
61354         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
61355         * modules/striconveha-tests (Makefile.am): Likewise.
61357 2010-11-27  Bruno Haible  <bruno@clisp.org>
61359         regex: Mention link dependencies.
61360         * modules/regex (Link): New section.
61361         * modules/rpmatch (Link): Likewise.
61362         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
61364 2010-11-27  Bruno Haible  <bruno@clisp.org>
61366         ftoastr: Fix compilation error on Solaris.
61367         * lib/ftoastr.c: Include <config.h>.
61369 2010-11-27  Bruno Haible  <bruno@clisp.org>
61371         getloadavg: Update documentation.
61372         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
61374 2010-11-27  Bruno Haible  <bruno@clisp.org>
61376         sys_socket: Fix test whether the functions are declared.
61377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
61378         not <sys/select.h>.
61380 2010-11-27  Bruno Haible  <bruno@clisp.org>
61382         getpass: Make sure to get system declaration on some platforms.
61383         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
61384         gl_USE_SYSTEM_EXTENSIONS.
61385         * modules/getpass (Depends-on): Add extensions.
61387 2010-11-26  Bruno Haible  <bruno@clisp.org>
61389         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
61390         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
61391         'iconv' module is present.
61392         (ICONV_CONST): New macro.
61393         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
61394         ICONV_CONST.
61395         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
61396         set ICONV_CONST.
61397         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
61398         here.
61399         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
61400         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
61401         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
61402         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
61403         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
61404         present.
61406 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61408         ftoastr: comment fix
61409         * lib/ftoastr.c: "little" -> "little or no" in comment
61411 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
61413         stdint: port to GCC 4.3 + OSX + Octave
61414         On this platform, stdint.h is buggy and defines int64_t to long
61415         long int.  The replacement defined it to long int, causing
61416         problems with C++ style name mangling.  Instead, trust the system
61417         definition if INT64_MAX is defined, and likewise for the unsigned
61418         variant.   Problem reported by Jarno Rajahalme in
61419         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
61420         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
61421         and don't mess with int64_t and INT64_MAX in this case.
61422         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
61424 2010-11-24  Bruno Haible  <bruno@clisp.org>
61426         doc: Corrections regarding MacOS X 10.4 and 10.5.
61427         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
61428         MacOS X.
61429         Reported by Simon Josefsson.
61431 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
61433         Uninstall ".bin" files installed by relocwrapper.
61434         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
61435         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
61436         unless it is already there.
61438 2010-11-21  Bruno Haible  <bruno@clisp.org>
61440         Update for NetBSD 5.0.
61441         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
61442         NetBSD; the test fails on NetBSD 5.0.
61443         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
61444         about NetBSD.
61446 2010-11-21  Bruno Haible  <bruno@clisp.org>
61448         Update for HP-UX 11.23 and HP-UX 11.31.
61449         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
61450         HP-UX.
61452 2010-11-21  Bruno Haible  <bruno@clisp.org>
61454         Update for MacOS X 10.5.
61455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
61456         MacOS X; the test fails on MacOS X 10.5.8.
61457         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
61458         about MacOS X.
61460 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
61462         bootstrap: add bootstrap_sync option.
61463         See discussion at
61464         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
61465         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
61466         * build-aux/bootstrap: Accept --bootstrap-sync to update
61467         bootstrap if it is not identical to the local gnulib's
61468         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
61469         enable this by default.  Accept --no-bootstrap-sync to disable
61470         it.
61472 2010-11-20  Bruno Haible  <bruno@clisp.org>
61474         Ensure that <features.h> is included before __GLIBC__ is tested.
61475         * lib/printf-parse.h: Include <features.h>.
61476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
61477         Reported by Mike Frysinger <vapier@gentoo.org>.
61479         Ensure that <features.h> is included before __GLIBC__ is tested.
61480         * lib/wchar.in.h: Include <features.h>.
61481         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
61482         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
61483         Reported by Mike Frysinger <vapier@gentoo.org>.
61485         Ensure that <features.h> is included before __GLIBC__ is tested.
61486         * lib/arpa_inet.in.h: Include <features.h>.
61487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
61488         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
61489         Reported by Mike Frysinger <vapier@gentoo.org>.
61491         Ensure that <features.h> is included before __GLIBC__ is tested.
61492         * build-aux/link-warning.h: Include <features.h>.
61493         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
61494         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
61495         Reported by Mike Frysinger <vapier@gentoo.org>.
61497         Ensure that <features.h> is included before __GLIBC__ is tested.
61498         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
61499         Reported by Mike Frysinger <vapier@gentoo.org>.
61501 2010-11-20  Bruno Haible  <bruno@clisp.org>
61503         memmem: Fix autoconf test.
61504         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
61506 2010-11-20  Bruno Haible  <bruno@clisp.org>
61508         Port to uClibc.
61509         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
61510         * lib/fcntl.in.h: Likewise.
61511         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
61512         * lib/mbrtowc.c (mbrtowc): Likewise.
61513         * lib/relocatable.c (find_shared_library_fullname): Likewise.
61514         * lib/strerror_r.c: Likewise.
61515         * lib/unistr/u8-strnlen.c: Likewise.
61516         * lib/vasnprintf.c (decimal_point_char): Likewise.
61517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61518         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
61520         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
61521         * tests/test-sigaction.c (handler, main): Likewise.
61522         * lib/freading.h: Treat uClibc like a non-glibc platform.
61523         * lib/freading.c: Likewise.
61524         * lib/gettext.h: Likewise.
61525         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
61526         Likewise.
61527         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
61528         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61529         * lib/propername.c (proper_name_utf8): Likewise.
61530         * lib/spawn.in.h: Likewise.
61531         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
61532         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
61533         mem_cd_iconveh_internal): Likewise.
61534         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
61535         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
61536         strstr, strcasestr): Likewise.
61537         * lib/unicodeio.c (unicode_to_mb): Likewise.
61538         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
61539         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
61540         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
61541         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
61542         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
61543         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
61544         * lib/unistr/u8-stpncpy.c: Likewise.
61545         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61546         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
61547         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61549         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
61550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
61551         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
61552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
61553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
61554         Likewise.
61555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61556         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
61558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61560         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61562         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
61563         * tests/test-getopt.h (OPTIND_MIN): Likewise.
61564         * tests/test-striconveha.c (main): Likewise.
61565         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61566         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
61567         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
61568         * doc/posix-functions/getline.texi: Likewise.
61569         Reported by Mike Frysinger <vapier@gentoo.org>.
61571 2010-11-20  Bruno Haible  <bruno@clisp.org>
61573         nproc: Fix condition.
61574         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
61575         HAVE_PTHREAD_AFFINITY_NP.
61577 2010-11-20  Bruno Haible  <bruno@clisp.org>
61579         Fix a comment.
61580         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
61582 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
61584         ftoastr: don't assume snprintf
61585         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
61586         Implement a subset of snprintf here, by using sprintf safely.
61587         * modules/ftoastr (Depends-on): Remove snprintf.
61589 2010-11-19  Jim Meyering  <meyering@redhat.com>
61591         test-rename.h: fix compilation failure
61592         * tests/test-rename.h (test_rename): Add omitted "}".
61594 2010-11-17  Jim Meyering  <meyering@redhat.com>
61596         maint.mk: add a URL discussing the no-@acronym policy
61597         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
61599 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
61601         ftoastr: depend on snprintf, improve comments
61602         * lib/ftoastr.c: Also mention Loitsch's draft.
61603         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
61604         needed in the current implementation, but it might simplify
61605         speeding up the code later.
61606         * modules/ftoastr: Depend on snprintf; this improves portability.
61607         Suggested by Bruno Haible in the same email.
61609         ftoastr: port to hosts lacking strtof and strtold
61610         Problem reported by Bruno Haible in
61611         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
61612         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
61613         environment and strtold (and presumably strtof) are not available.
61614         * modules/ftoastr (Files): Add m4/c-strtod.m4.
61615         (configure.ac): Require gl_C99_STRTOLD.
61617 2010-11-18  Bruno Haible  <bruno@clisp.org>
61619         c-strtold: Avoid link error on AIX 7.
61620         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
61621         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
61622         (gl_C_STRTOLD): Test whether strtold_l exists.
61623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61625 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61627         intprops: new macro INT_BITS_STRLEN_BOUND
61628         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
61629         ftoastr.h.  This exposes an internal of intprops.h that was formerly
61630         not exposed.  Also, it uses a slightly tighter bound than before;
61631         though this makes no practical difference, we might as well be as
61632         tight as we easily can.
61634         ftoastr: new module, for lossless conversion of floats to short strings
61635         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
61636         * modules/ftoastr: New files.
61638 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61640         bootstrap: port to Solaris sed
61641         * build-aux/bootstrap (get_version): Port to Solaris sed.
61642         See Ralf Wildenhues's note in
61643         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
61645 2010-11-14  Jim Meyering  <meyering@redhat.com>
61647         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
61648         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
61649         and move definition closer to sole use.
61651 2010-11-13  Jim Meyering  <meyering@redhat.com>
61653         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
61654         Now we require at least autoconf-2.59, which means the work-around
61655         is no longer needed.
61656         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
61657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61658         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61659         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
61660         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
61662 2010-11-13  Bruno Haible  <bruno@clisp.org>
61664         rename, renameat: Avoid test failures at NFS mounted locations.
61665         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
61666         functions.
61667         (test_rename): Use assert_nonexistent.
61668         * tests/test-rename.c: Include <dirent.h>.
61669         * tests/test-renameat.c: Likewise.
61670         Reported by Gary V. Vaughan <gary@gnu.org>.
61672         rename, renameat: Document Linux bug with NFS
61673         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
61674         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
61675         * doc/posix-functions/renameat.texi: Likewise.
61676         Suggested by Eric Blake.
61678 2010-11-13  Bruno Haible  <bruno@clisp.org>
61680         rename test: Add comments.
61681         * tests/test-rename.h (test_rename): Add structure and comments.
61683 2010-11-13  Eric Blake  <eblake@redhat.com>
61685         maintainer-makefile: cover a few more files
61686         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
61687         scripts generated within C files, for libvirt.
61689 2010-11-13  Bruno Haible  <bruno@clisp.org>
61691         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
61692         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
61693         character, return the number of bytes that belong together, not always
61694         1.
61695         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
61696         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
61697         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
61698         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
61699         number of bytes of an invalid character.
61700         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
61701         (main): Invoke it.
61702         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
61703         results.
61704         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
61705         malformed byte sequences.
61706         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
61707         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
61708         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
61709         Reported by Ben Pfaff and Paolo Bonzini.
61711 2010-11-13  Bruno Haible  <bruno@clisp.org>
61713         openat: Work around glibc bug with fchownat() and empty file names.
61714         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
61715         (gl_FUNC_FCHOWNAT): Invoke it.
61716         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
61717         * doc/posix-functions/fchownat.texi: Document the glibc bug.
61718         Reported by Gary V. Vaughan <gary@gnu.org>.
61720 2010-11-13  Bruno Haible  <bruno@clisp.org>
61722         openat: Ensure autoconf macro ordering.
61723         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
61724         gl_USE_SYSTEM_EXTENSIONS.
61725         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
61727 2010-11-13  Bruno Haible  <bruno@clisp.org>
61729         Update comments.
61730         * lib/unistr/u8-check.c: Update file name in comments.
61731         * lib/unistr/u8-mblen.c: Likewise.
61732         * lib/unistr/u8-prev.c: Likewise.
61733         * lib/unistr/u8-strmblen.c: Likewise.
61734         * lib/unistr/u8-strmbtouc.c: Likewise.
61736 2010-11-13  Jim Meyering  <meyering@redhat.com>
61738         tests: avoid test failure on Solaris 10 due to lack of PATH export
61739         * tests/test-update-copyright.sh: Don't forget to export PATH.
61741         init.sh: ensure that IFS is defined, just in case...
61742         * tests/init.sh (setup_): Ensure that IFS is defined,
61743         so that saving and restoring it works as expected.  This
61744         appears to be useful at least for an old version of dash
61745         from a long time ago (RH 6).  See here for details:
61746         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
61748         maint.mk: tighten "test a == b" check
61749         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
61750         test to files that contain something like #!/bin/sh.
61751         Without this, coreutils would get two false positives in
61752         the comments of C source files.
61754 2010-11-12  Eric Blake  <eblake@redhat.com>
61756         bootstrap: fix typo in previous attempt
61757         * build-aux/bootstrap (buildreq): Correct the grouping.
61758         Reported by Paul Eggert.
61760         maintainer-makefile: prohibit test x == x
61761         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
61762         Based on a report by Matthias Bolte.
61764         bootstrap: allow FreeBSD gzip
61765         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
61766         which has no '.' and goes to stderr.
61767         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
61768         Reported by Matthias Bolte.
61770         maintainer-makefile: check for i18n setup
61771         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
61772         will likely work.
61774 2010-11-12  Bruno Haible  <bruno@clisp.org>
61776         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
61777         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
61778         * lib/nanosleep.c (nanosleep): Likewise.
61780 2010-11-11  Bruno Haible  <bruno@clisp.org>
61782         fcntl-h: Fix for use of C++ on glibc systems.
61783         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61784         also on glibc systems in C++ mode.
61785         Reported by Gary V. Vaughan <gary@gnu.org>.
61787 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
61789         mknod: avoid false failure with dash
61790         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
61792 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61794         unlink: Fix "is it should" typo in diagnostic.
61795         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
61796         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
61798 2010-11-11  Bruno Haible  <bruno@clisp.org>
61800         Tests for module 'strerror_r-posix'.
61801         * modules/strerror_r-posix-tests: New file.
61802         * tests/test-strerror_r.c: New file.
61803         * tests/test-string-c++.cc: Check the signature of strerror_r.
61805         New module 'strerror_r-posix'.
61806         * lib/string.in.h (strerror_r): New declaration.
61807         * lib/strerror_r.c: New file.
61808         * m4/strerror_r.m4: New file.
61809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
61810         of strerror_r.
61811         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
61812         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
61813         * modules/strerror_r-posix: New file.
61814         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
61815         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
61816         * doc/posix-functions/strerror_r.texi: Mention the new module and the
61817         portability problems.
61819 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
61821         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
61822         line is also considered for output. Quoted function name in shell
61823         command, so temporary files for functions like MyClass::operator()
61824         are removed correctly without errors.
61826 2010-11-09  Bruno Haible  <bruno@clisp.org>
61828         * doc/posix-functions/strerror.texi: List more failing platforms.
61830         * doc/posix-functions/strerror.texi: Add a comment.
61832 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61834         fdopendir: fix bug on MacOS X when low on file descriptors
61836         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
61837         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
61838         All callers changed.
61839         (fdopendir): Invoke save_cwd at the top level, not after using
61840         multiple dup() calls to use up file descriptors.  Then retry
61841         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
61842         less than the maximum number of open file descriptors, because
61843         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
61844         on Mac OS X 10.6.4 for tar 1.24
61845         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
61846         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
61847         and for tar 1.25
61848         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
61850 2010-11-07  Bruno Haible  <bruno@clisp.org>
61852         vasnprintf: Support I flag on glibc systems.
61853         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
61854         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
61855         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
61856         snprintf function.
61857         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
61858         glibc systems.
61859         * tests/test-vasnprintf-posix3.c: New file.
61860         * modules/vasnprintf-posix-tests (Files): Add it.
61861         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
61863 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61865         [html] Fix copy/paste bug: Use unique name for compiler warnings.
61866         * MODULES.html.sh: For compiler warnings, use name
61867         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
61869 2010-11-05  Eric Blake  <eblake@redhat.com>
61871         ceil, floor: avoid spurious failure with icc
61872         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
61873         [denormals-as-zero] when optimizing without -mieee-fp option.
61874         * tests/test-floorf2.c (floorf_reference): Likewise.
61875         * tests/test-ceilf1.c (dummy): New function.
61876         (main): Use it to outsmart icc's optimization.
61877         * tests/test-floorf1.c (dummy, main): Likewise.
61879         tests: require working signbit
61880         * modules/ceilf-tests (Depends-on): Add signbit.
61881         * modules/ceill-tests (Depends-on): Likewise.
61882         * modules/floorf-tests (Depends-on): Likewise.
61883         * modules/floorl-tests (Depends-on): Likewise.
61884         * modules/round-tests (Depends-on): Likewise.
61885         * modules/roundf-tests (Depends-on): Likewise.
61886         * modules/roundl-tests (Depends-on): Likewise.
61887         * modules/trunc-tests (Depends-on): Likewise.
61888         * modules/truncf-tests (Depends-on): Likewise.
61889         * modules/truncl-tests (Depends-on): Likewise.
61891         strtod: work around icc bug
61892         * lib/strtod.c (minus_zero): Define to working value.
61893         (strtod): Use it to avoid icc bug.
61895         copysign: enhance tests
61896         * modules/copysign-tests (Files): Add minus-zero.h.
61897         * tests/test-copysign.c (main): Also test zeros.
61899 2010-11-04  Eric Blake  <eblake@redhat.com>
61901         ceil, floor, round, trunc: enhance tests of -0
61902         * tests/test-ceilf1.c (main): Ensure correct sign of result.
61903         * tests/test-ceill.c (main): Likewise.
61904         * tests/test-floorf1.c (main): Likewise.
61905         * tests/test-floorl.c (main): Likewise.
61906         * tests/test-round1.c (main): Likewise.
61907         * tests/test-roundf1.c (main): Likewise.
61908         * tests/test-roundl.c (main): Likewise.
61909         * tests/test-trunc1.c (main): Likewise.
61910         * tests/test-truncf1.c (main): Likewise.
61911         * tests/test-truncl.c (main): Likewise.
61913 2010-11-04  Eric Blake  <eblake@redhat.com>
61915         frexp, tests: work around ICC bug with -zero
61916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
61917         works with more compilers.
61918         * tests/minus-zero.h: New file.
61919         * modules/ceilf-tests (Files): Include it.
61920         * modules/ceill-tests (Files): Likewise.
61921         * modules/floorf-tests (Files): Likewise.
61922         * modules/floorl-tests (Files): Likewise.
61923         * modules/frexp-nolibm-tests (Files): Likewise.
61924         * modules/frexp-tests (Files): Likewise.
61925         * modules/frexpl-nolibm-tests (Files): Likewise.
61926         * modules/frexpl-tests (Files): Likewise.
61927         * modules/isnan-tests (Files): Likewise.
61928         * modules/isnand-nolibm-tests (Files): Likewise.
61929         * modules/isnand-tests (Files): Likewise.
61930         * modules/isnanf-nolibm-tests (Files): Likewise.
61931         * modules/isnanf-tests (Files): Likewise.
61932         * modules/isnanl-nolibm-tests (Files): Likewise.
61933         * modules/isnanl-tests (Files): Likewise.
61934         * modules/round-tests (Files): Likewise.
61935         * modules/roundf-tests (Files): Likewise.
61936         * modules/roundl-tests (Files): Likewise.
61937         * modules/ldexpl-tests (Files): Likewise.
61938         * modules/signbit-tests (Files): Likewise.
61939         * modules/snprintf-posix-tests (Files): Likewise.
61940         * modules/sprintf-posix-tests (Files): Likewise.
61941         * modules/strtod-tests (Files): Likewise.
61942         * modules/trunc-tests (Files): Likewise.
61943         * modules/truncf-tests (Files): Likewise.
61944         * modules/truncl-tests (Files): Likewise.
61945         * modules/vsnprintf-posix-tests (Files): Likewise.
61946         * modules/vsprintf-posix-tests (Files): Likewise.
61947         * modules/vasnprintf-posix-tests (Files): Likewise.
61948         * modules/vasprintf-posix-tests (Files): Likewise.
61949         * tests/test-ceilf1.c (main): Use it.
61950         * tests/test-ceill.c (main): Likewise.
61951         * tests/test-floorf1.c (main): Likewise.
61952         * tests/test-floorl.c (main): Likewise.
61953         * tests/test-frexp.c (main): Likewise.
61954         * tests/test-frexpl.c (main): Likewise.
61955         * tests/test-isnan.c (main): Likewise.
61956         * tests/test-isnand.h (main): Likewise.
61957         * tests/test-isnanf.h (main): Likewise.
61958         * tests/test-isnanl.h (main): Likewise.
61959         * tests/test-ldexpl.c (main): Likewise.
61960         * tests/test-round.c (main): Likewise.
61961         * tests/test-roundf.c (main): Likewise.
61962         * tests/test-roundl.c (main): Likewise.
61963         * tests/test-signbit.c (test_signbitf, test_signbitd)
61964         (test_signbitl): Likewise.
61965         * tests/test-snprintf-posix.h (test_function): Likewise.
61966         * tests/test-sprintf-posix.h (test_function): Likewise.
61967         * tests/test-strtod.c (main): Likewise.
61968         * tests/test-trunc1.c (main): Likewise.
61969         * tests/test-truncf1.c (main): Likewise.
61970         * tests/test-truncl.c (main): Likewise.
61972         isnanl: work around icc bug
61973         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
61975 2010-11-03  Eric Blake  <eblake@redhat.com>
61977         tests: fix compiler warnings
61978         * tests/test-getopt.h (test_getopt): Fix condition.
61979         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61980         * tests/test-pipe2.c (main): Likewise.
61981         * tests/test-quotearg-simple.c (main): Avoid icc warning.
61983         utimens: fix broken m4 test
61984         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
61986 2010-10-28  Bruno Haible  <bruno@clisp.org>
61988         posix_spawn*, getdtablesize: Relax license.
61989         * modules/posix_spawn (License): Change to LGPLv2+.
61990         * modules/posix_spawnp (License): Likewise.
61991         * modules/posix_spawn-internal (License): Likewise.
61992         * modules/posix_spawnattr_init (License): Likewise.
61993         * modules/posix_spawnattr_getflags (License): Likewise.
61994         * modules/posix_spawnattr_setflags (License): Likewise.
61995         * modules/posix_spawnattr_getpgroup (License): Likewise.
61996         * modules/posix_spawnattr_setpgroup (License): Likewise.
61997         * modules/posix_spawnattr_getschedparam (License): Likewise.
61998         * modules/posix_spawnattr_setschedparam (License): Likewise.
61999         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
62000         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
62001         * modules/posix_spawnattr_getsigdefault (License): Likewise.
62002         * modules/posix_spawnattr_setsigdefault (License): Likewise.
62003         * modules/posix_spawnattr_getsigmask (License): Likewise.
62004         * modules/posix_spawnattr_setsigmask (License): Likewise.
62005         * modules/posix_spawnattr_destroy (License): Likewise.
62006         * modules/posix_spawn_file_actions_init (License): Likewise.
62007         * modules/posix_spawn_file_actions_addclose (License): Likewise.
62008         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
62009         * modules/posix_spawn_file_actions_addopen (License): Likewise.
62010         * modules/posix_spawn_file_actions_destroy (License): Likewise.
62011         * modules/getdtablesize (License): Likewise.
62012         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
62014 2010-10-26  Bruno Haible  <bruno@clisp.org>
62016         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
62017         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
62018         Cygwin and mingw.
62019         Suggested by Eric Blake.
62021 2010-10-26  Bruno Haible  <bruno@clisp.org>
62023         stdio: Work around compilation error due to renameat() on Solaris 10.
62024         * lib/stdio.in.h: Include <unistd.h> on Solaris.
62025         * lib/renameat.c: Don't include <unistd.h> here.
62026         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
62027         Reported by Paul Eggert and Eric Blake.
62029 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62031         renameat: port to Solaris 10, which declares renameat in unistd.h
62033         * lib/renameat.c: Include unistd.h before stdio.h, because
62034         Solaris 10 declares renameat in unistd.h.  Problem encountered
62035         when building GNU tar 1.24 on Solaris 10.
62037 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62039         fdopendir: fix C89 compilation
62040         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
62041         compilers.
62043 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
62045         inttostr: simplify by removing unnecessary redundancy
62046         * lib/anytostr.c: Don't include verify.h.
62047         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
62048         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
62049         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
62050         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
62051         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
62052         Likewise.
62053         * modules/inttostr (Depends-on): Remove 'verify'.
62055 2010-10-23  Bruno Haible  <bruno@clisp.org>
62057         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
62058         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
62059         Reported by Eric Blake.
62061 2010-10-23  Bruno Haible  <bruno@clisp.org>
62063         Tests: Fix LOCALE_JA on MirBSD 10.
62064         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
62065         to an UTF-8 locale.
62066         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
62067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62068         Reported by Eric Blake.
62070 2010-10-21  Bruno Haible  <bruno@clisp.org>
62072         nl_langinfo test: Avoid test failure on NetBSD 5.
62073         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
62074         Reported by Eric Blake.
62076 2010-10-21  Eric Blake  <eblake@redhat.com>
62078         c-stack: work around libsigsegv 2.8 bug
62079         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
62080         overflow on at least PowerPC64.
62082 2010-10-17  Bruno Haible  <bruno@clisp.org>
62084         userspec: Drop redundant file.
62085         * modules/userspec (Files): Remove lib/inttostr.h.
62087 2010-10-17  Bruno Haible  <bruno@clisp.org>
62089         nl_langinfo tests: Silence some warnings.
62090         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
62091         Reported by Jim Meyering.
62093 2010-10-17  Bruno Haible  <bruno@clisp.org>
62095         Make use of GCC's attribute __alloc_size__.
62096         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
62097         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
62098         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
62099         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
62100         __alloc_size__.
62101         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
62102         Suggested by Jim Meyering.
62104 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
62106         bootstrap: anchor .gitignore entries.
62107         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
62108         with...
62109         (insert_vc_ignore): ... this new function, which prepends `/' to
62110         all .gitignore entries before passing them to
62111         insert_sorted_if_absent.
62113 2010-10-16  Bruno Haible  <bruno@clisp.org>
62115         nextafter: Fix configure check.
62116         * modules/nextafter (configure.ac): Correct expected prototype.
62118 2010-10-16  Bruno Haible  <bruno@clisp.org>
62120         termios: Update documentation.
62121         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
62123 2010-10-16  Bruno Haible  <bruno@clisp.org>
62125         tests: Make them compile with TinyCC.
62126         * tests/test-strstr.c (main): Remove parentheses around array
62127         initializer.
62129 2010-10-15  Eric Blake  <eblake@redhat.com>
62131         ignore-value: make header idempotent
62132         * lib/ignore-value.h: Add double-inclusion guards.
62133         Reported by Stefan Berger.
62135 2010-10-15  Jim Meyering  <meyering@redhat.com>
62137         GNUmakefile: handle "stable" target, not "major"
62138         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
62139         lists in maint.mk and announce-gen.  Without this, "make stable"
62140         would fail to ensure that $(VERSION) is up to date.
62142 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
62144         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
62145         & co.
62147 2010-10-14  Bruno Haible  <bruno@clisp.org>
62149         vasnprintf: Don't set errno to 0.
62150         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
62151         block that sets it to 0.
62152         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
62154 2010-10-14  Bruno Haible  <bruno@clisp.org>
62156         socketlib: Fix.
62157         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
62158         gl_PREREQ_SYS_H_WINSOCK2.
62159         Reported by Ian Beckwith <ianb@erislabs.net>.
62161 2010-10-13  Jim Meyering  <meyering@redhat.com>
62163         test-select-stdin.c: avoid warn_unused_result warnings
62164         * tests/test-select-stdin.c: Include "macros.h".
62165         ASSERT that read and fflush succeed.
62167 2010-10-13  Jim Meyering  <meyering@redhat.com>
62169         git-version-gen: do require git-VC'd files in cwd
62170         * build-aux/git-version-gen: Reject a git version string
62171         if there are no commits associated with the current directory.
62172         This avoids an unlikely false-positive (unrelated dir whose parent
62173         repository also contains a tag matching v*), as pointed out
62174         by Giuseppe Scrivano in
62175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
62177 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62179         argv-iter: omit nonconforming declaration
62180         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
62181         enum arg_iter_err declaration, which doesn't conform to C99.
62182         Solaris 10 cc warns about this.
62184 2010-10-13  Eric Blake  <eblake@redhat.com>
62186         termios: fix compilation on mingw
62187         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
62188         (gl_TERMIOS_H): Adjust it on mingw.
62189         * modules/termios (Makefile.am): Substitute new key.
62190         * lib/termios.in.h (includes): Make include_next conditional.
62191         * doc/posix-headers/termios.texi (termios.h): Update
62192         documentation.
62193         Reported by Daniel P. Berrange.
62195 2010-10-13  Jim Meyering  <meyering@redhat.com>
62197         git-version-gen: don't require that .git/ be in the current dir
62198         * build-aux/git-version-gen: Adjust this script so that it works
62199         when run from any working directory beneath the top-level .git/-
62200         containing directory.  Inspired by a patch from Giuseppe Scrivano,
62201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
62203         test-select: avoid warn_unused_result warnings
62204         * tests/test-select.c: Include "macros.h".
62205         ASSERT that each call to read, write, and pipe succeeds.
62206         While not technically required, also check each "close".
62207         * modules/select-tests (Files): Add tests/macros.h.
62209         test-symlinkat: remove declaration of unused local
62210         * tests/test-symlinkat.c (main): Remove unused local, "buf".
62212         test-inttostr: avoid shadowing warnings
62213         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
62214         and use malloc rather than the stack for the same reason as
62215         mentioned in the comment justifying the other allocation.
62217 2010-10-11  Bruno Haible  <bruno@clisp.org>
62219         stdlib: Allow multiple gnulib generated replacements to coexist.
62220         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
62221         Reported by Sam Steingold <sds@gnu.org>.
62223 2010-10-11  Jim Meyering  <meyering@redhat.com>
62225         fix a documentation typo
62226         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
62228 2010-10-11  Eric Blake  <eblake@redhat.com>
62230         futimens: work around Solaris 11 bug
62231         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
62232         * tests/test-futimens.h (test_futimens): Enhance, rather than
62233         weaken test.
62234         * doc/posix-functions/futimens.texi (futimens): Document the bug.
62236 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62238         Indentation.
62239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
62240         higher-level operators more to the left.
62242 2010-10-11  Jim Meyering  <meyering@redhat.com>
62244         test-futimens: avoid unwarranted test failure on Solaris 5.11
62245         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
62246         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
62247         because it tries to dereference the NULL name argument.
62249 2010-10-11  Bruno Haible  <bruno@clisp.org>
62251         Indentation.
62252         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
62253         indentation.
62255 2010-10-11  Jim Meyering  <meyering@redhat.com>
62257         spawn.in.h: make indentation consistent with parentheses
62258         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
62259         Make indentation consistent with parentheses.
62261 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
62263         Fix mismatched parens in previous commit
62264         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
62265         parens.
62267 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62269         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
62271         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
62272         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
62273         * lib/malloca.c: Include "verify.h".
62274         (verify1): Remove, replacing with a verify call.
62275         * lib/relocwrapper.c (verify1): Likewise.
62276         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
62277         Likewise.
62278         * modules/malloca (Depends-on): Add 'verify'.
62279         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
62280         * modules/vasnprintf (Depends-on): Add 'verify'.
62281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62289         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
62291         Formerly the style was sometimes 2*X - 1, because the C standard
62292         was wrongly thought to disallow ?: in integral constant expressions.
62293         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
62294         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
62295         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
62296         * lib/stdint.in.h (_verify_intmax_size): Likewise.
62297         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
62298         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
62299         verify that time_t cannot be floating.
62301 2010-10-08  Eric Blake  <eblake@redhat.com>
62303         time: enforce recent POSIX ruling that time_t is integral
62304         * lib/time.in.h (__time_t_must_be_integral): Detect any
62305         problematic systems, allowing the rest of gnulib to assume POSIX.
62307 2010-10-08  Jim Meyering  <meyering@redhat.com>
62309         fdopendir: fix a bug on systems lacking openat and /proc support
62310         OpenBSD 4.7 is one such system.  The most noticeable effect was
62311         failure of any application making nontrivial use of fts: rm, du,
62312         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
62313           ./rm: traversal failed: `a': Bad file descriptor
62314         Debugging that, you see that even though FD 6 was closed just
62315         prior to the opendir call in fd_clone_opendir, its resulting
62316         dir->dd_fd was 8, rather than the expected value of 6:
62318         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
62319         93                close (fd);
62320         (gdb) n
62321         94                dir = fd_clone_opendir (dupfd);
62322         (gdb) n
62323         95                saved_errno = errno;
62324         (gdb) p dir->dd_fd
62325         $11 = 8
62327         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
62328         The problem is that on OpenBSD, fd_clone_opendir has to resort
62329         to using the old-style save/restore CWD mechanism, due to its
62330         lack of openat/proc support, and *that* would steal the FD (6)
62331         that opendir was supposed to use.
62333         The fix is to squirrel away the desired FD so that save_cwd uses a
62334         different one, and then free the dest FD right before calling opendir.
62335         That guarantees opendir will use the required file descriptor.
62337         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
62339 2010-10-08  Bruno Haible  <bruno@clisp.org>
62341         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
62342         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
62344 2010-10-08  Bruno Haible  <bruno@clisp.org>
62346         nanosleep: Make replacement POSIX compliant.
62347         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
62348         is out of range.
62349         Reported by Jim Meyering.
62351 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62353         bootstrap: add hook for altering gnulib.mk, for Bison
62354         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
62355         the Bison bootstrapping process can rewrite file names and variables
62356         in this file before later parts of 'bootstrap' use the file.
62357         Bison wants to include lib/gnulib.mk from the top-level makefile,
62358         so it needs the file names in this file to be relative to the top
62359         level, not relative to lib; plus it needs variable names to be
62360         rewritten.
62361         (slurp): Use the new function.
62363         bootstrap: reformat for readability
62364         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
62366 2010-10-08  Eric Blake  <eblake@redhat.com>
62368         docs: update cygwin progress
62369         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
62370         1.7.7.
62371         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
62372         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
62373         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
62374         * doc/posix-functions/carg.texi (carg): Likewise.
62375         * doc/posix-functions/cargf.texi (cargf): Likewise.
62376         * doc/posix-functions/casin.texi (casin): Likewise.
62377         * doc/posix-functions/casinf.texi (casinf): Likewise.
62378         * doc/posix-functions/casinh.texi (casinh): Likewise.
62379         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
62380         * doc/posix-functions/catan.texi (catan): Likewise.
62381         * doc/posix-functions/catanf.texi (catanf): Likewise.
62382         * doc/posix-functions/catanh.texi (catanh): Likewise.
62383         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
62384         * doc/posix-functions/ccos.texi (ccos): Likewise.
62385         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
62386         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
62387         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
62388         * doc/posix-functions/cexp.texi (cexp): Likewise.
62389         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
62390         * doc/posix-functions/cimag.texi (cimag): Likewise.
62391         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
62392         * doc/posix-functions/clog.texi (clog): Likewise.
62393         * doc/posix-functions/clogf.texi (clogf): Likewise.
62394         * doc/posix-functions/conj.texi (conj): Likewise.
62395         * doc/posix-functions/conjf.texi (conjf): Likewise.
62396         * doc/posix-functions/cpow.texi (cpow): Likewise.
62397         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
62398         * doc/posix-functions/cproj.texi (cproj): Likewise.
62399         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
62400         * doc/posix-functions/creal.texi (creal): Likewise.
62401         * doc/posix-functions/crealf.texi (crealf): Likewise.
62402         * doc/posix-functions/csin.texi (csin): Likewise.
62403         * doc/posix-functions/csinf.texi (csinf): Likewise.
62404         * doc/posix-functions/csinh.texi (csinh): Likewise.
62405         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
62406         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
62407         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
62408         * doc/posix-functions/ctan.texi (ctan): Likewise.
62409         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
62410         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
62411         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
62412         * doc/posix-headers/complex.texi (complex.h): Likewise.
62414 2010-10-07  Jim Meyering  <meyering@redhat.com>
62416         parse-datetime: avoid compilation failure on OpenBSD 4.7
62417         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
62418         This works around a compilation failure on OpenBSD 4.7:
62419         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
62421 2010-10-07  Eric Blake  <eblake@redhat.com>
62423         docs: update cygwin progress
62424         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
62425         1.7.6.
62426         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62427         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
62428         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
62429         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
62430         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
62431         Likewise.
62432         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
62433         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
62434         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
62435         Likewise.
62436         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
62437         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
62438         Likewise.
62439         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
62440         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
62441         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
62442         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
62443         Likewise.
62444         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
62445         Likewise.
62446         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
62448         docs: update parse-datetime history
62449         * doc/parse-datetime.texi (Authors of parse_datetime): Better
62450         documentation of this function's history and alternatives.
62452         cygwin: use more robust version check
62453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
62454         exclude an eventual cygwin 1.9.1.
62455         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
62457         (gl_FUNC_STRCASESTR): Likewise.
62458         Reported by Bruno Haible.
62460 2010-10-06  Bruno Haible  <bruno@clisp.org>
62462         string, sys_select: Avoid #including large headers unless necessary.
62463         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
62464         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
62465         OSF/1, BeOS, Haiku.
62466         Reported by Jim Meyering.
62468 2010-10-05  Eric Blake  <eblake@redhat.com>
62470         memmem, strstr, strcasestr: fix bug with long periodic needle
62471         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
62472         periodic needle having false positive.
62473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
62474         and cygwin 1.7.7.
62475         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
62476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
62477         (gl_FUNC_STRCASESTR): Likewise.
62478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62479         * tests/test-memmem.c (main): Expose the bug.
62480         * tests/test-strcasestr.c (main): Likewise.
62481         * tests/test-strstr.c (main): Likewise.
62482         * tests/test-c-strcasestr.c (main): Likewise.
62483         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
62484         * doc/posix-functions/strstr.texi (strstr): Likewise.
62485         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
62486         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
62488 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62490         parse-datetime: do some more renaming
62491         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
62492         parse_datetime, not get_date.  Mention the renaming.
62493         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
62494         in comments.
62495         * m4/bison.m4: Likewise.
62497 2010-10-05  Eric Blake  <eblake@redhat.com>
62499         parse-datetime: better name than get_date
62500         * NEWS: Reword the deprecation notice.
62501         * modules/get_date: Rename to modules/parse-datetime.
62502         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
62503         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
62504         * lib/get_date.y: Rename to lib/parse-datetime.y.
62505         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
62506         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
62507         * doc/getdate.texi: Provide fallback wrapper.
62508         * lib/getdate.h: Move guts, and wrap...
62509         * lib/parse-datetime.h: ...new file.
62510         * lib/parse-datetime.y (get_date): Rename...
62511         (parse_datetime): ...to this.
62512         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
62513         (gl_PARSE_DATETIME): ...to this.
62514         * doc/posix-functions/getdate.texi (get_date): Provide fallback
62515         documentation.
62516         * modules/getdate (Files): Provide fallback docs and header.
62517         (Notice, Depends-on): Update references.
62518         * tests/test-parse-datetime.c: Likewise.
62519         * DEPENDENCIES: Likewise.
62520         * MODULES.html.sh (Date and time <time.h>): Likewise.
62521         * doc/parse-datetime.texi (Date input formats)
62522         (Authors of parse_datetime): Likewise.
62523         * modules/parse-datetime (Files, configure.ac, Makefile.am)
62524         (Include): Likewise.
62525         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
62526         * gnulib-tool: Likewise.
62527         * m4/bison.m4 (gl_BISON): Likewise.
62528         Suggested by Bruno Haible.
62530 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62532         more ports to Solaris tr, which needs [] around ranges
62533         * gnulib-tool: Solaris tr needs [] around ranges.
62534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62535         * tests/test-pipe-filter-gi1.c (main): Likewise.
62536         * tests/test-pipe-filter-ii1.c (main): Likewise.
62538 2010-10-05  Eric Blake  <eblake@redhat.com>
62540         bootstrap: fix Solaris regression
62541         * build-aux/bootstrap (check_versions): Solaris tr still needs []
62542         around ranges.
62543         Reported by Pádraig Brady.
62545         bootstrap: work with pkg-config
62546         * build-aux/bootstrap (check_versions): Also transliterate - in
62547         prerequisite name.
62548         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
62549         prerequisites that were already found, to avoid confusion.
62550         Reported by Justin Clift.
62552         faccessat: remove unused wrappers
62553         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
62554         presence of these wrappers dragged in -lgen on Solaris.
62555         Reported by Clemens Brogi; fix suggested by Paul Eggert.
62557 2010-10-05  Jim Meyering  <meyering@redhat.com>
62559         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
62560         * Makefile (sc_pragma_columns): New syntax-check rule.
62562 2010-10-04  Bruno Haible  <bruno@clisp.org>
62564         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
62565         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
62566         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
62567         Reported by Bruce Korb and Eric Blake.
62569 2010-10-04  Bruno Haible  <bruno@clisp.org>
62571         threadlib: Make option --with-libpth-prefix work.
62572         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
62573         use $LIBPTH, not just -lpth.
62575 2010-10-04  Bruno Haible  <bruno@clisp.org>
62577         Avoid line length limitation from HP NonStop system header files.
62578         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
62579         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
62580         * lib/ctype.in.h: Likewise.
62581         * lib/dirent.in.h: Likewise.
62582         * lib/errno.in.h: Likewise.
62583         * lib/fcntl.in.h: Likewise.
62584         * lib/float.in.h: Likewise.
62585         * lib/getopt.in.h: Likewise.
62586         * lib/iconv.in.h: Likewise.
62587         * lib/inttypes.in.h: Likewise.
62588         * lib/langinfo.in.h: Likewise.
62589         * lib/locale.in.h: Likewise.
62590         * lib/math.in.h: Likewise.
62591         * lib/netdb.in.h: Likewise.
62592         * lib/netinet_in.in.h: Likewise.
62593         * lib/poll.in.h: Likewise.
62594         * lib/pthread.in.h: Likewise.
62595         * lib/pty.in.h: Likewise.
62596         * lib/sched.in.h: Likewise.
62597         * lib/se-selinux.in.h: Likewise.
62598         * lib/search.in.h: Likewise.
62599         * lib/signal.in.h: Likewise.
62600         * lib/spawn.in.h: Likewise.
62601         * lib/stdarg.in.h: Likewise.
62602         * lib/stddef.in.h: Likewise.
62603         * lib/stdint.in.h: Likewise.
62604         * lib/stdio.in.h: Likewise.
62605         * lib/stdlib.in.h: Likewise.
62606         * lib/string.in.h: Likewise.
62607         * lib/strings.in.h: Likewise.
62608         * lib/sys_file.in.h: Likewise.
62609         * lib/sys_ioctl.in.h: Likewise.
62610         * lib/sys_select.in.h: Likewise.
62611         * lib/sys_socket.in.h: Likewise.
62612         * lib/sys_stat.in.h: Likewise.
62613         * lib/sys_time.in.h: Likewise.
62614         * lib/sys_times.in.h: Likewise.
62615         * lib/sys_utsname.in.h: Likewise.
62616         * lib/sys_wait.in.h: Likewise.
62617         * lib/sysexits.in.h: Likewise.
62618         * lib/termios.in.h: Likewise.
62619         * lib/time.in.h: Likewise.
62620         * lib/unistd.in.h: Likewise.
62621         * lib/wchar.in.h: Likewise.
62622         * lib/wctype.in.h: Likewise.
62623         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
62624         * modules/ctype (Makefile.am): Likewise.
62625         * modules/dirent (Makefile.am): Likewise.
62626         * modules/errno (Makefile.am): Likewise.
62627         * modules/fcntl-h (Makefile.am): Likewise.
62628         * modules/float (Makefile.am): Likewise.
62629         * modules/getopt-posix (Makefile.am): Likewise.
62630         * modules/iconv-h (Makefile.am): Likewise.
62631         * modules/inttypes (Makefile.am): Likewise.
62632         * modules/langinfo (Makefile.am): Likewise.
62633         * modules/locale (Makefile.am): Likewise.
62634         * modules/math (Makefile.am): Likewise.
62635         * modules/netdb (Makefile.am): Likewise.
62636         * modules/netinet_in (Makefile.am): Likewise.
62637         * modules/poll-h (Makefile.am): Likewise.
62638         * modules/pthread (Makefile.am): Likewise.
62639         * modules/pty (Makefile.am): Likewise.
62640         * modules/sched (Makefile.am): Likewise.
62641         * modules/search (Makefile.am): Likewise.
62642         * modules/selinux-h (Makefile.am): Likewise.
62643         * modules/signal (Makefile.am): Likewise.
62644         * modules/spawn (Makefile.am): Likewise.
62645         * modules/stdarg (Makefile.am): Likewise.
62646         * modules/stddef (Makefile.am): Likewise.
62647         * modules/stdint (Makefile.am): Likewise.
62648         * modules/stdio (Makefile.am): Likewise.
62649         * modules/stdlib (Makefile.am): Likewise.
62650         * modules/string (Makefile.am): Likewise.
62651         * modules/strings (Makefile.am): Likewise.
62652         * modules/sys_file (Makefile.am): Likewise.
62653         * modules/sys_ioctl (Makefile.am): Likewise.
62654         * modules/sys_select (Makefile.am): Likewise.
62655         * modules/sys_socket (Makefile.am): Likewise.
62656         * modules/sys_stat (Makefile.am): Likewise.
62657         * modules/sys_time (Makefile.am): Likewise.
62658         * modules/sys_times (Makefile.am): Likewise.
62659         * modules/sys_utsname (Makefile.am): Likewise.
62660         * modules/sys_wait (Makefile.am): Likewise.
62661         * modules/sysexits (Makefile.am): Likewise.
62662         * modules/termios (Makefile.am): Likewise.
62663         * modules/time (Makefile.am): Likewise.
62664         * modules/unistd (Makefile.am): Likewise.
62665         * modules/wchar (Makefile.am): Likewise.
62666         * modules/wctype (Makefile.am): Likewise.
62668 2010-10-04  Bruno Haible  <bruno@clisp.org>
62670         read-file tests: Avoid a test failure on NonStop Kernel.
62671         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
62672         a regular file.
62673         Reported by Joachim Schmitz <schmitz@hp.com>.
62675 2010-10-03  Bruno Haible  <bruno@clisp.org>
62677         gnulib-tool: Fixes for --create-testdir with --libtool.
62678         * gnulib-tool (func_get_automake_snippet): Don't augment
62679         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
62680         an executable.
62681         (func_create_testdir): Handle module 'alloca' like func_import.
62682         Reported by Bruce Korb <bruce.korb@gmail.com>.
62684 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62686         Avoid some lines longer than 80 characters.
62687         * lib/stdint.in.h: Break long comment lines.
62688         * lib/math.in.h: Likewise.
62689         (_GL_NUM_UINT_WORDS): New macro, for readability.
62690         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
62691         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
62692         * lib/stdlib.in.h: Likewise.
62693         * lib/spawn.in.h: Likewise.
62694         * lib/sys_socket.in.h: Update an URL.
62695         * lib/sys_stat.in.h: Break long line.
62697 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
62699         Improve pmccabe2html.
62700         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
62701         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
62702         when the sources change. Remove the line in the HTML about "Used
62703         ranges" (which implied that there might be other unused ranges),
62704         rename "Resume" to "Summary" (easier to understand for more users).
62705         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
62706         styles, and some unnecessary blank lines.
62708 2010-10-03  Bruno Haible  <bruno@clisp.org>
62709             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
62711         acl: Add support for ACLs on NonStop Kernel.
62712         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
62713         Check whether the function aclsort() exists.
62714         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
62715         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
62716         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
62717         (acl_nontrivial [HAVE_ACLSORT]: New function.
62718         (file_has_acl): Implement for NonStop Kernel.
62719         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
62720         (qset_acl): Implement for NonStop Kernel.
62721         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
62722         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
62723         (main): Implement for NonStop Kernel.
62724         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
62725         Kernel. Handle this flavor.
62726         * tests/test-set-mode-acl.sh: Likewise.
62727         * tests/test-copy-acl.sh: Likewise.
62728         * tests/test-copy-file.sh: Likewise.
62730 2010-10-03  Bruno Haible  <bruno@clisp.org>
62732         Info about ACLs on NonStop Kernel.
62733         * doc/acl-resources.txt: Add info about NonStop Kernel.
62734         References by Joachim Schmitz <schmitz@hp.com>.
62736 2010-10-02  Bruno Haible  <bruno@clisp.org>
62738         Define missing EDQUOT on NonStop Kernel.
62739         * lib/errno.in.h (EDQUOT): Assign a value if missing.
62740         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
62741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
62742         missing.
62743         * doc/posix-headers/errno.texi: Mention the NSK bug.
62744         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
62745         Reported by Joachim Schmitz <schmitz@hp.com>.
62747 2010-10-02  Bruno Haible  <bruno@clisp.org>
62749         Update doc for POSIX:2008.
62750         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
62751         Update URL of POSIX specification.
62753 2010-10-02  Bruno Haible  <bruno@clisp.org>
62755         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
62756         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
62757         from gnulib, not from Automake.
62759 2010-10-02  Bruno Haible  <bruno@clisp.org>
62761         New module 'system-posix'.
62762         * modules/system-posix: New file.
62763         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
62764         module is present.
62765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62766         GNULIB_SYSTEM_POSIX.
62767         * modules/stdlib (Depends-on): Remove sys_wait.
62768         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
62769         * doc/posix-functions/system.texi: Mention the new module.
62770         * doc/posix-headers/stdlib.texi: Likewise.
62771         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
62772         define test_sys_wait_macros to a no-op.
62773         Reported by Sam Steingold <sds@gnu.org>.
62775 2010-09-30  Bruno Haible  <bruno@clisp.org>
62777         More renaming from 'getdate' to 'get_date'.
62778         * doc/get_date.texi: Renamed from doc/getdate.texi.
62779         * modules/get_date (Files): Update.
62780         * MODULES.html.sh (Date and time <time.h>): Update.
62781         * DEPENDENCIES: Update.
62782         * gnulib-tool: Update comment.
62783         * m4/bison.m4 (gl_BISON): Likewise.
62784         * m4/get_date.m4 (gl_GET_DATE): Likewise.
62786 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
62788         bootstrap: support ACLOCAL_FLAGS during aclocal
62789         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
62790         can add additional -I dir for third-party .m4 files.
62792 2010-09-30  Eric Blake  <eblake@redhat.com>
62794         bootstrap: use glibtoolize on MacOS
62795         * build-aux/bootstrap (check_versions): Convert libtool into
62796         libtoolize.
62797         (tool search): Move libtool check earlier, and look for
62798         glibtoolize for MacOS.
62799         (gnulib_tool_options): Auto-add --libtool when appropriate.
62800         Reported by Justin Clift.
62802         poll: fix typo that broke test on MacOS
62803         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
62804         Reported by Justin Clift.
62806         getdate: rename to get_date
62807         Note: getdate.h is not renamed, to minimize client impact.
62808         * modules/getdate: Mark obsolete.  Move old contents...
62809         * modules/get_date: ...to new module name.
62810         * modules/getdate-tests: Move...
62811         * modules/get_date-tests: ...here.
62812         * m4/getdate.m4: Move...
62813         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
62814         * lib/getdate.y: Move...
62815         * lib/get_date.y: ...here.
62816         * tests/test-getdate.c: Move...
62817         * tests/test-get_date.c: ...here.
62818         * doc/posix-functions/getdate.texi (getdate): Update name.
62819         * NEWS: Mention the change.
62821 2010-09-29  Bruno Haible  <bruno@clisp.org>
62823         Separate the module 'waitpid' from the module 'sys_wait'.
62824         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
62825         present.
62826         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
62827         gl_MODULE_INDICATOR_FOR_TESTS.
62828         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
62829         * modules/sys_wait (Depends-on): Remove waitpid.
62830         (Makefile.am): Substitute GNULIB_WAITPID.
62831         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
62832         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
62833         signature only if the 'waitpid' module is present.
62834         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
62835         * NEWS: Mention the change.
62836         * modules/grantpt (Depends-on): Add waitpid.
62837         * modules/wait-process (Depends-on): Likewise.
62839 2010-09-29  Bruno Haible  <bruno@clisp.org>
62841         More tests for module 'sys_wait'.
62842         * modules/sys_wait-c++-tests: New file.
62843         * tests/test-sys_wait-c++.cc: New file.
62844         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
62845         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
62847 2010-09-29  Bruno Haible  <bruno@clisp.org>
62849         New module 'waitpid'.
62850         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
62851         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
62852         Don't include <process.h>.
62853         (waitpid): Declare only, using modern idiom.
62854         * m4/waitpid.m4: New file.
62855         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
62856         * modules/waitpid: New file.
62857         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
62858         (Makefile.am): Update.
62859         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
62861 2010-09-28  Bruno Haible  <bruno@clisp.org>
62863         poll: Assume ANSI C.
62864         * lib/poll.c (poll): Use an ANSI C declaration.
62866 2010-09-28  Bruno Haible  <bruno@clisp.org>
62868         poll-h: Create poll.h on all platforms.
62869         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
62870         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
62871         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
62872         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
62873         (gl_REPLACE_POLL_H): Don't set POLL_H.
62874         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
62875         * modules/poll-h (Depends-on): Add include_next.
62876         (Makefile.am): Create poll.h unconditionally. Substitute also
62877         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
62879 2010-09-28  Bruno Haible  <bruno@clisp.org>
62881         Tests for module 'poll-h'.
62882         * modules/poll-h-c++-tests: New file.
62883         * tests/test-poll-h-c++.cc: New file.
62885         Tests for module 'poll-h'.
62886         * modules/poll-h-tests: New file.
62887         * tests/test-poll-h.c: New file.
62889 2010-09-28  Bruno Haible  <bruno@clisp.org>
62891         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
62892         * modules/poll-h (Depends-on): Add 'extensions'.
62894 2010-09-28  Bruno Haible  <bruno@clisp.org>
62896         New module 'poll-h'.
62897         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
62898         (poll): Use modern idiom.
62899         * modules/poll-h: New file.
62900         * modules/poll (Files): Remove lib/poll.in.h.
62901         (Depends-on): Add poll-h.
62902         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
62903         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
62904         * m4/poll_h.m4: New file.
62905         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
62906         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
62907         and invoke gl_REPLACE_POLL_H.
62908         * lib/poll.c: Use common idiom.
62909         * tests/test-poll.c: Likewise.
62910         * doc/posix-headers/poll.texi: Mention the poll-h module.
62911         Suggested by Eric Blake.
62913 2010-09-26  Bruno Haible  <bruno@clisp.org>
62915         sys_wait: Implement WSTOPSIG.
62916         * lib/sys_wait.in.h (WSTOPSIG): New macro.
62917         Reported by Simon Josefsson.
62919 2010-09-26  Simon Josefsson  <simon@josefsson.org>
62921         stdlib, sys_wait: Avoid compilation error on mingw.
62922         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
62924 2010-09-26  Bruno Haible  <bruno@clisp.org>
62926         stdlib tests: Avoid code duplication.
62927         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
62928         * modules/sys_wait-tests (Files): Likewise.
62929         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
62930         * tests/test-stdlib.c: Include test-sys_wait.h.
62931         (main): Invoke test_sys_wait_macros.
62932         * tests/test-sys_wait.c: Include test-sys_wait.h.
62933         (main): Invoke test_sys_wait_macros.
62935 2010-09-25  Simon Josefsson  <simon@josefsson.org>
62937         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
62938         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
62939         sure Windows sockets are working before calling getaddrinfo.
62940         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
62941         * doc/gnulib.texi (Windows sockets): Fix typo.
62943 2010-09-25  Bruno Haible  <bruno@clisp.org>
62945         Tests for module 'regex-quote'.
62946         * modules/regex-quote-tests: New file.
62947         * tests/test-regex-quote.c: New file.
62949         New module 'regex-quote'.
62950         * lib/regex-quote.h: New file.
62951         * lib/regex-quote.c: New file.
62952         * modules/regex-quote: New file.
62953         Suggested by Reuben Thomas <rrt@sc3d.org>.
62955 2010-09-24  Bruno Haible  <bruno@clisp.org>
62957         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
62958         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
62960 2010-09-23  Bruno Haible  <bruno@clisp.org>
62962         setenv: Relax license.
62963         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
62964         Blake.
62965         Requested by Eric Blake.
62967 2010-09-22  Bruno Haible  <bruno@clisp.org>
62969         termios: Relax license.
62970         * modules/termios (License): Change to LGPLv2+.
62971         Requested by Eric Blake.
62973 2010-09-22  Bruno Haible  <bruno@clisp.org>
62975         threadlib: Allow the package to change the default to 'no'.
62976         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
62977         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
62978         Reported by Paul Eggert.
62980 2010-09-22  Pádraig Brady  <P@draigbrady.com>
62981             Bruno Haible  <bruno@clisp.org>
62983         Fix endless loop in mbmemcasecoll.
62984         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
62985         byte.
62986         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
62988 2010-09-22  Bruno Haible  <bruno@clisp.org>
62990         Tests for module 'memcoll'.
62991         * modules/memcoll-tests: New file.
62992         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
62994         memcoll, xmemcoll: Clarify size vs. length.
62995         * modules/memcoll.c (memcoll0): Clarify specification.
62996         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
62997         passed to collate_error.
62999 2010-09-22  Bruno Haible  <bruno@clisp.org>
63001         Tests for module 'memcasecmp'.
63002         * modules/memcasecmp-tests: New file.
63003         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
63005 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63007         * lib/pthread.in.h: Add split double-inclusion guard, and include
63008         system <pthread.h> if there is one.  Use @@-style as in other
63009         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
63010         pthread.h doesn't.
63011         (pthread_mutexattr_destroy, pthread_mutexattr_init):
63012         (pthread_mutexattr_settype, pthread_mutex_trylock):
63013         New static inline functions, if there's no system <pthread.h>.
63014         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
63015         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
63016         Approximate with mutexes if the system lacks spinlocks, as in
63017         MacOS.
63018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
63019         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
63020         @@-style.  Check for spinlocks separately.
63021         (gl_PTHREAD_DEFAULTS): New macro.
63022         * modules/pthread: Redo to use a more typical style for in.h files.
63024 2010-09-21  Eric Blake  <eblake@redhat.com>
63026         net_if: enhance tests
63027         * tests/test-net_if.c (main): Move signature checks earlier.
63028         Print failures to stderr.
63029         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
63030         Document the bug that we do not yet fix.
63032 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63034         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
63035         about gnulib, not GSS.
63037 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63039         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
63040         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
63041         for Emacs.
63042         * build-aux/pmccabe2html: Make Makefile.am example code more
63043         cut-and-paste friendly.
63045 2010-09-21  Simon Josefsson  <simon@josefsson.org>
63047         * tests/test-net_if.c: New file.
63048         * modules/net_if-tests: New file.
63050 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63052         pthread: add pthread_spin_destroy
63053         * lib/pthread.in.h (pthread_spin_destroy): New function.
63055 2010-09-19  Bruno Haible  <bruno@clisp.org>
63057         gnulib-tool: Fix --help output.
63058         * gnulib-tool (func_usage): Fix help message.
63059         Reported by Reuben Thomas <rrt@sc3d.org>.
63061 2010-09-18  Jim Meyering  <meyering@redhat.com>
63063         maint.mk: avoid unexpanded \n in two diagnostics
63064         * top/maint.mk (sc_prohibit_always_true_header_tests):
63065         Don't use a literal \n in a halt=... assignment.  It would not be
63066         expanded, and the two \n bytes would appear in the diagnostic output
63067         rather than the desired newline.  Use halt=$$(printf ... instead.
63068         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
63070 2010-09-18  Bruno Haible  <bruno@clisp.org>
63072         netinet_in: Doc tweak.
63073         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
63074         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63076 2010-09-18  Jim Meyering  <meyering@redhat.com>
63078         init.sh: correct an outdated comment
63079         * tests/init.sh (create_exe_shims_):  s/function/alias/
63081         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
63082         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
63083         a file named "*.exe" is removed between the glob expansion and the
63084         processing of that oddly named file.
63086 2010-09-17  Eric Blake  <eblake@redhat.com>
63088         mirbsd: add some more support
63089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
63090         in BSD family.
63091         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
63092         devices as OpenBSD.
63093         * m4/host-os.m4 (mirbsd): Add MirBSD.
63095         tests: fix unportable assumption on sys/wait.h
63096         * tests/test-sys_wait.c (main): Relax test.
63097         * tests/test-stdlib.c (main): Likewise.
63099         init.sh: accommodate directory with no .exes
63100         * tests/init.sh: Accomodate directory containing only scripts.
63102         tests: avoid compiler warning
63103         * tests/test-stdlib.c (main): Use the variable.
63105         fdutimens, fdutimensat: update signature, again
63106         * lib/utimens.h (gl_futimens): Delete, and move signature...
63107         (fdutimens): ...here.
63108         (fdutimensat): Rearrange signature.
63109         (lutimensat): Rename variable for clarity.
63110         * lib/fdutimensat.c (fdutimensat): Update signature.
63111         * lib/utimens.c (fdutimens): Likewise.
63112         (gl_futimens): Delete.
63113         (utimens, lutimens): Update callers.
63114         * lib/futimens.c (futimens): Likewise.
63115         * tests/test-fdutimensat.c: Likewise.
63116         * tests/test-utimens.c: Likewise.
63117         * tests/test-futimens.h: Update comment.
63118         * NEWS: Mention this.
63119         Suggested by Paul Eggert.
63121 2010-09-17  Bruno Haible  <bruno@clisp.org>
63123         Take over the maintenance of some older macros from Autoconf.
63124         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
63125         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
63126         GNU Autoconf.
63127         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
63128         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
63130 2010-09-17  Eric Blake  <eblake@redhat.com>
63132         fdutimensat: drop atflag validation
63133         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
63134         with valid fd, to close a race scenario where futimens is
63135         unsupported and FILE was replaced by a symlink.
63136         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
63137         accordingly.
63138         Suggested by Paul Eggert.
63140 2010-09-16  Bruno Haible  <bruno@clisp.org>
63142         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
63143         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
63145 2010-09-16  Bruno Haible  <bruno@clisp.org>
63147         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
63148         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
63149         login_tty exists.
63150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63152 2010-09-16  Bruno Haible  <bruno@clisp.org>
63154         login_tty: Make the replacement code work on BSD systems.
63155         * lib/login_tty.c: Include <sys/ioctl.h>.
63156         (login_tty): Use ioctl TIOCSCTTY when available.
63157         * modules/login_tty (Depends-on): Add sys_ioctl.
63158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63160 2010-09-16  Bruno Haible  <bruno@clisp.org>
63162         login_tty: Stricter unit test.
63163         * modules/login_tty-tests (Depends-on): Add tcgetsid.
63164         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
63165         and tcgetsid() after login_tty.
63166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63168 2010-09-16  Bruno Haible  <bruno@clisp.org>
63170         New module 'tcgetsid'.
63171         * lib/tcgetsid.c: New file.
63172         * m4/tcgetsid.m4: New file.
63173         * modules/tcgetsid: New file.
63174         * modules/termios (Depends-on): Add c++defs, warn-on-use.
63175         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
63176         GNULIB_TCGETSID, HAVE_TCGETSID.
63177         * lib/termios.in.h: Include <sys/types.h>.
63178         (tcgetsid): New declaration.
63179         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
63180         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
63181         * doc/posix-functions/tcgetsid.texi: Mention the new module.
63182         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
63184 2010-09-16  Bruno Haible  <bruno@clisp.org>
63186         Tests for module 'termios'.
63187         * modules/termios-c++-tests: New file.
63188         * modules/termios-tests: New file.
63189         * tests/test-termios-c++.cc: New file.
63190         * tests/test-termios.c: New file.
63192         New module 'termios'.
63193         * modules/termios: New file.
63194         * lib/termios.in.h: New file.
63195         * m4/termios_h.m4: New file.
63196         * doc/posix-headers/termios.texi: Mention the new module.
63198 2010-09-16  Eric Blake  <eblake@redhat.com>
63200         fdutimensat: add an atflag parameter
63201         * lib/fdutimensat.c (fdutimensat): Add new parameter.
63202         * lib/utimens.h (fdutimensat): Update prototype.
63203         * tests/test-fdutimensat.c: Adjust test to match.
63204         * NEWS: Document the change.
63205         Suggested by Paul Eggert.
63207 2010-09-16  Bruno Haible  <bruno@clisp.org>
63209         Fix typos in comments.
63210         * lib/striconveh.h: Fix typo in comment.
63211         * lib/login_tty.c (login_tty): Likewise.
63213 2010-09-15  Bruno Haible  <bruno@clisp.org>
63215         stdlib: clarify MirBSD WEXITSTATUS bug
63216         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
63217         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63219 2010-09-15  Eric Blake  <eblake@redhat.com>
63221         stdlib: work around MirBSD WEXITSTATUS bug
63222         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
63223         * modules/stdlib (Depends-on): Add sys_wait.
63224         * tests/test-sys_wait.c (main): Enhance test.
63225         * tests/test-stdlib.c (main): Likewise.
63226         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
63228         docs: mention MacOS issue with WEXITSTATUS(constant)
63229         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
63230         issue.
63231         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63233         strnlen: add tests
63234         * modules/strnlen-tests: New file.
63235         * tests/test-strnlen.c: Likewise.
63237 2010-09-14  Bruno Haible  <bruno@clisp.org>
63239         unistr/base: Avoid link errors when module 'libunistring' is also used.
63240         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
63241         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
63242         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
63243         Declare also when HAVE_LIBUNISTRING is set.
63244         Reported by Pádraig Brady <P@draigbrady.com>.
63246 2010-09-14  Eric Blake  <eblake@redhat.com>
63248         test-rawmemchr: make more robust
63249         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
63250         (Depends-on, configure.ac): Add needed prerequisites to use it.
63251         * modules/memchr-tests (Files, Depends-on, configure.ac):
63252         Likewise, to avoid implicit reliance on memchr module prereqs.
63253         * tests/test-memchr.c (main): Ensure proper masking.
63254         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
63255         reads.
63257         memchr: detect glibc Alpha bug
63258         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
63259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
63260         Alpha.
63261         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
63262         * tests/test-memchr.c (main): Enhance test.
63263         Reported by Nelson H. F. Beebe.
63265 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63267         fts, getcwd, glob: audit for dirfd returning -1
63268         * lib/fts.c (opendir): Remove #define; no longer used.
63269         (opendirat): New arg PDIR_FD.  All callers changed.
63270         (fts_build, _opendir2): Use new opendirat to avoid the need for
63271         dirfd, or for checking whether dirfd returns a negative value.
63272         Don't use opendir; always use openat followed by fdopendir.
63273         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
63274         it.
63275         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
63276         returns -1 here.
63277         * modules/fts (Depends-on): Remove dirfd.
63278         * modules/getcwd (Depends-on): Likewise.
63280 2010-09-13  Eric Blake  <eblake@redhat.com>
63282         float: fix broken MirBSD header
63283         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
63284         * doc/posix-headers/float.texi (float.h): Document it.
63286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63288         fts: use O_NOFOLLOW to avoid race condition when opening a directory
63289         * lib/fts.c (opendirat): New arg extra_flags.
63290         (__opendir2): Use it to avoid following symlinks when opening
63291         a directory, if symlinks are not supposed to be followed.  See
63292         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
63294         fdopendir: preserve argument fd before returning
63295         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
63296         (fdopendir_with_dup, fd_clone_opendir): New static functions.
63297         (fdopendir): Use them, arranging for FD to be open to the same
63298         directory that it was when it started.  (It might be temporarily
63299         closed while fdopendir is running, so this not thread- or
63300         signal-safe.)  Be careful to do the right thing even when file
63301         descriptors are scarce and dup fails with errno == EMFILE.  See
63302         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
63304 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
63306         regex: Pass the system regex if its only problem is 32-bit regoff_t.
63307         * NEWS: Document change.
63308         * m4/regex.m4: Disable test for regoff_t size.
63310 2010-09-13  Jim Meyering  <meyering@redhat.com>
63312         fts: don't operate on an invalid file descriptor after failed dup
63313         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
63314         negative file descriptor.
63316 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63318         savedir: add streamsavedir, deprecate fdsavedir
63319         * NEWS: Mention deprecation of fdsavedir.
63320         * lib/savedir.c (streamsavedir): New extern function, whose name
63321         ends in "savedir" to be consistent with the others.  This differs
63322         from savedirstream in that it doesn't close its argument.  The
63323         next version of GNU tar will use this instead of fdsavedir, to
63324         avoid some race conditions and conserve file descriptors.
63325         (savedirstream): Reimplement as a wrapper around streamsavedir.
63326         (fdsavedir): Add a comment deprecating this function.  As far as
63327         I know, only GNU tar used it, and GNU tar doesn't need it any more.
63328         * lib/savedir.h (streamsavedir): New decl.
63329         (fdsavedir): Add a comment deprecating this.
63331 2010-09-10  Bruno Haible  <bruno@clisp.org>
63333         langinfo: Fix last commit.
63334         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
63335         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
63336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63338 2010-09-10  Bruno Haible  <bruno@clisp.org>
63340         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
63341         * lib/progreloc.c (O_EXEC): Define fallback.
63343 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
63345         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
63346         * NEWS: Document recent changes to fcntl-h.
63347         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
63348         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
63349         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
63350         Similarly for O_SEARCH; this last was already true, but not documented.
63351         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
63352         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
63353         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
63354         Likewise.
63355         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
63356         is zero, not whether it is defined.
63357         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
63358         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
63359         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
63361 2010-09-10  Bruno Haible  <bruno@clisp.org>
63363         langinfo, nl_langinfo: Fix for IRIX 5.3.
63364         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
63365         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
63366         HAVE_LANGINFO_YESEXPR.
63367         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
63368         HAVE_LANGINFO_YESEXPR.
63369         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
63370         HAVE_LANGINFO_T_FMT_AMPM is 0.
63371         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
63372         HAVE_LANGINFO_YESEXPR is 0.
63373         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
63374         NOEXPR.
63375         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
63376         * doc/posix-functions/nl_langinfo.texi: Likewise.
63377         Reported by Eric Blake.
63379 2010-09-10  Bruno Haible  <bruno@clisp.org>
63381         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
63382         * doc/glibc-functions/login_tty.texi: Mention the include file problem
63383         on FreeBSD 8.0 and OpenBSD 4.6.
63384         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
63385         * m4/pty_h.m4 (gl_PTY_H): Likewise.
63386         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
63387         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
63388         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
63389         ac_includes_default.
63390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63392 2010-09-09  Eric Blake  <eblake@redhat.com>
63394         strsignal: work around NetBSD bug
63395         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
63396         * lib/string.in.h (includes): Likewise.
63397         * doc/posix-functions/strsignal.texi (strsignal): Document the
63398         bug.
63399         Reported by Nelson H. F. Beebe.
63401         gnulib-tool: work with NetBSD /bin/sh
63402         * gnulib-tool (func_cache_var, func_cache_lookup_module)
63403         (func_get_description, func_get_comment, func_get_status)
63404         (func_get_notice, func_get_applicability, func_get_filelist)
63405         (func_get_dependencies, func_get_autoconf_early_snippet)
63406         (func_get_autoconf_snippet, func_get_automake_snippet)
63407         (func_get_include_directive, func_get_link_directive)
63408         (func_get_license, func_get_maintainer, func_import): Avoid
63409         shell syntax errors from parsing syntax extensions.
63411 2010-09-09  Bruno Haible  <bruno@clisp.org>
63413         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
63414         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
63415         a reliable way to determine whether the 'alias' command works.
63417 2010-09-08  Jim Meyering  <meyering@redhat.com>
63419         init.sh: penalize a set-x-impaired shell; don't disqualify it
63420         * tests/init.sh: Too many shells corrupt application stderr when
63421         you set -x, so we can't afford to disqualify them, since at least
63422         on Irix-6.5, that would disqualify all bourne shells.
63423         Instead, use a two-pass approach.
63424         On the first pass, try to find a shell that meets the stricter
63425         condition that set -x does not corrupt stderr.
63426         If no shell meets the stricter condition, retest each candidate
63427         shell, but without that extra condition.  Finally, when
63428         VERBOSE=yes is requested and set -x might cause trouble, simply
63429         issue a warning and refrain from enabling debug output.
63431 2010-09-08  Eric Blake  <eblake@redhat.com>
63433         unsetenv: fix OpenBSD bug
63434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
63435         * doc/posix-functions/unsetenv.texi (unsetenv): Update
63436         documentation.
63437         Reported by Jim Meyering.
63439         strtod: work around IRIX 6.5 bug
63440         * lib/strtod.c (strtod): Reparse number on shorter string if
63441         exponent parse was invalid.
63442         * tests/test-strtod.c (main): Add check for "0x1p 2".
63443         Reported by Tom G. Christensen.
63445         getopt: optimize previous patch
63446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
63447         empty variable.  Speed up awk script.
63448         Reported by Paolo Bonzini.
63450 2010-09-08  Jim Meyering  <meyering@redhat.com>
63452         test.sh: disqualify shells for which set -x corrupts stderr
63453         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
63454         and OpenBSD 4.7.  They make it so with "set -x", environment settings
63455         appear in stderr output.  For example, this command:
63456             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
63457         prints "P=1" on those two systems:
63459 2010-09-08  Bruno Haible  <bruno@clisp.org>
63461         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
63462         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
63463         commands, because some shells ignore redirections when there is an
63464         error in the command lookup.
63465         Reported by Eric Blake.
63467 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
63469         * lib/regex.h: Fix a mention of `regex_compile' (should be
63470         `re_compile_pattern').
63471         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
63472         (re_set_registers): Correct name of parameter in comment.
63474         * doc/regex.texi: Add documentation for missing syntax flags.
63475         Remove commented-out documentation of defunct syntax option
63476         RE_NO_EMPTY_ALTS.
63477         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
63478         Add documentation of re_set_registers.
63479         Document trick to re-use a pattern buffer by setting fastmap manually.
63480         Update documentation of struct re_pattern_buffer per public members.
63481         Uncomment documentation of equivalence class operators and
63482         collating symbol operators, since they are now implemented,
63483         Explain leftmost-longest matching in relation to alternatives.
63484         Tidy documentation of substring matching.
63485         Remove POSIX documentation, which is done better in
63486         glibc, and refer the reader there. Keep BSD API documentation, as
63487         that is not readily available elsewhere.
63489 2010-09-07  Eric Blake  <eblake@redhat.com>
63491         getopt: handle POSIXLY_CORRECT set but not exported
63492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
63493         export state of POSIXLY_CORRECT, due to bash set -o posix.
63494         Reported by Dustin J. Mitchell.
63496 2010-09-05  Bruno Haible  <bruno@clisp.org>
63498         gnulib-tool: Highlight the changed options.
63499         * gnulib-tool (func_usage): Display the --import, --add-import,
63500         --remove-import explanations in bold font.
63502 2010-09-06  Karl Berry  <karl@gnu.org>
63504         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
63506 2010-09-05  Bruno Haible  <bruno@clisp.org>
63508         uniwidth/width: Update comment.
63509         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
63510         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
63512 2010-09-05  Bruno Haible  <bruno@clisp.org>
63514         isinf, isnan: Relax license.
63515         * modules/isinf (License): Change from GPL to LGPL, with consent from
63516         Ben Pfaff.
63517         * modules/isnan (License): Likewise.
63518         Requested by Ludovic Courtès.
63520 2010-09-04  Bruno Haible  <bruno@clisp.org>
63522         gnulib-tool: Help migration from --import to --add-import or --update.
63523         * gnulib-tool: Emit a verbose error message when --import is used
63524         without any module name.
63526 2010-09-04  Bruno Haible  <bruno@clisp.org>
63528         Update doc about gnulib-tool.
63529         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
63530         'gnulib-tool --update' in more detail.
63531         Reported by Eric Blake.
63533 2010-09-04  Bruno Haible  <bruno@clisp.org>
63535         gnulib-tool: Change --import. New options --add/remove-import.
63536         * gnulib-tool: New options --add-import, --remove-import.
63537         (func_usage): Document them.
63538         (have_associative): Define always.
63539         (func_import): In import mode, don't merge the specified settings with
63540         the cached settings. Implement remove-import mode.
63541         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
63542         Explain when to use them versus --import.
63543         (Simple update): Use --add-import instead of --import.
63544         * NEWS: Mention the change.
63546 2010-09-04  Bruno Haible  <bruno@clisp.org>
63548         * doc/gnulib-tool.texi (Initial import): Update paragraph about
63549         separate gnulib.mk.
63551 2010-09-04  Bruno Haible  <bruno@clisp.org>
63553         gnulib-tool: Don't talk about CVS any more.
63554         * gnulib-tool (func_usage, func_import): Write "version control"
63555         instead of CVS.
63557 2010-09-04  Jim Meyering  <meyering@redhat.com>
63559         maint.mk: avoid obscure sc_copyright_check failure in coreutils
63560         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
63561         false positives (whose names may be ill-chosen) when searching
63562         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
63563         would cause a false-positive.
63565         avoid coreutils "make distcheck" failure
63566         Coreutils tests with an absolute build directory name that contains
63567         a space.  Not quoting this directory name caused a failure.
63568         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
63569         * tests/test-vc-list-files-cvs.sh: Likewise.
63571 2010-09-04  Bruno Haible  <bruno@clisp.org>
63573         gnulib-tool: Avoid error when run in a package without Makefile.am.
63574         * gnulib-tool: When collecting the m4dirs in a package that does not
63575         have a Makefile.am, eliminate those directories that contain no
63576         gnulib-cache.m4. Fix expression that counts these directories.
63578 2010-09-04  Bruno Haible  <bruno@clisp.org>
63580         update-copyright test: Improve output when perl is missing or too old.
63581         * tests/test-update-copyright.sh: Move test of Perl version down after
63582         the test whether Perl exists. Provide an explanation relating Perl's
63583         error message to Automake's SKIP: message.
63585 2010-09-04  Bruno Haible  <bruno@clisp.org>
63587         Don't augment PATH in TESTS_ENVIRONMENT.
63588         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
63589         set abs_aux_dir instead of augmenting PATH.
63590         * modules/vc-list-files-tests (Makefile.am): Likewise.
63591         * tests/test-update-copyright.sh: Augment PATH here.
63592         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
63593         path_prepend_.
63594         * tests/test-vc-list-files-git.sh: Likewise.
63596 2010-09-04  Jim Meyering  <meyering@redhat.com>
63598         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
63599         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
63601 2010-09-04  Bruno Haible  <bruno@clisp.org>
63603         strdup: Fix compilation error in C++ mode.
63604         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
63605         the macro.
63607 2010-09-04  Bruno Haible  <bruno@clisp.org>
63609         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
63610         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
63611         macro into a function.
63612         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63614 2010-09-04  Bruno Haible  <bruno@clisp.org>
63616         Set PATH_SEPARATOR the same way autoconf does.
63617         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
63618         the value of PATH_SEPARATOR the same way autoconf-generated configure
63619         scripts do.
63620         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
63621         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
63623 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
63625         Set PATH_SEPARATOR the same way autoconf does.
63626         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
63627         the same way autoconf-generated configure scripts do.
63628         * posix-modules: Likewise.
63630 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63632         hash: fix safe_hasher const typo
63633         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
63634         const; otherwise, there is a type error later.
63636 2010-09-02  Jim Meyering  <meyering@redhat.com>
63638         test-update-copyright.sh: require perl 5.8.0
63639         * tests/test-update-copyright.sh: Require 5.8.0,
63640         which Tom G. Christensen has confirmed is adequate,
63641         while 5.6.1 is not.
63643 2010-09-02  Eric Blake  <eblake@redhat.com>
63645         tests: init.sh improvements for re-exec'ing with zsh
63646         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
63647         -vx through shell re-exec.
63648         Reported by Tom G. Christensen.
63650         wctype: fix typo in previous commit
63651         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
63652         Reported by Ludovic Courtès.
63654 2010-09-02  Jim Meyering  <meyering@redhat.com>
63656         test-update-copyright.sh: skip test if Perl is too old
63657         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
63658         Reported by Tom G. Christensen.
63660 2010-09-02  Bruno Haible  <bruno@clisp.org>
63662         wctype: Avoid compilation error on IRIX 6.5.30.
63663         * lib/wctype.in.h (iswblank): Declare with a replacement if
63664         REPLACE_ISWBLANK is set.
63665         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
63666         declared. Set REPLACE_ISWBLANK.
63667         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
63668         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
63669         * doc/posix-headers/wctype.texi: Likewise.
63670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63672 2010-09-01  Bruno Haible  <bruno@clisp.org>
63674         New module 'socketlib'.
63675         * modules/socketlib: New file.
63676         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
63677         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
63678         * modules/sockets (Depends-on): Add socketlib.
63679         Suggested by Sam Steingold <sds@gnu.org>.
63681 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63683         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
63685         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
63686         when one needs search access to a directory but not read access.
63687         On systems where it is available, it works in some cases where
63688         O_RDONLY does not, namely on directories that are searchable but
63689         not readable, and which need only to be searchable.  If O_SEARCH
63690         is not available, fall back to the traditional method of using
63691         O_RDONLY.
63693         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
63694         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
63695         when opening a directory that needs only to be searchable.
63696         * lib/chdir-safer.c (chdir_no_follow): Likewise.
63697         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
63698         * lib/openat-proc.c (openat_proc_name): Likewise.
63699         * lib/openat.c (openat_needs_fchdir): Likewise.
63700         * lib/save-cwd.c (save_cwd): Likewise.
63701         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
63703 2010-08-28  Bruno Haible  <bruno@clisp.org>
63705         New module 'host-cpu-c-abi'.
63706         * modules/host-cpu-c-abi: New file.
63707         * m4/host-cpu-c-abi.m4: New file, based on part of
63708         clisp/src/m4/general.m4.
63709         Requested by Sam Steingold <sds@gnu.org>.
63711 2010-08-31  Eric Blake  <eblake@redhat.com>
63712         and Jim Meyering  <meyering@redhat.com>
63714         hash: factor, and guard against misbehaving hasher function
63715         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
63716         of table->hasher's return value.  Also protect against a hash value
63717         so large that adding it to table->bucket results in a NULL pointer.
63718         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
63719         Use it in place of open-coded check-and-abort.
63721 2010-08-30  Bruno Haible  <bruno@clisp.org>
63723         hash: silence spurious clang warning
63724         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
63725         Reported by Eric Blake.
63727 2010-08-30  Eric Blake  <eblake@redhat.com>
63729         strstr, memmem, strcasestr: avoid leaked shell message
63730         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
63731         FreeBSD.
63732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63735         tests: silence clang warning
63736         * tests/test-malloca.c (do_allocation): Avoid dead store.
63738 2010-08-29  Bruno Haible  <bruno@clisp.org>
63740         gettext: Fix recent mistake.
63741         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
63743 2010-08-29  Bruno Haible  <bruno@clisp.org>
63745         selinux-h: Offer a --without-selinux option.
63746         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
63747         --without-selinux was specified, skip all tests and define
63748         HAVE_SELINUX_SELINUX_H to 0.
63749         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
63750         set LIB_SELINUX to empty.
63751         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
63752         gl_LIBSELINUX. If --without-selinux was specified, replace
63753         selinux/context.h.
63754         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
63756 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63757             Bruno Haible  <bruno@clisp.org>
63759         Make the module 'realloc-gnu' work again on AIX and OSF/1.
63760         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
63761         of HAVE_REALLOC.
63762         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
63763         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
63764         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
63765         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
63767 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63768             Bruno Haible  <bruno@clisp.org>
63770         Make the module 'calloc-gnu' work again on AIX and OSF/1.
63771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
63772         HAVE_CALLOC.
63773         * lib/xmalloc.c: Update accordingly.
63774         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
63775         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
63776         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
63778 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63779             Bruno Haible  <bruno@clisp.org>
63781         Make the module 'malloc-gnu' work again on AIX and OSF/1.
63782         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
63783         HAVE_MALLOC.
63784         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
63785         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
63786         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
63788 2010-08-29  Bruno Haible  <bruno@clisp.org>
63790         Update modules list.
63791         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
63792         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
63793         (String handling <string.h>): Add astrxfrm.
63794         (File system functions): Add readlinkat.
63796 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63798         Tests for module 'realloc-gnu'.
63799         * modules/realloc-gnu-tests: New file.
63800         * tests/test-realloc-gnu.c: New file.
63802         Tests for module 'calloc-gnu'.
63803         * modules/calloc-gnu-tests: New file.
63804         * tests/test-calloc-gnu.c: New file.
63806         Tests for module 'malloc-gnu'.
63807         * modules/malloc-gnu-tests: New file.
63808         * tests/test-malloc-gnu.c: New file.
63810 2010-08-28  Bruno Haible  <bruno@clisp.org>
63812         Rename module 'realloc' -> 'realloc-gnu'.
63813         * modules/realloc-gnu: New file, copied from modules/realloc.
63814         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
63815         obsolete.
63816         * modules/mgetgroups (Depends-on): Update.
63817         * doc/posix-functions/realloc.texi: Update.
63818         * NEWS: Mention the change.
63820         Rename module 'calloc' -> 'calloc-gnu'.
63821         * modules/calloc-gnu: New file, copied from modules/calloc.
63822         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
63823         obsolete.
63824         * doc/posix-functions/calloc.texi: Update.
63825         * NEWS: Mention the change.
63827         Rename module 'malloc' -> 'malloc-gnu'.
63828         * modules/malloc-gnu: New file, copied from modules/malloc.
63829         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
63830         obsolete.
63831         * modules/argp (Depends-on): Update.
63832         * modules/regex (Depends-on): Update.
63833         * doc/posix-functions/malloc.texi: Update.
63834         * NEWS: Mention the change.
63836 2010-08-28  Eric Blake  <eblake@redhat.com>
63838         pread, pwrite: add missing dependency
63839         * modules/pread (Depends-on): Add extensions.
63840         * modules/pwrite (Depends-on): Likewise.
63842 2010-08-28  Bruno Haible  <bruno@clisp.org>
63844         unistr/u*-strchr: Fix tests dependencies.
63845         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
63846         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
63847         Reported by Ian Beckwith <ianb@erislabs.net>.
63849 2010-08-28  Bruno Haible  <bruno@clisp.org>
63851         read-file: Don't occupy too much unused memory.
63852         * lib/read-file.c (fread_file): Shrink the buffer at the end.
63854 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
63855             Eric Blake  <eblake@redhat.com>
63856             Bruno Haible  <bruno@clisp.org>
63858         read-file: Avoid memory reallocations with regular files.
63859         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
63860         (fread_file): With regular files, use the remaining length as the
63861         initial buffer size.  Check against overflow.
63862         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
63863         sys_stat.
63865 2010-08-28  Bruno Haible  <bruno@clisp.org>
63867         ftello: Relax license.
63868         * modules/ftello (License): Relax to LGPLv2+.
63869         Reported by Eric Blake.
63871 2010-08-28  Bruno Haible  <bruno@clisp.org>
63873         Avoid relocwrapper link errors due to gnulib replacement functions.
63874         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
63875         function.
63876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63878 2010-08-28  Bruno Haible  <bruno@clisp.org>
63880         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
63881         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
63882         defined.
63883         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
63884         Suggested by Eric Blake.
63886 2010-08-28  Bruno Haible  <bruno@clisp.org>
63888         sys_socket, netdb: Ensure socklen_t gets defined.
63889         * modules/sys_socket (Depends-on): Add socklen.
63890         * modules/netdb (Depends-on): Likewise.
63891         * modules/getaddrinfo (Depends-on): Remove socklen.
63892         * modules/getsockopt (Depends-on): Likewise.
63893         * modules/setsockopt (Depends-on): Likewise.
63894         * tests/test-sys_socket.c: Check that socklen_t is defined.
63895         * tests/test-netdb.c: Likewise.
63896         * m4/socklen.m4: Update comments.
63897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63899 2010-08-27  Eric Blake  <eblake@redhat.com>
63901         login_tty: add missing dependency
63902         * modules/login_tty (Depends-on): Add pty.
63904 2010-08-26  Eric Blake  <eblake@redhat.com>
63906         lib-symbol-versions: fix m4 quoting
63907         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
63908         format for AC_LINK_IFELSE.
63910         glob: fix compile test
63911         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
63913         btowc: fix missing file
63914         * modules/btowc (Files): Also ship locale-fr.m4.
63916         lseek: fix link test
63917         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
63918         AC_LINK_IFELSE.
63920         include_next: silence autoconf 2.68 warning
63921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
63922         AC_COMPILE_IFELSE as special.
63923         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
63924         autoconf < 2.68.
63926         acl: fix compilation test
63927         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
63928         AC_COMPILE_IFELSE.
63930 2010-08-26  Bruno Haible  <bruno@clisp.org>
63932         Modernize AC_TRY_RUN invocations.
63933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
63934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63935         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
63936         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
63937         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
63938         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
63939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63941         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
63942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63944         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63948         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
63949         gl_MBRLEN_NUL_RETVAL): Likewise.
63950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
63951         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
63952         Likewise.
63953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63954         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63955         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63956         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63957         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
63958         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
63959         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
63960         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
63961         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
63962         Likewise.
63963         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
63964         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
63965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63966         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
63967         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
63968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63970         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
63971         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63974 2010-08-26  Bruno Haible  <bruno@clisp.org>
63976         Modernize AC_TRY_LINK invocations.
63977         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
63978         AC_TRY_LINK.
63979         * m4/argp.m4 (gl_ARGP): Likewise.
63980         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
63981         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
63982         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63984         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63985         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
63986         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
63987         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
63988         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63989         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
63990         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63991         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
63992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
63993         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
63994         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63995         * m4/hostent.m4 (gl_HOSTENT): Likewise.
63996         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63997         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
63998         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
63999         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
64000         Likewise.
64001         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
64002         Likewise.
64003         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
64004         Likewise.
64005         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
64007         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
64008         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
64009         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
64010         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64011         * m4/servent.m4 (gl_SERVENT): Likewise.
64012         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
64013         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
64014         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
64015         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
64016         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64017         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
64018         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
64019         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64020         * modules/tsearch-tests (configure.ac): Likewise.
64022 2010-08-26  Bruno Haible  <bruno@clisp.org>
64024         Modernize AC_TRY_COMPILE invocations.
64025         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
64026         AC_TRY_COMPILE.
64027         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
64028         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
64029         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64030         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64032         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64033         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64034         * m4/lock.m4 (gl_LOCK): Likewise.
64035         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
64036         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64037         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
64038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
64039         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64040         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
64041         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
64043         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64044         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64045         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64047         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
64048         extraneous semicolon.
64050 2010-08-26  Jim Meyering  <meyering@redhat.com>
64052         stat-time: relax license LGPL
64053         * modules/stat-time (License): Change from GPL to LGPL,
64054         with consent from all contributors, for use in libguile.
64055         Requested by Ludovic Courtès.
64057 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
64059         poll: return immediately on POLLHUP.
64060         * lib/poll.c (poll): Always set timeout before wait_timeout is
64061         computed.
64063 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64065         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
64066         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
64067         rmdir ("dir/.//"), unlinkat.
64069 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64071         stdbool: avoid spurious failure with modern xlc
64072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64074 2010-08-24  Bruno Haible  <bruno@clisp.org>
64076         getloadavg: simplify code
64077         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
64078         gl_have_func. Update comments.
64080 2010-08-24  Eric Blake  <eblake@redhat.com>
64082         getloadavg: don't define SVR4 on cygwin
64083         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
64084         only define SVR4 when -lkvm is required.
64085         Reported by Yaakov Selkowitz.
64087 2010-08-24  Bruno Haible  <bruno@clisp.org>
64089         priv-set: fix comment
64090         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
64092 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64094         priv-set: fix comments
64095         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
64096         to match code, as suggested by David Bartley in:
64097         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
64099 2010-08-23  Eric Blake  <eblake@redhat.com>
64101         stdbool: avoid rejecting clang
64102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64103         * tests/test-stdbool.c: Enable more tests if using the system
64104         <stdbool.h> instead of the gnulib replacement.
64105         (main): Move xlc bug test to a runtime test for all compilers.
64106         Reported by Anders Kaseorg.
64108         argz: fix shell quoting issue
64109         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
64110         Reported by Charles Wilson.
64112 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
64113             Erik Faye-Lund <kusmabite@gmail.com>
64115         poll, select: handle ERROR_BROKEN_PIPE.
64116         * lib/poll.c (win32_compute_revents): Return POLLHUP when
64117         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64118         * lib/select.c (win32_compute_revents): Do not mark a pipe
64119         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64121 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
64123         fts: allow compilation with C++
64124         * lib/fts_.h: Specify extern "C" linkage with C++.
64126 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64128         Fix gnulib-tool sed script de-commentation for AIX sed.
64129         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
64130         sed.
64132 2010-08-17  Eric Blake  <eblake@redhat.com>
64134         test-stddef: test for (some) offsetof bugs
64135         * tests/test-stddef.c: Enhance test to ensure correct type of
64136         offsetof.
64137         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
64138         that we are not fixing at this time.
64140 2010-08-15  Bruno Haible  <bruno@clisp.org>
64142         stpncpy: Allow stpncpy to be defined as a macro.
64143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
64144         if it's already correctly declared.
64145         * lib/string.in.h (stpncpy): Undefine before redefining.
64146         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
64148 2010-08-14  Bruno Haible  <bruno@clisp.org>
64150         Rename module 'memxfrm' to 'amemxfrm'.
64151         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
64152         (amemxfrm): Renamed from memxfrm.
64153         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
64154         (amemxfrm): Renamed from memxfrm.
64155         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
64156         * NEWS: Mention the change.
64157         * MODULES.html.sh (String handling <string.h>): Update.
64158         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
64159         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
64160         * lib/unicase/u16-casexfrm.c: Likewise.
64161         * lib/unicase/u32-casexfrm.c: Likewise.
64162         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
64163         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
64164         * lib/uninorm/u16-normxfrm.c: Likewise.
64165         * lib/uninorm/u32-normxfrm.c: Likewise.
64166         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
64167         memxfrm.
64168         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
64169         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
64170         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
64171         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
64172         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
64173         Suggested by Paul Eggert.
64175 2010-08-14  Bruno Haible  <bruno@clisp.org>
64177         Tests for module 'astrxfrm'.
64178         * modules/astrxfrm-tests: New file.
64179         * tests/test-astrxfrm.c: New file.
64181         New module 'astrxfrm'.
64182         * lib/astrxfrm.h: New file.
64183         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
64184         * modules/astrxfrm: New file.
64186 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
64188         regex: Tweak doc.
64189         * doc/regex.texi (Overview): Don't mention regex.c.
64190         (GNU Regular Expression Compiling): Likewise.
64191         (Match-end-of-line Operator): Mention 'not_eol'.
64193 2010-08-14  Brian Gough  <bjg@gnu.org>
64194             Bruno Haible  <bruno@clisp.org>
64196         git-merge-changelog: add doc relating to use with bzr and hg.
64197         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
64199 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
64201         pthread: fix pthread.h creation for srcdir != builddir
64202         * modules/pthread (Makefile.am): Fix the rule to work also in a
64203         non-srcdir build.
64205 2010-08-13  Karl Berry  <karl@gnu.org>
64207         * doc/regex.texi (Predefined Syntaxes): @smallexample.
64208         * doc/posix-*/*: force line break before @url of POSIX
64209         specifications.
64210         Suggested by Werner Lemberg.
64212 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64214         strtod: fix const diagnostic
64215         * lib/strtod.c (strtod): Don't assign const char * to char *,
64216         as this elicits a warning from GCC when warnings are enabled.
64218 2010-08-10  Pádraig Brady  <P@draigbrady.com>
64219         and Eric Blake  <eblake@redhat.com>
64221         copy-acl: ignore ENOTSUP on HP-UX
64222         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
64223         so that it is available for HP-UX.
64224         * lib/copy-acl.c (qcopy_acl): Use it.
64225         Reported by Patrick M. Callahan.
64227 2010-08-10  Eric Blake  <eblake@redhat.com>
64229         open, chown: relax license
64230         * modules/open (License): Change to LGPLv2+, with consent by all
64231         authors, for use in augeas.
64232         * modules/chown (License): Likewise.
64233         * modules/lchown (Likewise): Likewise.
64234         Requested by Adam Stokes.
64236 2010-08-09  Karl Berry  <karl@gnu.org>
64238         * build-aux/ar-lib: new file, import from Automake.
64239         * config/srclist.txt: autocheck for updates.
64241 2010-08-09  Eric Blake  <eblake@redhat.com>
64243         readlinkat: adjust client modules
64244         * modules/areadlinkat (Depends-on): Use readlinkat, not
64245         symlinkat.
64246         * modules/areadlinkat-with-size (Depends-on): Likewise.
64248         mknod: be more vocal about danger of running tests as root
64249         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
64250         root, since that is just asking for problems.
64251         Suggested by Bruno Haible, based on a report by Rainer Tammer.
64253         readlinkat: split into its own module
64254         * modules/symlinkat: Split readlinkat...
64255         * modules/readlinkat: ...into separate module.
64256         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
64257         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
64258         * lib/symlinkat.c (readlinkat): Move...
64259         * lib/readlinkat.c: ...into new file.
64260         * modules/symlinkat-tests: Split readlinkat test...
64261         * modules/readlinkat-tests: ...into separate module.
64262         * tests/test-symlinkat.c: Split...
64263         * tests/test-readlinkat.c: ...into new file.
64264         * NEWS: Document the split.
64265         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64266         * lib/unistd.in.h (readlinkat): Likewise.
64267         Suggested by Bruno Haible.
64269 2010-08-08  Bruno Haible  <bruno@clisp.org>
64271         memxfrm: Speed up.
64272         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
64273         that usually only one call to strxfrm is necessary for each string
64274         part.
64275         Reported by Paul Eggert <eggert@cs.ucla.edu>.
64277 2010-08-07  Karl Berry  <karl@gnu.org>
64279         * doc/posix-headers/limits.texi,
64280         * doc/posix-functions/malloc.texi,
64281         * doc/posix-functions/strsignal.texi: missing @item.
64282         * doc/ld-version-script.texi: spurious leading i.
64283         * doc/regex.texi (Interval Operators): no commas inside @var.
64285 2010-08-01  Bruno Haible  <bruno@clisp.org>
64287         Integrate the regex documentation.
64288         * doc/gnulib.texi: Define 'cn' index.
64289         (Regular expressions): New a chapter that includes regex.texi and
64290         regexprops-generic.texi.
64291         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
64292         syntax.
64294         Whitespace cleanup.
64295         * doc/regex.texi: Remove trailing spaces.
64297         Add regex documentation.
64298         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
64299         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
64300         Written by Kathy A. Hargreaves and Karl Berry.
64302 2010-08-01  Bruno Haible  <bruno@clisp.org>
64304         link: Update documentation.
64305         * doc/posix-functions/link.texi: Update regarding Solaris.
64307 2010-07-31  Bruno Haible  <bruno@clisp.org>
64309         Update modules list.
64310         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
64311         (String handling <string.h>): Add memcmp2, memxfrm.
64312         (Container data structures): Add xlist, xsublist, xoset.
64313         (Core language properties): Add alignof, unused-parameter.
64314         (Process control, Numeric conversion functions <stdlib.h>): Renamed
64315         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
64316         (Unibyte characters <ctype.h>): New section.
64317         (String handling <string.h>): New section.
64318         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
64319         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
64320         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
64321         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
64322         tan, tanh, tanl, y0, y1, yn.
64323         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
64324         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
64325         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
64326         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
64327         unlockpt, vdprintf, vdprintf-posix.
64328         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
64329         (File system functions): Add concat-filename, sys_file, sys_ioctl,
64330         xconcat-filename.
64331         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
64332         getdtablesize, pipe2, pipe2-safer.
64333         (Security): New section.
64334         (Networking functions): Add accept4.
64335         (Signal handling): Add sigpipe.
64336         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
64337         mbmemcasecoll.
64338         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
64339         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
64340         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
64341         pipe-filter-ii.
64342         (Misc): Add argp-version-etc, login_tty, parse-duration.
64344 2010-07-31  Bruno Haible  <bruno@clisp.org>
64346         Improve doc in MODULES.html.
64347         * modules/linkat (Description): Add the word "function".
64348         * modules/mkfifo (Description): Likewise.
64349         * modules/mknod (Description): Likewise.
64350         * modules/remove (Description): Likewise.
64351         * modules/renameat (Description): Likewise.
64352         * modules/stat (Description): Likewise.
64353         * modules/symlink (Description): Likewise.
64354         * modules/unlink (Description): Likewise.
64356 2010-07-31  Bruno Haible  <bruno@clisp.org>
64358         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
64359         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
64360         option --enable/disable-c++ instead of --enable/disable-cxx.
64361         * NEWS: Mention the change.
64363 2010-07-31  Bruno Haible  <bruno@clisp.org>
64365         readlink, areadlink: Relax test a bit.
64366         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
64367         alternative to ENOTDIR.
64368         * tests/test-areadlink.h (test_areadlink): Likewise.
64369         Reported by Rainer Tammer.
64371 2010-07-31  Bruno Haible  <bruno@clisp.org>
64373         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
64374         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
64375         character, perform the search using U_STRCHR.
64376         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
64377         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
64378         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
64379         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
64380         Suggested by Paolo Bonzini.
64382 2010-07-31  Bruno Haible  <bruno@clisp.org>
64384         unistr/u*-strstr: Fix dependencies.
64385         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
64386         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
64387         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
64389 2010-07-31  Bruno Haible  <bruno@clisp.org>
64391         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
64392         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
64393         the beginning of the loop.
64394         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
64395         cases in 'switch' statement.
64397         unistr/u8-strchr: Fix several bugs.
64398         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
64399         the string. When not found, return NULL, not a pointer near the end.
64401         More tests for unistr/u8-strchr.
64402         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
64403         that the function does not read past the first occurrence of the byte
64404         being searched.
64405         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
64406         * tests/unistr/test-u16-strchr.c (main): New function.
64407         * tests/unistr/test-u32-strchr.c (main): New function.
64409 2010-07-31  Bruno Haible  <bruno@clisp.org>
64411         posix-modules: Ignore backup files of documentation files.
64412         * posix-modules: grep only through files named *.texi.
64414 2010-07-31  Bruno Haible  <bruno@clisp.org>
64416         symlinkat: Fix documentation.
64417         * doc/posix-functions/readlinkat.texi: Fix module name.
64419 2010-07-31  Bruno Haible  <bruno@clisp.org>
64421         fchownat: Replace also when chown has the trailing slash bug.
64422         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
64423         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
64424         introduced on 2010-04-10.
64425         Reported by Rainer Tammer.
64427 2010-07-31  Bruno Haible  <bruno@clisp.org>
64429         linkat: Work around AIX 7.1 bug.
64430         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
64431         whether linkat handles trailing slash correctly. If not, replace linkat
64432         and define LINKAT_TRAILING_SLASH_BUG.
64433         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
64434         check whether (fd1,file1) points to a directory if file1 or file2 ends
64435         in a slash. Code taken from lib/link.c.
64436         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
64437         Reported by Rainer Tammer.
64439 2010-07-31  Bruno Haible  <bruno@clisp.org>
64441         Correctly determine whether pow is available in libc on AIX 7 with xlc.
64442         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
64443         This disables an xlc optimization that was causing wrong test results.
64444         Reported by Rainer Tammer.
64446 2010-07-31  Bruno Haible  <bruno@clisp.org>
64448         iconv: Work around AIX 6.1..7.1 bug.
64449         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
64450         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
64451         cross-compiling, guess no on all versions of AIX.
64452         Reported by Rainer Tammer.
64454 2010-07-31  Bruno Haible  <bruno@clisp.org>
64456         readlink: Relax test a bit.
64457         * tests/test-readlink.h (test_readlink): Allow different errno value
64458         when readlink is called with a file name that ends in / and refers to
64459         a file.
64460         Suggested by Eric Blake.
64461         Reported by Rainer Tammer.
64463 2010-07-31  Bruno Haible  <bruno@clisp.org>
64465         copysign: Does not require -lm on glibc systems.
64466         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
64467         gl_COMMON_DOUBLE_MATHFUNC.
64468         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
64470 2010-07-31  Bruno Haible  <bruno@clisp.org>
64472         duplocale: Work around AIX 7.1 bug.
64473         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
64474         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
64475         * lib/duplocale.c (rpl_duplocale): Update comment.
64476         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
64477         Reported by Rainer Tammer.
64479 2010-07-30  Bruno Haible  <bruno@clisp.org>
64481         dirfd: Avoid link error on AIX 7.1.
64482         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
64483         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
64484         exist, set REPLACE_DIRFD.
64485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
64486         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
64487         * doc/posix-functions/dirfd.texi: Update.
64488         Reported by Rainer Tammer.
64490 2010-07-30  Eric Blake  <eblake@redhat.com>
64492         strtod: next round of AIX fixes
64493         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
64494         exponent.
64495         * tests/test-strtod.c (main): Enhance tests.
64496         * doc/posix-functions/strtod.texi (strtod): Document next bug.
64497         Reported by Rainer Tammer.
64499         futimens: fix configure check
64500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
64501         Reported by Bruno Haible.
64503 2010-07-30  Bruno Haible  <bruno@clisp.org>
64505         getline: Update regarding AIX.
64506         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
64507         Reported by Rainer Tammer.
64509 2010-07-30  Bruno Haible  <bruno@clisp.org>
64511         wcwidth: Drop replacement on AIX 7.
64512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
64513         AIX 7.
64514         Reported by Rainer Tammer.
64516 2010-07-30  Bruno Haible  <bruno@clisp.org>
64518         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
64519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
64520         a 'char *'.
64521         Reported by Rainer Tammer.
64523 2010-07-30  Bruno Haible  <bruno@clisp.org>
64525         unlink: Update regarding AIX.
64526         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
64527         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
64528         Reported by Rainer Tammer.
64530 2010-07-30  Bruno Haible  <bruno@clisp.org>
64532         symlink: Update regarding AIX.
64533         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
64534         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
64535         Reported by Rainer Tammer.
64537 2010-07-30  Bruno Haible  <bruno@clisp.org>
64539         strndup: Update regarding AIX.
64540         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
64541         AIX 7.
64542         Reported by Rainer Tammer.
64544 2010-07-30  Bruno Haible  <bruno@clisp.org>
64546         stat: Update regarding AIX.
64547         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
64548         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
64549         Reported by Rainer Tammer.
64551 2010-07-30  Bruno Haible  <bruno@clisp.org>
64553         truncl: Fix autoconf test.
64554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
64555         whether truncl works.
64556         Reported by Rainer Tammer.
64558 2010-07-30  Bruno Haible  <bruno@clisp.org>
64560         round: Update regarding AIX.
64561         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
64562         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
64563         Reported by Rainer Tammer.
64565 2010-07-30  Bruno Haible  <bruno@clisp.org>
64567         rename: Update regarding AIX.
64568         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
64569         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
64570         Reported by Rainer Tammer.
64572 2010-07-30  Bruno Haible  <bruno@clisp.org>
64574         printf.m4: Update regarding AIX.
64575         * m4/printf.m4: Update comments regarding AIX.
64576         Reported by Rainer Tammer.
64578 2010-07-30  Bruno Haible  <bruno@clisp.org>
64580         iconv: Update regarding AIX.
64581         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
64582         AIX 7.
64583         Reported by Rainer Tammer.
64585 2010-07-30  Bruno Haible  <bruno@clisp.org>
64587         getopt: Update regarding AIX.
64588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
64589         no on AIX.
64590         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
64591         Reported by Rainer Tammer.
64593 2010-07-30  Bruno Haible  <bruno@clisp.org>
64595         ldexpl; Update regarding AIX.
64596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
64597         on AIX 7.
64598         Reported by Rainer Tammer.
64600 2010-07-30  Bruno Haible  <bruno@clisp.org>
64602         frexpl: Update regarding AIX.
64603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
64604         on AIX 7.
64605         Reported by Rainer Tammer.
64607 2010-07-30  Bruno Haible  <bruno@clisp.org>
64609         open, fopen: Update regarding AIX.
64610         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
64611         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64612         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
64613         * doc/posix-functions/fopen.texi: Likewise.
64614         Reported by Rainer Tammer.
64616 2010-07-30  Bruno Haible  <bruno@clisp.org>
64618         chown: Update doc regarding AIX.
64619         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
64620         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
64621         Reported by Rainer Tammer.
64623 2010-07-30  Eric Blake  <eblake@redhat.com>
64625         strtod: fix bug in replacement function on AIX
64626         * lib/strtod.c (strtod): Special case broken "0x" parse in
64627         underlying strtod.
64628         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
64629         * doc/posix-functions/strtod.texi (strtod): Likewise.
64630         Reported by Rainer Tammer.
64632 2010-07-30  Bruno Haible  <bruno@clisp.org>
64634         mbrlen: Fix cross-compilation guess for AIX.
64635         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
64636         guess. Leftover from 2008-12-22.
64638 2010-07-30  Bruno Haible  <bruno@clisp.org>
64640         mbrtowc: Fix cross-compilation guess for AIX.
64641         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
64642         guess. Leftover from 2008-12-21.
64644 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
64646         init.sh: work around trap limitation of some shells
64647         * tests/init.sh (setup_): Move exit trap outside of shell function.
64649 2010-07-29  Eric Blake  <eblake@redhat.com>
64651         strtod: aid debugging
64652         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
64653         understanding why strtod is rejected.
64655 2010-07-28  Bruno Haible  <bruno@clisp.org>
64657         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
64658         * lib/unistr/u8-chr.c: Include <string.h>.
64659         * tests/unistr/test-u8-chr.c: Likewise.
64660         * tests/unistr/test-u16-chr.c: Likewise.
64661         * tests/unistr/test-u32-chr.c: Likewise.
64662         * tests/unistr/test-u8-strchr.c: Likewise.
64663         * tests/unistr/test-u16-strchr.c: Likewise.
64664         * tests/unistr/test-u32-strchr.c: Likewise.
64665         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
64666         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
64667         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
64668         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
64670 2010-07-28  Bruno Haible  <bruno@clisp.org>
64672         Use spaces for indentation, not tabs.
64673         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
64675 2010-07-27  Bruno Haible  <bruno@clisp.org>
64677         mbspcasecmp: Fix function specification.
64678         * lib/string.in.h (mbspcasecmp): Fix specification comment.
64679         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
64680         Reported by Eric Blake <eblake@redhat.com>.
64682 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
64684         timespec: use cast and not conditional, as truncation isn't possible
64685         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
64686         instead of a conditional.  Comment about the situation in more detail.
64687         This undoes most of the 2009-10-29 patch.
64689 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
64691         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
64692         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
64693         * lib/unistr/u8-strchr.c: Likewise.
64694         * modules/unistr/u8-chr: Depend on memchr.
64696         unistr/u*-strchr: add tests
64697         * modules/unistr/u8-strchr-tests: New file.
64698         * modules/unistr/u16-strchr-tests: New file.
64699         * modules/unistr/u32-strchr-tests: New file.
64700         * tests/unistr/test-strchr.h: New file.
64701         * tests/unistr/test-u8-strchr.c: New file.
64702         * tests/unistr/test-u16-strchr.c: New file.
64703         * tests/unistr/test-u32-strchr.c: New file.
64705         unistr/u*-chr: test multibyte sequences more
64706         * tests/unistr/test-chr.h: Do complete testing of the characters in the
64707         test vector.
64708         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
64709         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
64710         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
64712         unistr/u*-chr: test multibyte sequences
64713         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
64715         unistr/u*-chr: prepare for multibyte tests
64716         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
64717         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
64718         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
64719         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
64720         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
64721         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
64723 2010-07-18  Bruno Haible  <bruno@clisp.org>
64725         unistr/u8-strchr: Optimize non-ASCII argument case.
64726         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
64727         because the first byte often matches anyway.
64728         Reported by Pádraig Brady <P@draigbrady.com>.
64730 2010-07-15  Karl Berry  <karl@gnu.org>
64732         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
64734 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
64736         getcwd: on Solaris, work better if ancestors are inaccessible
64737         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
64738         buffer and size, try again with a large buffer.  This works better
64739         on Solaris, since its getcwd succeeds even if the path to the root
64740         is inaccessible, and this is helpful in common cases such as .zfs
64741         hidden directories.  Problem reported by J Chapman Flack in
64742         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
64743         Use system getcwd if it's declared, not merely if it's partly
64744         working; use the partly-working test only to avoid needless effort
64745         if the system getcwd fails.
64746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
64747         comment that was already obsolete and is now even more obsolete.
64748         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
64749         now might call strdup.
64751 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
64753         pthread: Add enough so that coreutils/src/sort.c compiles.
64754         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
64755         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
64756         gnulib. Include <sched.h> and <time.h>, as per POSIX.
64757         Include <sys/types.h>, in case it defines pthread_t.
64758         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
64759         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
64760         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
64761         (pthread_rwlockattr_t, pthread_spinlock_t):
64762         New typedefs, if HAVE_PTHREAD_T is not defined.
64763         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
64764         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
64765         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
64766         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
64767         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
64768         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
64769         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
64770         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
64771         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
64772         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
64773         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
64774         New macros.
64775         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
64776         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
64777         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
64778         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
64779         (pthread_spin_unlock): New dummy functions.
64780         (pthread_create): Return EAGAIN; don't set errno.
64781         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
64782         require AC_C_INLINE.
64783         * modules/pthread (Depends-on): Add sched, time.
64784         (pthread.h): Use AM_V_GEN.
64786 2010-07-13  Bruno Haible  <bruno@clisp.org>
64788         striconveh: Don't malloc memory if the result buffer is sufficient.
64789         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
64790         buffer if its size is sufficient.
64791         Reported by Ludovic Courtès <ludo@gnu.org>.
64793 2010-07-13  Bruno Haible  <bruno@clisp.org>
64795         strtod: Add safety check.
64796         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
64798 2010-07-12  Bruno Haible  <bruno@clisp.org>
64800         Unify tests that set gl_cv_func_ldexpl_no_libm.
64801         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
64802         gl_FUNC_LDEXPL.
64803         (gl_FUNC_LDEXPL): Invoke it.
64804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64806 2010-07-12  Bruno Haible  <bruno@clisp.org>
64808         Unify tests that set gl_cv_func_ldexp_no_libm.
64809         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
64810         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
64811         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
64812         (configure.ac): Simply invoke gl_FUNC_LDEXP.
64813         * modules/strtod (Files): Add m4/ldexp.m4.
64815 2010-07-12  Bruno Haible  <bruno@clisp.org>
64817         Unify tests that set gl_cv_func_frexpl_no_libm.
64818         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
64819         gl_FUNC_FREXPL_NO_LIBM.
64820         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
64821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64823 2010-07-12  Bruno Haible  <bruno@clisp.org>
64825         Unify tests that set gl_cv_func_frexp_no_libm.
64826         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
64827         gl_FUNC_FREXP_NO_LIBM.
64828         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
64829         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64831 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
64833         memcoll: clarify sizes versus lengths, document better, and tweak perf
64834         * lib/memcoll.c (strcoll_loop, memcoll0):
64835         Improve quality of descriptive comments.  Name variables
64836         consistently as to whether they are lengths (which do not include
64837         terminating null) versus sizes (which do).
64838         * lib/xmemcoll.c (xmemcoll0): Likewise.
64839         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
64840         returned when s1size == 0; this is easier to compile and saves
64841         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
64843 2010-07-12  Bruno Haible  <bruno@clisp.org>
64845         Tests for module '_Exit'.
64846         * modules/_Exit-tests: New file.
64847         * tests/test-_Exit.sh: New file.
64848         * tests/test-_Exit.c: New file.
64850         New module '_Exit'.
64851         * lib/stdlib.in.h (__attribute__): New macro.
64852         (_Exit): New declaration.
64853         * lib/_Exit.c: New file.
64854         * m4/_Exit.m4: New file.
64855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
64856         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
64857         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
64858         * modules/_Exit: New file.
64859         * tests/test-stdlib-c++.cc (_Exit): Check signature.
64860         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
64862 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
64864         strtod: make it more-accurate typically, and don't require libm
64865         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
64866         Include limits.h.  Don't include string.h.
64867         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
64868         (locale_isspace): New function, so that no casts are needed to
64869         check whether *s is a space.
64870         (ldexp): Provide an unused dummy if not available.
64871         (scale_radix_exp, parse_number, underlying_strtod): New functions.
64872         (strtod): Use them.  This implementation prefers to use the
64873         underlying strtod if available, falling back on our own code
64874         only to fix known bugs.  This is more likely to produce an
64875         accurate result.  Also, it avoids the use of libm functions.
64876         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
64877         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
64878         was absent, but it caused a test failure with coreutils.
64879         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
64880         with libm.
64881         * modules/strtod (Makefile.am, Link): libm is no longer needed.
64882         * modules/strtod-tests (Makefile.am): Likewise.
64884 2010-07-11  Pádraig Brady  <P@draigBrady.com>
64885             Bruno Haible  <bruno@clisp.org>
64887         unistr/u8-strchr: Optimize ASCII argument case.
64888         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
64890 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64892         (x)memcoll: minor tweaks
64893         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
64894         is after the type that it qualifies.
64895         (memcoll0): Likewise.
64896         * lib/memcoll.h (memcoll0): Likewise.
64897         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
64898         * lib/xmemcoll.h (xmemcoll0): Likewise.
64899         * lib/memcoll.c (memcoll0): Correct the comment.  This function
64900         differs from memcoll in that the NUL byte is part of the argument.
64901         Omit the abort-checks, as performance is a real issue here.  Plus,
64902         the checks were wrong anyway (an off-by-one error).  Omit local
64903         variable 'diff', as it's a bit clearer that way.
64904         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
64905         no longer needed.
64907 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
64909         (x)memcoll: speedup when input is known to be NUL delimited
64910         * lib/memcoll.c: Include stdlib.
64911         (memcoll0): New function.
64912         (strcoll_loop): New function, refactored for use in both memcoll
64913         and memcoll0.
64914         * lib/memcoll.h (memcoll0): Add prototype.
64915         * lib/xmemcoll.c (xmemcoll0): New function.
64916         (collate_error): New function, refactored for use in both xmemcoll
64917         and xmemcoll0.
64918         * lib/xmemcoll.h (xmemcoll0): Add prototype.
64919         * m4/memcoll.m4: add inline invocation.
64921 2010-07-06  Pádraig Brady  <P@draigBrady.com>
64923         * build-aux/bootstrap: Remove any local translations
64924         from the translation project synchronization directory,
64925         so that local only translations are not distributed.
64927 2010-07-04  Bruno Haible  <bruno@clisp.org>
64929         fsusage: Clarify which code applies to which platforms.
64930         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
64931         platform.
64932         * lib/fsusage.c (get_fs_usage): Likewise.
64934 2010-07-04  Bruno Haible  <bruno@clisp.org>
64936         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
64937         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
64938         Reported by Martin Lambers <marlam@marlam.de>.
64940 2010-07-04  Jim Meyering  <meyering@redhat.com>
64942         hash: once again explicitly disallow insertion of NULL
64943         * lib/hash.c (hash_insert0): Reinstate just-removed test:
64944         inserting a NULL pointer cannot work with these functions.
64945         Add a comment with details.
64946         This reverts part of the 2010-07-01 commit, 5bef1a35
64947         "hash: extend module to deal with non-pointer keys".
64949 2010-07-01  Bruno Haible  <bruno@clisp.org>
64951         stdbool: Update doc.
64952         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
64953         Info from Christian Weisgerber <naddy@mips.inka.de>.
64955 2010-07-01  Jim Meyering  <meyering@redhat.com>
64957         hash: extend module to deal with non-pointer keys
64958         * lib/hash.c (hash_insert0): New interface, much like hash_insert
64959         but that allows insertion of non-pointer entries.
64960         Do not disallow an ENTRY value of NULL.
64961         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
64962         * lib/hash.h (hash_insert0): Declare.
64964 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64966         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
64967         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
64968         not present (i.e. with autoconf 2.59 and when using gettextize, not
64969         gnulib), require AC_GNU_SOURCE instead.
64971 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
64973         idpriv-drop: Fix tests.
64974         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
64975         not to the test-idpriv-droptemp program.
64977 2010-06-29  Bruno Haible  <bruno@clisp.org>
64979         string: Fix syntax error with g++ 2.96.
64980         * lib/string.in.h (__pure__): Remove definition.
64981         (_GL_ATTRIBUTE_PURE): New macro.
64982         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
64983         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
64984         Reported by Christian Weisgerber <naddy@mips.inka.de>.
64986 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
64988         unitypes: Fix bug introduced on 2010-05-18.
64989         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
64991 2010-06-22  Eric Blake  <eblake@redhat.com>
64993         memmem: slight optimization
64994         * lib/str-two-way.h (critical_factorization): Update comments.
64995         Reduce work during factorization phase.
64996         Reported by Carlos Bueno <carlos@bueno.org>.
64998 2010-06-21  Bruno Haible  <bruno@clisp.org>
65000         Fix HAVE_CALLOC_POSIX misnomer.
65001         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
65002         !HAVE_CALLOC_POSIX.
65003         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
65004         HAVE_CALLOC_POSIX.
65005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
65006         instead of HAVE_CALLOC_POSIX.
65007         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
65008         HAVE_CALLOC_POSIX.
65010         Use modern idiom for calloc() replacement.
65011         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
65012         AC_FUNC_CALLOC.
65013         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
65014         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
65015         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65016         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
65017         (gl_REPLACE_CALLOC): New macro.
65019 2010-06-21  Bruno Haible  <bruno@clisp.org>
65021         Fix HAVE_REALLOC_POSIX misnomer.
65022         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
65023         !HAVE_REALLOC_POSIX.
65024         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
65025         HAVE_REALLOC_POSIX.
65026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
65027         instead of HAVE_REALLOC_POSIX.
65028         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
65029         HAVE_REALLOC_POSIX.
65031         Use modern idiom for realloc() replacement.
65032         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
65033         AC_FUNC_REALLOC.
65034         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
65035         Autoconf's AC_FUNC_REALLOC.
65036         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65037         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
65038         (gl_REPLACE_REALLOC): New macro.
65039         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65041 2010-06-21  Bruno Haible  <bruno@clisp.org>
65043         Fix HAVE_MALLOC_POSIX misnomer.
65044         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
65045         !HAVE_MALLOC_POSIX.
65046         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
65047         HAVE_MALLOC_POSIX.
65048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
65049         instead of HAVE_MALLOC_POSIX.
65050         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
65051         HAVE_MALLOC_POSIX.
65053         Use modern idiom for malloc() replacement.
65054         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
65055         AC_FUNC_MALLOC.
65056         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
65057         Autoconf's AC_FUNC_MALLOC.
65058         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65059         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
65060         (gl_REPLACE_MALLOC): New macro.
65061         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65063 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
65065         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
65066         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
65067         This macro takes 3 arguments, not 4.
65069 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
65071         ipv6: fix detection under mingw
65072         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
65073         in6_addr.
65075 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
65077         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
65078         that strtod() works when cross-compiling to a glibc version known
65079         to work.
65081 2010-06-15  Bruno Haible  <bruno@clisp.org>
65083         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
65085 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
65087         select: Correct timeout.
65088         * lib/select.c (rpl_select): Compute wait_timeout correctly.
65090 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65092         git-version-gen: init shell var to avoid env var influence
65093         * build-aux/git-version-gen (v): Init shell var to empty.
65095 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
65097         priv-set: Don't assume that priv.h exists merely because getppriv does.
65098         See Jan Andersen's bug report about AIX 5L in
65099         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
65100         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
65101         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
65102         * lib/priv-set.h: Likewise.
65103         * tests/test-priv-set.c: Likewise.
65105 2010-06-13  Bruno Haible  <bruno@clisp.org>
65107         relocatable: Make it easier to test whether to install wrappers.
65108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
65109         RELOCATABLE_VIA_WRAPPER.
65111 2010-06-13  Bruno Haible  <bruno@clisp.org>
65113         gnulib-tool: Display specified modules and dependencies differently.
65114         * gnulib-tool (func_show_module_list): New function.
65115         (func_import, func_create_testdir): Invoke it.
65116         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
65118 2010-06-13  Bruno Haible  <bruno@clisp.org>
65120         gnulib-tool: Align code of func_import and func_create_testdir.
65121         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
65122         specified_modules.
65124 2010-06-12  Jim Meyering  <meyering@redhat.com>
65126         test-inttostr: avoid spurious failure on Solaris 9
65127         * tests/test-inttostr.c (main): Skip the test when snprintf fails
65128         to accept "%ju".  Reported by Bruno Haible.
65130 2010-06-11  Jim Meyering  <meyering@redhat.com>
65132         test-sys_socket: mark variables as used more readably
65133         * tests/test-sys_socket.c (main): Mark otherwise unused variables
65134         as "used" explicitly via (void) statement casts.  This is more
65135         readable than using them in an artificial return expression.
65136         Suggestion from Bruno Haible.
65138 2010-06-11  Bruno Haible  <bruno@clisp.org>
65140         Avoid some more warnings from "gcc -Wwrite-strings".
65141         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
65142         to 'const char *'.
65143         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
65144         * tests/test-c-strcasestr.c (main): Likewise.
65145         * tests/test-mbscasestr1.c (main): Likewise.
65146         * tests/test-mbscasestr2.c (main): Likewise.
65147         * tests/test-memmem.c (main): Likewise.
65148         * tests/test-strstr.c (main): Likewise.
65149         * tests/test-strcasestr.c (main): Likewise.
65151 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65153         init.sh: change framework_failure_ to fail with status 99, not 1
65154         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
65155         automake's parallel-tests rule that this is an unexpected failure,
65156         even if the test is listed in XFAIL_TESTS.
65158 2010-06-11  Jim Meyering  <meyering@redhat.com>
65160         test-inttostr: avoid warnings about 4-6KB literal strings
65161         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
65162         Include "macros.h", for its definition of ASSERT.
65163         (CK): s/assert/ASSERT/
65164         * modules/inttostr-tests (Files): Add macros.h.
65166         init.sh: don't use $ME_ or skip_ before they are defined
65167         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
65168         their first uses.  Also hoist their companions: warn_, fail_,
65169         framework_failure_, $stderr_fileno.  Prompted by a patch from
65170         Stefano Lattarini.
65172         test-sys_socket: avoid set-but-not-used warnings from gcc
65173         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
65174         avoid warning about set-but-not-used variables.
65176         test-xvasprintf: avoid 'const' discard warnings
65177         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
65178         "const" when assigning from literal strings.
65179         (test_xasprintf): Add "void" in function argument list to placate
65180         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
65182         tests: avoid compilation warnings in argmatch and exclude tests...
65183         in packages that define ARGMATCH_DIE_DECL, like coreutils.
65184         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
65185         Since it always exits, declare with the "noreturn" attribute.
65186         * tests/test-argmatch.c: Likewise.
65188         tests: avoid 'const' discard warnings in mbsstr tests
65189         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
65190         * tests/test-mbsstr2.c (main): Likewise.
65192         test-verify: avoid warning from gcc's -Wmissing-declarations
65193         * tests/test-verify.c (function): Declare to be static.
65195         test-inttostr.c: include <string.h> for use of strcmp
65196         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
65198         test-linkat: avoid failed assertion on "other" architectures
65199         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
65200         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
65201         sparc: https://bugs.launchpad.net/bugs/591968
65203 2010-06-11  Jim Meyering  <meyering@redhat.com>
65205         printf.m4: avoid autoconf's "Expanded Before Required" warning
65206         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
65207         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
65208         autoconf warning.
65210 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
65212         Replacement header templates are now named with ".in", not "_".
65213         * doc/gnulib-intro.texi: Correct.
65215 2010-06-10  Jim Meyering  <meyering@redhat.com>
65217         inttostr-tests: depend on snprintf, not snprintf-posix
65218         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
65219         snprintf-posix, to avoid this aclocal failure:
65220           missing file gnulib-tests/vasnprintf.c
65221           configure.ac:45: error: expected source file, required through \
65222           AC_LIBSOURCES, not found
65224 2010-06-10  Jim Meyering  <meyering@redhat.com>
65226         inttostr: add a new function, inttostr, and tests
65227         The namesake function was not available.  The existence of the
65228         template file, inttostr.c makes its addition nontrivial.
65229         * lib/anytostr.c: Rename from inttostr.c.
65230         (anytostr): Rename from inttostr.
65231         * lib/inttostr.c: New file.
65232         * modules/inttostr (Files): Add anytostr.c.
65233         (Makefile.am): Set lib_SOURCES instead of ...
65234         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
65235         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
65236         * lib/offtostr.c: Likewise.
65237         * lib/uinttostr.c: Likewise.
65238         * lib/umaxtostr.c: Likewise.
65239         * modules/inttostr-tests: New file.
65240         * tests/test-inttostr.c: New file.  Test these functions.
65242 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
65243             Bruno Haible  <bruno@clisp.org>
65245         Add "Extending Gnulib" chapter to manual.
65246         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
65247         chapter.
65248         (Extending Gnulib): New chapter.
65249         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
65250         chapter.
65252 2010-06-09  Bruno Haible  <bruno@clisp.org>
65254         Avoid relocwrapper link errors due to gnulib replacement functions.
65255         * lib/areadlink.c: Use the system's malloc, realloc functions.
65256         (areadlink): Set errno to ENOMEM explicitly.
65257         * modules/areadlink (Depends-on): Remove malloc-posix.
65258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65260 2010-06-09  Bruno Haible  <bruno@clisp.org>
65262         Avoid relocwrapper link errors due to gnulib replacement functions.
65263         * lib/canonicalize-lgpl.c: Use the system's malloc function.
65264         * lib/malloca.c: Likewise.
65265         * lib/relocatable.c: Likewise.
65266         * lib/progreloc.c: Use the system's malloc, sprintf functions.
65267         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
65268         * lib/setenv.c: Use the system's malloc, realloc functions.
65269         * lib/strerror.c: Use the system's sprintf function.
65270         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65272 2010-06-04  Bruno Haible  <bruno@clisp.org>
65274         Prefer documented low-level autoconf macro names.
65275         * m4/lib-link.m4: Use m4_translit instead of translit.
65276         * m4/environ.m4: Likewise.
65277         * m4/mathfunc.m4: Likewise.
65278         * m4/onceonly.m4: Likewise.
65279         * m4/stdint.m4: Likewise.
65280         Suggested by Eric Blake.
65282 2010-06-04  Martin Lambers  <marlam@marlam.de>
65283             Bruno Haible  <bruno@clisp.org>
65285         havelib: Allow library names with '+' characters.
65286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65287         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
65289 2010-06-09  Bruno Haible  <bruno@clisp.org>
65291         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
65292         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
65293         realloc failed.
65295 2010-06-08  Peter Simons  <simons@cryp.to>
65297         maint.mk: make the news-check rule more configurable
65298         * top/maint.mk (news-check-lines-spec): New variable.
65299         (news-check): Use "sed -n 1,10p" in place of "head".
65301 2010-06-07  Jim Meyering  <meyering@redhat.com>
65303         do-release-commit-and-tag: fix typo in --help
65304         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
65306         regex: avoid new dead-code warning with gcc-4.6.0
65307         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
65308         if-block containing a while-loop.  It's been unused for at least
65309         5 years.
65311 2010-06-05  Bruno Haible  <bruno@clisp.org>
65313         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
65314         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
65316 2010-06-04  Bruno Haible  <bruno@clisp.org>
65318         Update to GNU gettext 0.18.1.
65319         * modules/gettext (configure.ac): Require gettext infrastructure from
65320         version 0.18.1.
65322 2010-06-03  Bruno Haible  <bruno@clisp.org>
65324         Don't use AC_LIBOBJ with file names in subdirectories.
65325         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
65326         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
65327         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
65328         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
65329         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
65330         gl_LIBUNISTRING_LIBSOURCE.
65331         (Makefile.am): Augment lib_SOURCES here, conditionally.
65332         * NEWS: Drop requirement for Automake option 'subdir-objects'.
65334 2010-06-03  Bruno Haible  <bruno@clisp.org>
65336         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
65337         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
65338         expansion does not end with a newline.
65339         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
65340         unnecessary newline.
65342 2010-06-03  Bruno Haible  <bruno@clisp.org>
65344         Reduce dependencies.
65345         * tests/test-quotearg.h: New file, extracted from
65346         tests/test-quotearg.c.
65347         * tests/test-quotearg-simple.c: New file, extracted from
65348         tests/test-quotearg.c.
65349         * tests/test-quotearg.c: Don't include <ctype.h>.
65350         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
65351         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
65352         use_quote_double_quotes, use_quotearg_colon): Moved to
65353         tests/test-quotearg.h.
65354         (results_g, flag_results, custom_quotes, custom_results): Moved
65355         to tests/test-quotearg-simple.c.
65356         (main): Moved the part that does not depend on gettext to
65357         tests/test-quotearg-simple.c. Return 77 if the test cannot be
65358         performed.
65359         * modules/quotearg-simple: New file.
65360         * modules/quotearg-simple-tests: New file.
65361         * modules/quotearg (Depends-on): Add quotearg-simple.
65362         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
65363         (Files): Add tests/test-quotearg.h.
65364         Reported by Paolo Bonzini.
65366 2010-06-03  Bruno Haible  <bruno@clisp.org>
65368         Reduce dependencies.
65369         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
65371 2010-06-03  Bruno Haible  <bruno@clisp.org>
65373         time: Undefine more broken macros.
65374         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
65375         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
65376         Reported by Eric Blake.
65378 2010-06-03  Bruno Haible  <bruno@clisp.org>
65380         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
65381         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
65382         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
65383         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
65384         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
65385         Reported by Ludovic Courtès <ludo@gnu.org>.
65387 2010-06-02  Eric Blake  <eblake@redhat.com>
65389         time: work with mingw + pthreads-win32 library
65390         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
65391         if timespec is defined only in pthread.h.
65392         * modules/time (Makefile.am): Substitute it.
65393         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
65394         <pthread.h>, when needed.
65395         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
65396         from the library.
65398 2010-05-31  Bruno Haible  <bruno@clisp.org>
65400         Avoid expanding two macros in the wrong order.
65401         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
65402         gl_LIBUNISTRING if it is defined.
65403         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
65404         autoconf >= 2.64.
65405         Reported by Ludovic Courtès <ludo@gnu.org>.
65407 2010-05-27  Jim Meyering  <meyering@redhat.com>
65409         maint.mk: also prohibit "#undef" of always-defined symbols
65410         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
65411         Allow more than one space before the symbol name.
65412         (sc_prohibit_always-defined_macros): Use grep's -E, now that
65413         the regexp uses alternation.
65415 2010-05-26  Eric Blake  <eblake@redhat.com>
65417         maint.mk: avoid echo -e
65418         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
65419         Convert all uses of echo -* to printf.
65420         Reported by Matthias Bolte.
65422 2010-05-25  Bruno Haible  <bruno@clisp.org>
65424         Update to GNU gettext 0.18, part 2.
65425         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
65426         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
65428 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65430         Add missing include in test-pwrite.c.
65431         * tests/test-pwrite.c: Include string.h, for strcmp.
65433 2010-05-24  Bruno Haible  <bruno@clisp.org>
65435         * NEWS: Mention requirement for Automake option 'subdir-objects'.
65437 2010-05-24  Bruno Haible  <bruno@clisp.org>
65439         Don't use conversion with transliteration in u{8,16,32}_strcoll.
65440         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
65441         iconveh_error argument.
65442         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
65443         U_STRCONV_TO_LOCALE.
65444         * lib/unistr/u16-strcoll.c: Likewise.
65445         * lib/unistr/u32-strcoll.c: Likewise.
65446         * modules/unistr/u8-strcoll (Depends-on): Add
65447         uniconv/u8-strconv-to-enc, localcharset. Remove
65448         uniconv/u8-strconv-to-locale.
65449         (configure.ac): Bump version number.
65450         * modules/unistr/u16-strcoll (Depends-on): Add
65451         uniconv/u16-strconv-to-enc, localcharset. Remove
65452         uniconv/u16-strconv-to-locale.
65453         (configure.ac): Bump version number.
65454         * modules/unistr/u32-strcoll (Depends-on): Add
65455         uniconv/u32-strconv-to-enc, localcharset. Remove
65456         uniconv/u32-strconv-to-locale.
65457         (configure.ac): Bump version number.
65459 2010-05-24  Bruno Haible  <bruno@clisp.org>
65461         Avoid a test failure on NetBSD 5.0.
65462         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
65463         an iconv() bug.
65465 2010-05-24  Bruno Haible  <bruno@clisp.org>
65467         Adjust #include directive style.
65468         * modules/regex (Includes): Recommend to write <regex.h>.
65470 2010-05-24  Bruno Haible  <bruno@clisp.org>
65472         regex: Don't require alloca.
65473         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
65474         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
65475         only inside if (0).
65477 2010-05-23  Jim Meyering  <meyering@redhat.com>
65479         test-renameat.c: include <sys/stat.h>
65480         * tests/test-renameat.c: Include <sys/stat.h>; required for
65481         definition of S_IS* macros.
65483 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
65485         Update maintainer documentation for 'relocatable-prog' module.
65486         * doc/relocatable-maint.texi: Update.
65487         Comments by Bruno Haible.
65489 2010-05-23  Bruno Haible  <bruno@clisp.org>
65491         git-merge-changelog: Enable --split-merged-entry by default.
65492         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
65493         (usage): Don't mention this option any more.
65494         Reported by Ralf Wildenhues.
65496 2010-05-23  Jim Meyering  <meyering@redhat.com>
65498         test-pwrite: do not leave behind a test file named "out"
65499         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
65500         The trivial-looking use of init.sh is really necessary.
65501         It ensures that the temporary file, "out", is created in
65502         a temporary directory, and removed upon termination.
65503         * tests/test-pwrite.sh: Re-add file.
65504         * modules/pwrite-tests: Reference it.
65506 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65508         Fix output redirection buglet in init.sh.
65509         * tests/init.sh: Fix redirection of stderr.
65511 2010-05-20  Simon Josefsson  <simon@josefsson.org>
65513         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
65515 2010-05-17  Simon Josefsson  <simon@josefsson.org>
65517         * modules/valgrind-tests: New file.
65518         * m4/valgrind-tests.m4: New file.
65519         * doc/valgrind-tests.texi: New file.
65520         * doc/gnulib.texi (Running self-tests under valgrind): New
65521         section.
65523 2010-05-19  Bruno Haible  <bruno@clisp.org>
65525         Clean up dead code in recent commit.
65526         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
65527         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
65528         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
65529         Suggested by Paolo Bonzini.
65531 2010-05-19  Bruno Haible  <bruno@clisp.org>
65533         Avoid valgrind error reports from libunistring.
65534         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
65535         * modules/libunistring (Files): Add it.
65536         * modules/libunistring-optional (Files): Likewise.
65538 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
65539             Bruno Haible  <bruno@clisp.org>
65541         New module 'libunistring-optional'.
65542         * modules/libunistring-optional: New file.
65543         * m4/libunistring-base.m4: New file.
65544         * m4/libunistring-optional.m4: New file.
65545         * lib/unicase.in.h: Renamed from lib/unicase.h.
65546         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
65547         * lib/unictype.in.h: Renamed from lib/unictype.h.
65548         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
65549         * lib/uniname.in.h: Renamed from lib/uniname.h.
65550         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
65551         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
65552         * lib/unistr.in.h: Renamed from lib/unistr.h.
65553         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
65554         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
65555         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
65556         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
65557         gl_LIBUNISTRING. If the library was found, determine the installed
65558         version and set LIBUNISTRING_VERSION.
65559         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
65560         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
65561         handle a configuration option --with-included-libunistring.
65562         * modules/libunistring (Files): Add m4/absolute-header.m4.
65563         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
65564         Add m4/libunistring-base.m4.
65565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65566         (Makefile.am): Build unicase.h from unicase.in.h.
65567         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
65568         Add m4/libunistring-base.m4.
65569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65570         (Makefile.am): Build uniconv.h from uniconv.in.h.
65571         * modules/unictype/base (Files): Use unictype.in.h instead of
65572         unictype.h. Add m4/libunistring-base.m4.
65573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65574         (Makefile.am): Build unictype.h from unictype.in.h.
65575         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
65576         Add m4/libunistring-base.m4.
65577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65578         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
65579         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
65580         Add m4/libunistring-base.m4.
65581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65582         (Makefile.am): Build uniname.h from uniname.in.h.
65583         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
65584         Add m4/libunistring-base.m4.
65585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65586         (Makefile.am): Build uninorm.h from uninorm.in.h.
65587         * modules/unistdio/base (Files): Use unistdio.in.h instead of
65588         unistdio.h. Add m4/libunistring-base.m4.
65589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65590         (Makefile.am): Build unistdio.h from unistdio.in.h.
65591         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
65592         Add m4/libunistring-base.m4.
65593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65594         (Makefile.am): Build unistr.h from unistr.in.h.
65595         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
65596         Add m4/libunistring-base.m4.
65597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65598         (Makefile.am): Build unitypes.h from unitypes.in.h.
65599         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
65600         Add m4/libunistring-base.m4.
65601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65602         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
65603         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
65604         uniwidth.h. Add m4/libunistring-base.m4.
65605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65606         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
65607         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
65608         instead of augmenting lib_SOURCES.
65609         * modules/unicase/empty-suffix-context: Likewise.
65610         * modules/unicase/locale-language: Likewise.
65611         * modules/unicase/tolower: Likewise.
65612         * modules/unicase/totitle: Likewise.
65613         * modules/unicase/toupper: Likewise.
65614         * modules/unicase/u8-casecmp: Likewise.
65615         * modules/unicase/u8-casecoll: Likewise.
65616         * modules/unicase/u8-casefold: Likewise.
65617         * modules/unicase/u8-casexfrm: Likewise.
65618         * modules/unicase/u8-ct-casefold: Likewise.
65619         * modules/unicase/u8-ct-tolower: Likewise.
65620         * modules/unicase/u8-ct-totitle: Likewise.
65621         * modules/unicase/u8-ct-toupper: Likewise.
65622         * modules/unicase/u8-is-cased: Likewise.
65623         * modules/unicase/u8-is-casefolded: Likewise.
65624         * modules/unicase/u8-is-lowercase: Likewise.
65625         * modules/unicase/u8-is-titlecase: Likewise.
65626         * modules/unicase/u8-is-uppercase: Likewise.
65627         * modules/unicase/u8-prefix-context: Likewise.
65628         * modules/unicase/u8-suffix-context: Likewise.
65629         * modules/unicase/u8-tolower: Likewise.
65630         * modules/unicase/u8-totitle: Likewise.
65631         * modules/unicase/u8-toupper: Likewise.
65632         * modules/unicase/u16-casecmp: Likewise.
65633         * modules/unicase/u16-casecoll: Likewise.
65634         * modules/unicase/u16-casefold: Likewise.
65635         * modules/unicase/u16-casexfrm: Likewise.
65636         * modules/unicase/u16-ct-casefold: Likewise.
65637         * modules/unicase/u16-ct-tolower: Likewise.
65638         * modules/unicase/u16-ct-totitle: Likewise.
65639         * modules/unicase/u16-ct-toupper: Likewise.
65640         * modules/unicase/u16-is-cased: Likewise.
65641         * modules/unicase/u16-is-casefolded: Likewise.
65642         * modules/unicase/u16-is-lowercase: Likewise.
65643         * modules/unicase/u16-is-titlecase: Likewise.
65644         * modules/unicase/u16-is-uppercase: Likewise.
65645         * modules/unicase/u16-prefix-context: Likewise.
65646         * modules/unicase/u16-suffix-context: Likewise.
65647         * modules/unicase/u16-tolower: Likewise.
65648         * modules/unicase/u16-totitle: Likewise.
65649         * modules/unicase/u16-toupper: Likewise.
65650         * modules/unicase/u32-casecmp: Likewise.
65651         * modules/unicase/u32-casecoll: Likewise.
65652         * modules/unicase/u32-casefold: Likewise.
65653         * modules/unicase/u32-casexfrm: Likewise.
65654         * modules/unicase/u32-ct-casefold: Likewise.
65655         * modules/unicase/u32-ct-tolower: Likewise.
65656         * modules/unicase/u32-ct-totitle: Likewise.
65657         * modules/unicase/u32-ct-toupper: Likewise.
65658         * modules/unicase/u32-is-cased: Likewise.
65659         * modules/unicase/u32-is-casefolded: Likewise.
65660         * modules/unicase/u32-is-lowercase: Likewise.
65661         * modules/unicase/u32-is-titlecase: Likewise.
65662         * modules/unicase/u32-is-uppercase: Likewise.
65663         * modules/unicase/u32-prefix-context: Likewise.
65664         * modules/unicase/u32-suffix-context: Likewise.
65665         * modules/unicase/u32-tolower: Likewise.
65666         * modules/unicase/u32-totitle: Likewise.
65667         * modules/unicase/u32-toupper: Likewise.
65668         * modules/unicase/ulc-casecmp: Likewise.
65669         * modules/unicase/ulc-casecoll: Likewise.
65670         * modules/unicase/ulc-casexfrm: Likewise.
65671         * modules/uniconv/u8-conv-from-enc: Likewise.
65672         * modules/uniconv/u8-conv-to-enc: Likewise.
65673         * modules/uniconv/u8-strconv-from-enc: Likewise.
65674         * modules/uniconv/u8-strconv-from-locale: Likewise.
65675         * modules/uniconv/u8-strconv-to-enc: Likewise.
65676         * modules/uniconv/u8-strconv-to-locale: Likewise.
65677         * modules/uniconv/u16-conv-from-enc: Likewise.
65678         * modules/uniconv/u16-conv-to-enc: Likewise.
65679         * modules/uniconv/u16-strconv-from-enc: Likewise.
65680         * modules/uniconv/u16-strconv-from-locale: Likewise.
65681         * modules/uniconv/u16-strconv-to-enc: Likewise.
65682         * modules/uniconv/u16-strconv-to-locale: Likewise.
65683         * modules/uniconv/u32-conv-from-enc: Likewise.
65684         * modules/uniconv/u32-conv-to-enc: Likewise.
65685         * modules/uniconv/u32-strconv-from-enc: Likewise.
65686         * modules/uniconv/u32-strconv-from-locale: Likewise.
65687         * modules/uniconv/u32-strconv-to-enc: Likewise.
65688         * modules/uniconv/u32-strconv-to-locale: Likewise.
65689         * modules/unictype/bidicategory-byname: Likewise.
65690         * modules/unictype/bidicategory-name: Likewise.
65691         * modules/unictype/bidicategory-of: Likewise.
65692         * modules/unictype/bidicategory-test: Likewise.
65693         * modules/unictype/block-list: Likewise.
65694         * modules/unictype/block-test: Likewise.
65695         * modules/unictype/category-C: Likewise.
65696         * modules/unictype/category-Cc: Likewise.
65697         * modules/unictype/category-Cf: Likewise.
65698         * modules/unictype/category-Cn: Likewise.
65699         * modules/unictype/category-Co: Likewise.
65700         * modules/unictype/category-Cs: Likewise.
65701         * modules/unictype/category-L: Likewise.
65702         * modules/unictype/category-Ll: Likewise.
65703         * modules/unictype/category-Lm: Likewise.
65704         * modules/unictype/category-Lo: Likewise.
65705         * modules/unictype/category-Lt: Likewise.
65706         * modules/unictype/category-Lu: Likewise.
65707         * modules/unictype/category-M: Likewise.
65708         * modules/unictype/category-Mc: Likewise.
65709         * modules/unictype/category-Me: Likewise.
65710         * modules/unictype/category-Mn: Likewise.
65711         * modules/unictype/category-N: Likewise.
65712         * modules/unictype/category-Nd: Likewise.
65713         * modules/unictype/category-Nl: Likewise.
65714         * modules/unictype/category-No: Likewise.
65715         * modules/unictype/category-P: Likewise.
65716         * modules/unictype/category-Pc: Likewise.
65717         * modules/unictype/category-Pd: Likewise.
65718         * modules/unictype/category-Pe: Likewise.
65719         * modules/unictype/category-Pf: Likewise.
65720         * modules/unictype/category-Pi: Likewise.
65721         * modules/unictype/category-Po: Likewise.
65722         * modules/unictype/category-Ps: Likewise.
65723         * modules/unictype/category-S: Likewise.
65724         * modules/unictype/category-Sc: Likewise.
65725         * modules/unictype/category-Sk: Likewise.
65726         * modules/unictype/category-Sm: Likewise.
65727         * modules/unictype/category-So: Likewise.
65728         * modules/unictype/category-Z: Likewise.
65729         * modules/unictype/category-Zl: Likewise.
65730         * modules/unictype/category-Zp: Likewise.
65731         * modules/unictype/category-Zs: Likewise.
65732         * modules/unictype/category-and: Likewise.
65733         * modules/unictype/category-and-not: Likewise.
65734         * modules/unictype/category-byname: Likewise.
65735         * modules/unictype/category-name: Likewise.
65736         * modules/unictype/category-none: Likewise.
65737         * modules/unictype/category-of: Likewise.
65738         * modules/unictype/category-or: Likewise.
65739         * modules/unictype/category-test: Likewise.
65740         * modules/unictype/combining-class: Likewise.
65741         * modules/unictype/ctype-alnum: Likewise.
65742         * modules/unictype/ctype-alpha: Likewise.
65743         * modules/unictype/ctype-blank: Likewise.
65744         * modules/unictype/ctype-cntrl: Likewise.
65745         * modules/unictype/ctype-digit: Likewise.
65746         * modules/unictype/ctype-graph: Likewise.
65747         * modules/unictype/ctype-lower: Likewise.
65748         * modules/unictype/ctype-print: Likewise.
65749         * modules/unictype/ctype-punct: Likewise.
65750         * modules/unictype/ctype-space: Likewise.
65751         * modules/unictype/ctype-upper: Likewise.
65752         * modules/unictype/ctype-xdigit: Likewise.
65753         * modules/unictype/decimal-digit: Likewise.
65754         * modules/unictype/digit: Likewise.
65755         * modules/unictype/mirror: Likewise.
65756         * modules/unictype/numeric: Likewise.
65757         * modules/unictype/property-alphabetic: Likewise.
65758         * modules/unictype/property-ascii-hex-digit: Likewise.
65759         * modules/unictype/property-bidi-arabic-digit: Likewise.
65760         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
65761         * modules/unictype/property-bidi-block-separator: Likewise.
65762         * modules/unictype/property-bidi-boundary-neutral: Likewise.
65763         * modules/unictype/property-bidi-common-separator: Likewise.
65764         * modules/unictype/property-bidi-control: Likewise.
65765         * modules/unictype/property-bidi-embedding-or-override: Likewise.
65766         * modules/unictype/property-bidi-eur-num-separator: Likewise.
65767         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
65768         * modules/unictype/property-bidi-european-digit: Likewise.
65769         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
65770         * modules/unictype/property-bidi-left-to-right: Likewise.
65771         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
65772         * modules/unictype/property-bidi-other-neutral: Likewise.
65773         * modules/unictype/property-bidi-pdf: Likewise.
65774         * modules/unictype/property-bidi-segment-separator: Likewise.
65775         * modules/unictype/property-bidi-whitespace: Likewise.
65776         * modules/unictype/property-byname: Likewise.
65777         * modules/unictype/property-combining: Likewise.
65778         * modules/unictype/property-composite: Likewise.
65779         * modules/unictype/property-currency-symbol: Likewise.
65780         * modules/unictype/property-dash: Likewise.
65781         * modules/unictype/property-decimal-digit: Likewise.
65782         * modules/unictype/property-default-ignorable-code-point: Likewise.
65783         * modules/unictype/property-deprecated: Likewise.
65784         * modules/unictype/property-diacritic: Likewise.
65785         * modules/unictype/property-extender: Likewise.
65786         * modules/unictype/property-format-control: Likewise.
65787         * modules/unictype/property-grapheme-base: Likewise.
65788         * modules/unictype/property-grapheme-extend: Likewise.
65789         * modules/unictype/property-grapheme-link: Likewise.
65790         * modules/unictype/property-hex-digit: Likewise.
65791         * modules/unictype/property-hyphen: Likewise.
65792         * modules/unictype/property-id-continue: Likewise.
65793         * modules/unictype/property-id-start: Likewise.
65794         * modules/unictype/property-ideographic: Likewise.
65795         * modules/unictype/property-ids-binary-operator: Likewise.
65796         * modules/unictype/property-ids-trinary-operator: Likewise.
65797         * modules/unictype/property-ignorable-control: Likewise.
65798         * modules/unictype/property-iso-control: Likewise.
65799         * modules/unictype/property-join-control: Likewise.
65800         * modules/unictype/property-left-of-pair: Likewise.
65801         * modules/unictype/property-line-separator: Likewise.
65802         * modules/unictype/property-logical-order-exception: Likewise.
65803         * modules/unictype/property-lowercase: Likewise.
65804         * modules/unictype/property-math: Likewise.
65805         * modules/unictype/property-non-break: Likewise.
65806         * modules/unictype/property-not-a-character: Likewise.
65807         * modules/unictype/property-numeric: Likewise.
65808         * modules/unictype/property-other-alphabetic: Likewise.
65809         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
65810         * modules/unictype/property-other-grapheme-extend: Likewise.
65811         * modules/unictype/property-other-id-continue: Likewise.
65812         * modules/unictype/property-other-id-start: Likewise.
65813         * modules/unictype/property-other-lowercase: Likewise.
65814         * modules/unictype/property-other-math: Likewise.
65815         * modules/unictype/property-other-uppercase: Likewise.
65816         * modules/unictype/property-paired-punctuation: Likewise.
65817         * modules/unictype/property-paragraph-separator: Likewise.
65818         * modules/unictype/property-pattern-syntax: Likewise.
65819         * modules/unictype/property-pattern-white-space: Likewise.
65820         * modules/unictype/property-private-use: Likewise.
65821         * modules/unictype/property-punctuation: Likewise.
65822         * modules/unictype/property-quotation-mark: Likewise.
65823         * modules/unictype/property-radical: Likewise.
65824         * modules/unictype/property-sentence-terminal: Likewise.
65825         * modules/unictype/property-soft-dotted: Likewise.
65826         * modules/unictype/property-space: Likewise.
65827         * modules/unictype/property-terminal-punctuation: Likewise.
65828         * modules/unictype/property-test: Likewise.
65829         * modules/unictype/property-titlecase: Likewise.
65830         * modules/unictype/property-unassigned-code-value: Likewise.
65831         * modules/unictype/property-unified-ideograph: Likewise.
65832         * modules/unictype/property-uppercase: Likewise.
65833         * modules/unictype/property-variation-selector: Likewise.
65834         * modules/unictype/property-white-space: Likewise.
65835         * modules/unictype/property-xid-continue: Likewise.
65836         * modules/unictype/property-xid-start: Likewise.
65837         * modules/unictype/property-zero-width: Likewise.
65838         * modules/unictype/scripts: Likewise.
65839         * modules/unictype/syntax-c-ident: Likewise.
65840         * modules/unictype/syntax-c-whitespace: Likewise.
65841         * modules/unictype/syntax-java-ident: Likewise.
65842         * modules/unictype/syntax-java-whitespace: Likewise.
65843         * modules/unilbrk/u8-possible-linebreaks: Likewise.
65844         * modules/unilbrk/u8-width-linebreaks: Likewise.
65845         * modules/unilbrk/u16-possible-linebreaks: Likewise.
65846         * modules/unilbrk/u16-width-linebreaks: Likewise.
65847         * modules/unilbrk/u32-possible-linebreaks: Likewise.
65848         * modules/unilbrk/u32-width-linebreaks: Likewise.
65849         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
65850         * modules/unilbrk/ulc-width-linebreaks: Likewise.
65851         * modules/uniname/uniname: Likewise.
65852         * modules/uninorm/canonical-decomposition: Likewise.
65853         * modules/uninorm/composition: Likewise.
65854         * modules/uninorm/decomposing-form: Likewise.
65855         * modules/uninorm/decomposition: Likewise.
65856         * modules/uninorm/filter: Likewise.
65857         * modules/uninorm/nfc: Likewise.
65858         * modules/uninorm/nfd: Likewise.
65859         * modules/uninorm/nfkc: Likewise.
65860         * modules/uninorm/nfkd: Likewise.
65861         * modules/uninorm/u8-normalize: Likewise.
65862         * modules/uninorm/u8-normcmp: Likewise.
65863         * modules/uninorm/u8-normcoll: Likewise.
65864         * modules/uninorm/u8-normxfrm: Likewise.
65865         * modules/uninorm/u16-normalize: Likewise.
65866         * modules/uninorm/u16-normcmp: Likewise.
65867         * modules/uninorm/u16-normcoll: Likewise.
65868         * modules/uninorm/u16-normxfrm: Likewise.
65869         * modules/uninorm/u32-normalize: Likewise.
65870         * modules/uninorm/u32-normcmp: Likewise.
65871         * modules/uninorm/u32-normcoll: Likewise.
65872         * modules/uninorm/u32-normxfrm: Likewise.
65873         * modules/unistdio/u8-asnprintf: Likewise.
65874         * modules/unistdio/u8-asprintf: Likewise.
65875         * modules/unistdio/u8-snprintf: Likewise.
65876         * modules/unistdio/u8-sprintf: Likewise.
65877         * modules/unistdio/u8-u8-asnprintf: Likewise.
65878         * modules/unistdio/u8-u8-asprintf: Likewise.
65879         * modules/unistdio/u8-u8-snprintf: Likewise.
65880         * modules/unistdio/u8-u8-sprintf: Likewise.
65881         * modules/unistdio/u8-u8-vasnprintf: Likewise.
65882         * modules/unistdio/u8-u8-vasprintf: Likewise.
65883         * modules/unistdio/u8-u8-vsnprintf: Likewise.
65884         * modules/unistdio/u8-u8-vsprintf: Likewise.
65885         * modules/unistdio/u8-vasnprintf: Likewise.
65886         * modules/unistdio/u8-vasprintf: Likewise.
65887         * modules/unistdio/u8-vsnprintf: Likewise.
65888         * modules/unistdio/u8-vsprintf: Likewise.
65889         * modules/unistdio/u16-asnprintf: Likewise.
65890         * modules/unistdio/u16-asprintf: Likewise.
65891         * modules/unistdio/u16-snprintf: Likewise.
65892         * modules/unistdio/u16-sprintf: Likewise.
65893         * modules/unistdio/u16-u16-asnprintf: Likewise.
65894         * modules/unistdio/u16-u16-asprintf: Likewise.
65895         * modules/unistdio/u16-u16-snprintf: Likewise.
65896         * modules/unistdio/u16-u16-sprintf: Likewise.
65897         * modules/unistdio/u16-u16-vasnprintf: Likewise.
65898         * modules/unistdio/u16-u16-vasprintf: Likewise.
65899         * modules/unistdio/u16-u16-vsnprintf: Likewise.
65900         * modules/unistdio/u16-u16-vsprintf: Likewise.
65901         * modules/unistdio/u16-vasnprintf: Likewise.
65902         * modules/unistdio/u16-vasprintf: Likewise.
65903         * modules/unistdio/u16-vsnprintf: Likewise.
65904         * modules/unistdio/u16-vsprintf: Likewise.
65905         * modules/unistdio/u32-asnprintf: Likewise.
65906         * modules/unistdio/u32-asprintf: Likewise.
65907         * modules/unistdio/u32-snprintf: Likewise.
65908         * modules/unistdio/u32-sprintf: Likewise.
65909         * modules/unistdio/u32-u32-asnprintf: Likewise.
65910         * modules/unistdio/u32-u32-asprintf: Likewise.
65911         * modules/unistdio/u32-u32-snprintf: Likewise.
65912         * modules/unistdio/u32-u32-sprintf: Likewise.
65913         * modules/unistdio/u32-u32-vasnprintf: Likewise.
65914         * modules/unistdio/u32-u32-vasprintf: Likewise.
65915         * modules/unistdio/u32-u32-vsnprintf: Likewise.
65916         * modules/unistdio/u32-u32-vsprintf: Likewise.
65917         * modules/unistdio/u32-vasnprintf: Likewise.
65918         * modules/unistdio/u32-vasprintf: Likewise.
65919         * modules/unistdio/u32-vsnprintf: Likewise.
65920         * modules/unistdio/u32-vsprintf: Likewise.
65921         * modules/unistdio/ulc-asnprintf: Likewise.
65922         * modules/unistdio/ulc-asprintf: Likewise.
65923         * modules/unistdio/ulc-fprintf: Likewise.
65924         * modules/unistdio/ulc-snprintf: Likewise.
65925         * modules/unistdio/ulc-sprintf: Likewise.
65926         * modules/unistdio/ulc-vasnprintf: Likewise.
65927         * modules/unistdio/ulc-vasprintf: Likewise.
65928         * modules/unistdio/ulc-vfprintf: Likewise.
65929         * modules/unistdio/ulc-vsnprintf: Likewise.
65930         * modules/unistdio/ulc-vsprintf: Likewise.
65931         * modules/unistr/u8-check: Likewise.
65932         * modules/unistr/u8-chr: Likewise.
65933         * modules/unistr/u8-cmp: Likewise.
65934         * modules/unistr/u8-cmp2: Likewise.
65935         * modules/unistr/u8-cpy: Likewise.
65936         * modules/unistr/u8-cpy-alloc: Likewise.
65937         * modules/unistr/u8-endswith: Likewise.
65938         * modules/unistr/u8-mblen: Likewise.
65939         * modules/unistr/u8-mbsnlen: Likewise.
65940         * modules/unistr/u8-mbtouc: Likewise.
65941         * modules/unistr/u8-mbtouc-unsafe: Likewise.
65942         * modules/unistr/u8-mbtoucr: Likewise.
65943         * modules/unistr/u8-move: Likewise.
65944         * modules/unistr/u8-next: Likewise.
65945         * modules/unistr/u8-prev: Likewise.
65946         * modules/unistr/u8-set: Likewise.
65947         * modules/unistr/u8-startswith: Likewise.
65948         * modules/unistr/u8-stpcpy: Likewise.
65949         * modules/unistr/u8-stpncpy: Likewise.
65950         * modules/unistr/u8-strcat: Likewise.
65951         * modules/unistr/u8-strchr: Likewise.
65952         * modules/unistr/u8-strcmp: Likewise.
65953         * modules/unistr/u8-strcoll: Likewise.
65954         * modules/unistr/u8-strcpy: Likewise.
65955         * modules/unistr/u8-strcspn: Likewise.
65956         * modules/unistr/u8-strdup: Likewise.
65957         * modules/unistr/u8-strlen: Likewise.
65958         * modules/unistr/u8-strmblen: Likewise.
65959         * modules/unistr/u8-strmbtouc: Likewise.
65960         * modules/unistr/u8-strncat: Likewise.
65961         * modules/unistr/u8-strncmp: Likewise.
65962         * modules/unistr/u8-strncpy: Likewise.
65963         * modules/unistr/u8-strnlen: Likewise.
65964         * modules/unistr/u8-strpbrk: Likewise.
65965         * modules/unistr/u8-strrchr: Likewise.
65966         * modules/unistr/u8-strspn: Likewise.
65967         * modules/unistr/u8-strstr: Likewise.
65968         * modules/unistr/u8-strtok: Likewise.
65969         * modules/unistr/u8-to-u16: Likewise.
65970         * modules/unistr/u8-to-u32: Likewise.
65971         * modules/unistr/u8-uctomb: Likewise.
65972         * modules/unistr/u16-check: Likewise.
65973         * modules/unistr/u16-chr: Likewise.
65974         * modules/unistr/u16-cmp: Likewise.
65975         * modules/unistr/u16-cmp2: Likewise.
65976         * modules/unistr/u16-cpy: Likewise.
65977         * modules/unistr/u16-cpy-alloc: Likewise.
65978         * modules/unistr/u16-endswith: Likewise.
65979         * modules/unistr/u16-mblen: Likewise.
65980         * modules/unistr/u16-mbsnlen: Likewise.
65981         * modules/unistr/u16-mbtouc: Likewise.
65982         * modules/unistr/u16-mbtouc-unsafe: Likewise.
65983         * modules/unistr/u16-mbtoucr: Likewise.
65984         * modules/unistr/u16-move: Likewise.
65985         * modules/unistr/u16-next: Likewise.
65986         * modules/unistr/u16-prev: Likewise.
65987         * modules/unistr/u16-set: Likewise.
65988         * modules/unistr/u16-startswith: Likewise.
65989         * modules/unistr/u16-stpcpy: Likewise.
65990         * modules/unistr/u16-stpncpy: Likewise.
65991         * modules/unistr/u16-strcat: Likewise.
65992         * modules/unistr/u16-strchr: Likewise.
65993         * modules/unistr/u16-strcmp: Likewise.
65994         * modules/unistr/u16-strcoll: Likewise.
65995         * modules/unistr/u16-strcpy: Likewise.
65996         * modules/unistr/u16-strcspn: Likewise.
65997         * modules/unistr/u16-strdup: Likewise.
65998         * modules/unistr/u16-strlen: Likewise.
65999         * modules/unistr/u16-strmblen: Likewise.
66000         * modules/unistr/u16-strmbtouc: Likewise.
66001         * modules/unistr/u16-strncat: Likewise.
66002         * modules/unistr/u16-strncmp: Likewise.
66003         * modules/unistr/u16-strncpy: Likewise.
66004         * modules/unistr/u16-strnlen: Likewise.
66005         * modules/unistr/u16-strpbrk: Likewise.
66006         * modules/unistr/u16-strrchr: Likewise.
66007         * modules/unistr/u16-strspn: Likewise.
66008         * modules/unistr/u16-strstr: Likewise.
66009         * modules/unistr/u16-strtok: Likewise.
66010         * modules/unistr/u16-to-u32: Likewise.
66011         * modules/unistr/u16-to-u8: Likewise.
66012         * modules/unistr/u16-uctomb: Likewise.
66013         * modules/unistr/u32-check: Likewise.
66014         * modules/unistr/u32-chr: Likewise.
66015         * modules/unistr/u32-cmp: Likewise.
66016         * modules/unistr/u32-cmp2: Likewise.
66017         * modules/unistr/u32-cpy: Likewise.
66018         * modules/unistr/u32-cpy-alloc: Likewise.
66019         * modules/unistr/u32-endswith: Likewise.
66020         * modules/unistr/u32-mblen: Likewise.
66021         * modules/unistr/u32-mbsnlen: Likewise.
66022         * modules/unistr/u32-mbtouc: Likewise.
66023         * modules/unistr/u32-mbtouc-unsafe: Likewise.
66024         * modules/unistr/u32-mbtoucr: Likewise.
66025         * modules/unistr/u32-move: Likewise.
66026         * modules/unistr/u32-next: Likewise.
66027         * modules/unistr/u32-prev: Likewise.
66028         * modules/unistr/u32-set: Likewise.
66029         * modules/unistr/u32-startswith: Likewise.
66030         * modules/unistr/u32-stpcpy: Likewise.
66031         * modules/unistr/u32-stpncpy: Likewise.
66032         * modules/unistr/u32-strcat: Likewise.
66033         * modules/unistr/u32-strchr: Likewise.
66034         * modules/unistr/u32-strcmp: Likewise.
66035         * modules/unistr/u32-strcoll: Likewise.
66036         * modules/unistr/u32-strcpy: Likewise.
66037         * modules/unistr/u32-strcspn: Likewise.
66038         * modules/unistr/u32-strdup: Likewise.
66039         * modules/unistr/u32-strlen: Likewise.
66040         * modules/unistr/u32-strmblen: Likewise.
66041         * modules/unistr/u32-strmbtouc: Likewise.
66042         * modules/unistr/u32-strncat: Likewise.
66043         * modules/unistr/u32-strncmp: Likewise.
66044         * modules/unistr/u32-strncpy: Likewise.
66045         * modules/unistr/u32-strnlen: Likewise.
66046         * modules/unistr/u32-strpbrk: Likewise.
66047         * modules/unistr/u32-strrchr: Likewise.
66048         * modules/unistr/u32-strspn: Likewise.
66049         * modules/unistr/u32-strstr: Likewise.
66050         * modules/unistr/u32-strtok: Likewise.
66051         * modules/unistr/u32-to-u16: Likewise.
66052         * modules/unistr/u32-to-u8: Likewise.
66053         * modules/unistr/u32-uctomb: Likewise.
66054         * modules/uniwbrk/u8-wordbreaks: Likewise.
66055         * modules/uniwbrk/u16-wordbreaks: Likewise.
66056         * modules/uniwbrk/u32-wordbreaks: Likewise.
66057         * modules/uniwbrk/ulc-wordbreaks: Likewise.
66058         * modules/uniwbrk/wordbreak-property: Likewise.
66059         * modules/uniwidth/u8-strwidth: Likewise.
66060         * modules/uniwidth/u8-width: Likewise.
66061         * modules/uniwidth/u16-strwidth: Likewise.
66062         * modules/uniwidth/u16-width: Likewise.
66063         * modules/uniwidth/u32-strwidth: Likewise.
66064         * modules/uniwidth/u32-width: Likewise.
66065         * modules/uniwidth/width: Likewise.
66066         * modules/unicase/cased-tests (Makefile.am): Link all test programs
66067         with $(LIBUNISTRING).
66068         * modules/unicase/ignorable-tests: Likewise.
66069         * modules/unicase/locale-language-tests: Likewise.
66070         * modules/unicase/tolower-tests: Likewise.
66071         * modules/unicase/totitle-tests: Likewise.
66072         * modules/unicase/toupper-tests: Likewise.
66073         * modules/unicase/u8-casecmp-tests: Likewise.
66074         * modules/unicase/u8-casecoll-tests: Likewise.
66075         * modules/unicase/u8-casefold-tests: Likewise.
66076         * modules/unicase/u8-is-cased-tests: Likewise.
66077         * modules/unicase/u8-is-casefolded-tests: Likewise.
66078         * modules/unicase/u8-is-lowercase-tests: Likewise.
66079         * modules/unicase/u8-is-titlecase-tests: Likewise.
66080         * modules/unicase/u8-is-uppercase-tests: Likewise.
66081         * modules/unicase/u8-tolower-tests: Likewise.
66082         * modules/unicase/u8-totitle-tests: Likewise.
66083         * modules/unicase/u8-toupper-tests: Likewise.
66084         * modules/unicase/u16-casecmp-tests: Likewise.
66085         * modules/unicase/u16-casecoll-tests: Likewise.
66086         * modules/unicase/u16-casefold-tests: Likewise.
66087         * modules/unicase/u16-is-cased-tests: Likewise.
66088         * modules/unicase/u16-is-casefolded-tests: Likewise.
66089         * modules/unicase/u16-is-lowercase-tests: Likewise.
66090         * modules/unicase/u16-is-titlecase-tests: Likewise.
66091         * modules/unicase/u16-is-uppercase-tests: Likewise.
66092         * modules/unicase/u16-tolower-tests: Likewise.
66093         * modules/unicase/u16-totitle-tests: Likewise.
66094         * modules/unicase/u16-toupper-tests: Likewise.
66095         * modules/unicase/u32-casecmp-tests: Likewise.
66096         * modules/unicase/u32-casecoll-tests: Likewise.
66097         * modules/unicase/u32-casefold-tests: Likewise.
66098         * modules/unicase/u32-is-cased-tests: Likewise.
66099         * modules/unicase/u32-is-casefolded-tests: Likewise.
66100         * modules/unicase/u32-is-lowercase-tests: Likewise.
66101         * modules/unicase/u32-is-titlecase-tests: Likewise.
66102         * modules/unicase/u32-is-uppercase-tests: Likewise.
66103         * modules/unicase/u32-tolower-tests: Likewise.
66104         * modules/unicase/u32-totitle-tests: Likewise.
66105         * modules/unicase/u32-toupper-tests: Likewise.
66106         * modules/unicase/ulc-casecmp-tests: Likewise.
66107         * modules/unicase/ulc-casecoll-tests: Likewise.
66108         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
66109         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
66110         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
66111         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
66112         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
66113         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
66114         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
66115         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
66116         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
66117         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
66118         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
66119         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
66120         * modules/unictype/bidicategory-byname-tests: Likewise.
66121         * modules/unictype/bidicategory-name-tests: Likewise.
66122         * modules/unictype/bidicategory-of-tests: Likewise.
66123         * modules/unictype/bidicategory-test-tests: Likewise.
66124         * modules/unictype/block-list-tests: Likewise.
66125         * modules/unictype/block-of-tests: Likewise.
66126         * modules/unictype/block-test-tests: Likewise.
66127         * modules/unictype/category-C-tests: Likewise.
66128         * modules/unictype/category-Cc-tests: Likewise.
66129         * modules/unictype/category-Cf-tests: Likewise.
66130         * modules/unictype/category-Cn-tests: Likewise.
66131         * modules/unictype/category-Co-tests: Likewise.
66132         * modules/unictype/category-Cs-tests: Likewise.
66133         * modules/unictype/category-L-tests: Likewise.
66134         * modules/unictype/category-Ll-tests: Likewise.
66135         * modules/unictype/category-Lm-tests: Likewise.
66136         * modules/unictype/category-Lo-tests: Likewise.
66137         * modules/unictype/category-Lt-tests: Likewise.
66138         * modules/unictype/category-Lu-tests: Likewise.
66139         * modules/unictype/category-M-tests: Likewise.
66140         * modules/unictype/category-Mc-tests: Likewise.
66141         * modules/unictype/category-Me-tests: Likewise.
66142         * modules/unictype/category-Mn-tests: Likewise.
66143         * modules/unictype/category-N-tests: Likewise.
66144         * modules/unictype/category-Nd-tests: Likewise.
66145         * modules/unictype/category-Nl-tests: Likewise.
66146         * modules/unictype/category-No-tests: Likewise.
66147         * modules/unictype/category-P-tests: Likewise.
66148         * modules/unictype/category-Pc-tests: Likewise.
66149         * modules/unictype/category-Pd-tests: Likewise.
66150         * modules/unictype/category-Pe-tests: Likewise.
66151         * modules/unictype/category-Pf-tests: Likewise.
66152         * modules/unictype/category-Pi-tests: Likewise.
66153         * modules/unictype/category-Po-tests: Likewise.
66154         * modules/unictype/category-Ps-tests: Likewise.
66155         * modules/unictype/category-S-tests: Likewise.
66156         * modules/unictype/category-Sc-tests: Likewise.
66157         * modules/unictype/category-Sk-tests: Likewise.
66158         * modules/unictype/category-Sm-tests: Likewise.
66159         * modules/unictype/category-So-tests: Likewise.
66160         * modules/unictype/category-Z-tests: Likewise.
66161         * modules/unictype/category-Zl-tests: Likewise.
66162         * modules/unictype/category-Zp-tests: Likewise.
66163         * modules/unictype/category-Zs-tests: Likewise.
66164         * modules/unictype/category-and-not-tests: Likewise.
66165         * modules/unictype/category-and-tests: Likewise.
66166         * modules/unictype/category-byname-tests: Likewise.
66167         * modules/unictype/category-name-tests: Likewise.
66168         * modules/unictype/category-none-tests: Likewise.
66169         * modules/unictype/category-of-tests: Likewise.
66170         * modules/unictype/category-or-tests: Likewise.
66171         * modules/unictype/category-test-withtable-tests: Likewise.
66172         * modules/unictype/combining-class-tests: Likewise.
66173         * modules/unictype/ctype-alnum-tests: Likewise.
66174         * modules/unictype/ctype-alpha-tests: Likewise.
66175         * modules/unictype/ctype-blank-tests: Likewise.
66176         * modules/unictype/ctype-cntrl-tests: Likewise.
66177         * modules/unictype/ctype-digit-tests: Likewise.
66178         * modules/unictype/ctype-graph-tests: Likewise.
66179         * modules/unictype/ctype-lower-tests: Likewise.
66180         * modules/unictype/ctype-print-tests: Likewise.
66181         * modules/unictype/ctype-punct-tests: Likewise.
66182         * modules/unictype/ctype-space-tests: Likewise.
66183         * modules/unictype/ctype-upper-tests: Likewise.
66184         * modules/unictype/ctype-xdigit-tests: Likewise.
66185         * modules/unictype/decimal-digit-tests: Likewise.
66186         * modules/unictype/digit-tests: Likewise.
66187         * modules/unictype/mirror-tests: Likewise.
66188         * modules/unictype/numeric-tests: Likewise.
66189         * modules/unictype/property-alphabetic-tests: Likewise.
66190         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
66191         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
66192         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
66193         * modules/unictype/property-bidi-block-separator-tests: Likewise.
66194         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
66195         * modules/unictype/property-bidi-common-separator-tests: Likewise.
66196         * modules/unictype/property-bidi-control-tests: Likewise.
66197         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
66198         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
66199         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
66200         * modules/unictype/property-bidi-european-digit-tests: Likewise.
66201         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
66202         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
66203         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
66204         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
66205         * modules/unictype/property-bidi-pdf-tests: Likewise.
66206         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
66207         * modules/unictype/property-bidi-whitespace-tests: Likewise.
66208         * modules/unictype/property-byname-tests: Likewise.
66209         * modules/unictype/property-combining-tests: Likewise.
66210         * modules/unictype/property-composite-tests: Likewise.
66211         * modules/unictype/property-currency-symbol-tests: Likewise.
66212         * modules/unictype/property-dash-tests: Likewise.
66213         * modules/unictype/property-decimal-digit-tests: Likewise.
66214         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
66215         * modules/unictype/property-deprecated-tests: Likewise.
66216         * modules/unictype/property-diacritic-tests: Likewise.
66217         * modules/unictype/property-extender-tests: Likewise.
66218         * modules/unictype/property-format-control-tests: Likewise.
66219         * modules/unictype/property-grapheme-base-tests: Likewise.
66220         * modules/unictype/property-grapheme-extend-tests: Likewise.
66221         * modules/unictype/property-grapheme-link-tests: Likewise.
66222         * modules/unictype/property-hex-digit-tests: Likewise.
66223         * modules/unictype/property-hyphen-tests: Likewise.
66224         * modules/unictype/property-id-continue-tests: Likewise.
66225         * modules/unictype/property-id-start-tests: Likewise.
66226         * modules/unictype/property-ideographic-tests: Likewise.
66227         * modules/unictype/property-ids-binary-operator-tests: Likewise.
66228         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
66229         * modules/unictype/property-ignorable-control-tests: Likewise.
66230         * modules/unictype/property-iso-control-tests: Likewise.
66231         * modules/unictype/property-join-control-tests: Likewise.
66232         * modules/unictype/property-left-of-pair-tests: Likewise.
66233         * modules/unictype/property-line-separator-tests: Likewise.
66234         * modules/unictype/property-logical-order-exception-tests: Likewise.
66235         * modules/unictype/property-lowercase-tests: Likewise.
66236         * modules/unictype/property-math-tests: Likewise.
66237         * modules/unictype/property-non-break-tests: Likewise.
66238         * modules/unictype/property-not-a-character-tests: Likewise.
66239         * modules/unictype/property-numeric-tests: Likewise.
66240         * modules/unictype/property-other-alphabetic-tests: Likewise.
66241         * modules/unictype/property-other-default-ignorable-code-point-tests:
66242         Likewise.
66243         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
66244         * modules/unictype/property-other-id-continue-tests: Likewise.
66245         * modules/unictype/property-other-id-start-tests: Likewise.
66246         * modules/unictype/property-other-lowercase-tests: Likewise.
66247         * modules/unictype/property-other-math-tests: Likewise.
66248         * modules/unictype/property-other-uppercase-tests: Likewise.
66249         * modules/unictype/property-paired-punctuation-tests: Likewise.
66250         * modules/unictype/property-paragraph-separator-tests: Likewise.
66251         * modules/unictype/property-pattern-syntax-tests: Likewise.
66252         * modules/unictype/property-pattern-white-space-tests: Likewise.
66253         * modules/unictype/property-private-use-tests: Likewise.
66254         * modules/unictype/property-punctuation-tests: Likewise.
66255         * modules/unictype/property-quotation-mark-tests: Likewise.
66256         * modules/unictype/property-radical-tests: Likewise.
66257         * modules/unictype/property-sentence-terminal-tests: Likewise.
66258         * modules/unictype/property-soft-dotted-tests: Likewise.
66259         * modules/unictype/property-space-tests: Likewise.
66260         * modules/unictype/property-terminal-punctuation-tests: Likewise.
66261         * modules/unictype/property-test-tests: Likewise.
66262         * modules/unictype/property-titlecase-tests: Likewise.
66263         * modules/unictype/property-unassigned-code-value-tests: Likewise.
66264         * modules/unictype/property-unified-ideograph-tests: Likewise.
66265         * modules/unictype/property-uppercase-tests: Likewise.
66266         * modules/unictype/property-variation-selector-tests: Likewise.
66267         * modules/unictype/property-white-space-tests: Likewise.
66268         * modules/unictype/property-xid-continue-tests: Likewise.
66269         * modules/unictype/property-xid-start-tests: Likewise.
66270         * modules/unictype/property-zero-width-tests: Likewise.
66271         * modules/unictype/scripts-tests: Likewise.
66272         * modules/unictype/syntax-c-ident-tests: Likewise.
66273         * modules/unictype/syntax-c-whitespace-tests: Likewise.
66274         * modules/unictype/syntax-java-ident-tests: Likewise.
66275         * modules/unictype/syntax-java-whitespace-tests: Likewise.
66276         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
66277         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
66278         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
66279         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
66280         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
66281         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
66282         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
66283         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
66284         * modules/uniname/uniname-tests: Likewise.
66285         * modules/uninorm/canonical-decomposition-tests: Likewise.
66286         * modules/uninorm/compat-decomposition-tests: Likewise.
66287         * modules/uninorm/composition-tests: Likewise.
66288         * modules/uninorm/decomposing-form-tests: Likewise.
66289         * modules/uninorm/decomposition-tests: Likewise.
66290         * modules/uninorm/filter-tests: Likewise.
66291         * modules/uninorm/nfc-tests: Likewise.
66292         * modules/uninorm/nfd-tests: Likewise.
66293         * modules/uninorm/nfkc-tests: Likewise.
66294         * modules/uninorm/nfkd-tests: Likewise.
66295         * modules/uninorm/u8-normcmp-tests: Likewise.
66296         * modules/uninorm/u8-normcoll-tests: Likewise.
66297         * modules/uninorm/u16-normcmp-tests: Likewise.
66298         * modules/uninorm/u16-normcoll-tests: Likewise.
66299         * modules/uninorm/u32-normcmp-tests: Likewise.
66300         * modules/uninorm/u32-normcoll-tests: Likewise.
66301         * modules/unistdio/u8-asnprintf-tests: Likewise.
66302         * modules/unistdio/u8-vasnprintf-tests: Likewise.
66303         * modules/unistdio/u8-vasprintf-tests: Likewise.
66304         * modules/unistdio/u8-vsnprintf-tests: Likewise.
66305         * modules/unistdio/u8-vsprintf-tests: Likewise.
66306         * modules/unistdio/u16-asnprintf-tests: Likewise.
66307         * modules/unistdio/u16-vasnprintf-tests: Likewise.
66308         * modules/unistdio/u16-vasprintf-tests: Likewise.
66309         * modules/unistdio/u16-vsnprintf-tests: Likewise.
66310         * modules/unistdio/u16-vsprintf-tests: Likewise.
66311         * modules/unistdio/u32-asnprintf-tests: Likewise.
66312         * modules/unistdio/u32-vasnprintf-tests: Likewise.
66313         * modules/unistdio/u32-vasprintf-tests: Likewise.
66314         * modules/unistdio/u32-vsnprintf-tests: Likewise.
66315         * modules/unistdio/u32-vsprintf-tests: Likewise.
66316         * modules/unistdio/ulc-asnprintf-tests: Likewise.
66317         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
66318         * modules/unistdio/ulc-vasprintf-tests: Likewise.
66319         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
66320         * modules/unistdio/ulc-vsprintf-tests: Likewise.
66321         * modules/unistr/u8-check-tests: Likewise.
66322         * modules/unistr/u8-chr-tests: Likewise.
66323         * modules/unistr/u8-cmp-tests: Likewise.
66324         * modules/unistr/u8-cmp2-tests: Likewise.
66325         * modules/unistr/u8-cpy-alloc-tests: Likewise.
66326         * modules/unistr/u8-cpy-tests: Likewise.
66327         * modules/unistr/u8-mblen-tests: Likewise.
66328         * modules/unistr/u8-mbsnlen-tests: Likewise.
66329         * modules/unistr/u8-mbtouc-tests: Likewise.
66330         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
66331         * modules/unistr/u8-mbtoucr-tests: Likewise.
66332         * modules/unistr/u8-move-tests: Likewise.
66333         * modules/unistr/u8-next-tests: Likewise.
66334         * modules/unistr/u8-prev-tests: Likewise.
66335         * modules/unistr/u8-set-tests: Likewise.
66336         * modules/unistr/u8-stpcpy-tests: Likewise.
66337         * modules/unistr/u8-stpncpy-tests: Likewise.
66338         * modules/unistr/u8-strcat-tests: Likewise.
66339         * modules/unistr/u8-strcmp-tests: Likewise.
66340         * modules/unistr/u8-strcoll-tests: Likewise.
66341         * modules/unistr/u8-strcpy-tests: Likewise.
66342         * modules/unistr/u8-strdup-tests: Likewise.
66343         * modules/unistr/u8-strlen-tests: Likewise.
66344         * modules/unistr/u8-strmblen-tests: Likewise.
66345         * modules/unistr/u8-strmbtouc-tests: Likewise.
66346         * modules/unistr/u8-strncat-tests: Likewise.
66347         * modules/unistr/u8-strncmp-tests: Likewise.
66348         * modules/unistr/u8-strncpy-tests: Likewise.
66349         * modules/unistr/u8-strnlen-tests: Likewise.
66350         * modules/unistr/u8-to-u16-tests: Likewise.
66351         * modules/unistr/u8-to-u32-tests: Likewise.
66352         * modules/unistr/u8-uctomb-tests: Likewise.
66353         * modules/unistr/u16-check-tests: Likewise.
66354         * modules/unistr/u16-chr-tests: Likewise.
66355         * modules/unistr/u16-cmp-tests: Likewise.
66356         * modules/unistr/u16-cmp2-tests: Likewise.
66357         * modules/unistr/u16-cpy-alloc-tests: Likewise.
66358         * modules/unistr/u16-cpy-tests: Likewise.
66359         * modules/unistr/u16-mblen-tests: Likewise.
66360         * modules/unistr/u16-mbsnlen-tests: Likewise.
66361         * modules/unistr/u16-mbtouc-tests: Likewise.
66362         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
66363         * modules/unistr/u16-mbtoucr-tests: Likewise.
66364         * modules/unistr/u16-move-tests: Likewise.
66365         * modules/unistr/u16-next-tests: Likewise.
66366         * modules/unistr/u16-prev-tests: Likewise.
66367         * modules/unistr/u16-set-tests: Likewise.
66368         * modules/unistr/u16-stpcpy-tests: Likewise.
66369         * modules/unistr/u16-stpncpy-tests: Likewise.
66370         * modules/unistr/u16-strcat-tests: Likewise.
66371         * modules/unistr/u16-strcmp-tests: Likewise.
66372         * modules/unistr/u16-strcoll-tests: Likewise.
66373         * modules/unistr/u16-strcpy-tests: Likewise.
66374         * modules/unistr/u16-strdup-tests: Likewise.
66375         * modules/unistr/u16-strlen-tests: Likewise.
66376         * modules/unistr/u16-strmblen-tests: Likewise.
66377         * modules/unistr/u16-strmbtouc-tests: Likewise.
66378         * modules/unistr/u16-strncat-tests: Likewise.
66379         * modules/unistr/u16-strncmp-tests: Likewise.
66380         * modules/unistr/u16-strncpy-tests: Likewise.
66381         * modules/unistr/u16-strnlen-tests: Likewise.
66382         * modules/unistr/u16-to-u32-tests: Likewise.
66383         * modules/unistr/u16-to-u8-tests: Likewise.
66384         * modules/unistr/u16-uctomb-tests: Likewise.
66385         * modules/unistr/u32-check-tests: Likewise.
66386         * modules/unistr/u32-chr-tests: Likewise.
66387         * modules/unistr/u32-cmp-tests: Likewise.
66388         * modules/unistr/u32-cmp2-tests: Likewise.
66389         * modules/unistr/u32-cpy-alloc-tests: Likewise.
66390         * modules/unistr/u32-cpy-tests: Likewise.
66391         * modules/unistr/u32-mblen-tests: Likewise.
66392         * modules/unistr/u32-mbsnlen-tests: Likewise.
66393         * modules/unistr/u32-mbtouc-tests: Likewise.
66394         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
66395         * modules/unistr/u32-mbtoucr-tests: Likewise.
66396         * modules/unistr/u32-move-tests: Likewise.
66397         * modules/unistr/u32-next-tests: Likewise.
66398         * modules/unistr/u32-prev-tests: Likewise.
66399         * modules/unistr/u32-set-tests: Likewise.
66400         * modules/unistr/u32-stpcpy-tests: Likewise.
66401         * modules/unistr/u32-stpncpy-tests: Likewise.
66402         * modules/unistr/u32-strcat-tests: Likewise.
66403         * modules/unistr/u32-strcmp-tests: Likewise.
66404         * modules/unistr/u32-strcoll-tests: Likewise.
66405         * modules/unistr/u32-strcpy-tests: Likewise.
66406         * modules/unistr/u32-strdup-tests: Likewise.
66407         * modules/unistr/u32-strlen-tests: Likewise.
66408         * modules/unistr/u32-strmblen-tests: Likewise.
66409         * modules/unistr/u32-strmbtouc-tests: Likewise.
66410         * modules/unistr/u32-strncat-tests: Likewise.
66411         * modules/unistr/u32-strncmp-tests: Likewise.
66412         * modules/unistr/u32-strncpy-tests: Likewise.
66413         * modules/unistr/u32-strnlen-tests: Likewise.
66414         * modules/unistr/u32-to-u16-tests: Likewise.
66415         * modules/unistr/u32-to-u8-tests: Likewise.
66416         * modules/unistr/u32-uctomb-tests: Likewise.
66417         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
66418         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
66419         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
66420         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
66421         * modules/uniwidth/u8-strwidth-tests: Likewise.
66422         * modules/uniwidth/u8-width-tests: Likewise.
66423         * modules/uniwidth/u16-strwidth-tests: Likewise.
66424         * modules/uniwidth/u16-width-tests: Likewise.
66425         * modules/uniwidth/u32-strwidth-tests: Likewise.
66426         * modules/uniwidth/u32-width-tests: Likewise.
66427         * modules/uniwidth/width-tests: Likewise.
66429 2010-05-18  Richard Jones  <rjones@redhat.com>
66431         doc: users.txt: list hivex
66432         * users.txt: Add hivex.
66434 2010-05-18  Richard Jones  <rjones@redhat.com>
66436         doc: users.txt: list febootstrap
66437         * users.txt: Add febootstrap.
66439 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
66441         bootstrap: fix an error when gnulib is not used as a git submodule
66442         * build-aux/bootstrap (gnulib_path): If its length is zero then
66443         assign "gnulib" to it.
66444         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
66446 2010-05-16  Bruno Haible  <bruno@clisp.org>
66448         Avoid autoconf warnings about AM_ICONV.
66449         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
66450         2.64.
66452 2010-05-16  Bruno Haible  <bruno@clisp.org>
66454         absolute-header: Make the macro usable in more situations.
66455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
66456         from gl_ABSOLUTE_HEADER.
66457         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
66459 2010-05-16  James Youngman  <jay@gnu.org>
66461         doc: update users.txt
66462         * users.txt: Add CSSC.
66464 2010-05-16  Jim Meyering  <meyering@redhat.com>
66466         init.sh: fix an error in the previous change; add more comments
66467         * tests/init.sh: Compare exit code in loop against 9, not 2.
66468         Patch by Bruno Haible.
66469         Make the two tests more similar by adding an empty "then" clause.
66470         Add comments.
66472         init.sh: avoid unnecessary shell re-exec
66473         * tests/init.sh: Improve the re-exec-required check to first test the
66474         current shell.  If it passes the test, do not search for a shell that
66475         does pass, and do not re-exec.  This test is particularly contorted to
66476         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
66477         of $(...) evokes a syntax error and causes immediate shell exit with
66478         status 2.  Bruno Haible reported that the re-exec made it impossible
66479         to single-step through any init.sh-using script.
66481 2010-05-16  Bruno Haible  <bruno@clisp.org>
66483         Fix collision between gnulib's and libintl's printf replacements.
66484         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
66485         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
66486         (printf): When using GNU C, map the __printf__ function to rpl_printf
66487         via __asm__. When not using GNU C, define rpl_printf instead of
66488         __printf__.
66489         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
66490         commit.
66491         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
66492         commit.
66493         * m4/asm-underscore.m4: New file.
66494         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
66495         * modules/stdio (Files): Add m4/asm-underscore.m4.
66496         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
66497         Reported by Ben Pfaff.
66499 2010-05-16  Bruno Haible  <bruno@clisp.org>
66501         verify: Avoid skipping the test on openSUSE 11.0.
66502         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
66504 2010-05-13  Bruno Haible  <bruno@clisp.org>
66506         Avoid useless warnings from G++.
66507         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
66508         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
66509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66511 2010-05-11  Jim Meyering  <meyering@redhat.com>
66513         maint.mk: tweak preceding change
66514         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
66515         regexps tighter by anchoring at EOL, and make the new group "shy"
66516         for slightly decreased overhead.
66518 2010-05-11  Eric Blake  <eblake@redhat.com>
66520         maint.mk: gnulib doesn't guarantee NSIG
66521         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
66523 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
66525         test-pwrite.c: Remove unused variable declaration.
66526         * tests/test-pwrite.c (main): Remove read_buf declaration.
66528         Remove useless test-pwrite.sh file.
66529         * tests/test-pwrite.sh: Delete file.
66530         * modules/pwrite-tests: Remove references.
66531         Reported by Bruno Haible.
66533 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
66535         init.sh: fix a typo
66536         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
66538 2010-05-10  Jim Meyering  <meyering@redhat.com>
66540         maint.mk: avoid using a temporary file in the always-defined-macros check
66541         * top/maint.mk (.re-defmac): Remove rule.
66542         (gl_trap_): Remove definition.
66543         (sc_prohibit_always-defined_macros): Rewrite not to create and
66544         depend on a temporary file.  Instead, depend on GNU grep's ability
66545         to read a list of regular expressions from stdin when given "-f -".
66547 2010-05-09  Bruno Haible  <bruno@clisp.org>
66549         Update to GNU gettext 0.18, part 1.
66550         * m4/gettext.m4: Update to GNU gettext 0.18.
66551         * m4/intl.m4: Likewise.
66552         * m4/po.m4: Likewise.
66553         * modules/gettext (Files): Add m4/fcntl-o.m4.
66554         (configure.ac): Require gettext infrastructure from version 0.18.
66556 2010-05-09  Jim Meyering  <meyering@redhat.com>
66558         init.sh: enable MALLOC_PERTURB_
66559         * tests/init.sh: Enable glibc's malloc-perturbing option.
66561         maint.mk: improve sc_cross_check_PATH_usage_in_tests
66562         With my recent change in init.sh from the two-line form:
66563             -#   : ${srcdir=.}
66564             -#   . "$srcdir/init.sh"; path_prepend_ .
66565             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
66566         I noticed that using the one-line form would cause this test
66567         to fail with a false-positive, or to stop working altogether,
66568         depending on whether help-version changed or all the tests did.
66569         * top/maint.mk (_hv_regex): Remove this definition.
66570         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
66571         (_hv_regex_strong): Use a stronger regex to check for conformance.
66572         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
66573         Give a separate diagnostic for lack of conforming use.
66575         maint.mk: prohibit definition of symbols defined by gnulib
66576         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
66577         definition of symbols defined by gnulib.
66579 2010-05-09  Bruno Haible  <bruno@clisp.org>
66581         acl: Avoid test failure on Cygwin-hosted mingw.
66582         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
66584 2010-05-09  Bruno Haible  <bruno@clisp.org>
66586         error: Use system's fcntl function.
66587         * lib/error.c (fcntl): Undefine.
66589 2010-05-09  Jim Meyering  <meyering@redhat.com>
66591         verify: adjust formatting to be more consistent
66592         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
66593         argument-list '('s, and after one comma.
66595 2010-05-09  Bruno Haible  <bruno@clisp.org>
66597         error: More reliable output on mingw.
66598         * lib/error.c: Include <windows.h>.
66599         (is_open): New function.
66600         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
66601         defined.
66603 2010-05-09  Bruno Haible  <bruno@clisp.org>
66605         vasnprintf: Fix syntax errors in libintl build on mingw.
66606         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
66607         pad_ourselves and prec_ourselves after use.
66609 2010-05-08  Bruno Haible  <bruno@clisp.org>
66611         * lib/config.charset: Update comments for Cygwin 1.7.
66612         * lib/localcharset.c: Likewise.
66614 2010-05-07  Jim Meyering  <meyering@redhat.com>
66616         init.sh: improve comments
66617         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
66618         . "${srcdir=.}/init.sh"; path_prepend_ .
66619         Add a note about path_prepend_ and the alternative of using
66620         TESTS_ENVIRONMENT.
66622 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
66624         exclude: Unescape hashed patterns in wildcard mode.
66625         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
66626         to the hash list.
66627         * tests/test-exclude8.sh: New test case.
66628         * modules/exclude-tests: Add new test.
66630 2010-05-05  Eric Blake  <eblake@redhat.com>
66632         verify: automate tests
66633         * modules/verify-tests: New module.
66634         * tests/test-verify.sh: New file.
66635         * tests/test-verify.c: Guard each negative test with a unique id.
66636         Also avoid warning about unused left hand of comma expressions.
66638 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66640         Further improvements to verify.h, suggested by Eric Blake.
66641         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
66642         the GL_* versions, to avoid collision with OpenGL.
66643         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
66644         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
66645         than testing merely whether it's defined.
66647         Modify verify.h to pacify gcc -Wredundant_decls.
66648         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
66649         These use the prefix "GL_" since they're likely to be useful elsewhere.
66650         We may need to break them out into a different .h file.
66651         (__COUNTER__): Define to 0 if the compiler doesn't support it.
66652         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
66653         of verify_function__.
66655 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
66657         Tests for module pwrite.
66658         * modules/pwrite-tests: New file.
66659         * tests/test-pwrite.sh: New file.
66660         * tests/test-pwrite.c: New file.
66662         New module pwrite.
66663         * lib/unistd.in.h (pwrite): New declaration.
66664         * lib/pwrite.c: New file, from glibc with modifications.
66665         * m4/pwrite.m4: New file.
66666         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
66667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
66668         REPLACE_PWRITE.
66669         * modules/pwrite: New file.
66670         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
66671         REPLACE_PWRITE.
66672         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
66673         * doc/posix-functions/pwrite.texi: Mention the new module.
66675 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
66677         pread: Update documentation.
66678         * doc/posix-functions/pread.texi: Mention the 'pread' module.
66680 2010-05-04  Eric Blake  <eblake@redhat.com>
66682         docs: update cygwin progress
66683         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
66684         this bug.
66685         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
66686         Added in cygwin 1.7.2.
66687         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
66688         Likewise.
66689         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
66690         Likewise.
66691         * doc/glibc-functions/dup3.texi (dup3): Likewise.
66692         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
66693         * doc/glibc-functions/accept4.texi (accept4): Likewise.
66694         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
66695         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
66696         Mention nproc module.
66697         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
66698         bug in cygwin 1.7.5 addition.
66699         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
66700         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
66701         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
66702         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
66703         1.7.5.
66704         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
66705         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
66706         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
66707         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
66708         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
66709         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
66710         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
66711         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
66712         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
66713         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
66714         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
66715         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
66716         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
66717         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
66718         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
66719         Likewise.
66720         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
66721         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
66722         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
66723         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
66724         Likewise.
66725         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
66726         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
66727         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
66728         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
66729         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
66730         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
66731         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
66732         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
66733         Likewise.
66734         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
66735         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
66736         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
66737         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
66738         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
66739         Likewise.
66740         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
66741         Likewise.
66742         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
66743         Likewise.
66744         * doc/glibc-functions/xdrrec_endofrecord.texi
66745         (xdrrec_endofrecord): Likewise.
66746         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
66747         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
66748         Likewise.
66749         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
66750         Likewise.
66752 2010-05-04  Jim Meyering  <meyering@redhat.com>
66754         gendocs.sh: make its "-s FILE" option more useful
66755         * build-aux/gendocs.sh: When honoring the -s FILE option, update
66756         $PACKAGE to reflect the probably-different basename of "FILE".
66758 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
66760         bootstrap: don't ignore download_po_files failure
66761         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
66762         failure.
66764 2010-05-03  Jim Meyering  <meyering@redhat.com>
66766         maint.mk: allow to pass options to gendocs.sh
66767         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
66768         (gendocs_options_): New overridable variable.
66770         gnu-web-doc-update: don't ignore configure or build failure
66771         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
66773         announce-gen: backslash-escape '@'s in --help output
66774         * build-aux/announce-gen: Fix syntax errors.
66776         maint.mk, announce-gen: allow project-specific announcement mail headers
66777         * top/maint.mk (translation_project_): Define default.
66778         (announcement_Cc_, announcement_mail_headers_): Likewise.
66779         (announcement): Invoke announce-gen with new --mail-headers option.
66780         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
66782         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
66783         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
66784         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
66785         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
66786         line in the "err2" output file when running "make check" in verbose
66787         mode (i.e., with set -x enabled).
66789 2010-05-03  Bruno Haible  <bruno@clisp.org>
66791         wctob: Fix for weird platforms.
66792         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
66793         argument value.
66795 2010-05-03  Jim Meyering  <meyering@redhat.com>
66797         maint.mk: prohibit unwarranted use of <strings.h>
66798         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
66799         strings.h in a file that does not also use strcasecmp, strncasecmp,
66800         ffs or ffsll.
66802         maint.mk: remove obsolete comments
66803         * top/maint.mk: Remove stale, commented-out rules.
66805 2010-05-02  Bruno Haible  <bruno@clisp.org>
66807         wcwidth: Declare also when it's aliased.
66808         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
66809         macro.
66811 2010-05-02  Bruno Haible  <bruno@clisp.org>
66813         Fix regression from 2010-04-25.
66814         * gnulib-tool (func_modules_transitive_closure): Check the status of
66815         all modules, not only of the tests that are of the form foo-tests where
66816         foo is a module.
66818 2010-05-02  Bruno Haible  <bruno@clisp.org>
66820         wctob: Work around nasty Cygwin 1.7.2 bug.
66821         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
66822         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
66824 2010-05-01  Bruno Haible  <bruno@clisp.org>
66826         fpurge: Sharper test.
66827         * tests/test-fpurge.c (main): Add one more ftell check.
66828         * modules/fpurge-tests (Depends-on): Add ftell.
66829         Suggested by Eric Blake.
66831 2010-05-01  Bruno Haible  <bruno@clisp.org>
66833         ftello: Another test.
66834         * tests/test-ftello3.c: New file.
66835         * modules/ftello-tests (Files): Add it.
66836         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
66837         MOSTLYCLEANFILES.
66839         ftell: Another test.
66840         * tests/test-ftell3.c: New file.
66841         * modules/ftell-tests (Files): Add it.
66842         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
66843         MOSTLYCLEANFILES.
66845 2010-05-01  Bruno Haible  <bruno@clisp.org>
66847         ftell, ftello: Work around Solaris bug.
66848         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
66849         * lib/ftello.c: Include stdio-impl.h.
66850         (ftello): On Solaris, when _IOWRT is set, compute the result without
66851         looking at _IOREAD.
66852         * modules/ftello (Files): Add lib/stdio-impl.h.
66853         * doc/posix-functions/ftell.texi: Mention Solaris bug.
66854         * doc/posix-functions/ftello.texi: Likewise.
66855         Reported by Eric Blake.
66857 2010-05-01  Bruno Haible  <bruno@clisp.org>
66859         freading: Adapt to special meaning of _IOREAD flag on Solaris.
66860         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
66861         the _IOWRT flag is also set.
66863 2010-05-01  Bruno Haible  <bruno@clisp.org>
66865         Fix doc about a HP-UX stdio bug.
66866         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
66867         * doc/posix-functions/ftello.texi: Likewise.
66869 2010-05-01  Bruno Haible  <bruno@clisp.org>
66871         lseek test: Fix failure on Solaris.
66872         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
66873         output.
66875 2010-04-30  Jim Meyering  <meyering@redhat.com>
66877         bootstrap: don't ignore failure to generate po*/Makevars
66878         * build-aux/bootstrap (with_gettext): Don't ignore failure
66879         to create po/Makevars or runtime-po/Makevars.
66881 2010-04-29  Eric Blake  <eblake@redhat.com>
66883         headers: relax license to LGPLv2+
66884         * modules/fcntl-h (License): Relax license.
66885         * modules/getopt-posix (License): Likewise.
66886         * modules/locale (License): Likewise.
66887         * modules/math (License): Likewise.
66888         * modules/pty (License): Likewise.
66889         * modules/sched (License): Likewise.
66890         * modules/search (License): Likewise.
66891         * modules/spawn (License): Likewise.
66892         * modules/stdarg (License): Likewise.
66893         * modules/sysexits (License): Likewise.
66895 2010-04-29  Jim Meyering  <meyering@redhat.com>
66897         inttypes: relax license to LGPLv2+
66898         * modules/inttypes (License): Relax license.
66900 2010-04-29  Simon Josefsson  <simon@josefsson.org>
66902         * top/maint.mk (indent): Run twice to produce idempotent results.
66904 2010-04-28  Bruno Haible  <bruno@clisp.org>
66906         getdate: Generate getdate.c in the source directory.
66907         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
66908         MOSTLYCLEANFILES.
66909         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
66911 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
66913         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
66914         is not declared as a const *; avoid warnings in that case.
66916 2010-04-28  Eric Blake  <eblake@redhat.com>
66918         canonicalize-lgpl: avoid compiler warning
66919         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
66920         declaration' / 'extraneous semicolon' warning with some compilers.
66921         Reported by Andreas Gruenbacher.
66923 2010-04-28  Jim Meyering  <meyering@redhat.com>
66925         init.sh: ensure a more reliable exit status when exiting via trap
66926         * tests/init.sh (setup_): Don't rely on $? in signal handler.
66927         Inspired by patches from Dmitry V. Levin.
66928         Also trap on signal 3 (SIGQUIT).
66930 2010-04-27  Bruno Haible  <bruno@clisp.org>
66932         Update doc about utimes().
66933         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
66934         'utimens' module.
66935         Reported by Andreas Gruenbacher <agruen@suse.de>.
66937 2010-04-27  Eric Blake  <eblake@redhat.com>
66939         full-read, full-write: relax license
66940         * modules/full-read (License): Drop to LGPLv2+.
66941         * modules/full-write (License): Likewise.
66942         * modules/safe-read (License): Likewise.
66943         * modules/safe-write (License): Likewise.
66945         pthread: mention library for linking
66946         * modules/pthread (Link): Mention $(LIB_PTHREAD).
66948 2010-04-27  Jim Meyering  <meyering@redhat.com>
66950         maint.mk: fix a bug introduced in last change
66951         * top/maint.mk (gl_assured_headers_): Now that all names are on
66952         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
66953         is not anchored to end of word, it should be adequate.
66955         maint.mk: avoid side-effect in latest syntax-check
66956         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
66957         to run commands via $(shell...), and hence to incur cost only when
66958         the new rule is actually run.
66960         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
66961         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
66962         and use that to create a regexp used to detect all #if HAVE_..._H uses.
66963         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
66964         (gl_assured_headers_, az_, AZ_): Define.
66965         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
66967 2010-04-26  Jim Meyering  <jim@meyering.net>
66968             Bruno Haible  <bruno@clisp.org>
66970         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
66971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
66972         Prompted by an exchange with Gilles Espinasse.
66974 2010-04-26  Jim Meyering  <meyering@redhat.com>
66976         git-version-gen: aesthetic tweak
66977         * build-aux/git-version-gen: Use "$nl" rather than a literal,
66978         so that the command remains on a single line.
66980 2010-04-26  Eric Blake  <eblake@redhat.com>
66982         git-version-gen: allow use on EBCDIC hosts
66983         * build-aux/git-version-gen (dirty): Use literal rather than tying
66984         ourselves to ascii.
66985         Reported by Steve Goetze.
66987 2010-04-25  Bruno Haible  <bruno@clisp.org>
66989         netdb: Add support for GNULIB_POSIXCHECK.
66990         * lib/netdb.in.h: Include warn-on-use.h.
66991         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
66992         functions are used when GNULIB_POSIXCHECK is defined and the
66993         getaddrinfo module is not in use.
66994         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
66995         freeaddrinfo, gai_strerror, getnameinfo are declared.
66996         * modules/netdb (Depends-on): Add warn-on-use.
66997         (Makefile.am): Include warn-on-use.h in netdb.h.
66999 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
67001         build: avoid "make check" failure without .git/ directory
67002         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
67003         there is no .git/ directory.
67005 2010-04-25  Bruno Haible  <bruno@clisp.org>
67007         ptsname: Fix misuse of ttyname_r.
67008         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
67009         of errno.
67011 2010-04-25  Bruno Haible  <bruno@clisp.org>
67013         ttyname_r: Make it work on Solaris 10.
67014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
67015         if the system function has the POSIX declaration. Test whether the
67016         function fails if the buffer is less than 128 bytes large.
67017         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
67018         system's ttyname_r function. Provide a reasonably large buffer.
67019         * modules/ttyname_r (Depends-on): Add extensions.
67020         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
67022 2010-04-25  Bruno Haible  <bruno@clisp.org>
67024         Use the 'extensions' module for some more functions on Solaris.
67025         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
67026         module.
67027         * doc/posix-functions/ctime_r.texi: Likewise.
67028         * doc/posix-functions/getgrgid_r.texi: Likewise.
67029         * doc/posix-functions/getgrnam_r.texi: Likewise.
67030         * doc/posix-functions/getpwnam_r.texi: Likewise.
67031         * doc/posix-functions/getpwuid_r.texi: Likewise.
67032         * doc/posix-functions/readdir_r.texi: Likewise.
67033         * doc/posix-functions/sigwait.texi: Likewise.
67034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
67035         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
67037 2010-04-25  Bruno Haible  <bruno@clisp.org>
67039         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
67040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
67041         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
67042         * lib/ttyname_r.c: Include <limits.h>.
67043         (ttyname_r): Define using the system's ttyname_r function, if it exists
67044         and not on Solaris.
67045         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
67046         set.
67047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
67048         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
67049         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
67050         Reported by Simon Josefsson.
67052 2010-04-25  Bruno Haible  <bruno@clisp.org>
67054         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
67055         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
67056         * doc/posix-functions/ctime_r.texi: Likewise.
67057         * doc/posix-functions/getgrgid_r.texi: Likewise.
67058         * doc/posix-functions/getgrnam_r.texi: Likewise.
67059         * doc/posix-functions/getlogin_r.texi: Likewise.
67060         * doc/posix-functions/getpwnam_r.texi: Likewise.
67061         * doc/posix-functions/getpwuid_r.texi: Likewise.
67062         * doc/posix-functions/readdir_r.texi: Likewise.
67063         * doc/posix-functions/sigwait.texi: Likewise.
67064         * doc/posix-functions/ttyname_r.texi: Likewise.
67065         Reported by Simon Josefsson.
67067 2010-04-25  Bruno Haible  <bruno@clisp.org>
67069         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
67070         * gnulib-tool (func_usage): Document that --with-*-tests options apply
67071         also to --create-testdir.
67072         (func_acceptable): Don't consider the status of *-tests modules here.
67073         (func_modules_transitive_closure): Consider it here, before including a
67074         test module.
67075         (func_import, func_create_testdir): Set inc_all_direct_tests,
67076         inc_all_indirect_tests.
67077         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
67078         --create-testdir and --create-megatestdir.
67080 2010-04-25  Bruno Haible  <bruno@clisp.org>
67082         gnulib-tool: Add --without-*-tests options.
67083         * gnulib-tool (func_usage): Document the --without-*-tests options.
67084         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
67085         excl_unportable_tests): New variables.
67086         Fail if they are specified with --import or --update.
67087         (func_acceptable): Respect the excl_*_tests variables.
67088         (func_import): Set the excl_*_tests variables to empty.
67090 2010-04-25  Simon Josefsson  <simon@josefsson.org>
67091             Bruno Haible  <bruno@clisp.org>
67093         Work around a MacOS X 10.4 bug with openpty.
67094         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
67095         * tests/test-openpty.c (main): Close the master side explicitly.
67097 2010-04-25  Bruno Haible  <bruno@clisp.org>
67099         strnlen: Fix a C++ test error on MacOS X and Solaris.
67100         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
67101         the function is not declared.
67102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
67103         Simon Josefsson.
67105 2010-04-24  Bruno Haible  <bruno@clisp.org>
67107         Avoid a gcc warning.
67108         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
67109         of correct type for %08lx directive.
67110         Reported by Eric Blake.
67112 2010-04-24  Bruno Haible  <bruno@clisp.org>
67114         vasnprintf: Correct errno value in case of out-of-memory.
67115         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
67116         or sprintf. Use the errno value from SNPRINTF or sprintf.
67117         Reported by Ian Beckwith <ianb@erislabs.net>.
67119 2010-04-24  Bruno Haible  <bruno@clisp.org>
67121         ansi-c++-opt: Find correct compiler when cross-compiling.
67122         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
67123         AC_CHECK_PROGS.
67124         Reported by Simon Josefsson.
67126 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
67128         vc-list-files: Add support for subversion
67129         * build-aux/vc-list-files: Use "svn list" to generate the list of
67130         files controlled by subversion.
67132 2010-04-23  Jim Meyering  <meyering@redhat.com>
67134         vc-list-files tests: convert to use init.sh
67135         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
67136         path_prepend_.
67137         Use Exit, not exit.
67138         Use skip_ rather than open coding it.
67139         Remove trap set-up and compare definitions.
67140         * tests/test-vc-list-files-git.sh: Likewise.
67141         * modules/vc-list-files-tests (Files): Add tests/init.sh.
67143 2010-04-22  Simon Josefsson  <simon@josefsson.org>
67145         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
67146         backup files.
67148 2010-04-21  Simon Josefsson  <simon@josefsson.org>
67150         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
67152 2010-04-20  Eric Blake  <eblake@redhat.com>
67154         tests: be robust to ignored SIGPIPE
67155         * tests/test-select-in.sh: Consume all output.
67156         * tests/test-lseek.sh: Check correct exit status, while avoiding
67157         EPIPE.
67159 2010-04-20  Simon Josefsson  <simon@josefsson.org>
67160             Bruno Haible  <bruno@clisp.org>
67162         visibility: Don't use -fvisibility if it leads to a warning.
67163         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
67164         yes, don't pretend that visibility works if it leads to a warning.
67165         Reported by Mike Gran <spk121@yahoo.com>.
67167 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
67169         * build-aux/bootstrap: Use "git -h" for testing for supported options
67170         instead of "git --help".  The short-form option only shows a summary,
67171         and doesn't layout the full man page.  Grep for the full option name
67172         in the summary, too.
67174 2010-04-19  Bruno Haible  <bruno@clisp.org>
67176         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
67177         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
67178         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
67179         mention of RELOCATABLE_STRIP.
67180         Reported by Sylvain Beucler <beuc@beuc.net>.
67182 2010-04-19  Bruno Haible  <bruno@clisp.org>
67184         * lib/diffseq.h: Fix typo in comment.
67185         Reported by Eric Blake.
67187 2010-04-19  Bruno Haible  <bruno@clisp.org>
67189         ioctl: Move autoconf macro to a .m4 file.
67190         * m4/ioctl.m4: New file, extracted from modules/ioctl.
67191         * modules/ioctl (Files): Add it.
67192         (configure.ac): Simply invoke gl_FUNC_IOCTL.
67193         Reported by Ian Beckwith <ianb@erislabs.net>.
67195 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
67196             Bruno Haible  <bruno@clisp.org>
67198         diffseq: Accommodate use-case with abstract arrays.
67199         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
67200         is not defined.
67201         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
67202         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
67204 2010-04-18  Bruno Haible  <bruno@clisp.org>
67206         * doc/posix-headers/stdbool.texi: More precise wording.
67208 2010-04-17  Jim Meyering  <meyering@redhat.com>
67210         maint.mk: use gnu-style indentation in an embedded perl script
67211         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
67212         Rename variable: s/two/last_two_bytes/
67214 2010-04-16  Eric Blake  <eblake@redhat.com>
67216         test-stdbool: skip test that fails with Solaris CC
67217         * tests/test-stdbool.c (f): Skip test that causes compilation
67218         error under buggy C++ compiler.
67219         * lib/stdbool.in.h: Document the limitation.
67220         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
67222         setenv: allow compilation with C++
67223         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
67224         register keyword.
67226         stdint: allow test to pass with C++
67227         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
67229         getopt: allow compilation with C++
67230         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
67231         struct.
67232         * lib/getopt.c (_getopt_internal_r): Use correct type.
67233         Reported by Dagobert Michelson, via Joel E. Denny.
67235 2010-04-16  Bruno Haible  <bruno@clisp.org>
67237         Override netdb.h always.
67238         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
67239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
67240         Reported by Ludovic Courtès <ludo@gnu.org>.
67242 2010-04-15  Bruno Haible  <bruno@clisp.org>
67244         openpty: Fix mistake from 2010-03-21.
67245         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
67246         Reported by Simon Josefsson.
67248 2010-04-15  Eric Blake  <eblake@redhat.com>
67250         test-forkpty: fix expected signature
67251         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
67252         Reported by Simon Josefsson.
67254 2010-04-15  Jim Meyering  <meyering@redhat.com>
67256         maint.mk: texinfo_suffix_re_: correct the default regexp
67257         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
67259         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
67260         make it configurable via texinfo_suffix_re_.
67262 2010-04-14  Eric Blake  <eblake@redhat.com>
67264         strtok_r: relax license to LGPLv2+
67265         * modules/strtok_r (License): Relax license.
67266         Reported by Matthias Bolte.
67268 2010-04-14  Simon Josefsson  <simon@josefsson.org>
67270         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
67271         version 1.4.4 by default instead of requiring the libgcrypt
67272         version used during build.  This makes it possible to use the
67273         application with older but still binary compatible libgcrypt
67274         versions.
67276 2010-04-13  Eric Blake  <eblake@redhat.com>
67278         getopt-gnu: match recent glibc fixes and posix ruling
67279         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
67280         '+' handling, when requesting extensions.
67281         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
67282         'W;' handling.
67283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
67284         * doc/posix-functions/getopt.texi (getopt): Document this.
67285         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
67286         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67287         Likewise.
67289         getopt: merge bug fixes from glibc
67290         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
67291         diagnostics.  Honor '+:' correctly.  Reject ';'.
67293         getopt-posix: detect MacOS bug
67294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
67295         optind when missing a required argument.
67296         * doc/posix-functions/getopt.texi (getopt): Document the bug.
67297         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
67298         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67299         Likewise.
67301         getopt-posix: avoid spurious failure on Solaris
67302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
67303         an indicator that setting optind=1 is sufficient for reset.
67305         getopt-posix: avoid spurious failure on FreeBSD
67306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
67307         in POSIX mode, since the m4 test uses it.
67309         gnulib-tool: silence warning on BSD sh
67310         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
67312 2010-04-13  Jim Meyering  <meyering@redhat.com>
67314         doc: users.txt: GNU patch now uses gnulib
67315         * users.txt: Add patch.
67317 2010-04-12  Jim Meyering  <meyering@redhat.com>
67319         maint.mk: generate more concise timing data for syntax-check rules
67320         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
67321         " done" from each line that reports a syntax-check test duration.
67323 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
67325         git-version-gen: use "git update-index..." rather than "git status"
67326         * build-aux/git-version-gen: Use git update-index --refresh, not
67327         "git status".  With some versions of git, "git status" would fail
67328         to update the index and result in an unwarranted "-dirty" suffix.
67330 2010-04-11  Jim Meyering  <meyering@redhat.com>
67332         openat: correct formatting (no semantic change)
67333         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
67334         Suggested by Bruno Haible.
67336 2010-04-11  Bruno Haible  <bruno@clisp.org>
67338         Stricter declaration checking in testdirs.
67339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67340         If for_tests is true, augment AM_CPPFLAGS to define
67341         GNULIB_STRICT_CHECKING.
67342         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
67343         GNULIB_STRICT_CHECKING is defined, verify that the function is
67344         declared.
67346 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
67347             Bruno Haible  <bruno@clisp.org>
67349         libunistring: Improve configure output.
67350         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
67351         Don't say "consider installing GNU libunistring" when checking again
67352         with libiconv.
67354 2010-04-11  Bruno Haible  <bruno@clisp.org>
67356         libunistring: Correct value of $LTLIBUNISTRING.
67357         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
67358         correct the value of $LTLIBUNISTRING.
67360 2010-04-11  Bruno Haible  <bruno@clisp.org>
67362         havelib: Add static libraries to LIBS in the right order.
67363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
67364         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
67366 2010-04-11  Bruno Haible  <bruno@clisp.org>
67368         libunistring: Detect libunistring also when it depends on libiconv.
67369         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
67370         the second AC_LIB_HAVE_LINKFLAGS invocation.
67372 2010-04-11  James Youngman  <jay@gnu.org>
67374         close-stream: declare local scalars to be "const"
67375         * lib/close-stream.c (close_stream): Make boolean variables const
67376         to document the fact that we set but do not change them.
67378 2010-04-11  Bruno Haible  <bruno@clisp.org>
67380         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
67382 2010-04-11  Jim Meyering  <meyering@redhat.com>
67384         maint.mk: don't include dist-check.mk
67385         * top/maint.mk: Remove bogus include directive.
67387         maint.mk: improve empty-line-at-EOF check
67388         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
67389         solution, rather than tail+Perl-based one.  The latter would read
67390         a few kilobytes from the end of each file, and did not handle empty
67391         files properly.
67393         maint.mk: print the elapsed time for each syntax-check rule
67394         * top/maint.mk (sc_m_rules_): Save start time in a file.
67395         (sc_z_rules_): New rules: remove temp file and print elapsed time.
67396         (local-check): Interpose the .z rules
67398 2010-04-11  Jim Meyering  <meyering@redhat.com>
67400         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
67401         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
67402         empty file with one that ends in an empty line.
67404 2010-04-10  Bruno Haible  <bruno@clisp.org>
67406         mkdir: Make it work on mingw64.
67407         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
67408         * lib/mkdir.c: Update comment.
67409         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
67411 2010-04-10  Bruno Haible  <bruno@clisp.org>
67413         Don't override improved macro from newer autoconf.
67414         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
67415         autoconf >= 2.62.
67416         Reported by Joel E. Denny <jdenny@clemson.edu>.
67418 2010-04-10  Jim Meyering  <meyering@redhat.com>
67420         maint.mk: new syntax-check rule: prohibit empty lines at end of file
67421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
67423         maint.mk: correct a diagnostic
67424         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
67425         in diagnostic; now use $prohibit.
67427 2010-04-10  Bruno Haible  <address@hidden>
67429         fchownat: Fix a C++ test error on Solaris 8.
67430         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
67431         the function does not exist.
67433 2010-04-10  Bruno Haible  <bruno@clisp.org>
67435         vasnprintf: Add more tests.
67436         * tests/test-vasnprintf-posix.c: Include <errno.h>.
67437         (test_function): Test converting an invalid wide string.
67439         vasnprintf: Correct handling of unconvertible wide string arguments.
67440         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
67441         VASNPRINTF.
67442         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
67443         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
67444         smaller than the expected maximum need for the directive. Set errno to
67445         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
67446         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
67447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
67448         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
67449         * modules/vasnprintf (Files): Add m4/printf.m4.
67450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67452 2010-04-10  Bruno Haible  <bruno@clisp.org>
67454         vasnprintf: Fix crash in %ls directive.
67455         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
67456         string is passed as argument to %ls, with no precision and no width.
67457         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67459 2010-04-10  Bruno Haible  <bruno@clisp.org>
67461         vasnprintf: Fix multiple test failures on mingw.
67462         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
67463         _snprintf, or snwprintf, not _snwprintf.
67465 2010-04-10  Bruno Haible  <bruno@clisp.org>
67467         write: Fix a C++ test error on mingw.
67468         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
67470 2010-04-10  Bruno Haible  <bruno@clisp.org>
67472         vasnprintf test: Reduce code duplication.
67473         * tests/test-vasnprintf.c (test_function): New function, extracted from
67474         test_vasnprintf.
67475         (test_vasnprintf, test_asnprintf): Invoke it.
67477 2010-04-10  Bruno Haible  <bruno@clisp.org>
67479         strnlen: Fix warning in C++ mode on MacOS X.
67480         * lib/string.in.h (strnlen): Use the modern idiom.
67481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
67482         defining strnlen as a macro already in <config.h>.
67483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67484         REPLACE_STRNLEN.
67485         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
67486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67488 2010-04-08  James Youngman  <jay@gnu.org>
67490         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
67491         the example.
67493 2010-04-09  Jim Meyering  <meyering@redhat.com>
67495         maint.mk: print better diagnostic when there is no $(_hv_file)
67496         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
67497         announce that when $(_hv_file) (aka help-version) does not exist.
67499         init.sh: run tr in the "C" locale to avoid multibyte interpretation
67500         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
67501         not try to interpret its random input bytes.  Jarno Rajahalme reported
67502         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
67503         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
67504         (mktempd_): Likewise, just in case.
67506         ftruncate: add two years to projected module removal date: 2012
67507         * m4/ftruncate.m4: Adjust comments.
67509         ftruncate: mark module as obsolete; even MinGW provides it, now
67510         * modules/ftruncate (Status): Obsolete.
67511         (Notice): Say that.
67512         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
67513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
67515 2010-04-08  Bruno Haible  <bruno@clisp.org>
67517         Fix side effects from tests-related modules.
67518         * modules/dprintf-posix (Comment): New section.
67519         * modules/fprintf-posix (Comment): Likewise.
67520         * modules/obstack-printf-posix (Comment): Likewise.
67521         * modules/printf-posix (Comment): Likewise.
67522         * modules/snprintf-posix (Comment): Likewise.
67523         * modules/sprintf-posix (Comment): Likewise.
67524         * modules/vasnprintf-posix (Comment): Likewise.
67525         * modules/vasprintf-posix (Comment): Likewise.
67526         * modules/vdprintf-posix (Comment): Likewise.
67527         * modules/vfprintf-posix (Comment): Likewise.
67528         * modules/vprintf-posix (Comment): Likewise.
67529         * modules/vsnprintf-posix (Comment): Likewise.
67530         * modules/vsprintf-posix (Comment): Likewise.
67531         * modules/xprintf-posix (Comment): Likewise.
67532         * modules/xvasprintf-posix (Comment): Likewise.
67533         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
67534         * modules/floorf-tests (Depends-on): Likewise.
67535         * modules/round-tests (Depends-on): Likewise.
67536         * modules/roundf-tests (Depends-on): Likewise.
67537         * modules/trunc-tests (Depends-on): Likewise.
67538         * modules/truncf-tests (Depends-on): Likewise.
67539         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
67540         'fprintf-posix' module is not present.
67541         * tests/test-floorf2.c (check): Likewise.
67542         * tests/test-trunc2.c (check): Likewise.
67543         * tests/test-truncf2.c (check): Likewise.
67544         * tests/test-round2.c (equal): Likewise.
67545         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67547 2010-04-07  Karl Berry  <karl@gnu.org>
67549         * config/srclist.txt,
67550         * config/srclistvars.sh,
67551         * config/srclist-update: doc fixes.
67553 2010-04-07  Jim Meyering  <meyering@redhat.com>
67555         maint.mk: add a PATH crosschecking syntax-check rule
67556         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
67557         Useful if you use a test like the one in help-version (coreutils,
67558         diffutils, grep, gzip) that ensures $(VERSION) matches what is
67559         printed by prog --version.
67561 2010-04-06  Bruno Haible  <bruno@clisp.org>
67563         Fix link error on mingw.
67564         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
67565         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
67567 2010-04-06  Bruno Haible  <bruno@clisp.org>
67569         Assume rmdir exists.
67570         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
67572 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
67574         doc: update users.txt
67575         * users.txt: Add gcal.
67577 2010-04-06  Jim Meyering  <meyering@redhat.com>
67579         init.sh: simply unset TMPDIR rather than risking env -i
67580         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
67581         although it probably works fine on all Unix-based systems, some
67582         systems (Cygwin?) cannot tolerate a totally cleared environment.
67583         Suggestion from Eric Blake.
67585 2010-04-06  Jim Meyering  <meyering@redhat.com>
67587         init.sh: portability fix: use env's POSIX-specified -i option not -u
67588         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
67589         than unportable env -u.  Solaris 5.11's env lacks support for -u.
67591 2010-04-05  Bruno Haible  <bruno@clisp.org>
67593         btowc: Work around Cygwin 1.7.2 bug.
67594         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
67595         does not map NUL to 0.
67596         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
67598 2010-04-05  Bruno Haible  <bruno@clisp.org>
67600         Make the multithread modules work on Cygwin 1.7.2.
67601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
67602         imported symbols can be declared weak, so that it returns "no" on
67603         Cygwin 1.7.2.
67605 2010-04-05  Bruno Haible  <bruno@clisp.org>
67607         Use the module 'strncat'.
67608         * modules/unistr/u8-strncat (Depends-on): Add strncat.
67610         Tests for module 'strncat'.
67611         * modules/strncat-tests: New file.
67612         * tests/test-strncat.c: New file.
67614         New module 'strncat'.
67615         * lib/string.in.h (strncat): New declaration.
67616         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
67617         * m4/strncat.m4: New file, based on m4/memchr.m4.
67618         * modules/strncat: New file.
67619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
67620         is declared.
67621         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
67622         REPLACE_STRNCAT.
67623         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
67624         REPLACE_STRNCAT.
67625         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
67626         module.
67627         * tests/test-string-c++.cc: Check signature of strncat.
67629 2010-04-05  Jim Meyering  <meyering@redhat.com>
67631         xstrtoumax-tests: convert to use init.sh
67632         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
67633         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
67634         Use Exit, not exit.
67635         Remove uses of $EXEEXT and "./" to run a program in the current dir.
67637         xstrtoimax-tests: convert to use init.sh
67638         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
67639         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
67640         Use Exit, not exit.
67641         Remove uses of $EXEEXT and "./" to run a program in the current dir.
67643 2010-04-05  Bruno Haible  <bruno@clisp.org>
67645         sys_socket: Avoid #define replacements in C++ mode.
67646         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
67647         warning to the function if possible, rather than #defining the symbol
67648         to a dysfunctional alias.
67650 2010-04-05  Bruno Haible  <bruno@clisp.org>
67652         fseeko: Fix C++ test error on mingw.
67653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
67654         gl_FUNC_FSEEKO.
67655         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
67656         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
67657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
67658         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
67660 2010-04-05  Bruno Haible  <bruno@clisp.org>
67662         duplocale: Improve test output.
67663         * tests/test-duplocale.c (main): Print reason for skipped test.
67665 2010-04-05  Bruno Haible  <bruno@clisp.org>
67667         Assume rmdir exists.
67668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
67669         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
67671 2010-04-05  Bruno Haible  <bruno@clisp.org>
67673         Fix link error on Solaris 8 with cc.
67674         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
67676 2010-04-05  Bruno Haible  <bruno@clisp.org>
67678         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
67679         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
67681 2010-04-05  Bruno Haible  <bruno@clisp.org>
67683         vasprintf: Update documentation.
67684         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
67686 2010-04-05  Bruno Haible  <bruno@clisp.org>
67688         ptsname: Improve test.
67689         * tests/test-ptsname.c (main): Also try the various master names of BSD
67690         systems.
67692 2010-04-05  Bruno Haible  <bruno@clisp.org>
67694         memchr: Avoid a possible C++ test error.
67695         * lib/string.in.h (memchr): Provide declaration if function is missing.
67696         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
67697         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
67698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
67699         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
67701 2010-04-05  Bruno Haible  <bruno@clisp.org>
67703         strtok_r: Improve idiom.
67704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
67705         AC_LIBOBJ is used.
67707 2010-04-05  Bruno Haible  <bruno@clisp.org>
67709         strdup: Improve idiom.
67710         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
67711         AC_LIBOBJ is used.
67712         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
67713         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
67714         when AC_LIBOBJ is used.
67716 2010-04-05  Bruno Haible  <bruno@clisp.org>
67718         mbsinit, mbrtowc, wcrtomb: Improve idioms.
67719         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
67720         don't set REPLACE_MBSINIT to 1.
67721         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
67722         don't set REPLACE_MBRTOWC to 1.
67723         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
67724         exist, don't set REPLACE_MBSRTOWCS to 1.
67725         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
67726         exist, don't set REPLACE_MBSNRTOWCS to 1.
67727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
67728         don't set REPLACE_WCRTOMB to 1.
67729         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
67730         exist, don't set REPLACE_WCSRTOMBS to 1.
67731         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
67732         exist, don't set REPLACE_WCSNRTOMBS to 1.
67734 2010-04-05  Bruno Haible  <bruno@clisp.org>
67736         ldexpl: Improve idiom.
67737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
67738         make sure to set HAVE_DECL_LDEXPL to 0.
67740 2010-04-05  Jim Meyering  <meyering@redhat.com>
67742         xstrtol-tests: convert to use init.sh
67743         * modules/xstrtol-tests (Files): Add tests/init.sh.
67744         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
67745         Use Exit, not exit.
67746         Remove uses of $EXEEXT and "./" to run a program in the current dir.
67748         atexit-tests: convert to use init.sh
67749         * modules/atexit-tests (Files): Add tests/init.sh.
67750         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
67751         Use Exit, not exit.
67752         Remove uses of $EXEEXT and "./" to run a program in the current dir.
67754         init.sh: fix typo
67755         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
67757         init.sh: make it easier for a test script to write to the tty, ...
67758         when using automake's parallel-tests mode.
67759         * tests/init.sh (stderr_fileno_): Define overridable variable.
67760         (warn_): New function, to use it.
67761         (fail_, skip_, framework_failure_): Use warn_.
67763 2010-04-04  Bruno Haible  <bruno@clisp.org>
67765         btowc: Avoid warning.
67766         * lib/btowc.c: Include <stdlib.h>.
67767         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
67769 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
67770             Bruno Haible  <bruno@clisp.org>
67772         wchar: Port to NetBSD 1.5.
67773         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
67774         * lib/wctype.in.h (WEOF): Likewise.
67776 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
67777             Bruno Haible  <bruno@clisp.org>
67779         Port extended stdio to NetBSD 1.5.
67780         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
67781         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
67782         older.
67784 2010-04-04  Bruno Haible  <bruno@clisp.org>
67786         string: Remove unused substitution.
67787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67788         HAVE_DECL_STRERROR.
67789         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
67791 2010-04-04  Bruno Haible  <bruno@clisp.org>
67793         strtod: Avoid a possible C++ test error.
67794         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
67795         set REPLACE_STRTOD.
67797 2010-04-04  Bruno Haible  <bruno@clisp.org>
67799         strerror: Update documentation.
67800         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
67802 2010-04-04  Bruno Haible  <bruno@clisp.org>
67804         stdio: Fix some C++ test errors on Solaris 8 with GCC.
67805         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
67806         _GL_CXXALIAS_SYS_CAST.
67808 2010-04-04  Bruno Haible  <bruno@clisp.org>
67810         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
67811         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
67812         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
67813         REPLACE_FREXPL to 1.
67814         * doc/posix-functions/frexpl.texi: Update documentation.
67816 2010-04-04  Bruno Haible  <bruno@clisp.org>
67818         math: Fix some C++ test errors on Solaris 8 and Cygwin.
67819         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
67821 2010-04-04  Bruno Haible  <bruno@clisp.org>
67823         Implement nanosleep for native Windows.
67824         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
67826 2010-04-04  Bruno Haible  <bruno@clisp.org>
67828         math: Fix some C++ test errors on Solaris 8.
67829         * lib/math.in.h (truncf, trunc): Use simpler idiom.
67831 2010-04-04  Bruno Haible  <bruno@clisp.org>
67833         math: Fix some C++ test errors on Cygwin.
67834         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
67835         truncl): Provide declaration if the system does not have it.
67836         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
67837         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
67838         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
67839         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
67840         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
67841         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
67842         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
67843         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
67844         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
67845         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
67846         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
67847         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
67848         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
67849         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
67850         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
67851         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
67852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
67853         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
67854         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
67855         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
67856         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
67857         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
67859 2010-04-04  Bruno Haible  <bruno@clisp.org>
67861         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
67862         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
67863         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
67864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
67865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
67866         * m4/isinf.m4 (gl_ISINF): Likewise.
67867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
67869 2010-04-04  Bruno Haible  <bruno@clisp.org>
67871         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
67872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
67874 2010-04-04  Bruno Haible  <bruno@clisp.org>
67876         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
67877         * modules/tmpfile (configure.ac): Update.
67879         tmpfile: Fix C++ test error on mingw.
67880         * lib/stdio.in.h (tmpfile): New declaration.
67881         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
67882         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
67883         * modules/tmpfile (Depends-on): Add stdio.
67884         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67885         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
67886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
67887         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
67888         REPLACE_TMPFILE.
67889         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
67891 2010-04-04  Bruno Haible  <bruno@clisp.org>
67893         ioctl: Fix C++ test error on mingw.
67894         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
67895         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
67896         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
67898 2010-04-03  Bruno Haible  <bruno@clisp.org>
67900         wcwidth: Fix C++ test error on mingw.
67901         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
67902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
67903         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
67905 2010-04-03  Bruno Haible  <bruno@clisp.org>
67907         nanosleep: Fix C++ test error on mingw.
67908         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
67909         * lib/time.in.h (nanosleep): Use modern idiom.
67910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
67911         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
67912         REPLACE_NANOSLEEP to 1.
67913         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
67914         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
67916 2010-04-03  Bruno Haible  <bruno@clisp.org>
67918         strptime: Fix C++ test error on mingw.
67919         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
67920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
67921         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
67922         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
67923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
67924         not REPLACE_STRPTIME.
67925         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
67926         REPLACE_STRPTIME.
67928 2010-04-03  Bruno Haible  <bruno@clisp.org>
67930         timegm: Fix C++ test error on mingw.
67931         * lib/time.in.h (timegm): Use modern idiom.
67932         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
67933         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
67934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
67935         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
67937 2010-04-03  Bruno Haible  <bruno@clisp.org>
67939         timegm: Assume declaration if function exists.
67940         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
67941         if it exists. Don't clobber ac_cv_func_timegm.
67943 2010-04-03  Bruno Haible  <bruno@clisp.org>
67945         time_r: Fix C++ test error on mingw.
67946         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
67947         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
67948         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
67949         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
67950         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
67952 2010-04-03  Bruno Haible  <bruno@clisp.org>
67954         time_r: Minor updates.
67955         * modules/time_r (Description): Mention the provided functions.
67956         * lib/time_r.c: Don't include <string.h>.
67957         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
67958         * doc/posix-functions/localtime_r.texi: Likewise.
67960 2010-04-03  Bruno Haible  <bruno@clisp.org>
67962         time: Fix regression introduced on 2010-03-08.
67963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
67964         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
67966 2010-04-03  Jim Meyering  <meyering@redhat.com>
67968         maint.mk: don't silently disable project-specific syntax-check rules
67969         * top/maint.mk (_prohibit_regexp): Define, to help people realize
67970         that they need to convert their project-specific syntax-check rules
67971         to use the new _sc_search_regexp.
67973 2010-04-03  Bruno Haible  <bruno@clisp.org>
67975         fchdir: Fix regression introduced on 2010-03-08.
67976         * lib/unistd.in.h (fchdir): Fix declaration.
67977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
67978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
67979         REPLACE_FCHDIR.
67980         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
67981         REPLACE_FCHDIR.
67983 2010-04-03  Bruno Haible  <bruno@clisp.org>
67985         getpagesize: Fix C++ test error on mingw.
67986         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
67987         system does not declare the function.
67988         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
67989         declared.
67990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67991         HAVE_DECL_GETPAGESIZE.
67992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
67994 2010-04-03  Bruno Haible  <bruno@clisp.org>
67996         stdio: Make C++ tests work on mingw.
67997         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
67998         does not declare the function.
68000 2010-04-03  Bruno Haible  <bruno@clisp.org>
68002         ftello: Fix C++ test error on mingw.
68003         * lib/stdio.in.h (ftello): Use modern idiom.
68004         * lib/ftello.c (ftello): Renamed from rpl_ftello.
68005         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
68006         is missing and that it needs to be replaced.
68007         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
68008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
68009         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
68011 2010-04-03  Bruno Haible  <bruno@clisp.org>
68013         fseeko: Fix C++ test error on mingw.
68014         * lib/stdio.in.h (fseeko): Use modern idiom.
68015         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
68016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
68017         is missing and that it needs to be replaced.
68018         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
68019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
68020         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
68022 2010-04-03  Bruno Haible  <bruno@clisp.org>
68024         mkstemp: Fix C++ test error on mingw.
68025         * lib/stdlib.in.h (mkstemp): Use modern idiom.
68026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
68027         function is missing and that it needs to be replaced.
68028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
68029         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
68031 2010-04-03  Bruno Haible  <bruno@clisp.org>
68033         stpncpy: Fix C++ test error on mingw.
68034         * lib/string.in.h (stpncpy): Use modern idiom.
68035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
68036         function is missing and that it needs to be replaced.
68037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68038         REPLACE_STPNCPY.
68039         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
68041 2010-04-03  Bruno Haible  <bruno@clisp.org>
68043         sys_stat: Fix C++ test error on mingw.
68044         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
68045         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
68047 2010-04-03  Bruno Haible  <bruno@clisp.org>
68049         pty: Update doc.
68050         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
68052 2010-04-03  Bruno Haible  <bruno@clisp.org>
68054         unistd: Fix C++ test error on mingw.
68055         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
68057 2010-04-03  Bruno Haible  <bruno@clisp.org>
68059         Update doc regarding mingw.
68060         * doc/glibc-functions/openpty.texi: Update regarding mingw.
68061         * doc/glibc-functions/login_tty.texi: Likewise.
68062         * doc/glibc-functions/forkpty.texi: Likewise.
68064 2010-04-03  Bruno Haible  <bruno@clisp.org>
68066         stdlib: Avoid compilation failure of c-strtold on mingw.
68067         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
68069 2010-04-03  Bruno Haible  <bruno@clisp.org>
68071         locale: Make C++ tests work on Cygwin and mingw.
68072         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
68073         cannot provide the function.
68074         Reported by Simon Josefsson.
68076 2010-04-03  Bruno Haible  <bruno@clisp.org>
68078         localename: Port to MacOS X 10.6.
68079         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
68080         memory layout of the locales in MacOS X 10.6 as well.
68081         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
68083 2010-04-02  Bruno Haible  <bruno@clisp.org>
68085         gnulib-tool: Ensure that long-running tests are executed last.
68086         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
68087         running tests after the one for the other tests.
68089 2010-04-02  Bruno Haible  <bruno@clisp.org>
68091         gnulib-tool: Ensure the tests in the main directory are executed first.
68092         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
68093         start with the current directory.
68095 2010-04-02  Bruno Haible  <bruno@clisp.org>
68097         Tests for module 'havelib', moved here from GNU gettext.
68098         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
68099         modifications.
68100         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
68101         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
68102         with modifications.
68103         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
68104         modifications.
68105         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
68106         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
68107         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
68108         with modifications.
68109         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
68110         with modifications.
68111         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
68112         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
68113         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
68114         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
68115         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
68116         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
68117         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
68118         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
68119         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
68120         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
68121         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
68122         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
68123         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
68124         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
68125         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
68126         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
68127         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
68128         with modifications.
68129         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
68130         with modifications.
68131         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
68132         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
68133         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
68134         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
68135         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
68136         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
68137         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
68138         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
68139         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
68140         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
68141         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
68142         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
68143         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
68144         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
68145         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
68146         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
68147         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
68148         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
68149         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
68150         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
68151         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
68152         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
68153         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
68154         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
68155         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
68156         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
68157         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
68158         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
68159         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
68160         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
68161         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
68162         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
68163         * tests/havelib/rpathx/rpathx.c: New file, from
68164         gettext/autoconf-lib-link.
68165         * tests/havelib/rpathx/Makefile.am: New file, from
68166         gettext/autoconf-lib-link.
68167         * tests/havelib/rpathx/configure.ac: New file, from
68168         gettext/autoconf-lib-link with modifications.
68169         * tests/havelib/rpathy/rpathy.c: New file, from
68170         gettext/autoconf-lib-link.
68171         * tests/havelib/rpathy/Makefile.am: New file, from
68172         gettext/autoconf-lib-link.
68173         * tests/havelib/rpathy/configure.ac: New file, from
68174         gettext/autoconf-lib-link with modifications.
68175         * tests/havelib/rpathz/rpathz.c: New file, from
68176         gettext/autoconf-lib-link.
68177         * tests/havelib/rpathz/Makefile.am: New file, from
68178         gettext/autoconf-lib-link.
68179         * tests/havelib/rpathz/configure.ac: New file, from
68180         gettext/autoconf-lib-link with modifications.
68181         * tests/havelib/rpathlx/usex.c: New file, from
68182         gettext/autoconf-lib-link.
68183         * tests/havelib/rpathlx/Makefile.am: New file, from
68184         gettext/autoconf-lib-link.
68185         * tests/havelib/rpathlx/configure.ac: New file, from
68186         gettext/autoconf-lib-link with modifications.
68187         * tests/havelib/rpathly/usey.c: New file, from
68188         gettext/autoconf-lib-link.
68189         * tests/havelib/rpathly/Makefile.am: New file, from
68190         gettext/autoconf-lib-link.
68191         * tests/havelib/rpathly/configure.ac: New file, from
68192         gettext/autoconf-lib-link with modifications.
68193         * tests/havelib/rpathlz/usez.c: New file, from
68194         gettext/autoconf-lib-link.
68195         * tests/havelib/rpathlz/Makefile.am: New file, from
68196         gettext/autoconf-lib-link.
68197         * tests/havelib/rpathlz/configure.ac: New file, from
68198         gettext/autoconf-lib-link with modifications.
68199         * tests/havelib/rpathlyx/usey.c: New file, from
68200         gettext/autoconf-lib-link.
68201         * tests/havelib/rpathlyx/Makefile.am: New file, from
68202         gettext/autoconf-lib-link.
68203         * tests/havelib/rpathlyx/configure.ac: New file, from
68204         gettext/autoconf-lib-link with modifications.
68205         * tests/havelib/rpathlzyx/usez.c: New file, from
68206         gettext/autoconf-lib-link.
68207         * tests/havelib/rpathlzyx/Makefile.am: New file, from
68208         gettext/autoconf-lib-link.
68209         * tests/havelib/rpathlzyx/configure.ac: New file, from
68210         gettext/autoconf-lib-link with modifications.
68211         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
68212         with modifications.
68214 2010-04-02  Bruno Haible  <bruno@clisp.org>
68216         gnulib-tool: Create distributed built sources also for the tests.
68217         * gnulib-tool (func_create_testdir): Also generate distributed built
68218         sources in the tests directory.
68220 2010-04-02  Bruno Haible  <bruno@clisp.org>
68222         gnulib-tool: Obey user's environment variables.
68223         * gnulib-tool (func_create_testdir): When creating built sources,
68224         respect the environment variables for autoconf, automake, etc. given by
68225         the user.
68227 2010-04-02  Bruno Haible  <bruno@clisp.org>
68229         gnulib-tool: Provide the value of --m4-base to modules.
68230         * gnulib-tool (func_import, func_create_testdir): Emit a definition
68231         of gl_m4_base.
68233 2010-04-02  Eric Blake  <eblake@redhat.com>
68235         maint.mk: fix some fallout
68236         * NEWS: Document the incompatible change, and its effect on cfg.mk.
68237         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
68239 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68241         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
68242         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
68243         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
68244         (sc_cast_of_x_alloc_return_value): Likewise.
68245         (sc_cast_of_alloca_return_value): Likewise.
68246         (sc_space_tab): Likewise.
68247         (sc_prohibit_atoi_atof): Likewise.
68248         (sc_prohibit_magic_number_exit): Likewise.
68249         (sc_error_exit_success): Likewise.
68250         (sc_file_system): Likewise.
68251         (sc_prohibit_have_config_h): Likewise.
68252         (sc_require_config_h): Likewise.
68253         (sc_prohibit_HAVE_MBRTOWC): Likewise.
68254         (sc_obsolete_symbols): Likewise.
68255         (sc_changelog): Likewise.
68256         (sc_program_name): Likewise.
68257         (sc_the_the): Likewise.
68258         (sc_trailing_blank): Likewise.
68259         (sc_two_space_separator_in_usage): Likewise.
68260         (sc_useless_cpp_parens): Likewise.
68261         (sc_GPL_version): Likewise.
68262         (sc_GFDL_version): Likewise.
68263         (sc_texinfo_acronym): Likewise.
68264         (sc_prohibit_cvs_keyword): Likewise.
68265         (sc_prohibit_stat_st_blocks): Likewise.
68266         (sc_prohibit_S_IS_definition): Likewise.
68267         (sc_redundant_const): Likewise.
68268         (sc_makefile_TAB_only_indentation): Likewise.
68269         (sc_m4_quote_check): Likewise.
68270         (sc_makefile_path_separator_check): Likewise.
68271         (sc_copyright_check): Likewise.
68272         (sc_Wundef_boolean): Likewise.
68273         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
68275         maint.mk: match 0 or more whitespace-before-function-call '('
68276         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
68277         that have zero or two-and-more spaces between the function name
68278         and the open parenthesis.
68279         (sc_error_message_warn_fatal): Likewise.
68280         (sc_error_message_uppercase): Likewise.
68281         (sc_error_message_period): Likewise.
68283 2010-03-31  Eric Blake  <eblake@redhat.com>
68285         maint.mk: check for [ as well as test
68286         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
68287         Based on a libvirt report by Matthias Bolte.
68289         gnumakefile: don't squelch _version output
68290         * top/GNUmakefile (_version): Create one-shot dependency rather
68291         than using $(shell) when version must be regenerated.
68292         (_autoreconf): Run verbosely, by default.
68294         sys_time: avoid compiler warnings
68295         * lib/sys_time.in.h (includes): Ensure gcc pragma is
68296         unconditional, fixing regression from 2010-03-29.
68297         Reported by Simon Josefsson.
68299 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68301         maint.mk: s/_header_without_use/_sc_header_without_use/
68302         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
68303         (sc_prohibit_assert_without_use): Use the new name.
68304         (sc_prohibit_close_stream_without_use): Likewise.
68305         (sc_prohibit_getopt_without_use): Likewise.
68306         (sc_prohibit_quotearg_without_use): Likewise.
68307         (sc_prohibit_quote_without_use): Likewise.
68308         (sc_prohibit_long_options_without_use): Likewise.
68309         (sc_prohibit_inttostr_without_use): Likewise.
68310         (sc_prohibit_ignore_value_without_use): Likewise.
68311         (sc_prohibit_error_without_use): Likewise.
68312         (sc_prohibit_xalloc_without_use): Likewise.
68313         (sc_prohibit_hash_without_use): Likewise.
68314         (sc_prohibit_hash_pjw_without_use): Likewise.
68315         (sc_prohibit_safe_read_without_use): Likewise.
68316         (sc_prohibit_argmatch_without_use): Likewise.
68317         (sc_prohibit_canonicalize_without_use): Likewise.
68318         (sc_prohibit_root_dev_ino_without_use): Likewise.
68319         (sc_prohibit_openat_without_use): Likewise.
68320         (sc_prohibit_c_ctype_without_use): Likewise.
68321         (sc_prohibit_signal_without_use): Likewise.
68322         (sc_prohibit_intprops_without_use): Likewise.
68324 2010-03-30  Eric Blake  <eblake@redhat.com>
68326         maint: improve module indicators
68327         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
68328         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
68329         columns, and avoid extra macro expansion.
68331         fdopendir: work around FreeBSD bug
68332         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
68333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
68334         * modules/dirent (Makefile.am): Substitute it.
68335         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
68336         declaration.
68337         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
68338         fix.
68339         Reported by Christian Weisgerber <naddy@mips.inka.de>.
68341 2010-03-29  Bruno Haible  <bruno@clisp.org>
68343         Emit #pragma system_header after the inclusion guard, not before.
68344         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
68345         guard that spans the entire file, not before. This enables an
68346         optimization in GCC's preprocessor.
68347         * lib/ctype.in.h: Likewise.
68348         * lib/dirent.in.h: Likewise.
68349         * lib/errno.in.h: Likewise.
68350         * lib/float.in.h: Likewise.
68351         * lib/getopt.in.h: Likewise.
68352         * lib/iconv.in.h: Likewise.
68353         * lib/langinfo.in.h: Likewise.
68354         * lib/locale.in.h: Likewise.
68355         * lib/math.in.h: Likewise.
68356         * lib/netdb.in.h: Likewise.
68357         * lib/netinet_in.in.h: Likewise.
68358         * lib/pty.in.h: Likewise.
68359         * lib/sched.in.h: Likewise.
68360         * lib/se-selinux.in.h: Likewise.
68361         * lib/search.in.h: Likewise.
68362         * lib/spawn.in.h: Likewise.
68363         * lib/stdarg.in.h: Likewise.
68364         * lib/stdint.in.h: Likewise.
68365         * lib/string.in.h: Likewise.
68366         * lib/strings.in.h: Likewise.
68367         * lib/sys_file.in.h: Likewise.
68368         * lib/sys_ioctl.in.h: Likewise.
68369         * lib/sys_time.in.h: Likewise.
68370         * lib/sys_times.in.h: Likewise.
68371         * lib/sys_utsname.in.h: Likewise.
68372         * lib/sys_wait.in.h: Likewise.
68373         * lib/sysexits.in.h: Likewise.
68374         * lib/wctype.in.h: Likewise.
68376 2010-03-28  James Youngman  <jay@gnu.org>
68378         save-cwd: don't leak a file descriptor when the caller execs.
68379         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
68380         saved file descriptor.
68381         * modules/save-cwd (Depends-on): Depend on cloexec.
68383 2010-03-29  Bruno Haible  <bruno@clisp.org>
68385         Remove vestiges of fts-lgpl module.
68386         * lib/fts_.h: Assume GNULIB_FTS is 1.
68387         * lib/fts.c: Likewise.
68388         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
68390 2010-03-28  Bruno Haible  <bruno@clisp.org>
68392         Fix definition of tests witness macro.
68393         * gnulib-tool (func_import): Fix definition of witness macro.
68395 2010-03-28  Bruno Haible  <bruno@clisp.org>
68397         Fix ioctl's protoype on glibc systems.
68398         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
68399         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
68400         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
68401         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
68402         signature. If not, arrange to replace the ioctl function.
68403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
68404         REPLACE_IOCTL.
68405         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
68406         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
68407         Reported by Ludovic Courtès <ludo@gnu.org>.
68409 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
68411         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
68412         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
68413         made it so grep -r --include=GLOB* ... did not work.
68415 2010-03-26  Jim Meyering  <meyering@redhat.com>
68416             Eric Blake  <eblake@redhat.com>
68418         maint.mk: prohibit use of test's -o and -a operators
68419         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
68421 2010-03-28  Bruno Haible  <bruno@clisp.org>
68423         Remove unused GNULIB_XYZ macro definitions.
68424         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
68425         invocation.
68427 2010-03-28  Bruno Haible  <bruno@clisp.org>
68429         Mark privileged tests modules.
68430         * modules/idpriv-drop-tests (Status): New section.
68431         * modules/idpriv-droptemp-tests (Status): New section.
68433 2010-03-28  Bruno Haible  <bruno@clisp.org>
68435         Split C++ tests into separate tests modules.
68436         * modules/dirent-c++-tests: New file, extracted from
68437         modules/dirent-tests.
68438         * modules/dirent-tests: Depend on it.
68439         * modules/fcntl-h-c++-tests: New file, extracted from
68440         modules/fcntl-h-tests.
68441         * modules/fcntl-h-tests: Depend on it.
68442         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
68443         * modules/glob-tests: Depend on it.
68444         * modules/iconv-h-c++-tests: New file, extracted from
68445         modules/iconv-h-tests.
68446         * modules/iconv-h-tests: Depend on it.
68447         * modules/langinfo-c++-tests: New file, extracted from
68448         modules/langinfo-tests.
68449         * modules/langinfo-tests: Depend on it.
68450         * modules/locale-c++-tests: New file, extracted from
68451         modules/locale-tests.
68452         * modules/locale-tests: Depend on it.
68453         * modules/math-c++-tests: New file, extracted from modules/math-tests.
68454         * modules/math-tests: Depend on it.
68455         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
68456         * modules/pty-tests: Depend on it.
68457         * modules/search-c++-tests: New file, extracted from
68458         modules/search-tests.
68459         * modules/search-tests: Depend on it.
68460         * modules/signal-c++-tests: New file, extracted from
68461         modules/signal-tests.
68462         * modules/signal-tests: Depend on it.
68463         * modules/spawn-c++-tests: New file, extracted from
68464         modules/spawn-tests.
68465         * modules/spawn-tests: Depend on it.
68466         * modules/stdio-c++-tests: New file, extracted from
68467         modules/stdio-tests.
68468         * modules/stdio-tests: Depend on it.
68469         * modules/stdlib-c++-tests: New file, extracted from
68470         modules/stdlib-tests.
68471         * modules/stdlib-tests: Depend on it.
68472         * modules/string-c++-tests: New file, extracted from
68473         modules/string-tests.
68474         * modules/string-tests: Depend on it.
68475         * modules/sys_ioctl-c++-tests: New file, extracted from
68476         modules/sys_ioctl-tests.
68477         * modules/sys_ioctl-tests: Depend on it.
68478         * modules/sys_select-c++-tests: New file, extracted from
68479         modules/sys_select-tests.
68480         * modules/sys_select-tests: Depend on it.
68481         * modules/sys_socket-c++-tests: New file, extracted from
68482         modules/sys_socket-tests.
68483         * modules/sys_socket-tests: Depend on it.
68484         * modules/sys_stat-c++-tests: New file, extracted from
68485         modules/sys_stat-tests.
68486         * modules/sys_stat-tests: Depend on it.
68487         * modules/sys_time-c++-tests: New file, extracted from
68488         modules/sys_time-tests.
68489         * modules/sys_time-tests: Depend on it.
68490         * modules/time-c++-tests: New file, extracted from modules/time-tests.
68491         * modules/time-tests: Depend on it.
68492         * modules/unistd-c++-tests: New file, extracted from
68493         modules/unistd-tests.
68494         * modules/unistd-tests: Depend on it.
68495         * modules/wchar-c++-tests: New file, extracted from
68496         modules/wchar-tests.
68497         * modules/wchar-tests: Depend on it.
68498         * modules/wctype-c++-tests: New file, extracted from
68499         modules/wctype-tests.
68500         * modules/wctype-tests: Depend on it.
68501         Reported by Simon Josefsson.
68503 2010-03-28  Bruno Haible  <bruno@clisp.org>
68505         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
68506         * gnulib-tool (func_exists_module): New function, extracted from
68507         func_verify_module.
68508         (func_verify_module): Use it.
68509         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
68510         'foo' only if 'foo' exists.
68511         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
68512         module.
68514 2010-03-28  Bruno Haible  <bruno@clisp.org>
68516         gnulib-tool: Add support for special categories of tests.
68517         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
68518         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
68519         (func_usage): Document them.
68520         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
68521         inc_unportable_tests, inc_all_tests): New variables.
68522         (func_acceptable): Consider these variables.
68523         (func_modules_transitive_closure): Make it work when the 'Status' field
68524         consists of multiple words.
68525         (func_import): Store and restore the values of inc_cxx_tests,
68526         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
68527         inc_all_tests in gnulib-comp.m4.
68528         (func_create_testdir): Set inc_all_tests to true.
68529         * doc/gnulib.texi (Extra tests modules): New section.
68530         Suggested by Jim Meyering.
68532 2010-03-28  Bruno Haible  <bruno@clisp.org>
68534         ansi-c++-opt: Allow turning off the C++ build by default.
68535         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
68536         gl_CXX_CHOICE_DEFAULT_NO is defined.
68537         Requested by Eric Blake.
68539 2010-03-28  Bruno Haible  <bruno@clisp.org>
68541         unistd: Avoid #define replacements in C++ mode.
68542         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
68543         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
68544         setsockopt, shutdown, select): In C++, attach a warning to the function
68545         if possible, rather than #defining the symbol to a dysfunctional alias.
68546         Reported by John W. Eaton <jwe@gnu.org>.
68548 2010-03-28  Bruno Haible  <bruno@clisp.org>
68550         Fix link errors on mingw.
68551         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
68552         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
68553         $(LIBSOCKET).
68554         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
68555         $(LIBSOCKET).
68557 2010-03-28  Bruno Haible  <bruno@clisp.org>
68558             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68560         lib-ignore: Determine different options for different compilers.
68561         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
68562         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
68563         Add comments.
68564         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
68565         * NEWS: Mention the change.
68567 2010-03-27  Bruno Haible  <bruno@clisp.org>
68569         Remove unused GNULIB_XYZ macro definitions.
68570         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
68571         * modules/fseek (configure.ac): Likewise.
68572         * modules/ioctl (configure.ac): Likewise.
68573         * modules/open (configure.ac): Likewise.
68574         * modules/stdlib-safer (configure.ac): Likewise.
68576 2010-03-27  Bruno Haible  <bruno@clisp.org>
68578         Add a remark about certain modules.
68579         * modules/malloc (Comment): New section.
68580         * modules/realloc (Comment): Likewise.
68581         * modules/sigpipe (Comment): Likewise.
68583 2010-03-27  Bruno Haible  <bruno@clisp.org>
68585         Resolve conflict between the two kinds of module indicators.
68586         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
68587         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
68588         * modules/canonicalize (configure.ac): Invoke
68589         gl_MODULE_INDICATOR_FOR_TESTS.
68590         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
68591         GNULIB_XYZ.
68592         * tests/test-dirent-c++.cc: Likewise.
68593         * tests/test-dirent-safer.c: Likewise.
68594         * tests/test-dup2.c: Likewise.
68595         * tests/test-fchdir.c: Likewise.
68596         * tests/test-fcntl-h-c++.cc: Likewise.
68597         * tests/test-getopt.c: Likewise.
68598         * tests/test-getopt.h: Likewise.
68599         * tests/test-langinfo-c++.cc: Likewise.
68600         * tests/test-locale-c++.cc: Likewise.
68601         * tests/test-math-c++.cc: Likewise.
68602         * tests/test-pty-c++.cc: Likewise.
68603         * tests/test-search-c++.cc: Likewise.
68604         * tests/test-signal-c++.cc: Likewise.
68605         * tests/test-spawn-c++.cc: Likewise.
68606         * tests/test-stdio-c++.cc: Likewise.
68607         * tests/test-stdlib-c++.cc: Likewise.
68608         * tests/test-string-c++.cc: Likewise.
68609         * tests/test-sys_ioctl-c++.cc: Likewise.
68610         * tests/test-sys_select-c++.cc: Likewise.
68611         * tests/test-sys_socket-c++.cc: Likewise.
68612         * tests/test-sys_stat-c++.cc: Likewise.
68613         * tests/test-sys_time-c++.cc: Likewise.
68614         * tests/test-time-c++.cc: Likewise.
68615         * tests/test-unistd-c++.cc: Likewise.
68616         * tests/test-wchar-c++.cc: Likewise.
68617         * tests/uninorm/test-u8-nfc.c: Likewise.
68618         * tests/uninorm/test-u8-nfd.c: Likewise.
68619         * tests/uninorm/test-u8-nfkc.c: Likewise.
68620         * tests/uninorm/test-u8-nfkd.c: Likewise.
68621         * tests/uninorm/test-u16-nfc.c: Likewise.
68622         * tests/uninorm/test-u16-nfd.c: Likewise.
68623         * tests/uninorm/test-u16-nfkc.c: Likewise.
68624         * tests/uninorm/test-u16-nfkd.c: Likewise.
68625         * tests/uninorm/test-u32-nfc.c: Likewise.
68626         * tests/uninorm/test-u32-nfc-big.c: Likewise.
68627         * tests/uninorm/test-u32-nfd.c: Likewise.
68628         * tests/uninorm/test-u32-nfd-big.c: Likewise.
68629         * tests/uninorm/test-u32-nfkc.c: Likewise.
68630         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
68631         * tests/uninorm/test-u32-nfkd.c: Likewise.
68632         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
68633         * tests/uninorm/test-u32-normalize-big.c: Likewise.
68635 2010-03-27  Bruno Haible  <bruno@clisp.org>
68637         Distinguish two kinds of module indicators.
68638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
68639         gl_MODULE_INDICATOR.
68640         (gl_MODULE_INDICATOR): New macro.
68641         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
68642         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
68643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
68644         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
68645         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
68646         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
68647         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
68648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
68649         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
68650         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
68651         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
68652         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
68653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
68654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
68655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
68656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
68657         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
68658         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
68659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
68660         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
68661         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
68662         * modules/cloexec (configure.ac): Likewise.
68663         * modules/getopt-gnu (configure.ac): Likewise.
68664         * modules/uninorm/u8-normalize (configure.ac): Likewise.
68665         * modules/uninorm/u16-normalize (configure.ac): Likewise.
68666         * modules/uninorm/u32-normalize (configure.ac): Likewise.
68667         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
68669 2010-03-27  Bruno Haible  <bruno@clisp.org>
68671         New module description field 'Comment'.
68672         * gnulib-tool: New option --extract-comment.
68673         (func_usage): Document it.
68674         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
68675         (func_get_comment): New function.
68676         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
68678 2010-03-27  Bruno Haible  <bruno@clisp.org>
68680         Addendum to 2010-02-07 commit.
68681         * gnulib-tool (func_usage): Document --extract-applicability option.
68683 2010-03-27  Bruno Haible  <bruno@clisp.org>
68685         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
68686         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
68687         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
68688         rather than link errors.
68690 2010-03-27  Bruno Haible  <bruno@clisp.org>
68692         Avoid side effects from tests-related modules on the compilation of lib.
68693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
68694         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
68695         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
68696         parameter. Emit into AM_CPPFLAGS a definition of the designated C
68697         macro.
68698         (func_import): Define a witness macro. Assign it a value that depends
68699         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
68700         tests-related modules.
68701         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
68702         Reported by Jim Meyering.
68704 2010-03-27  Bruno Haible  <bruno@clisp.org>
68706         Factorize common .m4 code.
68707         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
68708         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
68709         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
68710         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
68711         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
68712         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
68713         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
68714         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
68715         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
68716         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
68717         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
68718         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
68719         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
68720         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
68721         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
68722         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
68723         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
68724         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
68725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
68726         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
68727         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
68728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
68729         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
68730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
68731         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
68732         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
68733         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
68734         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
68735         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
68736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
68737         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
68738         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
68740 2010-03-27  Bruno Haible  <bruno@clisp.org>
68742         Fix a compilation error on Cygwin with g++ >= 4.3.
68743         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
68744         if it is undefined or if we alias it to chmod.
68745         (lstat): Don't warn about the use of this function if it is undefined
68746         or if we alias it to stat.
68747         Reported by Simon Josefsson.
68749 2010-03-27  Bruno Haible  <bruno@clisp.org>
68751         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
68752         * modules/getlogin (configure.ac): Update.
68754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
68755         * modules/getlogin_r (configure.ac): Update.
68757         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
68758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
68759         * modules/inet_ntop (configure.ac): Update.
68761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
68762         * modules/inet_pton (configure.ac): Update.
68764         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
68765         * modules/mbslen (configure.ac): Update.
68767         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
68768         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
68769         * modules/forkpty (configure.ac): Update.
68770         * modules/openpty (configure.ac): Update.
68772 2010-03-26  Simon Josefsson  <simon@josefsson.org>
68774         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
68775         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
68777 2010-03-25  Eric Blake  <eblake@redhat.com>
68779         maint: use pragma consistently across replacement headers
68780         * lib/ctype.in.h (system_header): Hoist for consistent placement.
68781         * lib/dirent.in.h (system_header): Likewise.
68782         * lib/errno.in.h (system_header): Likewise.
68783         * lib/float.in.h (system_header): Likewise.
68784         * lib/getopt.in.h (system_header): Likewise.
68785         * lib/iconv.in.h (system_header): Likewise.
68786         * lib/inttypes.in.h (system_header): Likewise.
68787         * lib/langinfo.in.h (system_header): Likewise.
68788         * lib/locale.in.h (system_header): Likewise.
68789         * lib/math.in.h (system_header): Likewise.
68790         * lib/netdb.in.h (system_header): Likewise.
68791         * lib/netinet_in.in.h (system_header): Likewise.
68792         * lib/pty.in.h (system_header): Likewise.
68793         * lib/sched.in.h (system_header): Likewise.
68794         * lib/se-selinux.in.h (system_header): Likewise.
68795         * lib/search.in.h (system_header): Likewise.
68796         * lib/spawn.in.h (system_header): Likewise.
68797         * lib/stdarg.in.h (system_header): Likewise.
68798         * lib/stdint.in.h (system_header): Likewise.
68799         * lib/string.in.h (system_header): Likewise.
68800         * lib/strings.in.h (system_header): Likewise.
68801         * lib/sys_file.in.h (system_header): Likewise.
68802         * lib/sys_ioctl.in.h (system_header): Likewise.
68803         * lib/sys_socket.in.h (system_header): Likewise.
68804         * lib/sys_times.in.h (system_header): Likewise.
68805         * lib/sys_utsname.in.h (system_header): Likewise.
68806         * lib/sys_wait.in.h (system_header): Likewise.
68807         * lib/sysexits.in.h (system_header): Likewise.
68808         * lib/unistd.in.h (system_header): Likewise.
68809         * lib/wctype.in.h (system_header): Likewise.
68811         arpa/inet: fix mingw compilation warning
68812         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
68813         Reported by Matthew Bolte.
68815 2010-03-25  Bruno Haible  <bruno@clisp.org>
68817         Avoid collision between gnulib wrapper and libintl wrapper.
68818         * lib/printf.c (printf): Don't define if a printf wrapper is already
68819         defined in intl/printf.c.
68820         Reported by Michel Boaventura <michel@michelboaventura.com>.
68822 2010-03-25  Bruno Haible  <bruno@clisp.org>
68824         Use ANSI C.
68825         * lib/readutmp.h (getutent): Provide ANSI C prototype.
68827 2010-03-25  Bruno Haible  <bruno@clisp.org>
68829         Minor formatting changes.
68830         * lib/acosl.c: Insert space before function argument list.
68831         * lib/argz.c: Likewise.
68832         * lib/asinl.c: Likewise.
68833         * lib/expl.c: Likewise.
68834         * lib/gen-uni-tables.c: Likewise.
68835         * lib/gettext.h: Likewise.
68836         * lib/glthread/lock.h: Likewise.
68837         * lib/tanl.c: Likewise.
68838         * lib/uniname/uniname.c: Likewise.
68839         * tests/test-idpriv-drop.c: Likewise.
68840         * tests/test-idpriv-droptemp.c: Likewise.
68841         * tests/test-lock.c: Likewise.
68842         * tests/test-tls.c: Likewise.
68843         * lib/argp-help.c: Insert space before function-like macro argument
68844         list.
68845         * lib/memcmp.c: Likewise.
68846         * tests/test-base64.c: Likewise.
68847         * lib/localename.c: Insert space before sizeof's argument list.
68848         * lib/safe-alloc.h: Likewise.
68849         * lib/file-set.h: Insert space before macro argument list.
68850         * tests/test-argp.c: Likewise.
68851         * lib/argp-namefrob.h: Insert space before function parameter list.
68852         * lib/getaddrinfo.c: Likewise.
68853         * lib/netdb.in.h: Likewise.
68854         * lib/parse-duration.h: Likewise.
68855         * lib/parse-duration.c: Likewise.
68856         * lib/poll.c: Likewise.
68857         * lib/select.c: Likewise.
68858         * lib/trim.h: Likewise.
68859         * tests/test-usleep.c: Likewise.
68860         * lib/ldexpl.c: Insert space before function parameter list and before
68861         function argument list.
68862         * lib/logl.c: Likewise.
68863         * lib/sqrtl.c: Likewise.
68864         * lib/trim.c: Likewise.
68865         * lib/cosl.c: Use GNU style indentation. Insert space before function
68866         argument list.
68867         * lib/sinl.c: Likewise.
68868         * lib/tsearch.c: Insert space after 'for'.
68869         Reported by Jim Meyering.
68871 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
68873         * maint.mk (sc_Wundef_boolean): Check for the presence of the
68874         config header before grepping, as it's not present before
68875         autoreconf/configure are run.  Reported by Simon Josefsson.
68877 2010-03-23  Bruno Haible  <bruno@clisp.org>
68879         pt_chown: Make it work with automake < 1.11.
68880         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
68881         Reported by Simon Josefsson.
68883 2010-03-23  Bruno Haible  <bruno@clisp.org>
68885         pt_chown: Don't depend on GPLed modules.
68886         * lib/pt_chown.c: Don't include idpriv.h.
68887         (main): Don't drop privileges.
68888         * modules/pt_chown (Depends-on): Remove idpriv-drop.
68889         Reported by Simon Josefsson.
68891 2010-03-24  Simon Josefsson  <simon@josefsson.org>
68893         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
68894         suggestions from karl@freefriends.org (Karl Berry).
68896 2010-03-22  Eric Blake  <eblake@redhat.com>
68898         gethostname: further tweaks
68899         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
68900         are overriding gethostname.
68901         Suggested by Bruno Haible.
68903 2010-03-21  Bruno Haible  <bruno@clisp.org>
68905         Fix comments.
68906         * lib/forkpty.c (rpl_forkpty): Fix comment.
68907         * lib/openpty.c (rpl_openpty): Likewise.
68908         Reported by Eric Blake.
68910 2010-03-22  Eric Blake  <eblake@redhat.com>
68912         gethostname: fix build on mingw
68913         * lib/unistd.in.h (includes): Work around fact that mingw
68914         <winsock2.h> re-includes <unistd.h>, by avoiding any
68915         redeclarations if we are being included by <winsock2.h>.
68916         Reported by Matthias Bolte.
68918 2010-03-21  Bruno Haible  <bruno@clisp.org>
68920         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
68921         * lib/forkpty.c (forkpty): New replacement function, from glibc with
68922         modifications.
68923         * lib/pty.in.h (forkpty): Update declaration. Add comments.
68924         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
68925         provide the replacement.
68926         * modules/forkpty (Depends-on): Add openpty, login_tty.
68927         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
68928         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
68929         * doc/glibc-functions/forkpty.texi: More supported platforms.
68930         * config/srclist.txt: Add forkpty.c (commented).
68932 2010-03-21  Bruno Haible  <bruno@clisp.org>
68934         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
68935         (Makefile.am): Verify that PTY_LIB is defined.
68937         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
68939 2010-03-21  Bruno Haible  <bruno@clisp.org>
68941         Tests for module 'login_tty'.
68942         * modules/login_tty-tests: New file.
68943         * tests/test-login_tty.c: New file.
68945         New module 'login_tty'.
68946         * lib/login_tty.c: New file.
68947         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
68948         * modules/login_tty: New file.
68949         * doc/glibc-functions/login_tty.texi: Mention the new module.
68951 2010-03-21  Bruno Haible  <bruno@clisp.org>
68953         login_tty: Documentation.
68954         * doc/glibc-functions/login_tty.texi: New file.
68955         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
68957 2010-03-21  Bruno Haible  <bruno@clisp.org>
68959         pty: Consistent macro naming.
68960         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
68961         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
68962         * modules/pty (configure.ac): Update.
68964 2010-03-21  Bruno Haible  <bruno@clisp.org>
68966         Tests for openpty: Make stricter.
68967         * tests/test-openpty.c (main): Add test of canonical processing and
68968         erase.
68969         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
68971         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
68972         * lib/openpty.c (openpty): New replacement function.
68973         * lib/pty.in.h: Include <termios.h>.
68974         (openpty): Update declaration. Add comments.
68975         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
68976         is not declared, arrange to provide the replacement. Check for _getpty
68977         and posix_openpt.
68978         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
68979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
68980         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
68981         * modules/pty-tests (test_pty_c___LDADD): New variable.
68982         * doc/glibc-functions/openpty.texi: More supported platforms.
68984 2010-03-21  Bruno Haible  <bruno@clisp.org>
68986         setenv: Tweaks.
68987         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
68988         the test program.
68989         * doc/posix-functions/setenv.texi: Update platforms list.
68991 2010-03-21  Bruno Haible  <bruno@clisp.org>
68993         New module 'unlockpt'.
68994         * lib/unlockpt.c: New file, from glibc with modifications.
68995         * m4/unlockpt.m4: New file.
68996         * modules/unlockpt: New file.
68997         * lib/stdlib.in.h (unlockpt): New declaration.
68998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
68999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
69000         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
69001         HAVE_UNLOCKPT.
69002         * doc/posix-functions/unlockpt.texi: Mention the new module.
69003         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
69004         * config/srclist.txt: Add unlockpt.c (commented).
69006 2010-03-21  Jim Meyering  <meyering@redhat.com>
69008         maint.mk: prohibit inclusion of "intprops.h" without use
69009         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
69011 2010-03-21  Bruno Haible  <bruno@clisp.org>
69013         New module 'grantpt'.
69014         * lib/grantpt.c: New file, from glibc with modifications.
69015         * m4/grantpt.m4: New file.
69016         * modules/grantpt: New file.
69017         * lib/stdlib.in.h (grantpt): New declaration.
69018         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
69019         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
69020         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
69021         HAVE_GRANTPT.
69022         * doc/posix-functions/grantpt.texi: Mention the new module.
69023         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
69024         * config/srclist.txt: Add grantpt.c (commented).
69026 2010-03-21  Bruno Haible  <bruno@clisp.org>
69028         New module 'pt_chown'.
69029         * lib/pt_chown.c: New file, from glibc with modifications.
69030         * lib/pty-private.h: New file, from glibc with modifications.
69031         * modules/pt_chown: New file.
69032         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
69034 2010-03-21  Bruno Haible  <bruno@clisp.org>
69036         Tests for module 'ptsname'.
69037         * modules/ptsname-tests: New file.
69038         * tests/test-ptsname.c: New file.
69040         New module 'ptsname'.
69041         * lib/ptsname.c: New file, from glibc with modifications.
69042         * m4/ptsname.m4: New file.
69043         * modules/ptsname: New file.
69044         * lib/stdlib.in.h (ptsname): New declaration.
69045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
69046         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
69047         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
69048         HAVE_PTSNAME.
69049         * doc/posix-functions/ptsname.texi: Mention the new module.
69050         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
69051         * config/srclist.txt: Add ptsname.c (commented).
69053 2010-03-21  Bruno Haible  <bruno@clisp.org>
69055         Tests for module 'ttyname_r'.
69056         * modules/ttyname_r-tests: New file.
69057         * tests/test-ttyname_r.c: New file.
69059         New module 'ttyname_r'.
69060         * lib/ttyname_r.c: New file.
69061         * m4/ttyname_r.m4: New file.
69062         * modules/ttyname_r: New file.
69063         * lib/unistd.in.h (ttyname_r): New declaration.
69064         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
69065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
69066         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
69067         HAVE_TTYNAME_R.
69068         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
69069         * doc/posix-functions/ttyname_r.texi: Mention the new module.
69071 2010-03-20  Bruno Haible  <bruno@clisp.org>
69073         signal: Undefine macro definitions in C++ mode.
69074         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
69075         sigfillset): Undefine macro definitions from the system header in C++
69076         mode.
69077         Reported by John W. Eaton <jwe@gnu.org>.
69079 2010-03-20  Bruno Haible  <bruno@clisp.org>
69081         Ensure no #include statements inside extern "C" { ... }.
69082         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
69083         contain #include statements.
69084         * lib/time.in.h: Likewise.
69086 2010-03-20  Bruno Haible  <bruno@clisp.org>
69088         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
69089         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
69090         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
69091         Reported by John W. Eaton <jwe@gnu.org>.
69093 2010-03-20  Bruno Haible  <bruno@clisp.org>
69095         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
69096         Reported by Jim Meyering.
69098 2010-03-20  Bruno Haible  <bruno@clisp.org>
69100         pipe: Set errno upon failure.
69101         * lib/pipe.h: Specify that when -1 is returned, errno is set.
69102         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
69103         errno value in error message.
69105 2010-03-20  Bruno Haible  <bruno@clisp.org>
69106             Jim Meyering  <meyering@redhat.com>
69108         lchown: Avoid "unused variable" warning.
69109         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
69111 2010-03-20  Bruno Haible  <bruno@clisp.org>
69113         Work around unlink() bug on MacOS X 10.5.6.
69114         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
69115         attempting to unlink a parent directory.
69116         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
69117         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
69118         activate for the replacement function.
69119         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
69121 2010-03-20  Bruno Haible  <bruno@clisp.org>
69123         Fix link errors on Solaris 8.
69124         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
69125         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
69127 2010-03-19  Jim Meyering  <meyering@redhat.com>
69129         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
69130         The _LIBC implementation of build_range_exp correctly honors the
69131         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
69132         However, the non-_LIBC implementation would ignore that syntax-bit
69133         flag and return REG_ERANGE unconditionally.
69134         This change makes it honor that flag.
69135         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
69136         Make two pointer parameters "const".
69137         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
69138         (parse_bracket_exp): Update caller.
69140         regex.m4: correct the reversed range endpoint ([b-a]) test
69141         * m4/regex.m4: When requiring that [b-a] evoke failure,
69142         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
69143         test pass once again for x86-based systems.
69145 2010-03-19  Bruno Haible  <bruno@clisp.org>
69147         scandir: Fix link error on Solaris 8.
69148         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
69149         macros.
69151 2010-03-19  Bruno Haible  <bruno@clisp.org>
69153         getusershell: Fix documentation.
69154         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
69155         module.
69156         * doc/glibc-functions/setusershell.texi: Likewise.
69158         getusershell: Provide declaration, missing on Solaris 9.
69159         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
69160         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
69161         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
69162         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
69163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69164         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
69165         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
69166         HAVE_GETUSERSHELL.
69167         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
69169 2010-03-19  Bruno Haible  <bruno@clisp.org>
69171         wctype: Provide iswblank function.
69172         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
69173         exists and is fine.
69174         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
69175         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
69176         * tests/test-wctype.c (main): Re-enable the iswblank tests.
69177         * doc/posix-functions/iswblank.texi: Update.
69179 2010-03-19  Bruno Haible  <bruno@clisp.org>
69181         Tests of module 'pty' in C++ mode.
69182         * modules/pty-tests: New file.
69183         * tests/test-pty-c++.cc: New file.
69184         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69186 2010-03-19  Eric Blake  <eblake@redhat.com>
69188         logb: fix documentation
69189         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
69190         1.5 declaration bug.
69192         forkpty, openpty: prefer glibc's const-safe prototype
69193         * lib/forkpty.c (rpl_forkpty): New file.
69194         * lib/openpty.c (rpl_openpty): Likewise.
69195         * modules/forkpty (Files): Distribute it.
69196         * modules/openpty (Files): Likewise.
69197         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
69198         check...
69199         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
69200         replacement for non-const BSD signature.
69201         * modules/pty (Makefile.am): Substitute witnesses.
69202         * lib/pty.in.h (forkpty, openpty): Declare replacements.
69203         * tests/test-forkpty.c: Update signature check.
69204         * tests/test-openpty.c: Likewise.
69205         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
69206         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69208         forkpty, openpty: split functions into new modules
69209         * modules/pty (Makefile.am): Substitute new witnesses.
69210         (Libraries): Move library detection...
69211         * modules/forkpty: ...into new module.
69212         * modules/openpty: Another new module.
69213         * modules/pty-tests: Rename and split...
69214         * modules/forkpty-tests: ...to this...
69215         * modules/openpty-tests: ...and this.
69216         * tests/test-pty.c: Rename and split...
69217         * tests/test-forkpty.c: ...to this...
69218         * tests/test-openpty.c: ...and this.
69219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
69220         (gl_PTY): Split library searching...
69221         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
69222         (gl_FORKPTY, gl_OPENPTY): New macros.
69223         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
69224         * NEWS: Mention the split.
69225         * MODULES.html.sh (Misc): Document the modules.
69226         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
69227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69229         pty: improve replacement header
69230         * lib/pty.in.h: New file.
69231         * modules/pty (Files): Ship it.
69232         (Makefile.am): Always build replacement.
69233         * m4/pty.m4: Rename...
69234         * m4/pty_h.m4: ...to this.
69235         (gl_PTY): Modernize setting of witness macros; update check of
69236         forkpty to take proper advantage of cache.
69237         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
69239         getopt: avoid compiler warning
69240         * lib/getopt.c (attribute_hidden): Remove unused macro.
69242 2010-03-18  Bruno Haible  <bruno@clisp.org>
69244         Fix link errors on Solaris 8.
69245         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
69246         * modules/search-tests (test_search_c___LDADD): Likewise.
69247         * modules/signal-tests (test_signal_c___LDADD): Likewise.
69248         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
69249         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
69250         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
69251         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
69252         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
69253         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
69255 2010-03-18  Bruno Haible  <bruno@clisp.org>
69257         Fix bug introduced on 2010-03-14.
69258         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
69259         (gl_SPAWN_H): Require it.
69260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
69261         Reported by Simon Josefsson.
69263 2010-03-18  Bruno Haible  <bruno@clisp.org>
69265         Fix typo introduced on 2009-12-31.
69266         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
69267         posix_spawn_file_actions_adddup2.
69269 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
69270         and Eric Blake  <eblake@redhat.com>
69272         test-vc-list-files-git: make more robust
69273         * tests/test-vc-list-files-git.sh: Unset problematic environment
69274         variables.  Chain commands together.
69276 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
69278         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
69279         `AC_CHECK_DECL' invocation.
69281 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
69283         * lib/inttostr.c (inttostr): Make sure the invocation of verify
69284         appears before executable statements. Suggested by Petr Sumbera
69285         <Petr.Sumbera@Sun.COM>.
69287 2010-03-14  Bruno Haible  <bruno@clisp.org>
69289         * tests/test-flock.c (test_exclusive): Comment out a test that causes
69290         portability problems. Instead use a simpler test.
69291         (main): Check that invalid arguments are rejected only on Linux.
69293 2010-03-14  Bruno Haible  <bruno@clisp.org>
69295         Fix bug introduced on 2009-12-31.
69296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
69297         gl_PREREQ_SYS_H_WINSOCK2 always.
69298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
69299         SYS_SOCKET_H variable.
69300         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
69301         Update comments.
69302         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
69303         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
69308 2010-03-14  Bruno Haible  <bruno@clisp.org>
69310         Fix values returned by sinl, cosl.
69311         * lib/trigl.h: Add specification comments.
69312         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
69313         that combines the values from the precomputed table with the values of
69314         the Chebyshev polynomials.
69316 2010-03-14  Bruno Haible  <bruno@clisp.org>
69318         Fix compilation error when modules 'posix_spawn[p]' are not used.
69319         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
69320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
69322 2010-03-14  Bruno Haible  <bruno@clisp.org>
69324         Fix compilation error on mingw when module 'time_r' is not used.
69325         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
69326         is 1.
69327         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
69328         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
69329         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
69330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
69332 2010-03-14  Bruno Haible  <bruno@clisp.org>
69334         Fix compilation error with Sun C.
69335         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
69336         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
69337         instead of GCC specific ULONG_LONG_MAX.
69338         * lib/xstrtoll.c: Likewise.
69339         * lib/xstrtoull.c: Likewise.
69341 2010-03-13  Bruno Haible  <bruno@clisp.org>
69343         Allow the user to disable C++ code and tests.
69344         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
69345         (gl_PROG_ANSI_CXX): Require it.
69347 2010-03-13  Bruno Haible  <bruno@clisp.org>
69349         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
69350         cases.
69352 2010-03-13  Bruno Haible  <bruno@clisp.org>
69354         Test that gnulib does not break the standard C++ headers.
69355         * tests/test-locale-c++2.cc: New file.
69356         * modules/locale-tests (Files): Add it.
69357         (Makefile.am): Compile it for test-locale-c++.
69358         * tests/test-math-c++2.cc: New file.
69359         * modules/math-tests (Files): Add it.
69360         (Makefile.am): Compile it for test-math-c++.
69361         * tests/test-signal-c++2.cc: New file.
69362         * modules/signal-tests (Files): Add it.
69363         (Makefile.am): Compile it for test-signal-c++.
69364         * tests/test-stdio-c++2.cc: New file.
69365         * modules/stdio-tests (Files): Add it.
69366         (Makefile.am): Compile it for test-stdio-c++.
69367         * tests/test-stdlib-c++2.cc: New file.
69368         * modules/stdlib-tests (Files): Add it.
69369         (Makefile.am): Compile it for test-stdlib-c++.
69370         * tests/test-string-c++2.cc: New file.
69371         * modules/string-tests (Files): Add it.
69372         (Makefile.am): Compile it for test-string-c++.
69373         * tests/test-time-c++2.cc: New file.
69374         * modules/time-tests (Files): Add it.
69375         (Makefile.am): Compile it for test-time-c++.
69376         Reported by John W. Eaton <jwe@gnu.org>.
69378 2010-03-13  Bruno Haible  <bruno@clisp.org>
69380         * gnulib-tool (func_usage): Clarify which options are available for
69381         --create-testdir and --create-megatestdir.
69383 2010-03-13  Bruno Haible  <bruno@clisp.org>
69385         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
69386         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
69387         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
69388         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
69389         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
69390         when appropriate.
69391         Reported by Jim Meyering.
69393 2010-03-12  Simon Josefsson  <simon@josefsson.org>
69395         * gnulib-tool (func_import): Explain origin of code.
69397 2010-03-12  Bruno Haible  <bruno@clisp.org>
69399         Fix problem with automake's definition of CXXLINK.
69400         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
69401         Reported by Simon Josefsson and Ludovic Courtès.
69403 2010-03-12  Bruno Haible  <bruno@clisp.org>
69405         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
69406         stable releases.
69408 2010-03-11  Bruno Haible  <bruno@clisp.org>
69410         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
69411         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
69412         whether the system provides one variant or multiple variants of the
69413         function.
69414         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
69415         C++ compilers.
69416         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
69417         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
69418         Reported by Jim Meyering.
69420 2010-03-09  Simon Josefsson  <simon@josefsson.org>
69422         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
69424 2010-03-08  Bruno Haible  <bruno@clisp.org>
69426         gnulib-tool: Add support for --libtool in --create-testdir.
69427         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
69428         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
69430 2010-03-08  Eric Blake  <eblake@redhat.com>
69432         gnulib-tool.texi: mention possibility of git submodule
69433         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
69434         submodules.
69435         * doc/.gitignore: Ignore another generated file.
69437 2010-03-08  Karl Berry  <karl@gnu.org>
69439         * doc/gnulib-tool.texi (VCS Issues): Mention third option
69440         of committing gnulib files while skipping others.
69442 2010-03-07  Bruno Haible  <bruno@clisp.org>
69444         Tests of module 'wctype' in C++ mode.
69445         * tests/test-wctype-c++.cc: New file.
69446         * modules/wctype-tests (Files): Add it and tests/signature.h.
69447         (Depends-on): Add ansi-c++-opt.
69448         (Makefile.am): Arrange to compile and run test-wctype-c++.
69450         Tests of module 'wchar' in C++ mode.
69451         * tests/test-wchar-c++.cc: New file.
69452         * modules/wchar-tests (Files): Add it and tests/signature.h.
69453         (Depends-on): Add ansi-c++-opt.
69454         (Makefile.am): Arrange to compile and run test-wchar-c++.
69455         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
69456         gl_MODULE_INDICATOR.
69458         Tests of module 'unistd' in C++ mode.
69459         * tests/test-unistd-c++.cc: New file.
69460         * modules/unistd-tests (Files): Add it and tests/signature.h.
69461         (Depends-on): Add ansi-c++-opt.
69462         (Makefile.am): Arrange to compile and run test-unistd-c++.
69463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
69464         gl_MODULE_INDICATOR.
69466         Tests of module 'time' in C++ mode.
69467         * tests/test-time-c++.cc: New file.
69468         * modules/time-tests (Files): Add it and tests/signature.h.
69469         (Depends-on): Add ansi-c++-opt.
69470         (Makefile.am): Arrange to compile and run test-time-c++.
69471         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69473         Tests of module 'sys_time' in C++ mode.
69474         * tests/test-sys_time-c++.cc: New file.
69475         * modules/sys_time-tests (Files): Add it and tests/signature.h.
69476         (Depends-on): Add ansi-c++-opt.
69477         (Makefile.am): Arrange to compile and run test-sys_time-c++.
69478         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
69479         gl_MODULE_INDICATOR.
69481         Tests of module 'sys_stat' in C++ mode.
69482         * tests/test-sys_stat-c++.cc: New file.
69483         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
69484         (Depends-on): Add ansi-c++-opt.
69485         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
69486         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
69487         gl_MODULE_INDICATOR.
69489         Tests of module 'sys_socket' in C++ mode.
69490         * tests/test-sys_socket-c++.cc: New file.
69491         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
69492         (Depends-on): Add ansi-c++-opt.
69493         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
69494         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
69495         gl_MODULE_INDICATOR.
69497         Tests of module 'sys_select' in C++ mode.
69498         * tests/test-sys_select-c++.cc: New file.
69499         * modules/sys_select-tests (Files): Add it and tests/signature.h.
69500         (Depends-on): Add ansi-c++-opt.
69501         (Makefile.am): Arrange to compile and run test-sys_select-c++.
69502         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
69503         gl_MODULE_INDICATOR.
69505         Tests of module 'sys_ioctl' in C++ mode.
69506         * tests/test-sys_ioctl-c++.cc: New file.
69507         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
69508         (Depends-on): Add ansi-c++-opt.
69509         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
69510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
69511         gl_MODULE_INDICATOR.
69513         Tests of module 'string' in C++ mode.
69514         * tests/test-string-c++.cc: New file.
69515         * modules/string-tests (Files): Add it and tests/signature.h.
69516         (Depends-on): Add ansi-c++-opt.
69517         (Makefile.am): Arrange to compile and run test-string-c++.
69518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
69519         gl_MODULE_INDICATOR.
69521         Tests of module 'stdlib' in C++ mode.
69522         * tests/test-stdlib-c++.cc: New file.
69523         * modules/stdlib-tests (Files): Add it and tests/signature.h.
69524         (Depends-on): Add ansi-c++-opt.
69525         (Makefile.am): Arrange to compile and run test-stdlib-c++.
69526         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
69527         gl_MODULE_INDICATOR.
69529         Tests of module 'stdio' in C++ mode.
69530         * tests/test-stdio-c++.cc: New file.
69531         * modules/stdio-tests (Files): Add it and tests/signature.h.
69532         (Depends-on): Add ansi-c++-opt.
69533         (Makefile.am): Arrange to compile and run test-stdio-c++.
69534         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
69535         gl_MODULE_INDICATOR.
69537         Tests of module 'spawn' in C++ mode.
69538         * tests/test-spawn-c++.cc: New file.
69539         * modules/spawn-tests (Files): Add it and tests/signature.h.
69540         (Depends-on): Add ansi-c++-opt.
69541         (Makefile.am): Arrange to compile and run test-spawn-c++.
69542         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
69543         gl_MODULE_INDICATOR.
69545         Tests of module 'signal' in C++ mode.
69546         * tests/test-signal-c++.cc: New file.
69547         * modules/signal-tests (Files): Add it and tests/signature.h.
69548         (Depends-on): Add ansi-c++-opt.
69549         (Makefile.am): Arrange to compile and run test-signal-c++.
69550         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
69551         gl_MODULE_INDICATOR.
69553         Tests of module 'search' in C++ mode.
69554         * tests/test-search-c++.cc: New file.
69555         * modules/search-tests (Files): Add it and tests/signature.h.
69556         (Depends-on): Add ansi-c++-opt.
69557         (Makefile.am): Arrange to compile and run test-search-c++.
69558         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
69559         gl_MODULE_INDICATOR.
69561         Tests of module 'math' in C++ mode.
69562         * tests/test-math-c++.cc: New file.
69563         * modules/math-tests (Files): Add it and tests/signature.h.
69564         (Depends-on): Add ansi-c++-opt.
69565         (Makefile.am): Arrange to compile and run test-math-c++.
69566         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69568         Tests of module 'locale' in C++ mode.
69569         * tests/test-locale-c++.cc: New file.
69570         * modules/locale-tests (Files): Add it and tests/signature.h.
69571         (Depends-on): Add ansi-c++-opt.
69572         (Makefile.am): Arrange to compile and run test-locale-c++.
69573         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
69574         gl_MODULE_INDICATOR.
69576         Tests of module 'langinfo' in C++ mode.
69577         * tests/test-langinfo-c++.cc: New file.
69578         * modules/langinfo-tests (Files): Add it and tests/signature.h.
69579         (Depends-on): Add ansi-c++-opt.
69580         (Makefile.am): Arrange to compile and run test-langinfo-c++.
69581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
69582         gl_MODULE_INDICATOR.
69584         Tests of module 'iconv-h' in C++ mode.
69585         * tests/test-iconv-h-c++.cc: New file.
69586         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
69587         (Depends-on): Add ansi-c++-opt.
69588         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
69590         Tests of module 'glob' in C++ mode.
69591         * tests/test-glob-c++.cc: New file.
69592         * modules/glob-tests (Files): Add it.
69593         (Depends-on): Add ansi-c++-opt.
69594         (Makefile.am): Arrange to compile and run test-glob-c++.
69596         Tests of module 'fcntl-h' in C++ mode.
69597         * tests/test-fcntl-h-c++.cc: New file.
69598         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
69599         (Depends-on): Add ansi-c++-opt.
69600         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
69601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
69602         gl_MODULE_INDICATOR.
69604         Tests of module 'dirent' in C++ mode.
69605         * tests/test-dirent-c++.cc: New file.
69606         * modules/dirent-tests (Files): Add it and tests/signature.h.
69607         (Depends-on): Add ansi-c++-opt.
69608         (Makefile.am): Arrange to compile and run test-dirent-c++.
69609         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69610         gl_MODULE_INDICATOR.
69612         New module 'ansi-c++-opt'.
69613         * modules/ansi-c++-opt: New file.
69614         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
69616         Document C++ namespace mode.
69617         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
69619         wctype: Avoid #define replacements in C++ mode.
69620         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
69621         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
69622         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
69623         In C++, define a namespaced alias symbol.
69624         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
69625         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
69626         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
69627         rule.
69629         wchar: Avoid #define replacements in C++ mode.
69630         * lib/wchar.in.h: Include c++defs.h.
69631         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
69632         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
69633         symbol.
69634         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
69635         * modules/wchar (Depends-on): Add c++defs.
69636         (Makefile.am): Update wchar.h rule.
69638         unistd: Avoid #define replacements in C++ mode.
69639         * lib/unistd.in.h: Include c++defs.h.
69640         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
69641         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
69642         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
69643         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
69644         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
69645         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
69646         symbol.
69647         (environ): Update.
69648         * modules/unistd (Depends-on): Add c++defs.
69649         (Makefile.am): Update unistd.h rule.
69651         time: Avoid #define replacements in C++ mode.
69652         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
69653         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
69654         define a namespaced alias symbol.
69655         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
69656         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
69657         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
69658         * modules/time (Depends-on): Add c++defs, warn-on-use.
69659         (Makefile.am): Update time.h rule.
69660         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
69661         * modules/nanosleep (configure.ac): Likewise.
69662         * modules/strptime (configure.ac): Likewise.
69663         * modules/timegm (configure.ac): Likewise.
69665         sys_time: Avoid #define replacements in C++ mode.
69666         * lib/sys_time.in.h: Include c++defs.h.
69667         (gettimeofday): In C++, define a namespaced alias symbol.
69668         * modules/sys_time (Depends-on): Add c++defs.
69669         (Makefile.am): Update sys/time.h rule.
69671         sys_stat: Avoid #define replacements in C++ mode.
69672         * lib/sys_stat.in.h: Include c++defs.h.
69673         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
69674         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
69675         namespaced alias symbol.
69676         In C++, define a namespaced alias symbol.
69677         * modules/sys_stat (Depends-on): Add c++defs.
69678         (Makefile.am): Update sys/stat.h rule.
69680         sys_socket: Avoid #define replacements in C++ mode.
69681         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
69682         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
69683         definitions also when the system has a <sys/socket.h>.
69684         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
69685         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
69686         In C++, define a namespaced alias symbol.
69687         * modules/sys_socket (Depends-on): Add c++defs.
69688         (Makefile.am): Update sys/socket.h rule.
69690         sys_select: Avoid #define replacements in C++ mode.
69691         * lib/sys_select.in.h: Include c++defs.h. Enable the function
69692         definitions also when the system has a <sys/select.h>.
69693         (select): In C++, define a namespaced alias symbol.
69694         * modules/sys_select (Depends-on): Add c++defs.
69695         (Makefile.am): Update sys/select.h rule.
69697         sys_ioctl: Avoid #define replacements in C++ mode.
69698         * lib/sys_ioctl.in.h: Include c++defs.h.
69699         (ioctl): In C++, define a namespaced alias symbol.
69700         * modules/sys_ioctl (Depends-on): Add c++defs.
69701         (Makefile.am): Update sys/ioctl.h rule.
69703         string: Avoid #define replacements in C++ mode.
69704         * lib/string.in.h: Include c++defs.h.
69705         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
69706         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
69707         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
69708         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
69709         strsignal, strverscmp): In C++, define a namespaced alias symbol.
69710         * modules/string (Depends-on): Add c++defs.
69711         (Makefile.am): Update string.h rule.
69713         stdlib: Avoid #define replacements in C++ mode.
69714         * lib/stdlib.in.h: Include c++defs.h.
69715         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
69716         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
69717         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
69718         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
69719         symbol.
69720         * modules/stdlib (Depends-on): Add c++defs.
69721         (Makefile.am): Update stdlib.h rule.
69723         stdio: Avoid #define replacements in C++ mode.
69724         * lib/stdio.in.h: Include c++defs.h.
69725         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
69726         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
69727         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
69728         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
69729         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
69730         namespaced alias symbol.
69731         * modules/stdio (Depends-on): Add c++defs.
69732         (Makefile.am): Update stdio.h rule.
69734         spawn: Avoid #define replacements in C++ mode.
69735         * lib/spawn.in.h: Include c++defs.h.
69736         (posix_spawn, posix_spawnp, posix_spawnattr_init,
69737         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
69738         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
69739         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
69740         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
69741         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
69742         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
69743         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
69744         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
69745         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
69746         In C++, define a namespaced alias symbol.
69747         * modules/spawn (Depends-on): Add c++defs.
69748         (Makefile.am): Update spawn.h rule.
69750         signal: Avoid #define replacements in C++ mode.
69751         * lib/signal.in.h: Include c++defs.h.
69752         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
69753         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
69754         namespaced alias symbol.
69755         * modules/signal (Depends-on): Add c++defs.
69756         (Makefile.am): Update signal.h rule.
69758         search: Avoid #define replacements in C++ mode.
69759         * lib/search.in.h: Include c++defs.h.
69760         (_gl_search_compar_fn, _gl_search_action_fn): New types.
69761         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
69762         symbol.
69763         * modules/search (Depends-on): Add c++defs.
69764         (Makefile.am): Update search.h rule.
69766         math: Avoid #define replacements in C++ mode.
69767         * lib/math.in.h: Include c++defs.h.
69768         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
69769         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
69770         trunc, truncl): In C++, define a namespaced alias symbol.
69771         * modules/math (Depends-on): Add c++defs.
69772         (Makefile.am): Update math.h rule.
69774         locale: Avoid #define replacements in C++ mode.
69775         * lib/locale.in.h: Include c++defs.h.
69776         (duplocale): In C++, define a namespaced alias symbol.
69777         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
69778         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
69779         * modules/locale (Depends-on): Add c++defs.
69780         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
69782         langinfo: Avoid #define replacements in C++ mode.
69783         * lib/langinfo.in.h: Include c++defs.h.
69784         (nl_langinfo): In C++, define a namespaced alias symbol.
69785         * modules/langinfo (Depends-on): Add c++defs.
69786         (Makefile.am): Update langinfo.h rule.
69788         iconv-h: Avoid #define replacements in C++ mode.
69789         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
69790         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
69791         symbol.
69792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
69793         whenever iconv is present.
69794         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
69795         (Makefile.am): Update iconv.h rule.
69797         glob: Avoid #define replacements in C++ mode.
69798         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
69799         (_gl_glob_errfunc_fn): New type.
69800         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
69801         symbol.
69802         * modules/glob (Depends-on): Add c++defs, warn-on-use.
69803         (Makefile.am): Update glob.h rule.
69805         fcntl-h: Avoid #define replacements in C++ mode.
69806         * lib/fcntl.in.h: Include c++defs.h.
69807         (fcntl, open, openat): In C++, define a namespaced alias symbol.
69808         * modules/fcntl-h (Depends-on): Add c++defs.
69809         (Makefile.am): Update fcntl.h rule.
69811         dirent: Avoid #define replacements in C++ mode.
69812         * lib/dirent.in.h: Include c++defs.h.
69813         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
69814         namespaced alias symbol.
69815         (dirfd): Update declaration.
69816         * modules/dirent (Depends-on): Add c++defs.
69817         (Makefile.am): Update dirent.h rule.
69819         ctype: Make it usable in C++ code.
69820         * lib/ctype.in.h: Include c++defs.h.
69821         (isblank): Declare as extern "C".
69822         * modules/ctype (Depends-on): Add c++defs.
69823         (Makefile.am): Update ctype.h rule.
69825         New module 'c++defs'.
69826         * modules/c++defs: New file.
69827         * build-aux/c++defs.h: New file.
69828         Reported by John W. Eaton <jwe@gnu.org>.
69830 2010-03-07  Bruno Haible  <bruno@clisp.org>
69832         logb: Provide missing declaration for Cygwin.
69833         * lib/math.in.h (logb): New declaration.
69834         * m4/logb.m4: New file.
69835         * modules/logb (Files): Add m4/logb.m4.
69836         (Depends-on): Add math.
69837         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
69838         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
69839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
69840         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
69841         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
69843 2010-03-07  Bruno Haible  <bruno@clisp.org>
69845         Fix test-cond link error.
69846         * tests/test-cond.c: Include <stdio.h>.
69848 2010-03-07  Bruno Haible  <bruno@clisp.org>
69850         Fix test-dirent-safer link error.
69851         * modules/dirent-safer-tests (Makefile.am): Define
69852         test_dirent_safer_LDADD.
69854 2010-03-07  Bruno Haible  <bruno@clisp.org>
69856         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
69857         among default module list.
69859 2010-03-07  Bruno Haible  <bruno@clisp.org>
69861         Fix link error on platforms with GNU libiconv.
69862         * modules/unistr/u8-strcoll-tests (Makefile): Define
69863         test_u8_strcoll_LDADD.
69864         * modules/unistr/u16-strcoll-tests (Makefile): Define
69865         test_u16_strcoll_LDADD.
69866         * modules/unistr/u32-strcoll-tests (Makefile): Define
69867         test_u32_strcoll_LDADD.
69869 2010-03-07  Bruno Haible  <bruno@clisp.org>
69871         Use POSIX declarations for socket functions.
69872         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
69873         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
69874         rpl_sendto): Change declaration to match POSIX.
69875         * lib/connect.c (rpl_connect): Likewise.
69876         * lib/accept.c (rpl_accept): Likewise.
69877         * lib/bind.c (rpl_bind): Likewise.
69878         * lib/getpeername.c (rpl_getpeername): Likewise.
69879         * lib/getsockname.c (rpl_getsockname): Likewise.
69880         * lib/recv.c (rpl_recv): Likewise.
69881         * lib/send.c (rpl_send): Likewise.
69882         * lib/recvfrom.c (rpl_recvfrom): Likewise.
69883         * lib/sendto.c (rpl_sendto): Likewise.
69885 2010-03-06  Bruno Haible  <bruno@clisp.org>
69887         Clarify access, euidaccess, faccessat.
69888         * doc/posix-functions/faccessat.texi: Mention security problem under
69889         "Other problems", not "Portability problems".
69890         * doc/posix-functions/access.texi: Likewise. Mention a related security
69891         problem.
69892         * doc/glibc-functions/euidaccess.texi: Mention security problems.
69893         * lib/euidaccess.c: Add comments about platforms.
69894         * lib/unistd.in.h (access, euidaccess): Add warnings.
69896 2010-03-07  Bruno Haible  <bruno@clisp.org>
69898         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
69899         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
69900         (POSIX_SPAWN_SETSCHEDULER): Likewise.
69901         (POSIX_SPAWN_USEVFORK): Define in a way that works when
69902         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
69903         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
69904         declare when POSIX_SPAWN_SETSCHEDULER is zero.
69905         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
69906         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
69907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
69908         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
69909         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
69910         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
69911         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
69912         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
69913         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
69914         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
69915         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
69916         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
69917         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
69918         Likewise.
69919         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
69920         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
69921         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
69922         Likewise.
69923         * tests/test-spawn.c (main): Make it work when
69924         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
69926 2010-03-07  Bruno Haible  <bruno@clisp.org>
69928         Fix incorrect Makefile.am generation in German locale.
69929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69930         Execute sed command with character range in C locale.
69932 2010-03-06  Bruno Haible  <bruno@clisp.org>
69934         Tests for module 'iconv-h'.
69935         * modules/iconv-h-tests: New file.
69936         * tests/test-iconv-h.c: New file.
69938         New module 'iconv-h'.
69939         * modules/iconv-h: New file.
69940         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
69941         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
69942         (configure.ac): Remove gl_ICONV_H.
69943         (Makefile.am): Remove rule for iconv.h.
69945 2010-03-06  Bruno Haible  <bruno@clisp.org>
69947         More consistent naming of *.m4 files.
69948         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
69949         * modules/wctype (Files): Update.
69951         More consistent naming of *.m4 files.
69952         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
69953         * modules/wchar (Files): Update.
69955 2010-03-06  Jim Meyering  <meyering@redhat.com>
69957         euidaccess: relax license to LGPLv2+
69958         * modules/euidaccess (License): Relax to LGPLv2+.
69960 2010-03-06  Bruno Haible  <bruno@clisp.org>
69962         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
69963         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
69964         (Makefile.am): Augment lib_SOURCES instead.
69966 2010-03-04  Jim Meyering  <meyering@redhat.com>
69968         utime: remove obsolete module
69969         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
69970         unnecessary for years, and has been marked as obsolete for 10 months.
69971         * modules/utime: Remove file.
69972         * lib/utime.c: Remove file.
69973         * m4/utime.m4: Remove file.
69974         * m4/utimes-null.m4: Remove file.
69975         * doc/posix-functions/utime.texi (utime): Remove reference to
69976         the module.  Move the sole "fixed by gnulib" item into the
69977         "problems not fixed by Gnulib" list.
69978         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
69980 2010-03-05  Simon Josefsson  <simon@josefsson.org>
69982         * modules/exit (License): Relax license to LGPLv2+.
69983         (Status): Mark as obsolete.
69984         * NEWS: Mention deprecated 'exit' module.
69985         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
69986         of now obsolete 'exit'.
69988 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69990         fts-lgpl: remove unused module
69991         * modules/fts-lgpl: Remove.
69992         * MODULES.html.sh (func_all_modules): Adjust.
69993         * check-module (find_included_lib_files): Adjust.
69994         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
69996 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
69998         copy-acl: enhance Solaris ACL error handling
69999         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
70000         * lib/set-mode-acl.c (qset_acl): Likewise.
70002 2010-03-02  Bruno Haible  <bruno@clisp.org>
70004         spawn: Don't override the system defined values on FreeBSD 8.
70005         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
70006         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
70007         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
70008         if HAVE_POSIX_SPAWN is 1.
70009         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
70011 2010-03-01  Bruno Haible  <bruno@clisp.org>
70013         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
70014         regarding Automake.
70016 2010-02-25  Bruno Haible  <bruno@clisp.org>
70018         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
70019         * gnulib-tool: Define 'echo' as a function only before the ksh alias
70020         setting, not afterwards.
70021         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
70023 2010-02-24  Eric Blake  <eblake@redhat.com>
70025         bootstrap, git-version-gen: use timestamp
70026         * build-aux/git-version-gen (scriptversion): Force UTC.
70027         * build-aux/bootstrap (scriptversion): New variable.
70029         bootstrap: allow older git
70030         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
70031         older than 1.6.4.  Requested by the libvirt project.
70033 2010-02-23  Eric Blake  <eblake@redhat.com>
70035         warn-on-use: work with old autoconf
70036         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
70037         AS_VAR semantics of autoconf 2.60.
70038         Reported by Bruno Haible.
70040         bootstrap: improve some comments
70041         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
70042         clarification comments.
70044         gettimeofday: provide correct function
70045         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
70046         when replacement is declared, otherwise provide gettimeofday.
70047         Reported by Michael Goffioul.
70049 2010-02-23  Jim Meyering  <meyering@redhat.com>
70051         lib-ignore: relax license to "unlimited", not LGPLv2+
70052         * modules/lib-ignore (License): Relax to "unlimited".
70054 2010-02-23  Jim Meyering  <meyering@redhat.com>
70056         lib-ignore: relax license to LGPLv2+
70057         * modules/lib-ignore (License): Relax to LGPLv2+.
70059 2010-02-22  Eric Blake  <eblake@redhat.com>
70061         lseek: avoid bash 3.2 broken pipe bug
70062         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
70063         warning from bash 3.2.
70064         Reported by Ben Pfaff, with analysis from Bruno Haible.
70066         bootstrap: support non-FSF copyright holder
70067         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
70068         bootstrap.conf override of COPYRIGHT_HOLDER.
70069         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
70071         bootstrap: interoperate with gettext 0.14.1
70072         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
70074         bootstrap: allow for alternate submodule location
70075         * build-aux/bootstrap (gnulib_path): New variable; use instead of
70076         hardcoding submodule location.
70077         (gnulib_mk): Allow direct use of Makefile.am.
70079         bootstrap: use GNULIB_SRCDIR to reduce disk usage
70080         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
70081         rather than reconfiguring where the submodule points.
70083         gettimeofday: restore support for platforms that lack function
70084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
70085         replacement if function is missing.
70086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
70087         * modules/sys_time (Makefile.am): Substitute it.
70088         * lib/sys_time.in.h (gettimeofday): Check it.
70089         Reported by Michael Goffioul.
70091 2010-02-21  Bruno Haible  <bruno@clisp.org>
70093         * lib/stdio.in.h (obstack_printf): Fix typo.
70095 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
70097         vc-list-files: use bzr ls's -R option
70098         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
70099         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
70101 2010-02-21  Jim Meyering  <meyering@redhat.com>
70103         init.sh: fix EXEEXT shims to work also for names like test-prog
70104         * tests/init.sh: Re-exec a better shell, when needed.
70105         If the current shell lacks support for posix $(...), an init.sh-using
70106         test will now try to find a shell that supports that.  If EXEEXT is
70107         nonempty, we also require support for hyphen-in-alias-name and shell
70108         substitutions like ${var#glob}.  Failure to find such a shell results
70109         in a skipped test.
70111 2010-02-21  Bruno Haible  <bruno@clisp.org>
70113         Really work around "broken pipe" error message from bash 3.2.
70114         * gnulib-tool (func_reset_sigpipe): Remove function.
70115         (echo): In bash 3.2, define to a function that uses printf.
70116         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
70118 2010-02-20  Bruno Haible  <bruno@clisp.org>
70120         Restore support for automake 1.9.6 with autoconf 2.61.
70121         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
70122         Reported by James Youngman <jay@gnu.org>.
70124 2010-02-20  Bruno Haible  <bruno@clisp.org>
70126         Improve *printf warning condition.
70127         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
70128         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
70129         and the function is overridden due to SIGPIPE emulation.
70131 2010-02-20  Bruno Haible  <bruno@clisp.org>
70133         * lib/stdio.in.h: Tweak comments.
70135 2010-02-19  Bruno Haible  <bruno@clisp.org>
70137         Make it easier to find modules. New gnulib-tool option '--find'.
70138         * gnulib-tool: New option --find.
70139         (func_usage): Document it.
70140         (func_sanitize_modulelist): New function, extracted from
70141         func_all_modules.
70142         (func_all_modules): Invoke it.
70143         * doc/gnulib-tool.texi (Which modules?): New node.
70145 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
70147         * lib/sys_select.in.h: Provide select replacement even if
70148         sys/select.h exists on a system, for Interix.
70150 2010-02-18  Jim Meyering  <meyering@redhat.com>
70152         init.sh: don't use $(...) just yet
70153         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
70154         to accommodate e.g., Solaris' /bin/sh.
70156 2010-02-17  Bruno Haible  <bruno@clisp.org>
70158         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
70159         Reported by Ludovic Courtès <ludo@gnu.org>.
70161 2010-02-16  Simon Josefsson  <simon@josefsson.org>
70163         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
70164         linking with -lintl.
70166 2010-02-17  Simon Josefsson  <simon@josefsson.org>
70168         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
70169         if not provided by the system's netdb.h.  Reported by
70170         ludo@gnu.org (Ludovic Courtès).
70172 2010-02-15  Jim Meyering  <meyering@redhat.com>
70174         init.sh: improve portability and efficiency
70175         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
70176         "dummy" in a for loop.
70177         Use '!', not '^' to select the complement of a character set used
70178         in a "case" statement.
70179         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
70180         Suggestions from Eric Blake.
70182         init.sh: automatically accommodate programs with the .exe suffix
70183         Automatically arrange for an invocation of "prog" to execute the
70184         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
70185         may use the simpler "prog", yet still work when built on a system
70186         that requires specifying the added suffix.
70187         Do this by constructing a function named "prog" that invokes
70188         "prog.exe" for each .exe file in selected directories.
70189         * tests/init.sh (find_exe_basenames_): New function.
70190         (create_exe_shim_functions_): New function.
70191         (path_prepend_): Use it.
70193         maint.mk: mark syntax-check sc_*.m rules as .PHONY
70194         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
70195         "make -t syntax-check" doesn't create a ton of sc_*.m files.
70197 2010-02-14  Jim Meyering  <meyering@redhat.com>
70199         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
70200         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
70201         (sc_prohibit_hash_pjw_without_use): New rule.
70203         maint.mk: allow the default upload destination dir to be overridden
70204         * top/maint.mk (upload_dest_dir_): Define with a default that
70205         preserves the status quo.
70206         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
70207         Reported by Peter Simons.
70209         maint.mk: prohibit inclusion of "hash.h" without_use
70210         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
70212 2010-02-10  Jim Meyering  <meyering@redhat.com>
70214         maint.mk: prohibit inclusion of "ignore-value.h" without_use
70215         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
70217 2010-02-09  Eric Blake  <ebb9@byu.net>
70218         and Bruno Haible  <bruno@clisp.org>
70220         obstack-printf-posix: ensure declaration
70221         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
70222         extracted from gl_FUNC_OBSTACK_PRINTF.
70223         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
70224         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70225         Likewise.
70226         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
70227         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
70228         0.
70230 2010-02-08  Bruno Haible  <bruno@clisp.org>
70232         gnulib-tool: Fix typo in 2010-02-07 commit.
70233         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
70234         Reported by Eric Blake.
70236 2010-02-07  Bruno Haible  <bruno@clisp.org>
70238         gnulib-tool: Fix up caching patches.
70239         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
70240         option --no-cache. Use associative arrays when supported by the shell.
70241         (sed_comments): New variable.
70242         (modcache): Renamed from do_cache.
70243         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
70244         abbreviate unnecessarily.
70245         (have_associative): New variable.
70246         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
70247         way also for ksh and zsh.
70248         (func_init_sed_convert_to_cache_statements): New function, extracted
70249         from func_cache_lookup_module. Add support for associative arrays.
70250         Don't set the c_MODULE_cached variable here. Ignore all lines before
70251         the first field header. Remove only the final newline, not all trailing
70252         newlines. Support empty fields correctly. Limit the use of 'eval' to
70253         assignments.
70254         (func_get_description, func_get_status, func_get_notice,
70255         func_get_applicability, func_get_filelist, func_get_dependencies,
70256         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
70257         func_get_automake_snippet, func_get_include_directive,
70258         func_get_link_directive, func_get_license, func_get_maintainer):
70259         Update documentation. List the unoptimized code first. Add support for
70260         associative arrays. Limit the use of 'eval' to assignments.
70261         (func_get_applicability): Undo stylistic pessimisations.
70262         (func_get_automake_snippet, func_get_include_directive): Reduce code
70263         duplication.
70264         (func_modules_transitive_closure, func_modules_add_dummy,
70265         func_modules_notice, func_modules_to_filelist, func_add_file,
70266         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
70267         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
70268         func_create_testdir, func_create_megatestdir): Update documentation.
70270 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70272         * gnulib-tool (func_cache_lookup_module): Store the module name
70273         belonging to the cache variable; error out if two different
70274         module names map to the same cache variable name.
70276 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70278         gnulib-tool: Make caching optional.
70279         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
70280         Update matching short versions of --no-changelog.
70281         (func_usage): Update.
70282         (sed_extract_cache_prog): Renamed from ...
70283         (sed_extract_prog): ... this; revert to old extraction script.
70284         (func_get_description, func_get_status)
70285         (func_get_notice, func_get_applicability, func_get_filelist)
70286         (func_get_dependencies, func_get_autoconf_early_snippet)
70287         (func_get_autoconf_snippet, func_get_automake_snippet)
70288         (func_get_include_directive, func_get_link_directive)
70289         (func_get_license, func_get_maintainer): If $do_cache is false,
70290         use old, non-caching extraction scripts.
70291         Suggestion by Bruno Haible.
70293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70295         gnulib-tool: cache module metainformation.
70296         * gnulib-tool (sed_extract_prog): Match newline before each
70297         header, and rewrite header to a shell variable suffix.
70298         (func_cache_var, func_cache_lookup_module): New functions,
70299         to turn a module name into a cache variable prefix, and to
70300         look up and cache module metainformation.
70301         (func_get_description, func_get_status)
70302         (func_get_notice, func_get_applicability, func_get_filelist)
70303         (func_get_dependencies, func_get_autoconf_early_snippet)
70304         (func_get_autoconf_snippet, func_get_automake_snippet)
70305         (func_get_include_directive, func_get_link_directive)
70306         (func_get_license, func_get_maintainer): Use
70307         func_cache_lookup_module.
70309 2010-02-07  Bruno Haible  <bruno@clisp.org>
70311         fnctl: Fix missing dependency.
70312         * modules/fcntl (Depends-on): Add getdtablesize.
70313         Reported by John W. Eaton <jwe@gnu.org>.
70315 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
70317         Argp: fix recognition of short alias options.
70319         * lib/argp-parse.c (convert_options): Fix improper use of
70320         `|' between character values.
70321         * tests/test-argp.c (group1_option): New alias option
70322         --read (-r).
70323         (group1_parser): Special handling for 'r'.
70324         (test15): New test case.
70325         (test_fun): Add test15.
70326         * tests/test-argp-2.sh: Update expected --help and --usage
70327         outputs.
70329 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
70331         * tests/test-argp.c: Fix indentation.
70333 2010-02-04  Eric Blake  <ebb9@byu.net>
70335         gettimeofday: expose type of second argument
70336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
70337         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
70338         * tests/test-gettimeofday.c: Use it to silence warning.
70339         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
70340         the issue.
70342 2010-02-03  Jim Meyering  <meyering@redhat.com>
70344         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
70345         * lib/regcomp.c (TYPE_SIGNED): Define.
70346         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
70348         regcomp.c: avoid a new -Wshadow warning
70349         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
70351 2010-02-01  Jim Meyering  <meyering@redhat.com>
70353         removing useless parentheses in cpp #define directives
70354         For motivation, see commit c0221df4, "define STREQ(a,b)
70355         consistently, removing useless parentheses"
70356         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
70357         * lib/mountlist.c (MNT_IGNORE): Likewise.
70358         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
70360 2010-02-01  Eric Blake  <ebb9@byu.net>
70362         sys_time: use link-warning
70363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
70364         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
70365         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
70366         * modules/sys_time (Depends-on): Add warn-on-use.
70367         (Makefile.am): Always build replacement.
70368         (configure.ac): Update substitutions.
70369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
70370         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
70371         bother with SYS_TIME_H.
70372         * modules/gettimeofday (configure.ac): Declare indicator.
70373         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
70374         in use.
70376         closein-tests: silence compiler warning
70377         * tests/test-closein.c (main): Ignore fread result.
70378         * modules/closein-tests (Depends-on): Add ignore-value.
70380         tests: silence warning about system return
70381         * tests/test-areadlink-with-size.c (main): Ignore system result.
70382         * tests/test-areadlink.c (main): Likewise.
70383         * tests/test-areadlinkat-with-size.c (main): Likewise.
70384         * tests/test-areadlinkat.c (main): Likewise.
70385         * tests/test-canonicalize-lgpl.c (main): Likewise.
70386         * tests/test-canonicalize.c (main): Likewise.
70387         * tests/test-chown.c (main): Likewise.
70388         * tests/test-fchownat.c (main): Likewise.
70389         * tests/test-fdutimensat.c (main): Likewise.
70390         * tests/test-fstatat.c (main): Likewise.
70391         * tests/test-futimens.c (main): Likewise.
70392         * tests/test-lchown.c (main): Likewise.
70393         * tests/test-link.c (main): Likewise.
70394         * tests/test-linkat.c (main): Likewise.
70395         * tests/test-lstat.c (main): Likewise.
70396         * tests/test-mkdir.c (main): Likewise.
70397         * tests/test-mkdirat.c (main): Likewise.
70398         * tests/test-mkfifo.c (main): Likewise.
70399         * tests/test-mkfifoat.c (main): Likewise.
70400         * tests/test-mknod.c (main): Likewise.
70401         * tests/test-readlink.c (main): Likewise.
70402         * tests/test-remove.c (main): Likewise.
70403         * tests/test-rename.c (main): Likewise.
70404         * tests/test-renameat.c (main): Likewise.
70405         * tests/test-rmdir.c (main): Likewise.
70406         * tests/test-symlink.c (main): Likewise.
70407         * tests/test-symlinkat.c (main): Likewise.
70408         * tests/test-unlink.c (main): Likewise.
70409         * tests/test-unlinkat.c (main): Likewise.
70410         * tests/test-utimens.c (main): Likewise.
70411         * tests/test-utimensat.c (main): Likewise.
70412         * modules/areadlink-tests (Depends-on): Add ignore-value.
70413         * modules/areadlink-with-size-tests (Depends-on): Likewise.
70414         * modules/areadlinkat-tests (Depends-on): Likewise.
70415         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
70416         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
70417         * modules/canonicalize-tests (Depends-on): Likewise.
70418         * modules/chown-tests (Depends-on): Likewise.
70419         * modules/fdutimensat-tests (Depends-on): Likewise.
70420         * modules/futimens-tests (Depends-on): Likewise.
70421         * modules/lchown-tests (Depends-on): Likewise.
70422         * modules/link-tests (Depends-on): Likewise.
70423         * modules/linkat-tests (Depends-on): Likewise.
70424         * modules/lstat-tests (Depends-on): Likewise.
70425         * modules/mkdir-tests (Depends-on): Likewise.
70426         * modules/mkfifo-tests (Depends-on): Likewise.
70427         * modules/mkfifoat-tests (Depends-on): Likewise.
70428         * modules/mknod-tests (Depends-on): Likewise.
70429         * modules/openat-tests (Depends-on): Likewise.
70430         * modules/readlink-tests (Depends-on): Likewise.
70431         * modules/remove-tests (Depends-on): Likewise.
70432         * modules/rename-tests (Depends-on): Likewise.
70433         * modules/renameat-tests (Depends-on): Likewise.
70434         * modules/rmdir-tests (Depends-on): Likewise.
70435         * modules/symlink-tests (Depends-on): Likewise.
70436         * modules/symlinkat-tests (Depends-on): Likewise.
70437         * modules/unlink-tests (Depends-on): Likewise.
70438         * modules/utimens-tests (Depends-on): Likewise.
70439         * modules/utimensat-tests (Depends-on): Likewise.
70441 2010-01-31  Bruno Haible  <bruno@clisp.org>
70443         Perform the same test for many <math.h> functions.
70444         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
70445         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
70446         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
70447         of gl_MATHFUNC.
70448         * modules/acos (configure.ac): Likewise.
70449         * modules/asin (configure.ac): Likewise.
70450         * modules/atan (configure.ac): Likewise.
70451         * modules/atan2 (configure.ac): Likewise.
70452         * modules/cbrt (configure.ac): Likewise.
70453         * modules/copysign (configure.ac): Likewise.
70454         * modules/cos (configure.ac): Likewise.
70455         * modules/cosh (configure.ac): Likewise.
70456         * modules/erf (configure.ac): Likewise.
70457         * modules/erfc (configure.ac): Likewise.
70458         * modules/exp (configure.ac): Likewise.
70459         * modules/fmod (configure.ac): Likewise.
70460         * modules/hypot (configure.ac): Likewise.
70461         * modules/j0 (configure.ac): Likewise.
70462         * modules/j1 (configure.ac): Likewise.
70463         * modules/jn (configure.ac): Likewise.
70464         * modules/lgamma (configure.ac): Likewise.
70465         * modules/log (configure.ac): Likewise.
70466         * modules/log10 (configure.ac): Likewise.
70467         * modules/log1p (configure.ac): Likewise.
70468         * modules/pow (configure.ac): Likewise.
70469         * modules/remainder (configure.ac): Likewise.
70470         * modules/sin (configure.ac): Likewise.
70471         * modules/sinh (configure.ac): Likewise.
70472         * modules/tan (configure.ac): Likewise.
70473         * modules/tanh (configure.ac): Likewise.
70474         * modules/y0 (configure.ac): Likewise.
70475         * modules/y1 (configure.ac): Likewise.
70476         * modules/yn (configure.ac): Likewise.
70477         Suggested by Paolo Bonzini.
70479 2010-01-31  Bruno Haible  <bruno@clisp.org>
70481         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
70483 2010-01-31  Bruno Haible  <bruno@clisp.org>
70485         Work around getdelim() bug on FreeBSD 8.0.
70486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
70487         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
70488         not work.
70489         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
70490         is 1.
70491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
70492         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
70493         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
70494         a non-zero size.
70495         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
70497 2010-01-31  Bruno Haible  <bruno@clisp.org>
70499         Work around getline() bug on FreeBSD 8.0.
70500         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
70501         and a non-zero size.
70502         * tests/test-getline.c (main): Likewise.
70503         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
70504         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
70506 2010-01-28  Eric Blake  <ebb9@byu.net>
70508         regex: fix build failure
70509         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
70510         platforms.
70512 2010-01-28  Jim Meyering  <meyering@redhat.com>
70514         regex: do not ignore memory allocation failure
70515         * lib/regex_internal.c (create_cd_newstate): Detect
70516         re_node_set_init_copy failure.   Extracted from glibc commit
70517         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
70519         regex: sync more white-space changes from libc
70520         * lib/regex_internal.c: White-space only changes.
70521         * lib/regexec.c: Likewise.
70523         regex: add many uses of __attribute_warn_unused_result__
70524         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
70525         * lib/regexec.c: Likewise.
70526         Extracted from a messy glibc commit.
70528         regcomp.c: spelling and merge-artifact from glibc
70529         * lib/regcomp.c: Merge remainder of glibc's
70530         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
70532         regcomp.c: sync white-space changes from glibc
70533         * lib/regcomp.c: Merge to accommodate white space
70534         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
70536         regcomp.c: do not ignore internal return values
70537         * lib/regcomp.c: Do not ignore internal return values.
70538         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
70539         but without its white-space changes and spelling fixes.
70541         regex_internal.h: define __attribute_warn_unused_result__
70542         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
70544         maint: add a syntax-check rule to check for vulnerable Makefile.in
70545         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
70547 2010-01-27  Jim Meyering  <meyering@redhat.com>
70549         ncftpput-ftp: clean up spaces
70550         * build-aux/ncftpput-ftp: Make Copyright line consistent.
70551         Remove trailing blanks.
70553 2010-01-27  Simon Josefsson  <simon@josefsson.org>
70555         * build-aux/git-version-gen: Fix copyright statement.
70556         * build-aux/gnupload: Likewise.
70557         * tests/test-arcfour.c: Likewise.
70558         * tests/test-arctwo.c: Likewise.
70559         * tests/test-count-one-bits.c: Likewise.
70560         * tests/test-crc.c: Likewise.
70561         * tests/test-des.c: Likewise.
70562         * tests/test-gc-arcfour.c: Likewise.
70563         * tests/test-gc-arctwo.c: Likewise.
70564         * tests/test-gc-des.c: Likewise.
70565         * tests/test-gc-hmac-md5.c: Likewise.
70566         * tests/test-gc-hmac-sha1.c: Likewise.
70567         * tests/test-gc-md2.c: Likewise.
70568         * tests/test-gc-md4.c: Likewise.
70569         * tests/test-gc-md5.c: Likewise.
70570         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70571         * tests/test-gc-rijndael.c: Likewise.
70572         * tests/test-gc-sha1.c: Likewise.
70573         * tests/test-gc.c: Likewise.
70574         * tests/test-gethostname.c: Likewise.
70575         * tests/test-gettimeofday.c: Likewise.
70576         * tests/test-hash.c: Likewise.
70577         * tests/test-hmac-md5.c: Likewise.
70578         * tests/test-hmac-sha1.c: Likewise.
70579         * tests/test-md2.c: Likewise.
70580         * tests/test-md4.c: Likewise.
70581         * tests/test-md5.c: Likewise.
70582         * tests/test-memchr.c: Likewise.
70583         * tests/test-memchr2.c: Likewise.
70584         * tests/test-memcmp.c: Likewise.
70585         * tests/test-memmem.c: Likewise.
70586         * tests/test-memrchr.c: Likewise.
70587         * tests/test-rawmemchr.c: Likewise.
70588         * tests/test-read-file.c: Likewise.
70589         * tests/test-rijndael.c: Likewise.
70590         * tests/test-sockets.c: Likewise.
70591         * tests/test-strchrnul.c: Likewise.
70592         * tests/test-strstr.c: Likewise.
70593         * tests/test-strtod.c: Likewise.
70594         * build-aux/ncftpput-ftp: Likewise.
70596 2010-01-26  Eric Blake  <ebb9@byu.net>
70598         ignore-value: update recommended header name
70599         * modules/ignore-value (Include): Only use <> for headers that
70600         exist in glibc.
70602 2010-01-26  Jim Meyering  <meyering@redhat.com>
70604         test-userspec.c: avoid compiler warnings
70605         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
70606         and "initialization discards qualifiers..." warnings.
70607         Put the first "uid" in its own scope, and make char* members "const".
70609 2010-01-25  Bruno Haible  <bruno@clisp.org>
70611         gnulib-tool: Make warning diagnostics consistent.
70612         * gnulib-tool (func_warning): New function.
70613         Use it everywhere where gnulib-tool produces output to stderr and it is
70614         not a fatal error.
70616 2010-01-25  Bruno Haible  <bruno@clisp.org>
70618         Fix test dependencies.
70619         * modules/xstrtol-tests (Depends-on): Add inttypes.
70620         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
70622 2010-01-25  Pádraig Brady  <P@draigBrady.com>
70624         syntax-check: detect incorrect boolean macro values in config.h
70625         * modules/maintainer-makefile (configure.ac): Parameterize the location
70626         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
70627         The logic is from Eric Blake and the location indicated by Jim Meyering.
70628         Note the more natural CONFIG_HEADER name is prohibited by automake
70629         for backwards compatibility reasons.
70630         * top/maint.mk (sc_Wundef_boolean): New rule.
70632 2010-01-25  Jim Meyering  <meyering@redhat.com>
70634         bootstrap: detect MacOS 10.6's shasum, too
70635         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
70636         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
70638 2010-01-23  Jim Meyering  <meyering@redhat.com>
70640         xstrtoll: new module
70641         * modules/xstrtoll: New file.
70642         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
70643         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
70644         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
70645         ./configure fails if you use this module and lack "long long".
70646         * modules/xstrtoll-tests: New module.
70647         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
70648         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
70649         new init.sh-based test framework.
70651 2010-01-24  Bruno Haible  <bruno@clisp.org>
70653         Tests for module 'yn'.
70654         * modules/yn-tests: New file.
70655         * tests/test-yn.c: New file.
70657         Tests for module 'y1'.
70658         * modules/y1-tests: New file.
70659         * tests/test-y1.c: New file.
70661         Tests for module 'y0'.
70662         * modules/y0-tests: New file.
70663         * tests/test-y0.c: New file.
70665         Tests for module 'tanh'.
70666         * modules/tanh-tests: New file.
70667         * tests/test-tanh.c: New file.
70669         Tests for module 'tan'.
70670         * modules/tan-tests: New file.
70671         * tests/test-tan.c: New file.
70673         Tests for module 'sqrt'.
70674         * modules/sqrt-tests: New file.
70675         * tests/test-sqrt.c: New file.
70677         Tests for module 'sinh'.
70678         * modules/sinh-tests: New file.
70679         * tests/test-sinh.c: New file.
70681         Tests for module 'sin'.
70682         * modules/sin-tests: New file.
70683         * tests/test-sin.c: New file.
70685         Tests for module 'rint'.
70686         * modules/rint-tests: New file.
70687         * tests/test-rint.c: New file.
70689         Tests for module 'remainder'.
70690         * modules/remainder-tests: New file.
70691         * tests/test-remainder.c: New file.
70693         Tests for module 'pow'.
70694         * modules/pow-tests: New file.
70695         * tests/test-pow.c: New file.
70697         Tests for module 'nextafter'.
70698         * modules/nextafter-tests: New file.
70699         * tests/test-nextafter.c: New file.
70701         Tests for module 'modf'.
70702         * modules/modf-tests: New file.
70703         * tests/test-modf.c: New file.
70705         Tests for module 'logb'.
70706         * modules/logb-tests: New file.
70707         * tests/test-logb.c: New file.
70709         Tests for module 'log1p'.
70710         * modules/log1p-tests: New file.
70711         * tests/test-log1p.c: New file.
70713         Tests for module 'log10'.
70714         * modules/log10-tests: New file.
70715         * tests/test-log10.c: New file.
70717         Tests for module 'log'.
70718         * modules/log-tests: New file.
70719         * tests/test-log.c: New file.
70721         Tests for module 'lgamma'.
70722         * modules/lgamma-tests: New file.
70723         * tests/test-lgamma.c: New file.
70725         Tests for module 'ldexp'.
70726         * modules/ldexp-tests: New file.
70727         * tests/test-ldexp.c: New file.
70729         Tests for module 'jn'.
70730         * modules/jn-tests: New file.
70731         * tests/test-jn.c: New file.
70733         Tests for module 'j1'.
70734         * modules/j1-tests: New file.
70735         * tests/test-j1.c: New file.
70737         Tests for module 'j0'.
70738         * modules/j0-tests: New file.
70739         * tests/test-j0.c: New file.
70741         Tests for module 'hypot'.
70742         * modules/hypot-tests: New file.
70743         * tests/test-hypot.c: New file.
70745         Tests for module 'fmod'.
70746         * modules/fmod-tests: New file.
70747         * tests/test-fmod.c: New file.
70749         Tests for module 'fabs'.
70750         * modules/fabs-tests: New file.
70751         * tests/test-fabs.c: New file.
70753         Tests for module 'exp'.
70754         * modules/exp-tests: New file.
70755         * tests/test-exp.c: New file.
70757         Tests for module 'erfc'.
70758         * modules/erfc-tests: New file.
70759         * tests/test-erfc.c: New file.
70761         Tests for module 'erf'.
70762         * modules/erf-tests: New file.
70763         * tests/test-erf.c: New file.
70765         Tests for module 'cosh'.
70766         * modules/cosh-tests: New file.
70767         * tests/test-cosh.c: New file.
70769         Tests for module 'cos'.
70770         * modules/cos-tests: New file.
70771         * tests/test-cos.c: New file.
70773         Tests for module 'copysign'.
70774         * modules/copysign-tests: New file.
70775         * tests/test-copysign.c: New file.
70777         Tests for module 'cbrt'.
70778         * modules/cbrt-tests: New file.
70779         * tests/test-cbrt.c: New file.
70781         Tests for module 'atan2'.
70782         * modules/atan2-tests: New file.
70783         * tests/test-atan2.c: New file.
70785         Tests for module 'atan'.
70786         * modules/atan-tests: New file.
70787         * tests/test-atan.c: New file.
70789         Tests for module 'asin'.
70790         * modules/asin-tests: New file.
70791         * tests/test-asin.c: New file.
70793         Tests for module 'acos'.
70794         * modules/acos-tests: New file.
70795         * tests/test-acos.c: New file.
70797 2010-01-24  Bruno Haible  <bruno@clisp.org>
70799         Fix tests for common <math.h> functions.
70800         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
70801         code snippet that references the function pointer, rather than merely
70802         calling the function. Substitute the FUNC_LIBM variable.
70803         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
70804         * modules/acos (configure.ac): Likewise.
70805         * modules/asin (configure.ac): Likewise.
70806         * modules/atan (configure.ac): Likewise.
70807         * modules/atan2 (configure.ac): Likewise.
70808         * modules/cbrt (configure.ac): Likewise.
70809         * modules/copysign (configure.ac): Likewise.
70810         * modules/cos (configure.ac): Likewise.
70811         * modules/cosh (configure.ac): Likewise.
70812         * modules/erf (configure.ac): Likewise.
70813         * modules/erfc (configure.ac): Likewise.
70814         * modules/exp (configure.ac): Likewise.
70815         * modules/fabs (configure.ac): Likewise.
70816         * modules/fmod (configure.ac): Likewise.
70817         * modules/hypot (configure.ac): Likewise.
70818         * modules/j0 (configure.ac): Likewise.
70819         * modules/j1 (configure.ac): Likewise.
70820         * modules/jn (configure.ac): Likewise.
70821         * modules/ldexp (configure.ac): Likewise.
70822         * modules/lgamma (configure.ac): Likewise.
70823         * modules/log (configure.ac): Likewise.
70824         * modules/log10 (configure.ac): Likewise.
70825         * modules/log1p (configure.ac): Likewise.
70826         * modules/logb (configure.ac): Likewise.
70827         * modules/modf (configure.ac): Likewise.
70828         * modules/nextafter (configure.ac): Likewise.
70829         * modules/pow (configure.ac): Likewise.
70830         * modules/remainder (configure.ac): Likewise.
70831         * modules/rint (configure.ac): Likewise.
70832         * modules/sin (configure.ac): Likewise.
70833         * modules/sinh (configure.ac): Likewise.
70834         * modules/tan (configure.ac): Likewise.
70835         * modules/tanh (configure.ac): Likewise.
70836         * modules/y0 (configure.ac): Likewise.
70837         * modules/y1 (configure.ac): Likewise.
70838         * modules/yn (configure.ac): Likewise.
70840 2010-01-24  Bruno Haible  <bruno@clisp.org>
70842         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
70843         * tests/test-acosl.c (x): New variable.
70844         (main): Store argument in x and fetch it from x.
70845         * tests/test-asinl.c (x): New variable.
70846         (main): Store argument in x and fetch it from x.
70847         * tests/test-atanl.c (x): New variable.
70848         (main): Store argument in x and fetch it from x.
70849         * tests/test-cosl.c (x): New variable.
70850         (main): Store argument in x and fetch it from x.
70851         * tests/test-expl.c (x): New variable.
70852         (main): Store argument in x and fetch it from x.
70853         * tests/test-logl.c (x): New variable.
70854         (main): Store argument in x and fetch it from x.
70855         * tests/test-sinl.c (x): New variable.
70856         (main): Store argument in x and fetch it from x.
70857         * tests/test-sqrtl.c (x): New variable.
70858         (main): Store argument in x and fetch it from x.
70859         * tests/test-tanl.c (x): New variable.
70860         (main): Store argument in x and fetch it from x.
70862 2010-01-24  Bruno Haible  <bruno@clisp.org>
70864         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
70865         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
70866         assignments to the initial TESTS_ENVIRONMENT.
70867         * doc/gnulib.texi (Unit test modules): Document it.
70868         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
70869         TESTS_ENVIRONMENT.
70870         * modules/btowc-tests (Makefile.am): Likewise.
70871         * modules/c-stack-tests (Makefile.am): Likewise.
70872         * modules/c-strcase-tests (Makefile.am): Likewise.
70873         * modules/copy-file-tests (Makefile.am): Likewise.
70874         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
70875         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
70876         * modules/mbrtowc-tests (Makefile.am): Likewise.
70877         * modules/mbscasecmp-tests (Makefile.am): Likewise.
70878         * modules/mbscasestr-tests (Makefile.am): Likewise.
70879         * modules/mbschr-tests (Makefile.am): Likewise.
70880         * modules/mbscspn-tests (Makefile.am): Likewise.
70881         * modules/mbsinit-tests (Makefile.am): Likewise.
70882         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
70883         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
70884         * modules/mbspbrk-tests (Makefile.am): Likewise.
70885         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
70886         * modules/mbsrchr-tests (Makefile.am): Likewise.
70887         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
70888         * modules/mbsspn-tests (Makefile.am): Likewise.
70889         * modules/mbsstr-tests (Makefile.am): Likewise.
70890         * modules/nl_langinfo-tests (Makefile.am): Likewise.
70891         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
70892         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
70893         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
70894         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
70895         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
70896         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
70897         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
70898         * modules/wcrtomb-tests (Makefile.am): Likewise.
70899         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
70900         * modules/wcsrtombs-tests (Makefile.am): Likewise.
70901         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
70902         assignments from TESTS_ENVIRONMENT.
70903         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
70904         augmentation.
70905         * modules/argp-version-etc-tests (Makefile.am): Likewise.
70906         * modules/atexit-tests (Makefile.am): Likewise.
70907         * modules/binary-io-tests (Makefile.am): Likewise.
70908         * modules/closein-tests (Makefile.am): Likewise.
70909         * modules/dprintf-posix-tests (Makefile.am): Likewise.
70910         * modules/exclude-tests (Makefile.am): Likewise.
70911         * modules/fflush-tests (Makefile.am): Likewise.
70912         * modules/fpending-tests (Makefile.am): Likewise.
70913         * modules/fprintf-posix-tests (Makefile.am): Likewise.
70914         * modules/freadahead-tests (Makefile.am): Likewise.
70915         * modules/freadptr-tests (Makefile.am): Likewise.
70916         * modules/freadseek-tests (Makefile.am): Likewise.
70917         * modules/fseek-tests (Makefile.am): Likewise.
70918         * modules/fseeko-tests (Makefile.am): Likewise.
70919         * modules/ftell-tests (Makefile.am): Likewise.
70920         * modules/ftello-tests (Makefile.am): Likewise.
70921         * modules/idpriv-drop-tests (Makefile.am): Likewise.
70922         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
70923         * modules/lseek-tests (Makefile.am): Likewise.
70924         * modules/parse-duration-tests (Makefile.am): Likewise.
70925         * modules/perror-tests (Makefile.am): Likewise.
70926         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
70927         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
70928         * modules/pipe-tests (Makefile.am): Likewise.
70929         * modules/pread-tests (Makefile.am): Likewise.
70930         * modules/printf-posix-tests (Makefile.am): Likewise.
70931         * modules/select-tests (Makefile.am): Likewise.
70932         * modules/sigpipe-tests (Makefile.am): Likewise.
70933         * modules/tsearch-tests (Makefile.am): Likewise.
70934         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
70935         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
70936         * modules/uniname/uniname-tests (Makefile.am): Likewise.
70937         * modules/uniwidth/width-tests (Makefile.am): Likewise.
70938         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
70939         * modules/version-etc-tests (Makefile.am): Likewise.
70940         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
70941         * modules/vprintf-posix-tests (Makefile.am): Likewise.
70942         * modules/xalloc-die-tests (Makefile.am): Likewise.
70943         * modules/xprintf-posix-tests (Makefile.am): Likewise.
70944         * modules/xstrtoimax-tests (Makefile.am): Likewise.
70945         * modules/xstrtol-tests (Makefile.am): Likewise.
70946         * modules/xstrtoumax-tests (Makefile.am): Likewise.
70947         * modules/yesno-tests (Makefile.am): Likewise.
70948         Suggested by Jim Meyering.
70950 2010-01-24  Bruno Haible  <bruno@clisp.org>
70952         More documentation.
70953         * doc/gnulib.texi (Writing modules): New chapter.
70954         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
70955         the new chapter.
70957 2010-01-24  Jim Meyering  <meyering@redhat.com>
70959         maint.mk: do not prepend "./" after filtering
70960         * top/maint.mk (_prepend_srcdir_prefix): New variable
70961         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
70962         "./" when $(srcdir) is ".".
70964         define STREQ(a,b) consistently, removing useless parentheses
70965         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
70966         since the only risk is that "a" or "b" contains an unparenthesized
70967         comma, but if either did that, STREQ would have 3 or more arguments.
70968         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
70969         * lib/fts.c (STREQ): Remove unnecessary parentheses.
70970         * lib/hash-triple.c (STREQ): Likewise.
70971         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
70972         * lib/getugroups.c (STREQ): Likewise.
70974 2010-01-23  Jim Meyering  <meyering@redhat.com>
70976         maint.mk: fix syntax-check in a non-srcdir build directory
70977         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
70978         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
70980 2010-01-22  Jim Meyering  <meyering@redhat.com>
70982         userspec: add unit tests
70983         * tests/test-userspec.c: New file.
70984         * modules/userspec-tests: Likewise.
70986 2010-01-21  Jim Meyering  <meyering@redhat.com>
70988         maint.mk: handle source file names containing "." robustly
70989         * top/maint.mk (_dot_escaped_srcdir): Define.
70990         (VC_LIST): Use it in LHS of sed substitution.
70992 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
70994         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
70995         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
70996         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
70997         from a non-srcdir build.
70999 2010-01-20  Eric Blake  <ebb9@byu.net>
71001         warn-on-use: use instead of link-warning
71002         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
71003         * modules/unistd (Depends-on, Makefile.am): Likewise.
71004         * modules/arpa_inet (Depends-on): Replace link-warning with
71005         warn-on-use.
71006         (Makefile.am): Update rules accordingly.
71007         * modules/ctype (Depends-on, Makefile.am): Likewise.
71008         * modules/dirent (Depends-on, Makefile.am): Likewise.
71009         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
71010         * modules/inttypes (Depends-on, Makefile.am): Likewise.
71011         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71012         * modules/locale (Depends-on, Makefile.am): Likewise.
71013         * modules/math (Depends-on, Makefile.am): Likewise.
71014         * modules/search (Depends-on, Makefile.am): Likewise.
71015         * modules/signal (Depends-on, Makefile.am): Likewise.
71016         * modules/spawn (Depends-on, Makefile.am): Likewise.
71017         * modules/stdlib (Depends-on, Makefile.am): Likewise.
71018         * modules/string (Depends-on, Makefile.am): Likewise.
71019         * modules/strings (Depends-on, Makefile.am): Likewise.
71020         * modules/sys_file (Depends-on, Makefile.am): Likewise.
71021         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
71022         * modules/sys_select (Depends-on, Makefile.am): Likewise.
71023         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
71024         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
71025         * modules/sys_times (Depends-on, Makefile.am): Likewise.
71026         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71027         * modules/wchar (Depends-on, Makefile.am): Likewise.
71028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
71029         should be poisoned.
71030         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
71031         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
71032         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
71033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71034         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71035         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
71036         * m4/math_h.m4 (gl_MATH_H): Likewise.
71037         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71038         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
71039         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71040         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
71041         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
71042         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
71043         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
71044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
71045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
71046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
71049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71051         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
71052         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71053         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
71054         GL_LINK_WARNING.
71055         * lib/ctype.in.h: Likewise.
71056         * lib/dirent.in.h: Likewise.
71057         * lib/fcntl.in.h: Likewise.
71058         * lib/inttypes.in.h: Likewise.
71059         * lib/langinfo.in.h: Likewise.
71060         * lib/locale.in.h: Likewise.
71061         * lib/math.in.h: Likewise.
71062         * lib/search.in.h: Likewise.
71063         * lib/signal.in.h: Likewise.
71064         * lib/spawn.in.h: Likewise.
71065         * lib/stdio.in.h: Likewise.
71066         * lib/stdlib.in.h: Likewise.
71067         * lib/string.in.h: Likewise.
71068         * lib/strings.in.h: Likewise.
71069         * lib/sys_file.in.h: Likewise.
71070         * lib/sys_ioctl.in.h: Likewise.
71071         * lib/sys_select.in.h: Likewise.
71072         * lib/sys_socket.in.h: Likewise.
71073         * lib/sys_stat.in.h: Likewise.
71074         * lib/sys_times.in.h: Likewise.
71075         * lib/sys_utsname.in.h: Likewise.
71076         * lib/unistd.in.h: Likewise.
71077         * lib/wchar.in.h: Likewise.
71079 2010-01-20  Bruno Haible  <bruno@clisp.org>
71081         Avoid duplicate -lm.
71082         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
71083         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
71084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
71085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
71086         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
71087         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
71088         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
71089         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
71090         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
71091         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
71092         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
71093         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
71094         Reported by Paolo Bonzini.
71096 2010-01-19  Bruno Haible  <bruno@clisp.org>
71098         langinfo, nl_langinfo: Relicense under LGPLv2+.
71099         * modules/langinfo (License): Change to LGPLv2+.
71100         * modules/nl_langinfo (License): Likewise.
71101         Patch by David Lutterkort <lutter@redhat.com>.
71103 2010-01-19  Bruno Haible  <bruno@clisp.org>
71105         Avoid compilation error with cc on OSF/1 5.1.
71106         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
71107         statement, not before.
71108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71110 2010-01-18  Bruno Haible  <bruno@clisp.org>
71112         Avoid a link error due to the __printf__ symbol.
71113         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
71114         and 2.6.x.
71115         (__format__, __printf__): Remove definitions.
71116         * lib/argp-fmtstream.h: Likewise.
71117         * lib/argp.h: Likewise.
71118         * lib/error.h: Likewise.
71119         * lib/vasnprintf.h: Likewise.
71120         * lib/xprintf.h: Likewise.
71121         * lib/xvasprintf.h: Likewise.
71122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71124 2010-01-18  Bruno Haible  <bruno@clisp.org>
71126         Tests for module 'tanl'.
71127         * modules/tanl-tests: New file.
71128         * tests/test-tanl.c: New file.
71130         Tests for module 'sqrtl'.
71131         * modules/sqrtl-tests: New file.
71132         * tests/test-sqrtl.c: New file.
71134         Tests for module 'sinl'.
71135         * modules/sinl-tests: New file.
71136         * tests/test-sinl.c: New file.
71138         Tests for module 'logl'.
71139         * modules/logl-tests: New file.
71140         * tests/test-logl.c: New file.
71142         Tests for module 'expl'.
71143         * modules/expl-tests: New file.
71144         * tests/test-expl.c: New file.
71146         Tests for module 'cosl'.
71147         * modules/cosl-tests: New file.
71148         * tests/test-cosl.c: New file.
71150         Tests for module 'atanl'.
71151         * modules/atanl-tests: New file.
71152         * tests/test-atanl.c: New file.
71154         Tests for module 'asinl'.
71155         * modules/asinl-tests: New file.
71156         * tests/test-asinl.c: New file.
71158         Tests for module 'acosl'.
71159         * modules/acosl-tests: New file.
71160         * tests/test-acosl.c: New file.
71162         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71163         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
71164         tanl): Use the standard gnulib idiom.
71165         * lib/cosl.c: Don't include trigl.c and sincosl.c.
71166         * lib/sinl.c: Likewise.
71167         * lib/tanl.c: Don't include trigl.c.
71168         (kernel_tanl): Make static.
71169         * lib/sincosl.c: Include trigl.h first.
71170         * lib/trigl.c: Likewise.
71171         * m4/acosl.m4: New file.
71172         * m4/asinl.m4: New file.
71173         * m4/atanl.m4: New file.
71174         * m4/cosl.m4: New file.
71175         * m4/expl.m4: New file.
71176         * m4/logl.m4: New file.
71177         * m4/sinl.m4: New file.
71178         * m4/sqrtl.m4: New file.
71179         * m4/tanl.m4: New file.
71180         * m4/mathl.m4: Remove file.
71181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
71182         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71183         Don't initialize GNULIB_MATHL.
71184         * modules/acosl: New file.
71185         * modules/asinl: New file.
71186         * modules/atanl: New file.
71187         * modules/cosl: New file.
71188         * modules/expl: New file.
71189         * modules/logl: New file.
71190         * modules/sinl: New file.
71191         * modules/sqrtl: New file.
71192         * modules/tanl: New file.
71193         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
71194         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
71195         substitute GNULIB_MATHL.
71196         * modules/mathl: Rewritten.
71197         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
71198         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
71199         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
71200         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
71201         * doc/posix-functions/expl.texi: Mention the 'expl' module.
71202         * doc/posix-functions/logl.texi: Mention the 'logl' module.
71203         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
71204         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
71205         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
71207 2010-01-18  Bruno Haible  <bruno@clisp.org>
71209         sqrt: Make gl_FUNC_SQRT requirable.
71210         * m4/sqrt.m4: New file.
71211         * modules/sqrt (Files): Add it.
71212         (configure.ac): Invoke gl_FUNC_SQRT.
71214 2010-01-18  Bruno Haible  <bruno@clisp.org>
71216         New modules for common <math.h> functions.
71217         * m4/mathfunc.m4: New file.
71218         * modules/acos: New file.
71219         * modules/asin: New file.
71220         * modules/atan: New file.
71221         * modules/atan2: New file.
71222         * modules/cbrt: New file.
71223         * modules/copysign: New file.
71224         * modules/cos: New file.
71225         * modules/cosh: New file.
71226         * modules/erf: New file.
71227         * modules/erfc: New file.
71228         * modules/exp: New file.
71229         * modules/fabs: New file.
71230         * modules/fmod: New file.
71231         * modules/hypot: New file.
71232         * modules/j0: New file.
71233         * modules/j1: New file.
71234         * modules/jn: New file.
71235         * modules/ldexp: New file.
71236         * modules/lgamma: New file.
71237         * modules/log: New file.
71238         * modules/log10: New file.
71239         * modules/log1p: New file.
71240         * modules/logb: New file.
71241         * modules/modf: New file.
71242         * modules/nextafter: New file.
71243         * modules/pow: New file.
71244         * modules/remainder: New file.
71245         * modules/rint: New file.
71246         * modules/sin: New file.
71247         * modules/sinh: New file.
71248         * modules/sqrt: New file.
71249         * modules/tan: New file.
71250         * modules/tanh: New file.
71251         * modules/y0: New file.
71252         * modules/y1: New file.
71253         * modules/yn: New file.
71254         * doc/posix-functions/acos.texi: Mention the 'acos' module.
71255         * doc/posix-functions/asin.texi: Mention the 'asin' module.
71256         * doc/posix-functions/atan.texi: Mention the 'atan' module.
71257         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
71258         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
71259         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
71260         * doc/posix-functions/cos.texi: Mention the 'cos' module.
71261         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
71262         * doc/posix-functions/erf.texi: Mention the 'erf' module.
71263         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
71264         * doc/posix-functions/exp.texi: Mention the 'exp' module.
71265         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
71266         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
71267         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
71268         * doc/posix-functions/j0.texi: Mention the 'j0' module.
71269         * doc/posix-functions/j1.texi: Mention the 'j1' module.
71270         * doc/posix-functions/jn.texi: Mention the 'jn' module.
71271         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
71272         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
71273         * doc/posix-functions/log.texi: Mention the 'log' module.
71274         * doc/posix-functions/log10.texi: Mention the 'log10' module.
71275         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
71276         * doc/posix-functions/logb.texi: Mention the 'logb' module.
71277         * doc/posix-functions/modf.texi: Mention the 'modf' module.
71278         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
71279         * doc/posix-functions/pow.texi: Mention the 'pow' module.
71280         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
71281         * doc/posix-functions/rint.texi: Mention the 'rint' module.
71282         * doc/posix-functions/sin.texi: Mention the 'sin' module.
71283         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
71284         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
71285         * doc/posix-functions/tan.texi: Mention the 'tan' module.
71286         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
71287         * doc/posix-functions/y0.texi: Mention the 'y0' module.
71288         * doc/posix-functions/y1.texi: Mention the 'y1' module.
71289         * doc/posix-functions/yn.texi: Mention the 'yn' module.
71291 2010-01-18  Jim Meyering  <meyering@redhat.com>
71293         ignore-value: relax license to LGPLv2+
71294         * modules/ignore-value (License): Relax to LGPLv2+.
71296         getdate: don't leak when TZ contains two or more '"'s
71297         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
71298         double quote in TZ after the first one.
71300         readtokens: do not leak internal token_lengths buffer
71301         * lib/readtokens.c (readtokens): Free the local, lengths,
71302         when the supplied "token_lengths" parameter is NULL.
71304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71306         Fix a couple of missing LIBTHREAD link failures on AIX.
71307         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
71308         $(LIBTHREAD).
71309         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
71311         Link test-poll against INET_PTON_LIB.
71312         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
71313         for inet_pton on Solaris 10.
71315 2010-01-17  Bruno Haible  <bruno@clisp.org>
71317         unistdio/*-sprintf: Fix typo in module description.
71318         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
71319         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
71320         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
71321         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
71322         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
71323         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
71324         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
71325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71329         gnulib-tool: fix filelist for AIX, HP-UX ksh.
71330         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
71331         variables in shell case patterns, for AIX and HP-UX ksh.
71333         Split large sed scripts, for HP-UX sed.
71334         * modules/stdio: Split sed scripts around 50 sed commands,
71335         to avoid HP-UX limit of 99 commands, in the near future.
71336         * modules/string: Likewise.
71337         * modules/unistd: Likewise.
71339         gnulib-tool: avoid writing in the current directory.
71340         * gnulib-tool (func_emit_lib_Makefile_am)
71341         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
71342         not in the current directory, so concurrent gnulib-tool
71343         instances do not interfere.
71345 2010-01-16  Jim Meyering  <meyering@redhat.com>
71347         doc: update users.txt
71348         * users.txt: Add grep.
71349         (diffutils, gzip): Update URLs.
71351 2010-01-12  Bruno Haible  <bruno@clisp.org>
71353         posix_spawn: Avoid test failure on Cygwin.
71354         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
71355         characters.
71356         Reported by Simon Josefsson.
71358 2010-01-12  Bruno Haible  <bruno@clisp.org>
71360         * tests/test-cond.c (main): When skipping the test, show the reason.
71362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71364         * lib/striconv.c (str_cd_iconv): Avoid if before free.
71366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71368         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
71369         VC_LIST_ALWAYS_EXCLUDE_REGEX.
71371 2010-01-12  Eric Blake  <ebb9@byu.net>
71373         build: guarantee AS_VAR_IF
71374         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
71375         (gl_AS_VAR_IF): Move...
71376         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
71377         Reported by Simon Josefsson.
71379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71381         * lib/stdio.in.h: Fix typo.
71383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71385         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
71386         libgpg-error.
71388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71390         * tests/test-xalloc-die.sh: Use $EXEEXT.
71392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71393             Bruno Haible  <bruno@clisp.org>
71395         getlogin, getlogin_r: Avoid test failure.
71396         * tests/test-getlogin.c: Include <stdio.h>.
71397         (main): Skip the test when the function fails because stdin is not a
71398         tty.
71399         * tests/test-getlogin_r.c: Include <stdio.h>.
71400         (main): Skip the test when the function fails because stdin is not a
71401         tty.
71403 2010-01-11  Eric Blake  <ebb9@byu.net>
71405         tests: avoid more large file warnings
71406         * tests/test-fflush.c: Avoid warning about ftell use.
71407         * tests/test-fseek.c: Avoid warning about fseek use.
71409 2010-01-10  Bruno Haible  <bruno@clisp.org>
71411         nproc: Work better on Linux when /proc and /sys are not mounted.
71412         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
71413         as lower bound when, on glibc/Linux systems,
71414         sysconf (_SC_NPROCESSORS_CONF) returns 1.
71415         Suggested by Pádraig Brady <P@draigbrady.com>.
71416         Reported by Dmitry V. Levin <ldv@altlinux.org>.
71418         nproc: Refactor.
71419         * lib/nproc.c (num_processors_via_affinity_mask): New function,
71420         extracted from num_processors.
71421         (num_processors): Call it.
71423 2010-01-11  Jim Meyering  <meyering@redhat.com>
71425         utimecmp: avoid new warning from upcoming gcc-4.5.0
71426         * lib/utimecmp.c (BILLION): Define using #define rather than an
71427         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
71429 2010-01-11  Eric Blake  <ebb9@byu.net>
71431         math: add portability warnings for classification macros
71432         * modules/math (Depends-on): Add warn-on-use.
71433         (Makefile.am): Provide new substitutions.
71434         * m4/math_h.m4 (gl_MATH_H): Require inline.
71435         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
71436         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
71437         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
71438         implement warnings.
71440         unistd: warn on use of environ without module
71441         * modules/unistd (Depends-on): Add warn-on-use.
71442         (Makefile.am): Provide new substitutions.
71443         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
71444         * lib/unistd.in.h (environ): Wrap with a warning helper function.
71446         stdio: warn on suspicious uses
71447         * modules/stdio (Depends-on): Add warn-on-use.
71448         (Makefile.am): Provide new substitutions.
71449         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
71450         fseeko.
71451         * lib/stdio.in.h (gets): Always warn on use.
71452         (fseek, ftell): Adjust when warnings are issued, and honor
71453         _GL_NO_LARGE_FILES as a way to silence the warning.
71454         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
71455         any warning about large file offsets.
71456         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
71457         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
71458         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
71459         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
71460         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
71461         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
71462         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
71463         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
71465         warn-on-use: new module
71466         * modules/warn-on-use: New file.
71467         * build-aux/warn-on-use.h: Likewise.
71468         * m4/warn-on-use.m4: Likewise.
71469         * MODULES.html.sh (Support for building): Mention it.
71471 2010-01-10  Bruno Haible  <bruno@clisp.org>
71473         Tests for module 'unistr/u32-strdup'.
71474         * modules/unistr/u32-strdup-tests: New file.
71475         * tests/unistr/test-u32-strdup.c: New file.
71477         Tests for module 'unistr/u16-strdup'.
71478         * modules/unistr/u16-strdup-tests: New file.
71479         * tests/unistr/test-u16-strdup.c: New file.
71481         Tests for module 'unistr/u8-strdup'.
71482         * modules/unistr/u8-strdup-tests: New file.
71483         * tests/unistr/test-u8-strdup.c: New file.
71484         * tests/unistr/test-strdup.h: New file.
71486         Tests for module 'unistr/u32-strncmp'.
71487         * modules/unistr/u32-strncmp-tests: New file.
71488         * tests/unistr/test-u32-strncmp.c: New file.
71490         Tests for module 'unistr/u16-strncmp'.
71491         * modules/unistr/u16-strncmp-tests: New file.
71492         * tests/unistr/test-u16-strncmp.c: New file.
71494         Tests for module 'unistr/u8-strncmp'.
71495         * modules/unistr/u8-strncmp-tests: New file.
71496         * tests/unistr/test-u8-strncmp.c: New file.
71497         * tests/unistr/test-strncmp.h: New file.
71499         Tests for module 'unistr/u32-strcoll'.
71500         * modules/unistr/u32-strcoll-tests: New file.
71501         * tests/unistr/test-u32-strcoll.c: New file.
71503         Tests for module 'unistr/u16-strcoll'.
71504         * modules/unistr/u16-strcoll-tests: New file.
71505         * tests/unistr/test-u16-strcoll.c: New file.
71507         Tests for module 'unistr/u8-strcoll'.
71508         * modules/unistr/u8-strcoll-tests: New file.
71509         * tests/unistr/test-u8-strcoll.c: New file.
71511         Tests for module 'unistr/u32-strcmp'.
71512         * modules/unistr/u32-strcmp-tests: New file.
71513         * tests/unistr/test-u32-strcmp.c: New file.
71514         * tests/unistr/test-u32-strcmp.h: New file.
71516         Tests for module 'unistr/u16-strcmp'.
71517         * modules/unistr/u16-strcmp-tests: New file.
71518         * tests/unistr/test-u16-strcmp.c: New file.
71519         * tests/unistr/test-u16-strcmp.h: New file.
71521         Tests for module 'unistr/u8-strcmp'.
71522         * modules/unistr/u8-strcmp-tests: New file.
71523         * tests/unistr/test-u8-strcmp.c: New file.
71524         * tests/unistr/test-u8-strcmp.h: New file.
71525         * tests/unistr/test-strcmp.h: New file.
71527         Tests for module 'unistr/u32-strncat'.
71528         * modules/unistr/u32-strncat-tests: New file.
71529         * tests/unistr/test-u32-strncat.c: New file.
71531         Tests for module 'unistr/u16-strncat'.
71532         * modules/unistr/u16-strncat-tests: New file.
71533         * tests/unistr/test-u16-strncat.c: New file.
71535         Tests for module 'unistr/u8-strncat'.
71536         * modules/unistr/u8-strncat-tests: New file.
71537         * tests/unistr/test-u8-strncat.c: New file.
71538         * tests/unistr/test-strncat.h: New file.
71540         Tests for module 'unistr/u32-strcat'.
71541         * modules/unistr/u32-strcat-tests: New file.
71542         * tests/unistr/test-u32-strcat.c: New file.
71544         Tests for module 'unistr/u16-strcat'.
71545         * modules/unistr/u16-strcat-tests: New file.
71546         * tests/unistr/test-u16-strcat.c: New file.
71548         Tests for module 'unistr/u8-strcat'.
71549         * modules/unistr/u8-strcat-tests: New file.
71550         * tests/unistr/test-u8-strcat.c: New file.
71551         * tests/unistr/test-strcat.h: New file.
71553         Tests for module 'unistr/u32-stpncpy'.
71554         * modules/unistr/u32-stpncpy-tests: New file.
71555         * tests/unistr/test-u32-stpncpy.c: New file.
71557         Tests for module 'unistr/u16-stpncpy'.
71558         * modules/unistr/u16-stpncpy-tests: New file.
71559         * tests/unistr/test-u16-stpncpy.c: New file.
71561         Tests for module 'unistr/u8-stpncpy'.
71562         * modules/unistr/u8-stpncpy-tests: New file.
71563         * tests/unistr/test-u8-stpncpy.c: New file.
71564         * tests/unistr/test-stpncpy.h: New file.
71566         Tests for module 'unistr/u32-strncpy'.
71567         * modules/unistr/u32-strncpy-tests: New file.
71568         * tests/unistr/test-u32-strncpy.c: New file.
71570         Tests for module 'unistr/u16-strncpy'.
71571         * modules/unistr/u16-strncpy-tests: New file.
71572         * tests/unistr/test-u16-strncpy.c: New file.
71574         Tests for module 'unistr/u8-strncpy'.
71575         * modules/unistr/u8-strncpy-tests: New file.
71576         * tests/unistr/test-u8-strncpy.c: New file.
71577         * tests/unistr/test-strncpy.h: New file.
71579         Tests for module 'unistr/u32-stpcpy'.
71580         * modules/unistr/u32-stpcpy-tests: New file.
71581         * tests/unistr/test-u32-stpcpy.c: New file.
71583         Tests for module 'unistr/u16-stpcpy'.
71584         * modules/unistr/u16-stpcpy-tests: New file.
71585         * tests/unistr/test-u16-stpcpy.c: New file.
71587         Tests for module 'unistr/u8-stpcpy'.
71588         * modules/unistr/u8-stpcpy-tests: New file.
71589         * tests/unistr/test-u8-stpcpy.c: New file.
71590         * tests/unistr/test-stpcpy.h: New file.
71592         Tests for module 'unistr/u32-strcpy'.
71593         * modules/unistr/u32-strcpy-tests: New file.
71594         * tests/unistr/test-u32-strcpy.c: New file.
71596         Tests for module 'unistr/u16-strcpy'.
71597         * modules/unistr/u16-strcpy-tests: New file.
71598         * tests/unistr/test-u16-strcpy.c: New file.
71600         Tests for module 'unistr/u8-strcpy'.
71601         * modules/unistr/u8-strcpy-tests: New file.
71602         * tests/unistr/test-u8-strcpy.c: New file.
71603         * tests/unistr/test-strcpy.h: New file.
71605         Tests for module 'unistr/u32-strnlen'.
71606         * modules/unistr/u32-strnlen-tests: New file.
71607         * tests/unistr/test-u32-strnlen.c: New file.
71609         Tests for module 'unistr/u16-strnlen'.
71610         * modules/unistr/u16-strnlen-tests: New file.
71611         * tests/unistr/test-u16-strnlen.c: New file.
71613         Tests for module 'unistr/u8-strnlen'.
71614         * modules/unistr/u8-strnlen-tests: New file.
71615         * tests/unistr/test-u8-strnlen.c: New file.
71616         * tests/unistr/test-strnlen.h: New file.
71618         Tests for module 'unistr/u32-strlen'.
71619         * modules/unistr/u32-strlen-tests: New file.
71620         * tests/unistr/test-u32-strlen.c: New file.
71622         Tests for module 'unistr/u16-strlen'.
71623         * modules/unistr/u16-strlen-tests: New file.
71624         * tests/unistr/test-u16-strlen.c: New file.
71626         Tests for module 'unistr/u8-strlen'.
71627         * modules/unistr/u8-strlen-tests: New file.
71628         * tests/unistr/test-u8-strlen.c: New file.
71630         Tests for module 'unistr/u32-prev'.
71631         * modules/unistr/u32-prev-tests: New file.
71632         * tests/unistr/test-u32-prev.c: New file.
71634         Tests for module 'unistr/u16-prev'.
71635         * modules/unistr/u16-prev-tests: New file.
71636         * tests/unistr/test-u16-prev.c: New file.
71638         Tests for module 'unistr/u8-prev'.
71639         * modules/unistr/u8-prev-tests: New file.
71640         * tests/unistr/test-u8-prev.c: New file.
71642         Tests for module 'unistr/u32-next'.
71643         * modules/unistr/u32-next-tests: New file.
71644         * tests/unistr/test-u32-next.c: New file.
71646         Tests for module 'unistr/u16-next'.
71647         * modules/unistr/u16-next-tests: New file.
71648         * tests/unistr/test-u16-next.c: New file.
71650         Tests for module 'unistr/u8-next'.
71651         * modules/unistr/u8-next-tests: New file.
71652         * tests/unistr/test-u8-next.c: New file.
71654         Tests for module 'unistr/u32-strmbtouc'.
71655         * modules/unistr/u32-strmbtouc-tests: New file.
71656         * tests/unistr/test-u32-strmbtouc.c: New file.
71658         Tests for module 'unistr/u16-strmbtouc'.
71659         * modules/unistr/u16-strmbtouc-tests: New file.
71660         * tests/unistr/test-u16-strmbtouc.c: New file.
71662         Tests for module 'unistr/u8-strmbtouc'.
71663         * modules/unistr/u8-strmbtouc-tests: New file.
71664         * tests/unistr/test-u8-strmbtouc.c: New file.
71666         Tests for module 'unistr/u32-strmblen'.
71667         * modules/unistr/u32-strmblen-tests: New file.
71668         * tests/unistr/test-u32-strmblen.c: New file.
71670         Tests for module 'unistr/u16-strmblen'.
71671         * modules/unistr/u16-strmblen-tests: New file.
71672         * tests/unistr/test-u16-strmblen.c: New file.
71674         Tests for module 'unistr/u8-strmblen'.
71675         * modules/unistr/u8-strmblen-tests: New file.
71676         * tests/unistr/test-u8-strmblen.c: New file.
71678         Tests for module 'unistr/u32-cpy-alloc'.
71679         * modules/unistr/u32-cpy-alloc-tests: New file.
71680         * tests/unistr/test-u32-cpy-alloc.c: New file.
71682         Tests for module 'unistr/u16-cpy-alloc'.
71683         * modules/unistr/u16-cpy-alloc-tests: New file.
71684         * tests/unistr/test-u16-cpy-alloc.c: New file.
71686         Tests for module 'unistr/u8-cpy-alloc'.
71687         * modules/unistr/u8-cpy-alloc-tests: New file.
71688         * tests/unistr/test-u8-cpy-alloc.c: New file.
71689         * tests/unistr/test-cpy-alloc.h: New file.
71691         Tests for module 'unistr/u32-mbsnlen'.
71692         * modules/unistr/u32-mbsnlen-tests: New file.
71693         * tests/unistr/test-u32-mbsnlen.c: New file.
71695         Tests for module 'unistr/u16-mbsnlen'.
71696         * modules/unistr/u16-mbsnlen-tests: New file.
71697         * tests/unistr/test-u16-mbsnlen.c: New file.
71699         Tests for module 'unistr/u8-mbsnlen'.
71700         * modules/unistr/u8-mbsnlen-tests: New file.
71701         * tests/unistr/test-u8-mbsnlen.c: New file.
71703         Tests for module 'unistr/u32-chr'.
71704         * modules/unistr/u32-chr-tests: New file.
71705         * tests/unistr/test-u32-chr.c: New file.
71707         Tests for module 'unistr/u16-chr'.
71708         * modules/unistr/u16-chr-tests: New file.
71709         * tests/unistr/test-u16-chr.c: New file.
71711         Tests for module 'unistr/u8-chr'.
71712         * modules/unistr/u8-chr-tests: New file.
71713         * tests/unistr/test-u8-chr.c: New file.
71714         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
71716         Tests for module 'unistr/u32-cmp2'.
71717         * modules/unistr/u32-cmp2-tests: New file.
71718         * tests/unistr/test-u32-cmp2.c: New file.
71720         Tests for module 'unistr/u16-cmp2'.
71721         * modules/unistr/u16-cmp2-tests: New file.
71722         * tests/unistr/test-u16-cmp2.c: New file.
71724         Tests for module 'unistr/u8-cmp2'.
71725         * modules/unistr/u8-cmp2-tests: New file.
71726         * tests/unistr/test-u8-cmp2.c: New file.
71727         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
71729         Tests for module 'unistr/u32-cmp'.
71730         * modules/unistr/u32-cmp-tests: New file.
71731         * tests/unistr/test-u32-cmp.c: New file.
71733         Tests for module 'unistr/u16-cmp'.
71734         * modules/unistr/u16-cmp-tests: New file.
71735         * tests/unistr/test-u16-cmp.c: New file.
71737         Tests for module 'unistr/u8-cmp'.
71738         * modules/unistr/u8-cmp-tests: New file.
71739         * tests/unistr/test-u8-cmp.c: New file.
71740         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
71742         Tests for module 'unistr/u32-set'.
71743         * modules/unistr/u32-set-tests: New file.
71744         * tests/unistr/test-u32-set.c: New file.
71746         Tests for module 'unistr/u16-set'.
71747         * modules/unistr/u16-set-tests: New file.
71748         * tests/unistr/test-u16-set.c: New file.
71750         Tests for module 'unistr/u8-set'.
71751         * modules/unistr/u8-set-tests: New file.
71752         * tests/unistr/test-u8-set.c: New file.
71753         * tests/unistr/test-set.h: New file.
71755         Tests for module 'unistr/u32-move'.
71756         * modules/unistr/u32-move-tests: New file.
71757         * tests/unistr/test-u32-move.c: New file.
71759         Tests for module 'unistr/u16-move'.
71760         * modules/unistr/u16-move-tests: New file.
71761         * tests/unistr/test-u16-move.c: New file.
71763         Tests for module 'unistr/u8-move'.
71764         * modules/unistr/u8-move-tests: New file.
71765         * tests/unistr/test-u8-move.c: New file.
71766         * tests/unistr/test-move.h: New file.
71768         Tests for module 'unistr/u32-cpy'.
71769         * modules/unistr/u32-cpy-tests: New file.
71770         * tests/unistr/test-u32-cpy.c: New file.
71772         Tests for module 'unistr/u16-cpy'.
71773         * modules/unistr/u16-cpy-tests: New file.
71774         * tests/unistr/test-u16-cpy.c: New file.
71776         Tests for module 'unistr/u8-cpy'.
71777         * modules/unistr/u8-cpy-tests: New file.
71778         * tests/unistr/test-u8-cpy.c: New file.
71779         * tests/unistr/test-cpy.h: New file.
71781 2010-01-09  Bruno Haible  <bruno@clisp.org>
71783         Tests for module 'unistr/u32-uctomb'.
71784         * modules/unistr/u32-uctomb-tests: New file.
71785         * tests/unistr/test-u32-uctomb.c: New file.
71787         Tests for module 'unistr/u16-uctomb'.
71788         * modules/unistr/u16-uctomb-tests: New file.
71789         * tests/unistr/test-u16-uctomb.c: New file.
71791         Tests for module 'unistr/u8-uctomb'.
71792         * modules/unistr/u8-uctomb-tests: New file.
71793         * tests/unistr/test-u8-uctomb.c: New file.
71795         Tests for module 'unistr/u32-mbtoucr'.
71796         * modules/unistr/u32-mbtoucr-tests: New file.
71797         * tests/unistr/test-u32-mbtoucr.c: New file.
71799         Tests for module 'unistr/u16-mbtoucr'.
71800         * modules/unistr/u16-mbtoucr-tests: New file.
71801         * tests/unistr/test-u16-mbtoucr.c: New file.
71803         Tests for module 'unistr/u8-mbtoucr'.
71804         * modules/unistr/u8-mbtoucr-tests: New file.
71805         * tests/unistr/test-u8-mbtoucr.c: New file.
71807         Tests for module 'unistr/u32-mbtouc'.
71808         * modules/unistr/u32-mbtouc-tests: New file.
71809         * tests/unistr/test-u32-mbtouc.c: New file.
71811         Tests for module 'unistr/u16-mbtouc'.
71812         * modules/unistr/u16-mbtouc-tests: New file.
71813         * tests/unistr/test-u16-mbtouc.c: New file.
71815         Tests for module 'unistr/u8-mbtouc'.
71816         * modules/unistr/u8-mbtouc-tests: New file.
71817         * tests/unistr/test-u8-mbtouc.c: New file.
71819         Tests for module 'unistr/u32-mbtouc-unsafe'.
71820         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
71821         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
71822         * tests/unistr/test-u32-mbtouc.h: New file.
71824         Tests for module 'unistr/u16-mbtouc-unsafe'.
71825         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
71826         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
71827         * tests/unistr/test-u16-mbtouc.h: New file.
71829         Tests for module 'unistr/u8-mbtouc-unsafe'.
71830         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
71831         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
71832         * tests/unistr/test-u8-mbtouc.h: New file.
71834         Tests for module 'unistr/u32-mblen'.
71835         * modules/unistr/u32-mblen-tests: New file.
71836         * tests/unistr/test-u32-mblen.c: New file.
71838         Tests for module 'unistr/u16-mblen'.
71839         * modules/unistr/u16-mblen-tests: New file.
71840         * tests/unistr/test-u16-mblen.c: New file.
71842         Tests for module 'unistr/u8-mblen'.
71843         * modules/unistr/u8-mblen-tests: New file.
71844         * tests/unistr/test-u8-mblen.c: New file.
71846         Tests for module 'unistr/u32-to-u16'.
71847         * modules/unistr/u32-to-u16-tests: New file.
71848         * tests/unistr/test-u32-to-u16.c: New file.
71850         Tests for module 'unistr/u32-to-u8'.
71851         * modules/unistr/u32-to-u8-tests: New file.
71852         * tests/unistr/test-u32-to-u8.c: New file.
71854         Tests for module 'unistr/u16-to-u32'.
71855         * modules/unistr/u16-to-u32-tests: New file.
71856         * tests/unistr/test-u16-to-u32.c: New file.
71858         Tests for module 'unistr/u16-to-u8'.
71859         * modules/unistr/u16-to-u8-tests: New file.
71860         * tests/unistr/test-u16-to-u8.c: New file.
71862         Tests for module 'unistr/u8-to-u32'.
71863         * modules/unistr/u8-to-u32-tests: New file.
71864         * tests/unistr/test-u8-to-u32.c: New file.
71866         Tests for module 'unistr/u8-to-u16'.
71867         * modules/unistr/u8-to-u16-tests: New file.
71868         * tests/unistr/test-u8-to-u16.c: New file.
71870         Tests for module 'unistr/u32-check'.
71871         * modules/unistr/u32-check-tests: New file.
71872         * tests/unistr/test-u32-check.c: New file.
71874         Tests for module 'unistr/u16-check'.
71875         * modules/unistr/u16-check-tests: New file.
71876         * tests/unistr/test-u16-check.c: New file.
71878         Tests for module 'unistr/u8-check'.
71879         * modules/unistr/u8-check-tests: New file.
71880         * tests/unistr/test-u8-check.c: New file.
71882         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
71883         (category_equals): New function.
71884         (main): Add more tests.
71885         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
71887         * tests/unictype/test-bidi_byname.c (main): Add more tests.
71889 2010-01-10  Bruno Haible  <bruno@clisp.org>
71891         unistr/u*-strcoll: Try harder to distinguish different strings.
71892         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
71893         compare s1 and s2 to see if they are different.
71895 2010-01-10  Bruno Haible  <bruno@clisp.org>
71897         unistr/u*-stpncpy: Fix the return value.
71898         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
71899         description of the return value consistent with stpncpy in glibc.
71900         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
71901         written non-NUL unit.
71903 2010-01-10  Bruno Haible  <bruno@clisp.org>
71905         unistr/u*-next: Add missing dependencies.
71906         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
71907         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
71908         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
71910 2010-01-10  Bruno Haible  <bruno@clisp.org>
71912         unistr/u8-mbsnlen: Fix return value for incomplete character.
71913         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
71914         u8_mblen.
71915         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
71916         Remove unistr/u8-mblen.
71917         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
71918         u16_mblen.
71919         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
71920         Remove unistr/u16-mblen.
71922 2010-01-10  Bruno Haible  <bruno@clisp.org>
71924         wchar: Fix compilation error when <wchar.h> is used from coreutils.
71925         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
71926         Reported by Brian Gough <bjg@gnu.org> and
71927         Chris Clayton <chris2553@googlemail.com> via
71928         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
71930 2010-01-09  Bruno Haible  <bruno@clisp.org>
71932         unistr/u16-to-u32: Reject invalid input.
71933         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
71934         u16_mbtouc.
71935         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
71936         Remove unistr/u16-mbtouc.
71938         unistr/u16-to-u8: Reject invalid input.
71939         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
71940         u16_mbtouc.
71941         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
71942         Remove unistr/u16-mbtouc.
71944         unistr/u8-to-u32: Reject invalid input.
71945         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
71946         u8_mbtouc.
71947         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
71948         Remove unistr/u8-mbtouc.
71950         unistr/u8-to-u16: Reject invalid input.
71951         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
71952         u8_mbtouc.
71953         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
71954         Remove unistr/u8-mbtouc.
71956 2010-01-09  Bruno Haible  <bruno@clisp.org>
71958         Tests for module 'getlogin'.
71959         * modules/getlogin-tests: New file.
71960         * tests/test-getlogin.c: New file.
71962         New module 'getlogin'.
71963         * lib/unistd.in.h (getlogin): New declaration.
71964         * lib/getlogin.c: New file.
71965         * m4/getlogin.m4: New file.
71966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
71967         HAVE_GETLOGIN.
71968         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
71969         HAVE_GETLOGIN.
71970         * modules/getlogin: New file.
71971         * doc/posix-functions/getlogin.texi: Mention the new module.
71972         Reported by John W. Eaton <jwe@gnu.org>.
71974 2010-01-09  Bruno Haible  <bruno@clisp.org>
71976         getlogin_r: Support for native Windows.
71977         * lib/getlogin_r.c: Include <windows.h>
71978         (getlogin_r): Implement for native Windows.
71979         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
71980         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
71981         via John W. Eaton <jwe@gnu.org>.
71983 2010-01-09  Bruno Haible  <bruno@clisp.org>
71985         getlogin_r: Small fixes.
71986         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
71987         succeeds.
71988         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
71989         before testing whether getlogin_r is declared. No need to set
71990         HAVE_DECL_GETLOGIN_R to 1.
71991         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
71993 2010-01-09  Bruno Haible  <bruno@clisp.org>
71995         * lib/unistd.in.h (getlogin_r): Add comment.
71997 2010-01-09  Bruno Haible  <bruno@clisp.org>
71999         Tests for module 'getlogin_r'.
72000         * modules/getlogin_r-tests: New file.
72001         * tests/test-getlogin_r.c: New file.
72003 2010-01-09  Jim Meyering  <meyering@redhat.com>
72005         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
72006         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
72007         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
72009 2010-01-08  Simon Josefsson  <simon@josefsson.org>
72011         * lib/dup2.c (rpl_dup2): Improve comment.
72013 2010-01-08  Eric Blake  <ebb9@byu.net>
72015         maint.mk: allow packages to add makefile @@ exceptions
72016         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
72017         (sc_makefile_check): Rename...
72018         (sc_makefile_at_at_check): ...to this, and use hook.
72020         dup2: work around mingw bug
72021         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
72022         Reported by Simon Josefsson.
72024 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
72026         glob: Fix C++ compilation.
72027         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
72028         C++.
72030 2010-01-07  Bruno Haible  <bruno@clisp.org>
72032         Fix indentation of wctype.in.h, broken since 2007-01-06.
72033         * lib/wctype.in.h: Fix indentation of preprocessor directives.
72035 2010-01-07  Bruno Haible  <bruno@clisp.org>
72037         mbslen: Avoid collision with system function.
72038         * lib/string.in.h [MirBSD]: Include <wchar.h>.
72039         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
72040         * m4/mbslen.m4: New file.
72041         * modules/mbslen (Files): Add it.
72042         (configure.ac): Invoke gl_MBSLEN.
72043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
72044         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
72045         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
72046         via Ian Beckwith <ianb@erislabs.net>.
72048 2010-01-07  Bruno Haible  <bruno@clisp.org>
72050         dirent: Document the last fix.
72051         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
72053 2010-01-07  Bruno Haible  <bruno@clisp.org>
72055         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
72056         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
72057         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
72058         va_list are defined.
72059         * doc/posix-headers/stdio.texi: Document the bug of missing types.
72060         Reported by Eric Blake.
72062 2010-01-07  Bruno Haible  <bruno@clisp.org>
72064         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
72065         * modules/xlist (Depends-on): Add 'list',
72066         * modules/xoset (Depends-on): Add 'oset'.
72067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72069 2010-01-07  Bruno Haible  <bruno@clisp.org>
72071         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
72072         * doc/posix-functions/strncasecmp.texi: Likewise.
72074 2010-01-07  Bruno Haible  <bruno@clisp.org>
72076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
72078 2010-01-07  John W. Eaton  <jwe@octave.org>
72080         wctype: allow C++ use
72081         * lib/wctype.in.h: Add extern "C" block for C++.
72083 2010-01-06  Eric Blake  <ebb9@byu.net>
72085         maint.mk: detect incorrect GFDL usage
72086         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
72088 2010-01-06  Jim Meyering  <meyering@redhat.com>
72089         and Eric Blake  <ebb9@byu.net>
72091         maint.mk: ignore multi-line copyright in NEWS
72092         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
72094 2010-01-06  Eric Blake  <ebb9@byu.net>
72096         select: add missing dependency
72097         * modules/select-tests (Depends-on): Move sockets dependency...
72098         * modules/select (Depends-on): ...here.
72099         Reported by Ian Beckwith.
72101         doc: regenerate INSTALL
72102         * doc/INSTALL: Reflect recent autoconf update.
72103         * doc/INSTALL.ISO: Likewise.
72104         * doc/INSTALL.UTF-8: Likewise.
72106         pread: fix compilation on glibc
72107         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
72108         Reported by Ralf Wildenhues.
72110         dirent: fix test failure
72111         * lib/dirent.in.h (includes): Guarantee ino_t.
72112         Reported by Ralf Wildenhues.
72114 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
72116         linkat, renameat: avoid bad free
72117         * lib/at-func2.c (at_func2): Fix typo.
72118         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
72120 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72122         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
72123         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
72124         to avoid failure of symlink test later.
72126 2010-01-06  Eric Blake  <ebb9@byu.net>
72128         stdio, unistd: guarantee ssize_t
72129         * lib/unistd.in.h (includes): Ensure that types required by POSIX
72130         2008 are exposed when needed.
72131         * lib/stdio.in.h (includes): Likewise.
72132         Reported by Ralf Wildenhues.
72134 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
72136         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
72137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
72138         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
72140 2010-01-06  Jim Meyering  <meyering@redhat.com>
72142         readtokens: this module *does* require xalloc.h
72143         It uses only functions that were omitted by the old syntax-check rule.
72144         * lib/readtokens.c: Include "xalloc.h" once again.
72145         * modules/readtokens (Depends-on): Add xalloc.
72146         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
72148 2010-01-05  Eric Blake  <ebb9@byu.net>
72150         maint: support 'make announcement' from a VPATH build
72151         * top/maint.mk (announcement): Look for correct NEWS file.
72153 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
72155         utimens (fdutimens): ignore a negative FD, per contract
72156         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
72157         when we have a valid file descriptor.  Otherwise, using a brand
72158         new glibc (with just-patched futimens that now fails with EBADF)
72159         would cause this function to fail with ENOSYS.
72160         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
72161         See also http://bugzilla.redhat.com/552320.
72163 2010-01-05  Eric Blake  <ebb9@byu.net>
72165         strcase: document what it provides
72166         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
72167         gnulib module.
72168         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
72169         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
72171 2010-01-05  Jim Meyering  <meyering@redhat.com>
72173         maint: remove useless inclusions of "xalloc.h"
72174         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
72175         * lib/readtokens.c: Likewise.
72176         * lib/same.c: Likewise.
72177         * modules/getloadavg (Depends-on): Remove xalloc.
72178         * modules/readtokens: Likewise.
72179         * modules/same: Likewise.
72181         maint.mk: include 4 more function names in alloca.h-checking regexp
72182         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
72183         regexp.  Before, we would give a false-positive (saying alloca.h
72184         is included unnecessarily) when the only uses involved omitted symbols.
72186         xalloc.h: use consistent formatting
72187         * lib/xalloc.h: Move declarations to start in the first column.
72189 2010-01-05  Eric Blake  <ebb9@byu.net>
72191         mkdir: avoid xalloc
72192         * lib/mkdir.c (includes): Drop unused header.
72193         Reported by John W. Eaton.
72195 2010-01-04  Jim Meyering  <meyering@redhat.com>
72197         nl_langinfo: avoid configure-time syntax error
72198         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
72199         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
72200         the empty string.  Don't let that provoke a shell syntax error.
72202         regcomp, regexec, fnmatch: avoid array bounds read error
72203         * lib/regcomp.c (build_equiv_class): From glibc:
72204         Use only the low 24 bits of a findidx return value as an index
72205         into the weights array.  Patch by Ulrich Drepper:
72206         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
72207         * lib/regexec.c (check_node_accept_bytes): Likewise.
72208         * lib/fnmatch_loop.c (FCT): Likewise.
72210         regcomp: skip collseq lookup when there are no rules
72211         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
72212         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
72214         regcomp: recognize ill-formed { } expressions
72215         * lib/regcomp.c (parse_dup_op): From glibc:
72216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
72218         regcomp: fix typo in comment
72219         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
72220         s/satisfy/satisfies/.
72222         regcomp: sync from glibc: remove dead store
72223         * lib/regcomp.c (duplicate_node_closure): Remove useless
72224         search_duplicated_node call and dead store.
72226         regcomp: sync from glibc; always use nl_langinfo
72227         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
72228         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
72229         * modules/regex (Depends-on): Add nl_langinfo.
72231 2010-01-04  Eric Blake  <ebb9@byu.net>
72233         fdopendir: fix configure test
72234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
72236 2010-01-01  Bruno Haible  <bruno@clisp.org>
72238         wchar: Remove unused configure check.
72239         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
72241 2010-01-01  Eric Blake  <ebb9@byu.net>
72243         headers: make check of system header explicit
72244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
72245         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
72246         ourselves.
72247         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
72250         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
72251         internals.
72252         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
72253         missing.
72254         Suggested by Bruno Haible.
72256 2010-01-01  Jim Meyering  <meyering@redhat.com>
72258         ChangeLog: tweak to eliminate unnecessary copyright line
72259         * ChangeLog: Remove a copyright line that was mistakenly updated
72260         by today's update-copyright run.  Reported by Eric Blake.
72262         test-update-copyright: don't let envvar setting cause test failure
72263         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
72265 2010-01-01  Bruno Haible  <bruno@clisp.org>
72267         localename: Avoid gcc warning.
72268         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
72269         function if it is not used.
72271 2010-01-01  Jim Meyering  <meyering@redhat.com>
72273         update nearly all FSF copyright year lists to include 2010
72274         Use the same procedure as for 2009, outlined in
72275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
72277         version-etc: set COPYRIGHT_YEAR to 2010
72278         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
72280 2009-12-31  Eric Blake  <ebb9@byu.net>
72282         doc: correct availability of cygwin 1.5.x getopt
72283         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
72284         variables.
72285         * doc/posix-functions/opterr.texi (opterr): Likewise.
72286         * doc/posix-functions/optind.texi (optind): Likewise.
72287         * doc/posix-functions/optopt.texi (optopt): Likewise.
72288         * doc/posix-functions/tzname.texi (tzname): Likewise.
72290         openat: update maintainer
72291         * modules/openat (Maintainer): Add myself.
72293         utimens: avoid shadowing warning
72294         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
72295         buffers into one, to avoid shadowing, as well as avoiding a
72296         redundant stat.
72297         Reported by Jim Meyering.
72299         test-dup2: avoid compiler warning
72300         * tests/test-dup2.c (is_inheritable): Only define if used.
72302 2010-01-01  Bruno Haible  <bruno@clisp.org>
72304         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
72305         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
72306         defined, use wctomb instead of wcrtomb.
72308 2010-01-01  Bruno Haible  <bruno@clisp.org>
72310         iconv: Reject native Solaris iconv.
72311         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
72312         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
72314 2009-12-31  Bruno Haible  <bruno@clisp.org>
72316         * tests/test-signal.c (main): Remove test of 'SIG'.
72318 2009-12-31  Bruno Haible  <bruno@clisp.org>
72320         spawn: Fix incomplete fix.
72321         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
72322         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
72323         warnings for GNULIB_POSIXCHECK again.
72324         Reported by Eric Blake.
72326 2009-12-31  Bruno Haible  <bruno@clisp.org>
72328         Avoid namespace pollution on glibc systems.
72329         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
72330         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
72331         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
72332         glibc systems.
72334 2009-12-31  Bruno Haible  <bruno@clisp.org>
72336         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
72337         (gl_REPLACE_WCHAR_H): Turn into a no-op.
72338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
72339         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
72340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
72341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
72342         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
72344 2009-12-31  Bruno Haible  <bruno@clisp.org>
72346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
72347         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
72348         afterwards.
72350 2009-12-31  Bruno Haible  <bruno@clisp.org>
72352         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
72353         SYS_UTSNAME_H.
72355 2009-12-31  Bruno Haible  <bruno@clisp.org>
72357         spawn: Fix misapplied patch.
72358         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
72359         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
72360         warnings for GNULIB_POSIXCHECK.
72362 2009-12-31  Bruno Haible  <bruno@clisp.org>
72364         times: Update after sys_times changed.
72365         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
72366         * modules/times (Files): Add it.
72367         (configure.ac): Invoke gl_FUNC_TIMES.
72369 2009-12-31  Bruno Haible  <bruno@clisp.org>
72371         Use AC_C_INLINE where necessary.
72372         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
72373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72375         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
72376         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72377         * m4/mbiter.m4 (gl_MBITER): Likewise.
72378         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72379         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
72380         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
72381         * modules/u64 (configure.ac): Likewise.
72383 2009-12-31  Bruno Haible  <bruno@clisp.org>
72385         Use AC_C_INLINE instead of module 'inline' where possible.
72386         * modules/inline (Description): Clarify purpose.
72387         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
72388         * modules/count-one-bits (Depends-on): Remove inline.
72389         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
72390         * modules/openat (Depends-on): Remove inline.
72391         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
72392         instead of depending on module 'inline'.
72393         * modules/filevercmp (Depends-on, configure.ac): Likewise.
72394         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
72395         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
72396         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
72397         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
72398         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
72399         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
72400         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
72401         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
72402         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
72403         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
72404         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
72405         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
72406         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
72407         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
72408         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
72409         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
72410         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
72411         Likewise.
72412         * modules/unictype/property-ascii-hex-digit (Depends-on,
72413         configure.ac): Likewise.
72414         * modules/unictype/property-bidi-arabic-digit (Depends-on,
72415         configure.ac): Likewise.
72416         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
72417         configure.ac): Likewise.
72418         * modules/unictype/property-bidi-block-separator (Depends-on,
72419         configure.ac): Likewise.
72420         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
72421         configure.ac): Likewise.
72422         * modules/unictype/property-bidi-common-separator (Depends-on,
72423         configure.ac): Likewise.
72424         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
72425         Likewise.
72426         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
72427         configure.ac): Likewise.
72428         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
72429         configure.ac): Likewise.
72430         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
72431         configure.ac): Likewise.
72432         * modules/unictype/property-bidi-european-digit (Depends-on,
72433         configure.ac): Likewise.
72434         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
72435         configure.ac): Likewise.
72436         * modules/unictype/property-bidi-left-to-right (Depends-on,
72437         configure.ac): Likewise.
72438         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
72439         configure.ac): Likewise.
72440         * modules/unictype/property-bidi-other-neutral (Depends-on,
72441         configure.ac): Likewise.
72442         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
72443         Likewise.
72444         * modules/unictype/property-bidi-segment-separator (Depends-on,
72445         configure.ac): Likewise.
72446         * modules/unictype/property-bidi-whitespace (Depends-on,
72447         configure.ac): Likewise.
72448         * modules/unictype/property-combining (Depends-on, configure.ac):
72449         Likewise.
72450         * modules/unictype/property-composite (Depends-on, configure.ac):
72451         Likewise.
72452         * modules/unictype/property-currency-symbol (Depends-on,
72453         configure.ac): Likewise.
72454         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
72455         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
72456         Likewise.
72457         * modules/unictype/property-default-ignorable-code-point (Depends-on,
72458         configure.ac): Likewise.
72459         * modules/unictype/property-deprecated (Depends-on, configure.ac):
72460         Likewise.
72461         * modules/unictype/property-diacritic (Depends-on, configure.ac):
72462         Likewise.
72463         * modules/unictype/property-extender (Depends-on, configure.ac):
72464         Likewise.
72465         * modules/unictype/property-format-control (Depends-on, configure.ac):
72466         Likewise.
72467         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
72468         Likewise.
72469         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
72470         Likewise.
72471         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
72472         Likewise.
72473         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
72474         Likewise.
72475         * modules/unictype/property-hyphen (Depends-on, configure.ac):
72476         Likewise.
72477         * modules/unictype/property-id-continue (Depends-on, configure.ac):
72478         Likewise.
72479         * modules/unictype/property-id-start (Depends-on, configure.ac):
72480         Likewise.
72481         * modules/unictype/property-ideographic (Depends-on, configure.ac):
72482         Likewise.
72483         * modules/unictype/property-ids-binary-operator (Depends-on,
72484         configure.ac): Likewise.
72485         * modules/unictype/property-ids-trinary-operator (Depends-on,
72486         configure.ac): Likewise.
72487         * modules/unictype/property-ignorable-control (Depends-on,
72488         configure.ac): Likewise.
72489         * modules/unictype/property-iso-control (Depends-on, configure.ac):
72490         Likewise.
72491         * modules/unictype/property-join-control (Depends-on, configure.ac):
72492         Likewise.
72493         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
72494         Likewise.
72495         * modules/unictype/property-line-separator (Depends-on, configure.ac):
72496         Likewise.
72497         * modules/unictype/property-logical-order-exception (Depends-on,
72498         configure.ac): Likewise.
72499         * modules/unictype/property-lowercase (Depends-on, configure.ac):
72500         Likewise.
72501         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
72502         * modules/unictype/property-non-break (Depends-on, configure.ac):
72503         Likewise.
72504         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
72505         Likewise.
72506         * modules/unictype/property-numeric (Depends-on, configure.ac):
72507         Likewise.
72508         * modules/unictype/property-other-alphabetic (Depends-on,
72509         configure.ac): Likewise.
72510         * modules/unictype/property-other-default-ignorable-code-point
72511         (Depends-on, configure.ac): Likewise.
72512         * modules/unictype/property-other-grapheme-extend (Depends-on,
72513         configure.ac): Likewise.
72514         * modules/unictype/property-other-id-continue (Depends-on,
72515         configure.ac): Likewise.
72516         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
72517         Likewise.
72518         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
72519         Likewise.
72520         * modules/unictype/property-other-math (Depends-on, configure.ac):
72521         Likewise.
72522         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
72523         Likewise.
72524         * modules/unictype/property-paired-punctuation (Depends-on,
72525         configure.ac): Likewise.
72526         * modules/unictype/property-paragraph-separator (Depends-on,
72527         configure.ac): Likewise.
72528         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
72529         Likewise.
72530         * modules/unictype/property-pattern-white-space (Depends-on,
72531         configure.ac): Likewise.
72532         * modules/unictype/property-private-use (Depends-on, configure.ac):
72533         Likewise.
72534         * modules/unictype/property-punctuation (Depends-on, configure.ac):
72535         Likewise.
72536         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
72537         Likewise.
72538         * modules/unictype/property-radical (Depends-on, configure.ac):
72539         Likewise.
72540         * modules/unictype/property-sentence-terminal (Depends-on,
72541         configure.ac): Likewise.
72542         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
72543         Likewise.
72544         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
72545         * modules/unictype/property-terminal-punctuation (Depends-on,
72546         configure.ac): Likewise.
72547         * modules/unictype/property-titlecase (Depends-on, configure.ac):
72548         Likewise.
72549         * modules/unictype/property-unassigned-code-value (Depends-on,
72550         configure.ac): Likewise.
72551         * modules/unictype/property-unified-ideograph (Depends-on,
72552         configure.ac): Likewise.
72553         * modules/unictype/property-uppercase (Depends-on, configure.ac):
72554         Likewise.
72555         * modules/unictype/property-variation-selector (Depends-on,
72556         configure.ac): Likewise.
72557         * modules/unictype/property-white-space (Depends-on, configure.ac):
72558         Likewise.
72559         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
72560         Likewise.
72561         * modules/unictype/property-xid-start (Depends-on, configure.ac):
72562         Likewise.
72563         * modules/unictype/property-zero-width (Depends-on, configure.ac):
72564         Likewise.
72565         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
72566         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
72567         Likewise.
72569 2009-12-31  Bruno Haible  <bruno@clisp.org>
72571         Remove unnecessary AC_C_INLINE invocation.
72572         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
72573         since 2009-08-21.
72575 2009-12-31  Jim Meyering  <meyering@redhat.com>
72577         maint.mk: don't require explicit gpg_key_ID in cfg.mk
72578         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
72579         With this change, we can all remove the gpg_key_ID = ... definition
72580         from our respective cfg.mk files.
72582         maint.mk: create announcement template in ~/, not in /tmp
72583         * top/maint.mk (emit_upload_commands): Adjust.
72584         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
72585         Remove temporary file, .ci-msg.
72587 2009-12-31  Eric Blake  <ebb9@byu.net>
72589         link-warning: always build headers with link warnings
72590         * modules/arpa_inet (Makefile.am): Always build replacement
72591         header.
72592         * modules/ctype (Makefile.am): Likewise.
72593         * modules/dirent (Makefile.am): Likewise.
72594         * modules/inttypes (Makefile.am): Likewise.
72595         * modules/langinfo (Makefile.am): Likewise.
72596         * modules/locale (Makefile.am): Likewise.
72597         * modules/spawn (Makefile.am): Likewise.
72598         * modules/sys_file (Makefile.am): Likewise.
72599         * modules/sys_ioctl (Makefile.am): Likewise.
72600         * modules/sys_select (Makefile.am): Likewise.
72601         * modules/sys_socket (Makefile.am): Likewise.
72602         * modules/sys_times (Makefile.am): Likewise.
72603         * modules/sys_utsname (Makefile.am): Likewise.
72604         * modules/sys_wait (Makefile.am): Likewise.
72605         * modules/wchar (Makefile.am): Likewise.
72606         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
72607         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
72608         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
72609         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
72610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
72611         Likewise.
72612         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72613         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
72615         Likewise.
72616         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
72617         Likewise.
72618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
72619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
72620         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
72621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
72624         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
72625         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
72626         (gl_WCHAR_H_DEFAULTS): Likewise.
72628 2009-12-31  Eric Blake  <ebb9@byu.net>
72630         signal, spawn: use link warnings
72631         * lib/signal.in.h (sigset_t): Make unconditional.
72632         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
72633         (sigpending, sigprocmask, sigaction): Add link warnings.
72634         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
72635         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
72636         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
72637         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
72638         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
72639         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
72640         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
72641         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
72642         (posix_spawn_file_actions_destroy)
72643         (posix_spawn_file_actions_addopen)
72644         (posix_spawn_file_actions_addclose)
72645         (posix_spawn_file_actions_adddup2): Likewise.
72646         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
72647         * tests/test-signal.c (main): Enhance test.
72649         spawn: improve wrapper support
72650         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
72651         (gl_SPAWN_H_DEFAULTS): New defaults.
72652         * modules/spawn (Makefile.am): Substitute them.
72653         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
72654         Only declare if missing or broken.
72656         sys_times, sys_utsname: use include_next
72657         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
72658         header.
72659         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
72660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
72661         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
72662         * modules/sys_times (Depends-on): Add include_next.
72663         (Makefile.am): Substitute additional values.
72664         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72665         * lib/sys_times.in.h (includes): Include native header, if
72666         available.
72667         * lib/sys_utsname.in.h (includes): Likewise.
72668         * tests/test-sys_times.c (main): Enhance test.
72670         fdutimensat: revert prior patch
72671         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
72672         utimens.h.
72673         Reported by Bruno Haible.
72675 2009-12-30  Eric Blake  <ebb9@byu.net>
72677         sys_wait: drop link-warning dependency
72678         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
72679         link-warning efforts.
72680         * lib/sys_wait.in.h: Likewise.
72682         fdutimensat: remove bogus dependency
72683         * modules/fdutimensat (Depends-on): Drop inline.
72685         unistd: fix typo
72686         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
72688 2009-12-30  Bruno Haible  <bruno@clisp.org>
72690         Fix compilation error with Solaris cc.
72691         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
72692         * lib/unicase/u16-is-invariant.c: Likewise.
72693         * lib/unicase/u32-is-invariant.c: Likewise.
72694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72696 2009-12-30  Bruno Haible  <bruno@clisp.org>
72698         Fix test crash.
72699         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
72700         locales.
72701         Reported by Simon Josefsson <simon@josefsson.org>.
72703 2009-12-30  Bruno Haible  <bruno@clisp.org>
72705         Fix compilation error on most platforms.
72706         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
72707         Reported by Simon Josefsson <simon@josefsson.org>
72708         and Nelson H. F. Beebe <beebe@math.utah.edu>.
72710 2009-12-30  Eric Blake  <ebb9@byu.net>
72712         futimens, utimensat: work around ntfs-3g bug
72713         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
72714         a ctime bug is present, and expand workaround to cover ntfs-3g.
72715         * lib/utimens.c (fdutimens, lutimens): Likewise.
72716         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
72717         (validate_timespec): Adjust return value.
72718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
72719         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72720         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
72722 2009-12-29  Eric Blake  <ebb9@byu.net>
72724         link-warning: make usage consistent
72725         * modules/ctype (Depends-on): Add link-warning.
72726         (Makefile.am): Update rules accordingly.
72727         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72728         * modules/locale (Depends-on, Makefile.am): Likewise.
72729         * modules/sys_file (Makefile.am): Likewise.
72730         * modules/getopt-posix (Makefile.am): Delete unused link warning
72731         efforts.
72732         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
72733         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
72734         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
72735         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
72737         stdio: remove unused variables
72738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
72739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
72740         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
72742         tests: test more substitute headers
72743         * modules/ctype-tests: New file.
72744         * modules/dirent-tests: Likewise.
72745         * modules/spawn-tests: Likewise.
72746         * modules/sys_file-tests: Likewise.
72747         * modules/sys_ioctl-tests: Likewise.
72748         * modules/sys_wait-tests: Likewise.
72749         * tests/test-ctype.c: Likewise.
72750         * tests/test-dirent.c: Likewise.
72751         * tests/test-spawn.c: Likewise.
72752         * tests/test-sys_file.c: Likewise.
72753         * tests/test-sys_ioctl.c: Likewise.
72754         * tests/test-sys_wait.c: Likewise.
72755         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
72756         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
72757         whether or not flock is in use.
72759         tests: remove License section from module
72760         * modules/arpa_inet-tests: Remove unneeded section.
72761         * modules/byteswap-tests: Likewise.
72762         * modules/ceilf-tests: Likewise.
72763         * modules/ceill-tests: Likewise.
72764         * modules/crypto/des-tests: Likewise.
72765         * modules/crypto/gc-arcfour-tests: Likewise.
72766         * modules/crypto/gc-arctwo-tests: Likewise.
72767         * modules/crypto/gc-des-tests: Likewise.
72768         * modules/crypto/gc-hmac-md5-tests: Likewise.
72769         * modules/crypto/gc-hmac-sha1-tests: Likewise.
72770         * modules/crypto/gc-md2-tests: Likewise.
72771         * modules/crypto/gc-md4-tests: Likewise.
72772         * modules/crypto/gc-md5-tests: Likewise.
72773         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
72774         * modules/crypto/gc-rijndael-tests: Likewise.
72775         * modules/crypto/gc-sha1-tests: Likewise.
72776         * modules/crypto/gc-tests: Likewise.
72777         * modules/crypto/md2-tests: Likewise.
72778         * modules/crypto/md4-tests: Likewise.
72779         * modules/fcntl-h-tests: Likewise.
72780         * modules/floorf-tests: Likewise.
72781         * modules/floorl-tests: Likewise.
72782         * modules/frexp-nolibm-tests: Likewise.
72783         * modules/frexp-tests: Likewise.
72784         * modules/frexpl-nolibm-tests: Likewise.
72785         * modules/frexpl-tests: Likewise.
72786         * modules/getaddrinfo-tests: Likewise.
72787         * modules/inttypes-tests: Likewise.
72788         * modules/isfinite-tests: Likewise.
72789         * modules/isinf-tests: Likewise.
72790         * modules/ldexpl-tests: Likewise.
72791         * modules/locale-tests: Likewise.
72792         * modules/math-tests: Likewise.
72793         * modules/netdb-tests: Likewise.
72794         * modules/netinet_in-tests: Likewise.
72795         * modules/printf-frexp-tests: Likewise.
72796         * modules/printf-frexpl-tests: Likewise.
72797         * modules/priv-set-tests: Likewise.
72798         * modules/random_r-tests: Likewise.
72799         * modules/round-tests: Likewise.
72800         * modules/roundf-tests: Likewise.
72801         * modules/roundl-tests: Likewise.
72802         * modules/search-tests: Likewise.
72803         * modules/select-tests: Likewise.
72804         * modules/signal-tests: Likewise.
72805         * modules/stdbool-tests: Likewise.
72806         * modules/stddef-tests: Likewise.
72807         * modules/stdint-tests: Likewise.
72808         * modules/stdio-tests: Likewise.
72809         * modules/stdlib-tests: Likewise.
72810         * modules/string-tests: Likewise.
72811         * modules/strings-tests: Likewise.
72812         * modules/sys_select-tests: Likewise.
72813         * modules/sys_socket-tests: Likewise.
72814         * modules/sys_stat-tests: Likewise.
72815         * modules/sys_time-tests: Likewise.
72816         * modules/sys_utsname-tests: Likewise.
72817         * modules/sysexits-tests: Likewise.
72818         * modules/time-tests: Likewise.
72819         * modules/trunc-tests: Likewise.
72820         * modules/truncf-tests: Likewise.
72821         * modules/truncl-tests: Likewise.
72822         * modules/tsearch-tests: Likewise.
72823         * modules/unistd-tests: Likewise.
72824         * modules/wchar-tests: Likewise.
72825         * modules/wctype-tests: Likewise.
72827         tests: fix license on several tests
72828         * tests/test-des.c: Update to GPLv3+.
72829         * tests/test-flock.c: Likewise.
72830         * tests/test-fsync.c: Likewise.
72831         * tests/test-futimens.h: Likewise.
72832         * tests/test-gc-arcfour.c: Likewise.
72833         * tests/test-gc-arctwo.c: Likewise.
72834         * tests/test-gc-des.c: Likewise.
72835         * tests/test-gc-hmac-md5.c: Likewise.
72836         * tests/test-gc-hmac-sha1.c: Likewise.
72837         * tests/test-gc-md2.c: Likewise.
72838         * tests/test-gc-md4.c: Likewise.
72839         * tests/test-gc-md5.c: Likewise.
72840         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72841         * tests/test-gc-rijndael.c: Likewise.
72842         * tests/test-gc-sha1.c: Likewise.
72843         * tests/test-gc.c: Likewise.
72844         * tests/test-getcwd.c: Likewise.
72845         * tests/test-link.c: Likewise.
72846         * tests/test-link.h: Likewise.
72847         * tests/test-lutimens.h: Likewise.
72848         * tests/test-md2.c: Likewise.
72849         * tests/test-md4.c: Likewise.
72850         * tests/test-mkdir.h: Likewise.
72851         * tests/test-rename.c: Likewise.
72852         * tests/test-rename.h: Likewise.
72853         * tests/test-safe-alloc.c: Likewise.
72854         * tests/test-utimens-common.h: Likewise.
72855         * tests/test-utimens.h: Likewise.
72857         maint: sync license texts
72858         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
72859         * doc/gpl-3.0.texi: Revert copyright year update.
72860         * doc/lgpl-3.0.texi: Likewise.
72862 2009-12-29  Jim Meyering  <meyering@redhat.com>
72864         update nearly all FSF copyright year lists to include 2009
72865         The files named by the following are exempted:
72866             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
72867               test -f "$dst" && { echo "$dst"; continue; }
72868               test -d "$dst" || continue
72869               echo "$dst"/$(basename "$src")
72870             done > exempt
72871             git ls-files tests/unictype >> exempt
72872         In the remaining files, convert to all-interval notation if
72873         - there is already at least one year interval like 2000-2003
72874         - the file is maintained by me
72875         - the file is in lib/uni*/, where that style already prevails
72876         Otherwise, use update-copyright's default.
72878 2009-12-29  Simon Josefsson  <simon@josefsson.org>
72879         and Eric Blake  <ebb9@byu.net>
72881         tests: don't require debug system() to pass
72882         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
72883         * tests/test-rmdir.h (test_rmdir_func): Likewise.
72884         * tests/test-unlink.h (test_unlink_func): Likewise.
72885         * tests/test-fstatat.c (main): ...into callers.
72886         * tests/test-lstat.c (main): Likewise.
72887         * tests/test-rmdir.c (main): Likewise.
72888         * tests/test-unlink.c (main): Likewise.
72889         * tests/test-unlinkat.c (main): Likewise.
72890         * tests/test-areadlink-with-size.c (main): Don't require a
72891         debug-only system call to pass, aiding cross-testing to mingw.
72892         * tests/test-areadlink.c (main): Likewise.
72893         * tests/test-areadlinkat-with-size.c (main): Likewise.
72894         * tests/test-areadlinkat.c (main): Likewise.
72895         * tests/test-canonicalize-lgpl.c (main): Likewise.
72896         * tests/test-canonicalize.c (main): Likewise.
72897         * tests/test-chown.c (main): Likewise.
72898         * tests/test-fchownat.c (main): Likewise.
72899         * tests/test-lchown.c (main): Likewise.
72900         * tests/test-fdutimensat.c (main): Likewise.
72901         * tests/test-futimens.c (main): Likewise.
72902         * tests/test-link.c (main): Likewise.
72903         * tests/test-linkat.c (main): Likewise.
72904         * tests/test-mkdir.c (main): Likewise.
72905         * tests/test-mkdirat.c (main): Likewise.
72906         * tests/test-mkfifo.c (main): Likewise.
72907         * tests/test-mkfifoat.c (main): Likewise.
72908         * tests/test-mknod.c (main): Likewise.
72909         * tests/test-readlink.c (main): Likewise.
72910         * tests/test-remove.c (main): Likewise.
72911         * tests/test-rename.c (main): Likewise.
72912         * tests/test-renameat.c (main): Likewise.
72913         * tests/test-symlink.c (main): Likewise.
72914         * tests/test-symlinkat.c (main): Likewise.
72915         * tests/test-utimens.c (main): Likewise.
72916         * tests/test-utimensat.c (main): Likewise.
72918 2009-12-29  Simon Josefsson  <simon@josefsson.org>
72920         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
72921         on $(UNUSED_PARAMETER_H) to avoid build failure.
72923 2009-12-28  Jim Meyering  <meyering@redhat.com>
72925         update-copyright: you may specify a max. line length other than 72
72926         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
72928         maint: use consistent FSF copyright line syntax
72929         * lib/posixtm.c: Add missing comma in FSF copyright line.
72930         * lib/posixtm.h: Likewise.
72931         * lib/getugroups.c: Add missing ", Inc.".
72933         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
72934         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
72935         FSF copyright line.  Remove trailing blanks.
72937 2009-12-28  Eric Blake  <ebb9@byu.net>
72939         test-dup2: reduce dependencies
72940         * modules/cloexec (Configure.ac): Set witness.
72941         * modules/dup2-tests (Depends-on): Drop cloexec.
72942         * tests/test-dup2.c (main): Skip portion of test if cloexec module
72943         not present.
72944         Suggested by Bruno Haible.
72946 2009-12-26  Bruno Haible  <bruno@clisp.org>
72948         Remove an unneeded dependency.
72949         * modules/fseterr (Depends-on): Remove dup2.
72951 2009-12-26  Eric Blake  <ebb9@byu.net>
72953         tests: use macros.h in more places
72954         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
72955         (ASSERT_STREAM): Provide default of stderr.
72956         * tests/test-dirent-safer.c: Include macros.h, using alternate
72957         stream for assertions.
72958         * tests/test-dup-safer.c: Likewise.
72959         * tests/test-freopen-safer.c: Likewise.
72960         * tests/test-getopt.c: Likewise.
72961         * tests/test-openat-safer.c: Likewise.
72962         * tests/test-pipe.c: Likewise.
72963         * tests/test-popen-safer.c: Likewise.
72964         * modules/dirent-safer-tests (Files): Include macros.h.
72965         * modules/unistd-safer-tests (Files): Likewise.
72966         * modules/freopen-safer-tests (Files): Likewise.
72967         * modules/getopt-posix-tests (Files): Likewise.
72968         * modules/openat-safer-tests (Files): Likewise.
72969         * modules/pipe-tests (Files): Likewise.
72971 2009-12-26  Bruno Haible  <bruno@clisp.org>
72973         javacomp-script: Portability fix.
72974         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
72975         that it also works on Solaris.
72977 2009-12-26  Bruno Haible  <bruno@clisp.org>
72979         localename: Fix storage allocation of gl_locale_name_thread's result.
72980         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
72981         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
72982         all platforms that have 'uselocale'.
72983         (gl_locale_name_thread_unsafe): New function, extracted from
72984         gl_locale_name_thread.
72985         (gl_locale_name_thread): Call struniq on all platforms that have
72986         'uselocale'.
72987         * tests/test-localename.c (test_locale_name_thread): Check that the
72988         resulting strings are permanently allocated.
72989         * modules/localename-tests (Depends-on): Add strdup.
72991 2009-12-26  Bruno Haible  <bruno@clisp.org>
72993         * tests/test-localename.c (categories): Fill in the strings.
72995 2009-12-26  Jim Meyering  <meyering@redhat.com>
72997         isdir: complete the removal of m4/isdir.m4
72998         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
73000         isdir: clean up, since at least grep still uses it
73001         * lib/isdir.c: Include "isdir.h".
73002         (S_ISDIR): Remove now-unneeded definition.
73003         * modules/isdir (Files): Add lib/isdir.h.
73004         * lib/isdir.h: New file, with declaration.
73005         * m4/isdir.m4: Remove file -- unneeded.
73007 2009-12-25  Bruno Haible  <bruno@clisp.org>
73009         selinux-h: Make generated .h files standalone.
73010         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
73011         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
73012         * lib/se-selinux.in.h: Likewise.
73013         * modules/selinux-h (Depends-on): Add unused-parameter.
73014         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
73015         selinux/selinux.h and selinux/context.h.
73016         Suggested by Eric Blake.
73018 2009-12-25  Bruno Haible  <bruno@clisp.org>
73020         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
73021         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
73022         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
73023         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
73024         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
73026 2009-12-24  Bruno Haible  <bruno@clisp.org>
73028         openat: Fix warning.
73029         * lib/openat-proc.c: Include <unistd.h>.
73031 2009-12-24  Bruno Haible  <bruno@clisp.org>
73033         New module 'unused-parameter'.
73034         * build-aux/unused-parameter.h: New file, extracted from earlier
73035         gnulib-common.m4.
73036         * modules/unused-parameter: New file.
73037         * lib/unistr.h: Include unused-parameter.h.
73038         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
73039         _GL_UNUSED.
73040         * modules/unistr/base (Depends-on): Add unused-parameter.
73042 2009-12-24  Bruno Haible  <bruno@clisp.org>
73044         Add missing dependencies to 'extensions' module.
73045         * m4/extensions.m4: Add comment.
73046         * modules/accept4 (Depends-on): Add extensions.
73047         * modules/dup3 (Depends-on): Likewise.
73048         * modules/fcntl (Depends-on): Likewise.
73049         * modules/futimens (Depends-on): Likewise.
73050         * modules/mknod (Depends-on): Likewise.
73051         * modules/pipe2 (Depends-on): Likewise.
73052         * modules/stat-time (Depends-on): Likewise.
73053         * modules/strcasestr-simple (Depends-on): Likewise.
73054         * modules/strsignal (Depends-on): Likewise.
73055         * modules/utimensat (Depends-on): Likewise.
73056         * modules/localcharset (Depends-on): Likewise. Needed because of
73057         gl_FCNTL_O_FLAGS.
73058         * modules/wcrtomb (Depends-on): Likewise. Needed because of
73059         AC_TYPE_MBSTATE_T.
73060         * modules/wcsnrtombs (Depends-on): Likewise.
73061         * modules/wcsrtombs (Depends-on): Likewise.
73063 2009-12-24  Bruno Haible  <bruno@clisp.org>
73065         binary-io: Avoid gcc warning due to SET_BINARY.
73066         * lib/binary-io.h (SET_BINARY): Cast the result to void.
73067         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
73069 2009-12-24  Bruno Haible  <bruno@clisp.org>
73071         Avoid future namespace pollution on glibc systems.
73072         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
73073         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
73074         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
73075         glibc systems.
73077 2009-12-24  Bruno Haible  <bruno@clisp.org>
73079         Refactor common macros used in tests.
73080         * tests/macros.h: New file.
73081         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
73082         and/or <stdlib.h>, if appropriate.
73083         (ASSERT, SIZEOF): Remove macros.
73084         * tests/test-areadlink-with-size.c: Likewise.
73085         * tests/test-areadlinkat.c: Likewise.
73086         * tests/test-areadlinkat-with-size.c: Likewise.
73087         * tests/test-argmatch.c: Likewise.
73088         * tests/test-argv-iter.c: Likewise.
73089         * tests/test-array-mergesort.c: Likewise.
73090         * tests/test-array_list.c: Likewise.
73091         * tests/test-array_oset.c: Likewise.
73092         * tests/test-avltree_list.c: Likewise.
73093         * tests/test-avltree_oset.c: Likewise.
73094         * tests/test-avltreehash_list.c: Likewise.
73095         * tests/test-base64.c: Likewise.
73096         * tests/test-binary-io.c: Likewise.
73097         * tests/test-bitrotate.c: Likewise.
73098         * tests/test-btowc.c: Likewise.
73099         * tests/test-byteswap.c: Likewise.
73100         * tests/test-c-ctype.c: Likewise.
73101         * tests/test-c-stack.c: Likewise.
73102         * tests/test-c-strcasecmp.c: Likewise.
73103         * tests/test-c-strcasestr.c: Likewise.
73104         * tests/test-c-strncasecmp.c: Likewise.
73105         * tests/test-c-strstr.c: Likewise.
73106         * tests/test-canonicalize-lgpl.c: Likewise.
73107         * tests/test-canonicalize.c: Likewise.
73108         * tests/test-carray_list.c: Likewise.
73109         * tests/test-ceilf1.c: Likewise.
73110         * tests/test-ceilf2.c: Likewise.
73111         * tests/test-ceill.c: Likewise.
73112         * tests/test-chown.c: Likewise.
73113         * tests/test-cloexec.c: Likewise.
73114         * tests/test-copy-acl.c: Likewise.
73115         * tests/test-copy-file.c: Likewise.
73116         * tests/test-count-one-bits.c: Likewise.
73117         * tests/test-dprintf-posix.c: Likewise.
73118         * tests/test-dup2.c: Likewise.
73119         * tests/test-dup3.c: Likewise.
73120         * tests/test-duplocale.c: Likewise.
73121         * tests/test-fbufmode.c: Likewise.
73122         * tests/test-fchdir.c: Likewise.
73123         * tests/test-fchownat.c: Likewise.
73124         * tests/test-fcntl-safer.c: Likewise.
73125         * tests/test-fcntl.c: Likewise.
73126         * tests/test-fdopendir.c: Likewise.
73127         * tests/test-fdutimensat.c: Likewise.
73128         * tests/test-fflush2.c: Likewise.
73129         * tests/test-file-has-acl.c: Likewise.
73130         * tests/test-filevercmp.c: Likewise.
73131         * tests/test-flock.c: Likewise.
73132         * tests/test-floorf1.c: Likewise.
73133         * tests/test-floorf2.c: Likewise.
73134         * tests/test-floorl.c: Likewise.
73135         * tests/test-fnmatch.c: Likewise.
73136         * tests/test-fopen.h: Likewise.
73137         * tests/test-fpending.c: Likewise.
73138         * tests/test-fprintf-posix.c: Likewise.
73139         * tests/test-fpurge.c: Likewise.
73140         * tests/test-freadable.c: Likewise.
73141         * tests/test-freadahead.c: Likewise.
73142         * tests/test-freading.c: Likewise.
73143         * tests/test-freadptr.c: Likewise.
73144         * tests/test-freadptr2.c: Likewise.
73145         * tests/test-freadseek.c: Likewise.
73146         * tests/test-freopen.c: Likewise.
73147         * tests/test-frexp.c: Likewise.
73148         * tests/test-frexpl.c: Likewise.
73149         * tests/test-fseek.c: Likewise.
73150         * tests/test-fseeko.c: Likewise.
73151         * tests/test-fstatat.c: Likewise.
73152         * tests/test-fstrcmp.c: Likewise.
73153         * tests/test-fsync.c: Likewise.
73154         * tests/test-ftell.c: Likewise.
73155         * tests/test-ftello.c: Likewise.
73156         * tests/test-func.c: Likewise.
73157         * tests/test-futimens.c: Likewise.
73158         * tests/test-fwritable.c: Likewise.
73159         * tests/test-fwriting.c: Likewise.
73160         * tests/test-getcwd.c: Likewise.
73161         * tests/test-getdate.c: Likewise.
73162         * tests/test-getdelim.c: Likewise.
73163         * tests/test-getdtablesize.c: Likewise.
73164         * tests/test-getgroups.c: Likewise.
73165         * tests/test-getline.c: Likewise.
73166         * tests/test-getndelim2.c: Likewise.
73167         * tests/test-glob.c: Likewise.
73168         * tests/test-hash.c: Likewise.
73169         * tests/test-i-ring.c: Likewise.
73170         * tests/test-iconv-utf.c: Likewise.
73171         * tests/test-iconv.c: Likewise.
73172         * tests/test-idpriv-drop.c: Likewise.
73173         * tests/test-idpriv-droptemp.c: Likewise.
73174         * tests/test-inet_ntop.c: Likewise.
73175         * tests/test-inet_pton.c: Likewise.
73176         * tests/test-isblank.c: Likewise.
73177         * tests/test-isfinite.c: Likewise.
73178         * tests/test-isinf.c: Likewise.
73179         * tests/test-isnan.c: Likewise.
73180         * tests/test-isnand.h: Likewise.
73181         * tests/test-isnanf.h: Likewise.
73182         * tests/test-isnanl.h: Likewise.
73183         * tests/test-lchown.c: Likewise.
73184         * tests/test-ldexpl.c: Likewise.
73185         * tests/test-link.c: Likewise.
73186         * tests/test-linkat.c: Likewise.
73187         * tests/test-linked_list.c: Likewise.
73188         * tests/test-linkedhash_list.c: Likewise.
73189         * tests/test-localename.c: Likewise.
73190         * tests/test-lseek.c: Likewise.
73191         * tests/test-lstat.c: Likewise.
73192         * tests/test-mbmemcasecmp.c: Likewise.
73193         * tests/test-mbmemcasecoll.c: Likewise.
73194         * tests/test-mbrtowc.c: Likewise.
73195         * tests/test-mbscasecmp.c: Likewise.
73196         * tests/test-mbscasestr1.c: Likewise.
73197         * tests/test-mbscasestr2.c: Likewise.
73198         * tests/test-mbscasestr3.c: Likewise.
73199         * tests/test-mbscasestr4.c: Likewise.
73200         * tests/test-mbschr.c: Likewise.
73201         * tests/test-mbscspn.c: Likewise.
73202         * tests/test-mbsinit.c: Likewise.
73203         * tests/test-mbsncasecmp.c: Likewise.
73204         * tests/test-mbsnrtowcs.c: Likewise.
73205         * tests/test-mbspbrk.c: Likewise.
73206         * tests/test-mbspcasecmp.c: Likewise.
73207         * tests/test-mbsrchr.c: Likewise.
73208         * tests/test-mbsrtowcs.c: Likewise.
73209         * tests/test-mbsspn.c: Likewise.
73210         * tests/test-mbsstr1.c: Likewise.
73211         * tests/test-mbsstr2.c: Likewise.
73212         * tests/test-mbsstr3.c: Likewise.
73213         * tests/test-memchr.c: Likewise.
73214         * tests/test-memchr2.c: Likewise.
73215         * tests/test-memcmp.c: Likewise.
73216         * tests/test-memmem.c: Likewise.
73217         * tests/test-memrchr.c: Likewise.
73218         * tests/test-mkdir.c: Likewise.
73219         * tests/test-mkdirat.c: Likewise.
73220         * tests/test-mkfifo.c: Likewise.
73221         * tests/test-mkfifoat.c: Likewise.
73222         * tests/test-mknod.c: Likewise.
73223         * tests/test-nanosleep.c: Likewise.
73224         * tests/test-nl_langinfo.c: Likewise.
73225         * tests/test-obstack-printf.c: Likewise.
73226         * tests/test-open.c: Likewise.
73227         * tests/test-openat.c: Likewise.
73228         * tests/test-pipe-filter-gi1.c: Likewise.
73229         * tests/test-pipe-filter-gi2-main.c: Likewise.
73230         * tests/test-pipe-filter-ii1.c: Likewise.
73231         * tests/test-pipe-filter-ii2-main.c: Likewise.
73232         * tests/test-pipe2.c: Likewise.
73233         * tests/test-popen.h: Likewise.
73234         * tests/test-posixtm.c: Likewise.
73235         * tests/test-pread.c: Likewise.
73236         * tests/test-printf-frexp.c: Likewise.
73237         * tests/test-printf-frexpl.c: Likewise.
73238         * tests/test-printf-posix.c: Likewise.
73239         * tests/test-priv-set.c: Likewise.
73240         * tests/test-quotearg.c: Likewise.
73241         * tests/test-random_r.c: Likewise.
73242         * tests/test-rawmemchr.c: Likewise.
73243         * tests/test-rbtree_list.c: Likewise.
73244         * tests/test-rbtree_oset.c: Likewise.
73245         * tests/test-rbtreehash_list.c: Likewise.
73246         * tests/test-readlink.c: Likewise.
73247         * tests/test-remove.c: Likewise.
73248         * tests/test-rename.c: Likewise.
73249         * tests/test-renameat.c: Likewise.
73250         * tests/test-rmdir.c: Likewise.
73251         * tests/test-round1.c: Likewise.
73252         * tests/test-roundf1.c: Likewise.
73253         * tests/test-roundl.c: Likewise.
73254         * tests/test-safe-alloc.c: Likewise.
73255         * tests/test-sameacls.c: Likewise.
73256         * tests/test-set-mode-acl.c: Likewise.
73257         * tests/test-setenv.c: Likewise.
73258         * tests/test-sigaction.c: Likewise.
73259         * tests/test-signbit.c: Likewise.
73260         * tests/test-sleep.c: Likewise.
73261         * tests/test-snprintf-posix.c: Likewise.
73262         * tests/test-snprintf.c: Likewise.
73263         * tests/test-sprintf-posix.c: Likewise.
73264         * tests/test-stat-time.c: Likewise.
73265         * tests/test-stat.c: Likewise.
73266         * tests/test-strcasestr.c: Likewise.
73267         * tests/test-strchrnul.c: Likewise.
73268         * tests/test-strerror.c: Likewise.
73269         * tests/test-striconv.c: Likewise.
73270         * tests/test-striconveh.c: Likewise.
73271         * tests/test-striconveha.c: Likewise.
73272         * tests/test-strsignal.c: Likewise.
73273         * tests/test-strstr.c: Likewise.
73274         * tests/test-strtod.c: Likewise.
73275         * tests/test-strverscmp.c: Likewise.
73276         * tests/test-symlink.c: Likewise.
73277         * tests/test-symlinkat.c: Likewise.
73278         * tests/test-trunc1.c: Likewise.
73279         * tests/test-trunc2.c: Likewise.
73280         * tests/test-truncf1.c: Likewise.
73281         * tests/test-truncf2.c: Likewise.
73282         * tests/test-truncl.c: Likewise.
73283         * tests/test-uname.c: Likewise.
73284         * tests/test-unlink.c: Likewise.
73285         * tests/test-unlinkat.c: Likewise.
73286         * tests/test-unsetenv.c: Likewise.
73287         * tests/test-usleep.c: Likewise.
73288         * tests/test-utimens.c: Likewise.
73289         * tests/test-utimensat.c: Likewise.
73290         * tests/test-vasnprintf-posix.c: Likewise.
73291         * tests/test-vasnprintf-posix2.c: Likewise.
73292         * tests/test-vasnprintf.c: Likewise.
73293         * tests/test-vasprintf-posix.c: Likewise.
73294         * tests/test-vasprintf.c: Likewise.
73295         * tests/test-vdprintf-posix.c: Likewise.
73296         * tests/test-vfprintf-posix.c: Likewise.
73297         * tests/test-vprintf-posix.c: Likewise.
73298         * tests/test-vsnprintf-posix.c: Likewise.
73299         * tests/test-vsnprintf.c: Likewise.
73300         * tests/test-vsprintf-posix.c: Likewise.
73301         * tests/test-wcrtomb.c: Likewise.
73302         * tests/test-wcsnrtombs.c: Likewise.
73303         * tests/test-wcsrtombs.c: Likewise.
73304         * tests/test-wctype.c: Likewise.
73305         * tests/test-wcwidth.c: Likewise.
73306         * tests/test-xfprintf-posix.c: Likewise.
73307         * tests/test-xmemdup0.c: Likewise.
73308         * tests/test-xprintf-posix.c: Likewise.
73309         * tests/test-xvasprintf.c: Likewise.
73310         * tests/unicase/test-locale-language.c: Likewise.
73311         * tests/unicase/test-mapping-part1.h: Likewise.
73312         * tests/unicase/test-predicate-part1.h: Likewise.
73313         * tests/unicase/test-u8-casecmp.c: Likewise.
73314         * tests/unicase/test-u8-casecoll.c: Likewise.
73315         * tests/unicase/test-u8-casefold.c: Likewise.
73316         * tests/unicase/test-u8-is-cased.c: Likewise.
73317         * tests/unicase/test-u8-is-casefolded.c: Likewise.
73318         * tests/unicase/test-u8-is-lowercase.c: Likewise.
73319         * tests/unicase/test-u8-is-titlecase.c: Likewise.
73320         * tests/unicase/test-u8-is-uppercase.c: Likewise.
73321         * tests/unicase/test-u8-tolower.c: Likewise.
73322         * tests/unicase/test-u8-totitle.c: Likewise.
73323         * tests/unicase/test-u8-toupper.c: Likewise.
73324         * tests/unicase/test-u16-casecmp.c: Likewise.
73325         * tests/unicase/test-u16-casecoll.c: Likewise.
73326         * tests/unicase/test-u16-casefold.c: Likewise.
73327         * tests/unicase/test-u16-is-cased.c: Likewise.
73328         * tests/unicase/test-u16-is-casefolded.c: Likewise.
73329         * tests/unicase/test-u16-is-lowercase.c: Likewise.
73330         * tests/unicase/test-u16-is-titlecase.c: Likewise.
73331         * tests/unicase/test-u16-is-uppercase.c: Likewise.
73332         * tests/unicase/test-u16-tolower.c: Likewise.
73333         * tests/unicase/test-u16-totitle.c: Likewise.
73334         * tests/unicase/test-u16-toupper.c: Likewise.
73335         * tests/unicase/test-u32-casecmp.c: Likewise.
73336         * tests/unicase/test-u32-casecoll.c: Likewise.
73337         * tests/unicase/test-u32-casefold.c: Likewise.
73338         * tests/unicase/test-u32-is-cased.c: Likewise.
73339         * tests/unicase/test-u32-is-casefolded.c: Likewise.
73340         * tests/unicase/test-u32-is-lowercase.c: Likewise.
73341         * tests/unicase/test-u32-is-titlecase.c: Likewise.
73342         * tests/unicase/test-u32-is-uppercase.c: Likewise.
73343         * tests/unicase/test-u32-tolower.c: Likewise.
73344         * tests/unicase/test-u32-totitle.c: Likewise.
73345         * tests/unicase/test-u32-toupper.c: Likewise.
73346         * tests/unicase/test-ulc-casecmp.c: Likewise.
73347         * tests/unicase/test-ulc-casecoll.c: Likewise.
73348         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
73349         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
73350         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
73351         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
73352         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
73353         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
73354         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
73355         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
73356         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
73357         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
73358         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
73359         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
73360         * tests/unictype/test-bidi_byname.c: Likewise.
73361         * tests/unictype/test-bidi_name.c: Likewise.
73362         * tests/unictype/test-bidi_of.c: Likewise.
73363         * tests/unictype/test-bidi_test.c: Likewise.
73364         * tests/unictype/test-block_list.c: Likewise.
73365         * tests/unictype/test-block_of.c: Likewise.
73366         * tests/unictype/test-block_test.c: Likewise.
73367         * tests/unictype/test-categ_and.c: Likewise.
73368         * tests/unictype/test-categ_and_not.c: Likewise.
73369         * tests/unictype/test-categ_byname.c: Likewise.
73370         * tests/unictype/test-categ_name.c: Likewise.
73371         * tests/unictype/test-categ_none.c: Likewise.
73372         * tests/unictype/test-categ_of.c: Likewise.
73373         * tests/unictype/test-categ_or.c: Likewise.
73374         * tests/unictype/test-categ_test_withtable.c: Likewise.
73375         * tests/unictype/test-combining.c: Likewise.
73376         * tests/unictype/test-decdigit.c: Likewise.
73377         * tests/unictype/test-digit.c: Likewise.
73378         * tests/unictype/test-mirror.c: Likewise.
73379         * tests/unictype/test-numeric.c: Likewise.
73380         * tests/unictype/test-pr_byname.c: Likewise.
73381         * tests/unictype/test-pr_test.c: Likewise.
73382         * tests/unictype/test-predicate-part1.h: Likewise.
73383         * tests/unictype/test-scripts.c: Likewise.
73384         * tests/unictype/test-sy_c_ident.c: Likewise.
73385         * tests/unictype/test-sy_java_ident.c: Likewise.
73386         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
73387         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
73388         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
73389         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
73390         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
73391         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
73392         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
73393         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
73394         * tests/uninorm/test-canonical-decomposition.c: Likewise.
73395         * tests/uninorm/test-compat-decomposition.c: Likewise.
73396         * tests/uninorm/test-composition.c: Likewise.
73397         * tests/uninorm/test-decomposing-form.c: Likewise.
73398         * tests/uninorm/test-decomposition.c: Likewise.
73399         * tests/uninorm/test-u8-nfc.c: Likewise.
73400         * tests/uninorm/test-u8-nfd.c: Likewise.
73401         * tests/uninorm/test-u8-nfkc.c: Likewise.
73402         * tests/uninorm/test-u8-nfkd.c: Likewise.
73403         * tests/uninorm/test-u8-normcmp.c: Likewise.
73404         * tests/uninorm/test-u8-normcoll.c: Likewise.
73405         * tests/uninorm/test-u16-nfc.c: Likewise.
73406         * tests/uninorm/test-u16-nfd.c: Likewise.
73407         * tests/uninorm/test-u16-nfkc.c: Likewise.
73408         * tests/uninorm/test-u16-nfkd.c: Likewise.
73409         * tests/uninorm/test-u16-normcmp.c: Likewise.
73410         * tests/uninorm/test-u16-normcoll.c: Likewise.
73411         * tests/uninorm/test-u32-nfc.c: Likewise.
73412         * tests/uninorm/test-u32-nfd.c: Likewise.
73413         * tests/uninorm/test-u32-nfkc.c: Likewise.
73414         * tests/uninorm/test-u32-nfkd.c: Likewise.
73415         * tests/uninorm/test-u32-normalize-big.c: Likewise.
73416         * tests/uninorm/test-u32-normcmp.c: Likewise.
73417         * tests/uninorm/test-u32-normcoll.c: Likewise.
73418         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
73419         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
73420         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
73421         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
73422         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
73423         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
73424         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
73425         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
73426         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
73427         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
73428         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
73429         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
73430         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
73431         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
73432         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
73433         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
73434         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
73435         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
73436         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
73437         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
73438         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
73439         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
73440         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
73441         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
73442         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
73443         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
73444         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
73445         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
73446         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
73447         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
73448         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
73449         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
73450         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
73451         * tests/uniwidth/test-u8-strwidth.c: Likewise.
73452         * tests/uniwidth/test-u8-width.c: Likewise.
73453         * tests/uniwidth/test-u16-strwidth.c: Likewise.
73454         * tests/uniwidth/test-u16-width.c: Likewise.
73455         * tests/uniwidth/test-u32-strwidth.c: Likewise.
73456         * tests/uniwidth/test-u32-width.c: Likewise.
73457         * tests/uniwidth/test-uc_width.c: Likewise.
73458         * tests/uniwidth/test-uc_width2.c: Likewise.
73459         * modules/acl-tests (Files): Add tests/macros.h.
73460         * modules/areadlink-tests (Files): Likewise.
73461         * modules/areadlink-with-size-tests (Files): Likewise.
73462         * modules/areadlinkat-tests (Files): Likewise.
73463         * modules/areadlinkat-with-size-tests (Files): Likewise.
73464         * modules/argmatch-tests (Files): Likewise.
73465         * modules/argv-iter-tests (Files): Likewise.
73466         * modules/array-list-tests (Files): Likewise.
73467         * modules/array-mergesort-tests (Files): Likewise.
73468         * modules/array-oset-tests (Files): Likewise.
73469         * modules/avltree-list-tests (Files): Likewise.
73470         * modules/avltree-oset-tests (Files): Likewise.
73471         * modules/avltreehash-list-tests (Files): Likewise.
73472         * modules/base64-tests (Files): Likewise.
73473         * modules/binary-io-tests (Files): Likewise.
73474         * modules/bitrotate-tests (Files): Likewise.
73475         * modules/btowc-tests (Files): Likewise.
73476         * modules/byteswap-tests (Files): Likewise.
73477         * modules/c-ctype-tests (Files): Likewise.
73478         * modules/c-stack-tests (Files): Likewise.
73479         * modules/c-strcase-tests (Files): Likewise.
73480         * modules/c-strcasestr-tests (Files): Likewise.
73481         * modules/c-strstr-tests (Files): Likewise.
73482         * modules/canonicalize-lgpl-tests (Files): Likewise.
73483         * modules/canonicalize-tests (Files): Likewise.
73484         * modules/carray-list-tests (Files): Likewise.
73485         * modules/ceilf-tests (Files): Likewise.
73486         * modules/ceill-tests (Files): Likewise.
73487         * modules/chown-tests (Files): Likewise.
73488         * modules/cloexec-tests (Files): Likewise.
73489         * modules/copy-file-tests (Files): Likewise.
73490         * modules/count-one-bits-tests (Files): Likewise.
73491         * modules/dprintf-posix-tests (Files): Likewise.
73492         * modules/dup2-tests (Files): Likewise.
73493         * modules/dup3-tests (Files): Likewise.
73494         * modules/duplocale-tests (Files): Likewise.
73495         * modules/fbufmode-tests (Files): Likewise.
73496         * modules/fchdir-tests (Files): Likewise.
73497         * modules/fcntl-safer-tests (Files): Likewise.
73498         * modules/fcntl-tests (Files): Likewise.
73499         * modules/fdopendir-tests (Files): Likewise.
73500         * modules/fdutimensat-tests (Files): Likewise.
73501         * modules/fflush-tests (Files): Likewise.
73502         * modules/filevercmp-tests (Files): Likewise.
73503         * modules/flock-tests (Files): Likewise.
73504         * modules/floorf-tests (Files): Likewise.
73505         * modules/floorl-tests (Files): Likewise.
73506         * modules/fnmatch-tests (Files): Likewise.
73507         * modules/fopen-safer-tests (Files): Likewise.
73508         * modules/fopen-tests (Files): Likewise.
73509         * modules/fpending-tests (Files): Likewise.
73510         * modules/fprintf-posix-tests (Files): Likewise.
73511         * modules/fpurge-tests (Files): Likewise.
73512         * modules/freadable-tests (Files): Likewise.
73513         * modules/freadahead-tests (Files): Likewise.
73514         * modules/freading-tests (Files): Likewise.
73515         * modules/freadptr-tests (Files): Likewise.
73516         * modules/freadseek-tests (Files): Likewise.
73517         * modules/freopen-tests (Files): Likewise.
73518         * modules/frexp-nolibm-tests (Files): Likewise.
73519         * modules/frexp-tests (Files): Likewise.
73520         * modules/frexpl-nolibm-tests (Files): Likewise.
73521         * modules/frexpl-tests (Files): Likewise.
73522         * modules/fseek-tests (Files): Likewise.
73523         * modules/fseeko-tests (Files): Likewise.
73524         * modules/fstrcmp-tests (Files): Likewise.
73525         * modules/fsync-tests (Files): Likewise.
73526         * modules/ftell-tests (Files): Likewise.
73527         * modules/ftello-tests (Files): Likewise.
73528         * modules/func-tests (Files): Likewise.
73529         * modules/futimens-tests (Files): Likewise.
73530         * modules/fwritable-tests (Files): Likewise.
73531         * modules/fwriting-tests (Files): Likewise.
73532         * modules/getcwd-tests (Files): Likewise.
73533         * modules/getdate-tests (Files): Likewise.
73534         * modules/getdelim-tests (Files): Likewise.
73535         * modules/getdtablesize-tests (Files): Likewise.
73536         * modules/getgroups-tests (Files): Likewise.
73537         * modules/getline-tests (Files): Likewise.
73538         * modules/getndelim2-tests (Files): Likewise.
73539         * modules/glob-tests (Files): Likewise.
73540         * modules/hash-tests (Files): Likewise.
73541         * modules/i-ring-tests (Files): Likewise.
73542         * modules/iconv-tests (Files): Likewise.
73543         * modules/iconv_open-utf-tests (Files): Likewise.
73544         * modules/idpriv-drop-tests (Files): Likewise.
73545         * modules/idpriv-droptemp-tests (Files): Likewise.
73546         * modules/inet_ntop-tests (Files): Likewise.
73547         * modules/inet_pton-tests (Files): Likewise.
73548         * modules/isblank-tests (Files): Likewise.
73549         * modules/isfinite-tests (Files): Likewise.
73550         * modules/isinf-tests (Files): Likewise.
73551         * modules/isnan-tests (Files): Likewise.
73552         * modules/isnand-nolibm-tests (Files): Likewise.
73553         * modules/isnand-tests (Files): Likewise.
73554         * modules/isnanf-nolibm-tests (Files): Likewise.
73555         * modules/isnanf-tests (Files): Likewise.
73556         * modules/isnanl-nolibm-tests (Files): Likewise.
73557         * modules/isnanl-tests (Files): Likewise.
73558         * modules/lchown-tests (Files): Likewise.
73559         * modules/ldexpl-tests (Files): Likewise.
73560         * modules/link-tests (Files): Likewise.
73561         * modules/linkat-tests (Files): Likewise.
73562         * modules/linked-list-tests (Files): Likewise.
73563         * modules/linkedhash-list-tests (Files): Likewise.
73564         * modules/localename-tests (Files): Likewise.
73565         * modules/lseek-tests (Files): Likewise.
73566         * modules/lstat-tests (Files): Likewise.
73567         * modules/mbmemcasecmp-tests (Files): Likewise.
73568         * modules/mbmemcasecoll-tests (Files): Likewise.
73569         * modules/mbrtowc-tests (Files): Likewise.
73570         * modules/mbscasecmp-tests (Files): Likewise.
73571         * modules/mbscasestr-tests (Files): Likewise.
73572         * modules/mbschr-tests (Files): Likewise.
73573         * modules/mbscspn-tests (Files): Likewise.
73574         * modules/mbsinit-tests (Files): Likewise.
73575         * modules/mbsncasecmp-tests (Files): Likewise.
73576         * modules/mbsnrtowcs-tests (Files): Likewise.
73577         * modules/mbspbrk-tests (Files): Likewise.
73578         * modules/mbspcasecmp-tests (Files): Likewise.
73579         * modules/mbsrchr-tests (Files): Likewise.
73580         * modules/mbsrtowcs-tests (Files): Likewise.
73581         * modules/mbsspn-tests (Files): Likewise.
73582         * modules/mbsstr-tests (Files): Likewise.
73583         * modules/memchr-tests (Files): Likewise.
73584         * modules/memchr2-tests (Files): Likewise.
73585         * modules/memcmp-tests (Files): Likewise.
73586         * modules/memmem-tests (Files): Likewise.
73587         * modules/memrchr-tests (Files): Likewise.
73588         * modules/mkdir-tests (Files): Likewise.
73589         * modules/mkfifo-tests (Files): Likewise.
73590         * modules/mkfifoat-tests (Files): Likewise.
73591         * modules/mknod-tests (Files): Likewise.
73592         * modules/nanosleep-tests (Files): Likewise.
73593         * modules/nl_langinfo-tests (Files): Likewise.
73594         * modules/obstack-printf-tests (Files): Likewise.
73595         * modules/open-tests (Files): Likewise.
73596         * modules/openat-tests (Files): Likewise.
73597         * modules/pipe-filter-gi-tests (Files): Likewise.
73598         * modules/pipe-filter-ii-tests (Files): Likewise.
73599         * modules/pipe2-tests (Files): Likewise.
73600         * modules/popen-safer-tests (Files): Likewise.
73601         * modules/popen-tests (Files): Likewise.
73602         * modules/posixtm-tests (Files): Likewise.
73603         * modules/pread-tests (Files): Likewise.
73604         * modules/printf-frexp-tests (Files): Likewise.
73605         * modules/printf-frexpl-tests (Files): Likewise.
73606         * modules/printf-posix-tests (Files): Likewise.
73607         * modules/priv-set-tests (Files): Likewise.
73608         * modules/quotearg-tests (Files): Likewise.
73609         * modules/random_r-tests (Files): Likewise.
73610         * modules/rawmemchr-tests (Files): Likewise.
73611         * modules/rbtree-list-tests (Files): Likewise.
73612         * modules/rbtree-oset-tests (Files): Likewise.
73613         * modules/rbtreehash-list-tests (Files): Likewise.
73614         * modules/readlink-tests (Files): Likewise.
73615         * modules/remove-tests (Files): Likewise.
73616         * modules/rename-tests (Files): Likewise.
73617         * modules/renameat-tests (Files): Likewise.
73618         * modules/rmdir-tests (Files): Likewise.
73619         * modules/round-tests (Files): Likewise.
73620         * modules/roundf-tests (Files): Likewise.
73621         * modules/roundl-tests (Files): Likewise.
73622         * modules/safe-alloc-tests (Files): Likewise.
73623         * modules/setenv-tests (Files): Likewise.
73624         * modules/sigaction-tests (Files): Likewise.
73625         * modules/signbit-tests (Files): Likewise.
73626         * modules/sleep-tests (Files): Likewise.
73627         * modules/snprintf-posix-tests (Files): Likewise.
73628         * modules/snprintf-tests (Files): Likewise.
73629         * modules/sprintf-posix-tests (Files): Likewise.
73630         * modules/stat-tests (Files): Likewise.
73631         * modules/stat-time-tests (Files): Likewise.
73632         * modules/strcasestr-tests (Files): Likewise.
73633         * modules/strchrnul-tests (Files): Likewise.
73634         * modules/strerror-tests (Files): Likewise.
73635         * modules/striconv-tests (Files): Likewise.
73636         * modules/striconveh-tests (Files): Likewise.
73637         * modules/striconveha-tests (Files): Likewise.
73638         * modules/strsignal-tests (Files): Likewise.
73639         * modules/strstr-tests (Files): Likewise.
73640         * modules/strtod-tests (Files): Likewise.
73641         * modules/strverscmp-tests (Files): Likewise.
73642         * modules/symlink-tests (Files): Likewise.
73643         * modules/symlinkat-tests (Files): Likewise.
73644         * modules/trunc-tests (Files): Likewise.
73645         * modules/truncf-tests (Files): Likewise.
73646         * modules/truncl-tests (Files): Likewise.
73647         * modules/uname-tests (Files): Likewise.
73648         * modules/unicase/cased-tests (Files): Likewise.
73649         * modules/unicase/ignorable-tests (Files): Likewise.
73650         * modules/unicase/locale-language-tests (Files): Likewise.
73651         * modules/unicase/tolower-tests (Files): Likewise.
73652         * modules/unicase/totitle-tests (Files): Likewise.
73653         * modules/unicase/toupper-tests (Files): Likewise.
73654         * modules/unicase/u8-casecmp-tests (Files): Likewise.
73655         * modules/unicase/u8-casecoll-tests (Files): Likewise.
73656         * modules/unicase/u8-casefold-tests (Files): Likewise.
73657         * modules/unicase/u8-is-cased-tests (Files): Likewise.
73658         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
73659         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
73660         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
73661         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
73662         * modules/unicase/u8-tolower-tests (Files): Likewise.
73663         * modules/unicase/u8-totitle-tests (Files): Likewise.
73664         * modules/unicase/u8-toupper-tests (Files): Likewise.
73665         * modules/unicase/u16-casecmp-tests (Files): Likewise.
73666         * modules/unicase/u16-casecoll-tests (Files): Likewise.
73667         * modules/unicase/u16-casefold-tests (Files): Likewise.
73668         * modules/unicase/u16-is-cased-tests (Files): Likewise.
73669         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
73670         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
73671         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
73672         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
73673         * modules/unicase/u16-tolower-tests (Files): Likewise.
73674         * modules/unicase/u16-totitle-tests (Files): Likewise.
73675         * modules/unicase/u16-toupper-tests (Files): Likewise.
73676         * modules/unicase/u32-casecmp-tests (Files): Likewise.
73677         * modules/unicase/u32-casecoll-tests (Files): Likewise.
73678         * modules/unicase/u32-casefold-tests (Files): Likewise.
73679         * modules/unicase/u32-is-cased-tests (Files): Likewise.
73680         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
73681         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
73682         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
73683         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
73684         * modules/unicase/u32-tolower-tests (Files): Likewise.
73685         * modules/unicase/u32-totitle-tests (Files): Likewise.
73686         * modules/unicase/u32-toupper-tests (Files): Likewise.
73687         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
73688         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
73689         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
73690         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
73691         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
73692         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
73693         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
73694         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
73695         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
73696         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
73697         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
73698         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
73699         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
73700         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
73701         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
73702         * modules/unictype/bidicategory-name-tests (Files): Likewise.
73703         * modules/unictype/bidicategory-of-tests (Files): Likewise.
73704         * modules/unictype/bidicategory-test-tests (Files): Likewise.
73705         * modules/unictype/block-list-tests (Files): Likewise.
73706         * modules/unictype/block-of-tests (Files): Likewise.
73707         * modules/unictype/block-test-tests (Files): Likewise.
73708         * modules/unictype/category-C-tests (Files): Likewise.
73709         * modules/unictype/category-Cc-tests (Files): Likewise.
73710         * modules/unictype/category-Cf-tests (Files): Likewise.
73711         * modules/unictype/category-Cn-tests (Files): Likewise.
73712         * modules/unictype/category-Co-tests (Files): Likewise.
73713         * modules/unictype/category-Cs-tests (Files): Likewise.
73714         * modules/unictype/category-L-tests (Files): Likewise.
73715         * modules/unictype/category-Ll-tests (Files): Likewise.
73716         * modules/unictype/category-Lm-tests (Files): Likewise.
73717         * modules/unictype/category-Lo-tests (Files): Likewise.
73718         * modules/unictype/category-Lt-tests (Files): Likewise.
73719         * modules/unictype/category-Lu-tests (Files): Likewise.
73720         * modules/unictype/category-M-tests (Files): Likewise.
73721         * modules/unictype/category-Mc-tests (Files): Likewise.
73722         * modules/unictype/category-Me-tests (Files): Likewise.
73723         * modules/unictype/category-Mn-tests (Files): Likewise.
73724         * modules/unictype/category-N-tests (Files): Likewise.
73725         * modules/unictype/category-Nd-tests (Files): Likewise.
73726         * modules/unictype/category-Nl-tests (Files): Likewise.
73727         * modules/unictype/category-No-tests (Files): Likewise.
73728         * modules/unictype/category-P-tests (Files): Likewise.
73729         * modules/unictype/category-Pc-tests (Files): Likewise.
73730         * modules/unictype/category-Pd-tests (Files): Likewise.
73731         * modules/unictype/category-Pe-tests (Files): Likewise.
73732         * modules/unictype/category-Pf-tests (Files): Likewise.
73733         * modules/unictype/category-Pi-tests (Files): Likewise.
73734         * modules/unictype/category-Po-tests (Files): Likewise.
73735         * modules/unictype/category-Ps-tests (Files): Likewise.
73736         * modules/unictype/category-S-tests (Files): Likewise.
73737         * modules/unictype/category-Sc-tests (Files): Likewise.
73738         * modules/unictype/category-Sk-tests (Files): Likewise.
73739         * modules/unictype/category-Sm-tests (Files): Likewise.
73740         * modules/unictype/category-So-tests (Files): Likewise.
73741         * modules/unictype/category-Z-tests (Files): Likewise.
73742         * modules/unictype/category-Zl-tests (Files): Likewise.
73743         * modules/unictype/category-Zp-tests (Files): Likewise.
73744         * modules/unictype/category-Zs-tests (Files): Likewise.
73745         * modules/unictype/category-and-not-tests (Files): Likewise.
73746         * modules/unictype/category-and-tests (Files): Likewise.
73747         * modules/unictype/category-byname-tests (Files): Likewise.
73748         * modules/unictype/category-name-tests (Files): Likewise.
73749         * modules/unictype/category-none-tests (Files): Likewise.
73750         * modules/unictype/category-of-tests (Files): Likewise.
73751         * modules/unictype/category-or-tests (Files): Likewise.
73752         * modules/unictype/category-test-withtable-tests (Files): Likewise.
73753         * modules/unictype/combining-class-tests (Files): Likewise.
73754         * modules/unictype/ctype-alnum-tests (Files): Likewise.
73755         * modules/unictype/ctype-alpha-tests (Files): Likewise.
73756         * modules/unictype/ctype-blank-tests (Files): Likewise.
73757         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
73758         * modules/unictype/ctype-digit-tests (Files): Likewise.
73759         * modules/unictype/ctype-graph-tests (Files): Likewise.
73760         * modules/unictype/ctype-lower-tests (Files): Likewise.
73761         * modules/unictype/ctype-print-tests (Files): Likewise.
73762         * modules/unictype/ctype-punct-tests (Files): Likewise.
73763         * modules/unictype/ctype-space-tests (Files): Likewise.
73764         * modules/unictype/ctype-upper-tests (Files): Likewise.
73765         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
73766         * modules/unictype/decimal-digit-tests (Files): Likewise.
73767         * modules/unictype/digit-tests (Files): Likewise.
73768         * modules/unictype/mirror-tests (Files): Likewise.
73769         * modules/unictype/numeric-tests (Files): Likewise.
73770         * modules/unictype/property-alphabetic-tests (Files): Likewise.
73771         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
73772         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
73773         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
73774         Likewise.
73775         * modules/unictype/property-bidi-block-separator-tests (Files):
73776         Likewise.
73777         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
73778         Likewise.
73779         * modules/unictype/property-bidi-common-separator-tests (Files):
73780         Likewise.
73781         * modules/unictype/property-bidi-control-tests (Files): Likewise.
73782         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
73783         Likewise.
73784         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
73785         Likewise.
73786         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
73787         Likewise.
73788         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
73789         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
73790         Likewise.
73791         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
73792         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
73793         Likewise.
73794         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
73795         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
73796         * modules/unictype/property-bidi-segment-separator-tests (Files):
73797         Likewise.
73798         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
73799         * modules/unictype/property-byname-tests (Files): Likewise.
73800         * modules/unictype/property-combining-tests (Files): Likewise.
73801         * modules/unictype/property-composite-tests (Files): Likewise.
73802         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
73803         * modules/unictype/property-dash-tests (Files): Likewise.
73804         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
73805         * modules/unictype/property-default-ignorable-code-point-tests (Files):
73806         Likewise.
73807         * modules/unictype/property-deprecated-tests (Files): Likewise.
73808         * modules/unictype/property-diacritic-tests (Files): Likewise.
73809         * modules/unictype/property-extender-tests (Files): Likewise.
73810         * modules/unictype/property-format-control-tests (Files): Likewise.
73811         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
73812         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
73813         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
73814         * modules/unictype/property-hex-digit-tests (Files): Likewise.
73815         * modules/unictype/property-hyphen-tests (Files): Likewise.
73816         * modules/unictype/property-id-continue-tests (Files): Likewise.
73817         * modules/unictype/property-id-start-tests (Files): Likewise.
73818         * modules/unictype/property-ideographic-tests (Files): Likewise.
73819         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
73820         * modules/unictype/property-ids-trinary-operator-tests (Files):
73821         Likewise.
73822         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
73823         * modules/unictype/property-iso-control-tests (Files): Likewise.
73824         * modules/unictype/property-join-control-tests (Files): Likewise.
73825         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
73826         * modules/unictype/property-line-separator-tests (Files): Likewise.
73827         * modules/unictype/property-logical-order-exception-tests (Files):
73828         Likewise.
73829         * modules/unictype/property-lowercase-tests (Files): Likewise.
73830         * modules/unictype/property-math-tests (Files): Likewise.
73831         * modules/unictype/property-non-break-tests (Files): Likewise.
73832         * modules/unictype/property-not-a-character-tests (Files): Likewise.
73833         * modules/unictype/property-numeric-tests (Files): Likewise.
73834         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
73835         * modules/unictype/property-other-default-ignorable-code-point-tests
73836         (Files): Likewise.
73837         * modules/unictype/property-other-grapheme-extend-tests (Files):
73838         Likewise.
73839         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
73840         * modules/unictype/property-other-id-start-tests (Files): Likewise.
73841         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
73842         * modules/unictype/property-other-math-tests (Files): Likewise.
73843         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
73844         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
73845         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
73846         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
73847         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
73848         * modules/unictype/property-private-use-tests (Files): Likewise.
73849         * modules/unictype/property-punctuation-tests (Files): Likewise.
73850         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
73851         * modules/unictype/property-radical-tests (Files): Likewise.
73852         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
73853         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
73854         * modules/unictype/property-space-tests (Files): Likewise.
73855         * modules/unictype/property-terminal-punctuation-tests (Files):
73856         Likewise.
73857         * modules/unictype/property-test-tests (Files): Likewise.
73858         * modules/unictype/property-titlecase-tests (Files): Likewise.
73859         * modules/unictype/property-unassigned-code-value-tests (Files):
73860         Likewise.
73861         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
73862         * modules/unictype/property-uppercase-tests (Files): Likewise.
73863         * modules/unictype/property-variation-selector-tests (Files): Likewise.
73864         * modules/unictype/property-white-space-tests (Files): Likewise.
73865         * modules/unictype/property-xid-continue-tests (Files): Likewise.
73866         * modules/unictype/property-xid-start-tests (Files): Likewise.
73867         * modules/unictype/property-zero-width-tests (Files): Likewise.
73868         * modules/unictype/scripts-tests (Files): Likewise.
73869         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
73870         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
73871         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
73872         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
73873         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
73874         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
73875         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
73876         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
73877         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
73878         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
73879         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
73880         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
73881         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
73882         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
73883         * modules/uninorm/composition-tests (Files): Likewise.
73884         * modules/uninorm/decomposing-form-tests (Files): Likewise.
73885         * modules/uninorm/decomposition-tests (Files): Likewise.
73886         * modules/uninorm/filter-tests (Files): Likewise.
73887         * modules/uninorm/nfc-tests (Files): Likewise.
73888         * modules/uninorm/nfd-tests (Files): Likewise.
73889         * modules/uninorm/nfkc-tests (Files): Likewise.
73890         * modules/uninorm/nfkd-tests (Files): Likewise.
73891         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
73892         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
73893         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
73894         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
73895         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
73896         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
73897         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
73898         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
73899         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
73900         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
73901         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
73902         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
73903         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
73904         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
73905         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
73906         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
73907         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
73908         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
73909         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
73910         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
73911         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
73912         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
73913         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
73914         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
73915         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
73916         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
73917         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
73918         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
73919         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
73920         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
73921         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
73922         * modules/uniwidth/u8-width-tests (Files): Likewise.
73923         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
73924         * modules/uniwidth/u16-width-tests (Files): Likewise.
73925         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
73926         * modules/uniwidth/u32-width-tests (Files): Likewise.
73927         * modules/uniwidth/width-tests (Files): Likewise.
73928         * modules/unlink-tests (Files): Likewise.
73929         * modules/unsetenv-tests (Files): Likewise.
73930         * modules/usleep-tests (Files): Likewise.
73931         * modules/utimens-tests (Files): Likewise.
73932         * modules/utimensat-tests (Files): Likewise.
73933         * modules/vasnprintf-posix-tests (Files): Likewise.
73934         * modules/vasnprintf-tests (Files): Likewise.
73935         * modules/vasprintf-posix-tests (Files): Likewise.
73936         * modules/vasprintf-tests (Files): Likewise.
73937         * modules/vdprintf-posix-tests (Files): Likewise.
73938         * modules/vfprintf-posix-tests (Files): Likewise.
73939         * modules/vprintf-posix-tests (Files): Likewise.
73940         * modules/vsnprintf-posix-tests (Files): Likewise.
73941         * modules/vsnprintf-tests (Files): Likewise.
73942         * modules/vsprintf-posix-tests (Files): Likewise.
73943         * modules/wcrtomb-tests (Files): Likewise.
73944         * modules/wcsnrtombs-tests (Files): Likewise.
73945         * modules/wcsrtombs-tests (Files): Likewise.
73946         * modules/wctype-tests (Files): Likewise.
73947         * modules/wcwidth-tests (Files): Likewise.
73948         * modules/xmemdup0-tests (Files): Likewise.
73949         * modules/xprintf-posix-tests (Files): Likewise.
73950         * modules/xvasprintf-tests (Files): Likewise.
73952 2009-12-24  Eric Blake  <ebb9@byu.net>
73954         test-nanosleep: fix typo
73955         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
73956         patch.
73957         Reported by Bruno Haible.
73959 2009-12-24  Bruno Haible  <bruno@clisp.org>
73961         Reduce namespace pollution on glibc systems.
73962         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
73963         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
73964         systems.
73965         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
73966         <getopt.h> on glibc systems.
73967         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
73968         systems.
73969         * lib/fcntl.c: Include <unistd.h> here instead.
73971 2009-12-24  Bruno Haible  <bruno@clisp.org>
73973         * lib/stdlib.in.h (includes): Fix typo in today's commit.
73975 2009-12-24  Eric Blake  <ebb9@byu.net>
73977         tests: add signature checks
73978         * tests/signature.h (SIGNATURE_CHECK): New file.
73979         * modules/atexit-tests (Files): Use it.
73980         * modules/btowc-tests (Files): Likewise.
73981         * modules/canonicalize-lgpl-tests (Files): Likewise.
73982         * modules/ceilf-tests (Files): Likewise.
73983         * modules/ceill-tests (Files): Likewise.
73984         * modules/chown-tests (Files): Likewise.
73985         * modules/dprintf-posix-tests (Files): Likewise.
73986         * modules/dup2-tests (Files): Likewise.
73987         * modules/dup3-tests (Files): Likewise.
73988         * modules/duplocale-tests (Files): Likewise.
73989         * modules/fchdir-tests (Files): Likewise.
73990         * modules/fcntl-tests (Files): Likewise.
73991         * modules/fdopendir-tests (Files): Likewise.
73992         * modules/fflush-tests (Files): Likewise.
73993         * modules/flock-tests (Files): Likewise.
73994         * modules/floorf-tests (Files): Likewise.
73995         * modules/floorl-tests (Files): Likewise.
73996         * modules/fnmatch-tests (Files): Likewise.
73997         * modules/fopen-tests (Files): Likewise.
73998         * modules/fprintf-posix-tests (Files): Likewise.
73999         * modules/freopen-tests (Files): Likewise.
74000         * modules/frexp-nolibm-tests (Files): Likewise.
74001         * modules/frexp-tests (Files): Likewise.
74002         * modules/frexpl-nolibm-tests (Files): Likewise.
74003         * modules/frexpl-tests (Files): Likewise.
74004         * modules/fseek-tests (Files): Likewise.
74005         * modules/fseeko-tests (Files): Likewise.
74006         * modules/fsync-tests (Files): Likewise.
74007         * modules/ftell-tests (Files): Likewise.
74008         * modules/ftello-tests (Files): Likewise.
74009         * modules/futimens-tests (Files): Likewise.
74010         * modules/getaddrinfo-tests (Files): Likewise.
74011         * modules/getcwd-tests (Files): Likewise.
74012         * modules/getdelim-tests (Files): Likewise.
74013         * modules/getdtablesize-tests (Files): Likewise.
74014         * modules/getgroups-tests (Files): Likewise.
74015         * modules/gethostname-tests (Files): Likewise.
74016         * modules/getline-tests (Files): Likewise.
74017         * modules/getopt-posix-tests (Files): Likewise.
74018         * modules/gettimeofday-tests (Files): Likewise.
74019         * modules/glob-tests (Files): Likewise.
74020         * modules/iconv-tests (Files): Likewise.
74021         * modules/inet_ntop-tests (Files): Likewise.
74022         * modules/inet_pton-tests (Files): Likewise.
74023         * modules/isblank-tests (Files): Likewise.
74024         * modules/lchown-tests (Files): Likewise.
74025         * modules/ldexpl-tests (Files): Likewise.
74026         * modules/link-tests (Files): Likewise.
74027         * modules/linkat-tests (Files): Likewise.
74028         * modules/lseek-tests (Files): Likewise.
74029         * modules/lstat-tests (Files): Likewise.
74030         * modules/mbrtowc-tests (Files): Likewise.
74031         * modules/mbsinit-tests (Files): Likewise.
74032         * modules/mbsnrtowcs-tests (Files): Likewise.
74033         * modules/mbsrtowcs-tests (Files): Likewise.
74034         * modules/memchr-tests (Files): Likewise.
74035         * modules/memcmp-tests (Files): Likewise.
74036         * modules/memmem-tests (Files): Likewise.
74037         * modules/memrchr-tests (Files): Likewise.
74038         * modules/mkdir-tests (Files): Likewise.
74039         * modules/mkfifo-tests (Files): Likewise.
74040         * modules/mkfifoat-tests (Files): Likewise.
74041         * modules/mknod-tests (Files): Likewise.
74042         * modules/nanosleep-tests (Files): Likewise.
74043         * modules/nl_langinfo-tests (Files): Likewise.
74044         * modules/obstack-printf-tests (Files): Likewise.
74045         * modules/open-tests (Files): Likewise.
74046         * modules/openat-tests (Files): Likewise.
74047         * modules/perror-tests (Files): Likewise.
74048         * modules/pipe2-tests (Files): Likewise.
74049         * modules/poll-tests (Files): Likewise.
74050         * modules/popen-tests (Files): Likewise.
74051         * modules/posix_spawn-tests (Files): Likewise.
74052         * modules/posix_spawnp-tests (Files): Likewise.
74053         * modules/pread-tests (Files): Likewise.
74054         * modules/printf-posix-tests (Files): Likewise.
74055         * modules/pty-tests (Files): Likewise.
74056         * modules/random_r-tests (Files): Likewise.
74057         * modules/rawmemchr-tests (Files): Likewise.
74058         * modules/readlink-tests (Files): Likewise.
74059         * modules/remove-tests (Files): Likewise.
74060         * modules/rename-tests (Files): Likewise.
74061         * modules/renameat-tests (Files): Likewise.
74062         * modules/rmdir-tests (Files): Likewise.
74063         * modules/round-tests (Files): Likewise.
74064         * modules/roundf-tests (Files): Likewise.
74065         * modules/roundl-tests (Files): Likewise.
74066         * modules/select-tests (Files): Likewise.
74067         * modules/setenv-tests (Files): Likewise.
74068         * modules/sigaction-tests (Files): Likewise.
74069         * modules/sleep-tests (Files): Likewise.
74070         * modules/snprintf-posix-tests (Files): Likewise.
74071         * modules/snprintf-tests (Files): Likewise.
74072         * modules/sprintf-posix-tests (Files): Likewise.
74073         * modules/stat-tests (Files): Likewise.
74074         * modules/strcasestr-tests (Files): Likewise.
74075         * modules/strchrnul-tests (Files): Likewise.
74076         * modules/strerror-tests (Files): Likewise.
74077         * modules/strsignal-tests (Files): Likewise.
74078         * modules/strstr-tests (Files): Likewise.
74079         * modules/strtod-tests (Files): Likewise.
74080         * modules/strverscmp-tests (Files): Likewise.
74081         * modules/symlink-tests (Files): Likewise.
74082         * modules/symlinkat-tests (Files): Likewise.
74083         * modules/times-tests (Files): Likewise.
74084         * modules/trunc-tests (Files): Likewise.
74085         * modules/truncf-tests (Files): Likewise.
74086         * modules/truncl-tests (Files): Likewise.
74087         * modules/tsearch-tests (Files): Likewise.
74088         * modules/uname-tests (Files): Likewise.
74089         * modules/unlink-tests (Files): Likewise.
74090         * modules/unsetenv-tests (Files): Likewise.
74091         * modules/usleep-tests (Files): Likewise.
74092         * modules/utimensat-tests (Files): Likewise.
74093         * modules/vasprintf-tests (Files): Likewise.
74094         * modules/vdprintf-posix-tests (Files): Likewise.
74095         * modules/vfprintf-posix-tests (Files): Likewise.
74096         * modules/vprintf-posix-tests (Files): Likewise.
74097         * modules/vsnprintf-posix-tests (Files): Likewise.
74098         * modules/vsnprintf-tests (Files): Likewise.
74099         * modules/vsprintf-posix-tests (Files): Likewise.
74100         * modules/wcrtomb-tests (Files): Likewise.
74101         * modules/wcsnrtombs-tests (Files): Likewise.
74102         * modules/wcsrtombs-tests (Files): Likewise.
74103         * modules/wcwidth-tests (Files): Likewise.
74104         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
74105         * tests/test-isinf.c (isinf): Likewise.
74106         * tests/test-isnan.c (isnan): Likewise.
74107         * tests/test-signbit.c (signbit): Likewise.
74108         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
74109         declaration, either as macro or with correct signature.
74110         (select): Ensure function under test is declared with correct
74111         signature in correct header.
74112         * tests/test-atexit.c (atexit): Likewise.
74113         * tests/test-btowc.c (btowc): Likewise.
74114         * tests/test-canonicalize-lgpl.c (realpath)
74115         (canonicalize_file_name): Likewise.
74116         * tests/test-ceilf1.c (ceilf): Likewise.
74117         * tests/test-ceill.c (ceill): Likewise.
74118         * tests/test-chown.c (chown): Likewise.
74119         * tests/test-dprintf-posix.c (dprintf): Likewise.
74120         * tests/test-dup2.c (dup2): Likewise.
74121         * tests/test-dup3.c (dup3): Likewise.
74122         * tests/test-duplocale.c (duplocale): Likewise.
74123         * tests/test-fchdir.c (fchdir): Likewise.
74124         * tests/test-fchownat.c (fchownat): Likewise.
74125         * tests/test-fcntl.c (fcntl): Likewise.
74126         * tests/test-fdopendir.c (fdopendir): Likewise.
74127         * tests/test-fflush.c (fflush): Likewise.
74128         * tests/test-flock.c (flock): Likewise.
74129         * tests/test-floorf1.c (floorf): Likewise.
74130         * tests/test-floorl.c (floorl): Likewise.
74131         * tests/test-fnmatch.c (fnmatch): Likewise.
74132         * tests/test-fopen.c (fopen): Likewise.
74133         * tests/test-fprintf-posix.c (fprintf): Likewise.
74134         * tests/test-freopen.c (freopen): Likewise.
74135         * tests/test-frexp.c (frexp): Likewise.
74136         * tests/test-frexpl.c (frexpl): Likewise.
74137         * tests/test-fseek.c (fseek): Likewise.
74138         * tests/test-fseeko.c (fseeko): Likewise.
74139         * tests/test-fstatat.c (fstatat): Likewise.
74140         * tests/test-fsync.c (fsync): Likewise.
74141         * tests/test-ftell.c (ftell): Likewise.
74142         * tests/test-ftello.c (ftello): Likewise.
74143         * tests/test-futimens.c (futimens): Likewise.
74144         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
74145         (gai_strerror): Likewise.
74146         * tests/test-getcwd.c (getcwd): Likewise.
74147         * tests/test-getdelim.c (getdelim): Likewise.
74148         * tests/test-getdtablesize.c (getdtablesize): Likewise.
74149         * tests/test-getgroups.c (getgroups): Likewise.
74150         * tests/test-gethostname.c (gethostname): Likewise.
74151         * tests/test-getline.c (getline): Likewise.
74152         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
74153         Likewise.
74154         * tests/test-gettimeofday.c (gettimeofday): Likewise.
74155         * tests/test-glob.c (glob, globfree): Likewise.
74156         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
74157         * tests/test-inet_ntop.c (inet_ntop): Likewise.
74158         * tests/test-inet_pton.c (inet_pton): Likewise.
74159         * tests/test-isblank.c (isblank): Likewise.
74160         * tests/test-lchown.c (lchown): Likewise.
74161         * tests/test-ldexpl.c (ldexpl): Likewise.
74162         * tests/test-link.c (link): Likewise.
74163         * tests/test-linkat.c (linkat): Likewise.
74164         * tests/test-lseek.c (lseek): Likewise.
74165         * tests/test-lstat.c (lstat): Likewise.
74166         * tests/test-mbrtowc.c (mbrtowc): Likewise.
74167         * tests/test-mbsinit.c (mbsinit): Likewise.
74168         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
74169         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
74170         * tests/test-memchr.c (memchr): Likewise.
74171         * tests/test-memcmp.c (memcmp): Likewise.
74172         * tests/test-memmem.c (memmem): Likewise.
74173         * tests/test-memrchr.c (memrchr): Likewise.
74174         * tests/test-mkdir.c (mkdir): Likewise.
74175         * tests/test-mkdirat.c (mkdirat): Likewise.
74176         * tests/test-mkfifo.c (mkfifo): Likewise.
74177         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
74178         * tests/test-mknod.c (mknod): Likewise.
74179         * tests/test-nanosleep.c (nanosleep): Likewise.
74180         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
74181         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
74182         Likewise.
74183         * tests/test-open.c (open): Likewise.
74184         * tests/test-openat.c (openat): Likewise.
74185         * tests/test-perror.c (perror): Likewise.
74186         * tests/test-pipe2.c (pipe2): Likewise.
74187         * tests/test-poll.c (poll): Likewise.
74188         * tests/test-popen.c (popen, pclose): Likewise.
74189         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
74190         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
74191         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
74192         (posix_spawn_file_actions_destroy)
74193         (posix_spawn_file_actions_addclose)
74194         (posix_spawn_file_actions_addopen)
74195         (posix_spawn_file_actions_adddup2): Likewise.
74196         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
74197         * tests/test-pread.c (pread): Likewise.
74198         * tests/test-printf-posix.c (printf): Likewise.
74199         * tests/test-pty.c (openpty, forkpty): Likewise.
74200         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
74201         (random_r): Likewise.
74202         * tests/test-rawmemchr.c (rawmemchr): Likewise.
74203         * tests/test-readlink.c (readlink): Likewise.
74204         * tests/test-remove.c (remove): Likewise.
74205         * tests/test-rename.c (rename): Likewise.
74206         * tests/test-renameat.c (renameat): Likewise.
74207         * tests/test-rmdir.c (rmdir): Likewise.
74208         * tests/test-round1.c (round): Likewise.
74209         * tests/test-roundf1.c (roundf): Likewise.
74210         * tests/test-roundl.c (roundl): Likewise.
74211         * tests/test-setenv.c (setenv): Likewise.
74212         * tests/test-sigaction.c (sigaction): Likewise.
74213         * tests/test-sleep.c (sleep): Likewise.
74214         * tests/test-snprintf.c (snprintf): Likewise.
74215         * tests/test-sprintf-posix.c (sprintf): Likewise.
74216         * tests/test-stat.c (stat): Likewise.
74217         * tests/test-stpncpy.c (stpncpy): Likewise.
74218         * tests/test-strcasestr.c (strcasestr): Likewise.
74219         * tests/test-strchrnul.c (strchrnul): Likewise.
74220         * tests/test-strerror.c (strerror): Likewise.
74221         * tests/test-strsignal.c (strsignal): Likewise.
74222         * tests/test-strstr.c (strstr): Likewise.
74223         * tests/test-strtod.c (strtod): Likewise.
74224         * tests/test-strverscmp.c (strverscmp): Likewise.
74225         * tests/test-symlink.c (symlink): Likewise.
74226         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
74227         * tests/test-times.c (times): Likewise.
74228         * tests/test-trunc1.c (trunc): Likewise.
74229         * tests/test-truncf1.c (truncf): Likewise.
74230         * tests/test-truncl.c (truncl): Likewise.
74231         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
74232         Likewise.
74233         * tests/test-uname.c (uname): Likewise.
74234         * tests/test-unlink.c (unlink): Likewise.
74235         * tests/test-unlinkat.c (unlinkat): Likewise.
74236         * tests/test-unsetenv.c (unsetenv): Likewise.
74237         * tests/test-usleep.c (usleep): Likewise.
74238         * tests/test-utimensat.c (utimensat): Likewise.
74239         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
74240         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
74241         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
74242         * tests/test-vprintf-posix.c (vprintf): Likewise.
74243         * tests/test-vsnprintf.c (vsnprintf): Likewise.
74244         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
74245         * tests/test-wcrtomb.c (wcrtomb): Likewise.
74246         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
74247         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
74248         * tests/test-wcwidth.c (wcwidth): Likewise.
74250         build: pull in conditional headers during GNULIB_POSIXCHECK
74251         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
74252         definitions from any conditionally-included headers.
74253         * lib/stdlib.in.h (includes): Likewise.
74254         * lib/unistd.in.h (includes): Likewise.
74256 2009-12-24  Bruno Haible  <bruno@clisp.org>
74258         * tests/test-argv-iter.c: Include header file being tested immediately
74259         after config.h.
74260         * tests/test-base64.c: Likewise.
74261         * tests/test-flock.c: Likewise.
74262         * tests/test-fsync.c: Likewise.
74263         * tests/test-getdate.c: Likewise.
74264         * tests/test-getndelim2.c: Likewise.
74265         * tests/test-isfinite.c: Likewise.
74266         * tests/test-isinf.c: Likewise.
74267         * tests/test-strerror.c: Likewise.
74268         * tests/test-strsignal.c: Likewise.
74270 2009-12-23  Eric Blake  <ebb9@byu.net>
74272         unistd: work around cygwin bug
74273         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
74274         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
74275         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74277 2009-12-23  Bruno Haible  <bruno@clisp.org>
74279         localename: More tests.
74280         * tests/test-localename.c (SIZEOF): New macro.
74281         (categories): New variable.
74282         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
74283         test_locale_name_default): Add test w.r.t. thread locale.
74284         (test_locale_name_thread): New function.
74285         (main): Invoke it.
74287         localename: Make aware of thread locale.
74288         * lib/localename.h (gl_locale_name_thread): New declaration.
74289         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
74290         behaviour with respect to thread locale.
74291         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
74292         <langinfo.h>, glthread/lock.h.
74293         (SIZE_BITS): New macro.
74294         (string_hash): New function.
74295         (struct hash_node): New type.
74296         (HASH_TABLE_SIZE): New macro.
74297         (struniq_hash_table, struniq_lock): New variables.
74298         (struniq): New function.
74299         (gl_locale_name_thread): New function.
74300         (gl_locale_name): Invoke it.
74301         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
74302         * modules/localename (Depends-on): Add lock.
74303         Reported by Mike Gran <spk121@yahoo.com>.
74305 2009-12-23  Eric Blake  <ebb9@byu.net>
74307         va-args: new module
74308         * modules/va-args: New file.
74309         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
74310         * MODULES.html.sh (Core language properties): Mention it.
74312         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
74313         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
74314         named alias for __attribute__((__unused__)).
74315         * lib/chown.c: Update client.
74316         * lib/fchmodat.c: Likewise.
74317         * lib/fts.c: Likewise.
74318         * lib/getdate.y: Likewise.
74319         * lib/getgroups.c: Likewise.
74320         * lib/getopt.c: Likewise.
74321         * lib/getugroups.c: Likewise.
74322         * lib/mkdir.c: Likewise.
74323         * lib/mkfifo.c: Likewise.
74324         * lib/mkfifoat.c: Likewise.
74325         * lib/mknod.c: Likewise.
74326         * lib/mknodat.c: Likewise.
74327         * lib/readlink.c: Likewise.
74328         * lib/se-context.in.h: Likewise.
74329         * lib/se-selinux.in.h: Likewise.
74330         * lib/sockets.c: Likewise.
74331         * lib/symlink.c: Likewise.
74332         * lib/symlinkat.c: Likewise.
74333         * lib/unicodeio.c: Likewise.
74334         * lib/unistr.h: Likewise.
74335         * tests/test-areadlink.c: Likewise.
74336         * tests/test-areadlinkat.c: Likewise.
74337         * tests/test-filenamecat.c: Likewise.
74338         * tests/test-fseeko.c: Likewise.
74339         * tests/test-ftello.c: Likewise.
74340         * tests/test-getdate.c: Likewise.
74341         * tests/test-getgroups.c: Likewise.
74342         * tests/test-gethostname.c: Likewise.
74343         * tests/test-quotearg.c: Likewise.
74344         * tests/test-version-etc.c: Likewise.
74345         * tests/test-xalloc-die.c: Likewise.
74346         * tests/test-xfprintf-posix.c: Likewise.
74347         * tests/test-xprintf-posix.c: Likewise.
74348         * tests/test-xvasprintf.c: Likewise.
74350         tests: avoid compiler warnings
74351         * tests/test-fcntl.c (main): Delete unused parameters.
74352         * tests/test-freopen-safer.c (main): Likewise.
74353         * tests/test-xalloc-die.c (main): Mark unused parameters.
74354         * tests/test-fseeko.c (main): Likewise.
74355         * tests/test-ftello.c (main): Likewise.
74356         * tests/test-nanosleep.c (main): Avoid declaration warning.
74357         * tests/test-sleep.c (main): Likewise.
74358         * tests/test-unsetenv.c (main): Silence warning about string
74359         literal.
74360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
74362 2009-12-23  Bruno Haible  <bruno@clisp.org>
74364         * tests/test-localename.c (test_locale_name): New function, extracted
74365         from main. Also test mixed situations.
74366         (test_locale_name_posix, test_locale_name_environ,
74367         test_locale_name_default): New functions.
74368         (main): Invoke them all.
74369         * modules/localename-tests (configure.ac): Test for newlocale.
74371 2009-12-23  Bruno Haible  <bruno@clisp.org>
74373         unistd: Ensure getcwd gets declared before being overridden.
74374         * lib/unistd.in.h: Conditionally include <io.h>.
74376 2009-12-22  Bruno Haible  <bruno@clisp.org>
74378         wchar: Diagnose broken combination of glibc and gcc versions and flags.
74379         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
74380         (gl_WCHAR_H): Invoke it.
74381         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
74382         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
74383         Reported by Karl Berry <karl@freefriends.org>.
74385 2009-12-22  Eric Blake  <ebb9@byu.net>
74387         math, unistd: avoid redundant includes
74388         * lib/math.in.h (isnan): No need to re-include <math.h>.
74389         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
74391         getsubopt: work around cygwin bug
74392         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
74393         avoid conflicting with system getsubopt.
74394         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
74395         bug.
74397         getopt: synchronize from glibc
74398         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
74399         parameter order.  Adjust all callers.
74400         (_getopt_internal_r, main): Adjust quoting in error messages.
74401         Drop considerations for outdated POSIX 1003.2 error message.
74402         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
74403         callers.
74404         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
74406         test-getopt: test stderr behavior
74407         * modules/getopt-posix-tests (Depends-on): Add dup2.
74408         * tests/test-getopt.c (ASSERT): Avoid stderr.
74409         (main): Move stderr to a temporary file.
74410         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
74411         Instead, add parameter to inform caller if output occurred.
74412         (test_getopt): Adjust all existing tests to expect silence, and
74413         add new tests of leading ":".
74414         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
74415         glibc shortcomings with leading "-:" or "+:" in optstring.
74416         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74417         Likewise.
74418         * doc/posix-functions/getopt.texi (getopt): Likewise.
74420         test-getopt: enhance test
74421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
74422         supports optind=0.
74423         * tests/test-getopt.c (OPTIND_MIN): Move...
74424         * tests/test-getopt.h (OPTIND_MIN): ...here.
74425         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
74426         Require that optind=0 works, since modern BSD supports it in
74427         addition to optreset, and since coreutils expects it.
74428         (test_getopt_long_only): New test.
74429         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
74430         glibc shortcomings with 'W;', and enforcement of optind=0.
74431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74432         Likewise.
74434 2009-12-21  Bruno Haible  <bruno@clisp.org>
74436         localename: Improvements for MacOS X and Cygwin.
74437         * lib/localename.h (gl_locale_name_environ): New declaration.
74438         * lib/localename.c (gl_locale_name_environ): New function, extracted from
74439         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
74440         (gl_locale_name_posix): Invoke it.
74441         (gl_locale_name_default): Add comments. Use Windows native API also on
74442         Cygwin.
74444 2009-12-21  Bruno Haible  <bruno@clisp.org>
74446         Update list of Win32 locale ids.
74447         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
74448         (LANG_SAMI): Renamed from LANG_SAAMI.
74449         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
74450         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
74451         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
74452         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
74453         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
74454         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
74455         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
74456         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
74457         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
74458         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
74459         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
74460         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
74461         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
74462         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
74463         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
74464         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
74465         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
74466         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
74467         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
74468         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
74469         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
74470         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
74471         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
74472         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
74473         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
74474         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
74475         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
74476         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
74477         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
74478         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
74479         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
74480         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
74481         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
74482         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
74483         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
74484         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
74485         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
74486         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
74487         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
74488         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
74489         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
74490         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
74491         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
74492         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
74493         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
74494         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
74495         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
74496         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
74497         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
74498         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
74499         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
74500         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
74501         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
74502         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
74503         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
74504         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
74505         Add more languages and countries for Sami, Sorbian. Add more countries
74506         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
74507         for Pashto. Change country for Syriac, Tswana.
74509 2009-12-21  Eric Blake  <ebb9@byu.net>
74511         test-utimens: avoid spurious failure
74512         * tests/test-chown.h (nap): Factor...
74513         * tests/nap.h: ...into new file.
74514         * tests/test-lchown.h (nap): Avoid duplication.
74515         * tests/test-utimens-common.h (nap): Use shared implementation,
74516         necessary on file systems with 1-second resolution.
74517         * modules/chown-tests (Files): Include new file.
74518         * modules/fdutimensat-tests (Files): Likewise.
74519         * modules/futimens-tests (Files): Likewise.
74520         * modules/lchown-tests (Files): Likewise.
74521         * modules/openat-tests (Files): Likewise.
74522         * modules/utimens-tests (Files): Likewise.
74523         * modules/utimensat-tests (Files): Likewise.
74525 2009-12-19  Eric Blake  <ebb9@byu.net>
74527         futimens, utimensat: work around Linux bug
74528         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
74529         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74530         * lib/utimensat.c (rpl_utimensat): Work around it.
74531         * lib/futimens.c (rpl_futimens): Adjust comment.
74533         utimens: work around Linux ctime bug
74534         * lib/utimens.c (detect_ctime_bug): New helper function.
74535         (update_timespec): Differentiate between workaround needed for
74536         this bug vs. what is needed for systems that lack utimensat.
74537         (fdutimens, lutimens): Work around bug.
74539         utimens: check for ctime update
74540         * tests/test-utimens-common.h (check_ctime): Define.
74541         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
74542         * tests/test-futimens.h (test_futimens): Likewise.
74543         * tests/test-lutimens.h (test_lutimens): Likewise.
74544         * doc/posix-functions/futimens.texi (futimens): Document the bug.
74545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74547 2009-12-19  Bruno Haible  <bruno@clisp.org>
74549         dprintf-posix: Check against memory leak fixed on 2009-12-15.
74550         * tests/test-dprintf-posix2.sh: New file.
74551         * tests/test-dprintf-posix2.c: New file.
74552         * modules/dprintf-posix-tests (Files): Add them.
74553         (configure.ac): Check for getrlimit and setrlimit.
74554         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
74556 2009-12-19  Bruno Haible  <bruno@clisp.org>
74558         fprintf-posix: Check against memory leak fixed on 2009-12-15.
74559         * tests/test-fprintf-posix3.sh: New file.
74560         * tests/test-fprintf-posix3.c: New file.
74561         * modules/fprintf-posix-tests (Files): Add them.
74562         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
74564 2009-12-19  Eric Blake  <ebb9@byu.net>
74566         dirfd: fix prototype
74567         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
74568         * lib/dirfd.c (dirfd): Likewise.
74570         canonicalize: reduce memory usage
74571         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
74572         allocation to size.
74573         Reported by Solar Designer <solar@openwall.com>.
74575 2009-12-19  Bruno Haible  <bruno@clisp.org>
74577         New module attribute 'Applicability'.
74578         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
74579         * gnulib-tool: New option --extract-applicability.
74580         (func_usage): Document it.
74581         (sed_extract_prog): Recognize it.
74582         (func_get_applicability): New function.
74583         (func_import): Generalize handling of 'link-warning' module.
74584         * modules/link-warning (Applicability): New section.
74585         * modules/arg-nonnull (Applicability): New section.
74586         Repoted by Simon Josefsson <simon@josefsson.org>.
74588 2009-12-19  Bruno Haible  <bruno@clisp.org>
74590         fflush: tweak
74591         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
74592         * lib/fseeko.c (rpl_fseeko): Likewise.
74594 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
74596         * lib/gl_list.h: Fix typo in comment.
74598 2009-12-16  Eric Blake  <ebb9@byu.net>
74600         fcntl: use to simplify other modules
74601         * modules/cloexec (Depends-on): Add fcntl.
74602         * modules/fchdir (Depends-on): Likewise.
74603         * modules/fd-safer-flag (Depends-on): Likewise.
74604         * modules/unistd-safer (Depends-on): Likewise.
74605         * modules/dup3 (configure.ac): Set module indicator.
74606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
74607         missing.
74608         * lib/fchdir.c (_gl_register_dup): Fix comment.
74609         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
74610         * lib/dup-safer.c (dup_safer): Likewise.
74611         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
74612         * lib/dup3.c (dup3): Likewise.
74613         * tests/test-fchdir.c (main): Enhance test.
74614         Fixes a dup_cloexec bug reported by Ondřej Vašík.
74616         fcntl: port portions of fcntl to mingw
74617         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
74618         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
74619         replacement for mingw.
74620         * modules/fcntl (Description): Update.
74621         (Depends-on): Add dup2.
74622         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
74623         * modules/fcntl-h (Makefile.am): Substitute it.
74624         * lib/fcntl.in.h (fcntl): Update declaration.
74625         (F_DUPFD, F_GETFD): New macros, when needed.
74626         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
74627         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
74628         * tests/test-fcntl.c (check_flags, main): Enhance test for items
74629         we now guarantee.
74631         fcntl: work around cygwin bug in F_DUPFD
74632         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
74633         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
74634         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
74635         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
74636         * doc/posix-functions/fcntl.texi (fcntl): Document it.
74638         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
74639         * modules/fcntl (Files): List new files.
74640         (configure.ac): Run a test.
74641         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
74642         * lib/fcntl.c (rpl_fcntl): Likewise.
74643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
74644         (gl_FCNTL_H): Always replace fcntl.h.
74645         * modules/fcntl-h (Makefile.am): Substitute witnesses.
74646         * lib/fcntl.in.h (fcntl): Declare replacement.
74647         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
74648         needed, plus a witness.
74649         * doc/posix-functions/fcntl.texi (fcntl): Document this.
74650         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
74651         * tests/test-fcntl.c: New file.
74652         * modules/fcntl-tests: Likewise.
74654         binary-io: avoid potential compilation warning
74655         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
74656         directives.
74658         fflush: avoid compilation error on NetBSD
74659         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
74660         between off_t and fpos_t, since the latter is sometimes a struct.
74661         * lib/fseeko.c (rpl_fseeko): Likewise.
74662         Reported by Alexander Nasonov <alnsn@yandex.ru>.
74664 2009-12-15  Eric Blake  <ebb9@byu.net>
74666         fcntl-h, stdio, sys_ioctl: fix declarations
74667         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
74668         function must not take arguments.
74669         * lib/sys_ioctl.in.h (ioctl): Likewise.
74670         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
74671         (open): Add a link warning.
74673 2009-12-15  Jim Meyering  <meyering@redhat.com>
74675         areadlink, areadlink-with-size: relax license to LGPLv2+
74676         * modules/areadlink (License): Relax to LGPLv2+.
74677         * modules/areadlink-with-size (License): Likewise.
74679 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
74680             Bruno Haible  <bruno@clisp.org>
74682         *printf: Fix memory leak.
74683         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
74684         * lib/vfprintf.c (vfprintf): Likewise.
74685         * lib/dprintf.c (dprintf): Likewise.
74686         * lib/vdprintf.c (vdprintf): Likewise.
74688 2009-12-14  Eric Blake  <ebb9@byu.net>
74690         accept4: adjust module dependencies
74691         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
74693         utimens: one more try at avoiding compiler warning
74694         * lib/utimens.c (lutimens): Lower scope of result.
74696 2009-12-13  Bruno Haible  <bruno@clisp.org>
74698         Move the malloc checking from module 'list' to new module 'xlist'.
74699         * modules/xlist: New file.
74700         * lib/gl_xlist.h: New file.
74701         * lib/gl_xlist.c: New file.
74702         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
74703         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
74704         gl_list_add_last, gl_list_add_before, gl_list_add_after,
74705         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
74706         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
74707         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
74708         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
74709         gl_sortedlist_nx_add): New declarations.
74710         (struct gl_list_implementation): Rename and change methods accordingly.
74711         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
74712         (gl_list_nx_create): Renamed from gl_list_create.
74713         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
74714         (gl_list_nx_set_at): Renamed from gl_list_set_at.
74715         (gl_list_nx_add_first): Renamed from gl_list_add_first.
74716         (gl_list_nx_add_last): Renamed from gl_list_add_last.
74717         (gl_list_nx_add_before): Renamed from gl_list_add_before.
74718         (gl_list_nx_add_after): Renamed from gl_list_add_after.
74719         (gl_list_nx_add_at): Renamed from gl_list_add_at.
74720         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
74721         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
74722         gl_list_create_empty.
74723         (gl_list_nx_create): Renamed from gl_list_create.
74724         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
74725         (gl_list_nx_set_at): Renamed from gl_list_set_at.
74726         (gl_list_nx_add_first): Renamed from gl_list_add_first.
74727         (gl_list_nx_add_last): Renamed from gl_list_add_last.
74728         (gl_list_nx_add_before): Renamed from gl_list_add_before.
74729         (gl_list_nx_add_after): Renamed from gl_list_add_after.
74730         (gl_list_nx_add_at): Renamed from gl_list_add_at.
74731         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
74732         * lib/gl_array_list.c: Don't include xalloc.h.
74733         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
74734         NULL upon out-of-memory.
74735         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
74736         out-of-memory.
74737         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
74738         Change return type to 'int'.
74739         (gl_array_nx_set_at): Renamed from gl_array_set_at.
74740         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
74741         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
74742         upon out-of-memory.
74743         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
74744         upon out-of-memory.
74745         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
74746         upon out-of-memory.
74747         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
74748         upon out-of-memory.
74749         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
74750         out-of-memory.
74751         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
74752         Update.
74753         (gl_array_list_implementation): Update.
74754         * lib/gl_carray_list.c: Don't include xalloc.h.
74755         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
74756         Return NULL upon out-of-memory.
74757         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
74758         out-of-memory.
74759         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
74760         Change return type to 'int'.
74761         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
74762         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
74763         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
74764         upon out-of-memory.
74765         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
74766         upon out-of-memory.
74767         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
74768         out-of-memory.
74769         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
74770         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
74771         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
74772         Update.
74773         (gl_carray_list_implementation): Update.
74774         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
74775         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
74776         gl_linked_create_empty. Return NULL upon out-of-memory.
74777         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
74778         out-of-memory.
74779         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
74780         Change return type to 'int'. Return -1 upon out-of-memory.
74781         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
74782         out-of-memory.
74783         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
74784         upon out-of-memory.
74785         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
74786         upon out-of-memory.
74787         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
74788         NULL upon out-of-memory.
74789         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
74790         upon out-of-memory.
74791         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
74792         out-of-memory.
74793         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
74794         Update.
74795         * lib/gl_linked_list.c: Don't include xalloc.h.
74796         (gl_linked_list_implementation): Update.
74797         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
74798         (add_to_bucket): Change return type to 'int'.
74799         (gl_linkedhash_list_implementation): Update.
74800         * lib/gl_anytree_list1.h (free_subtree): New function.
74801         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
74802         gl_tree_create_empty. Return NULL upon out-of-memory.
74803         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
74804         Change return type to 'int'. Return -1 upon out-of-memory.
74805         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
74806         out-of-memory.
74807         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
74808         (gl_tree_remove_node): New function, moved here from
74809         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
74810         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
74811         Update.
74812         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
74813         malloc, not xmalloc. Return NULL upon out-of-memory.
74814         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
74815         out-of-memory.
74816         (gl_tree_remove_node_from_tree): New function, extracted from
74817         gl_tree_remove_node.
74818         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
74819         upon out-of-memory.
74820         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
74821         out-of-memory.
74822         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
74823         upon out-of-memory.
74824         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
74825         upon out-of-memory.
74826         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
74827         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
74828         not xmalloc. Return NULL upon out-of-memory.
74829         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
74830         out-of-memory.
74831         (gl_tree_remove_node_from_tree): New function, extracted from
74832         gl_tree_remove_node.
74833         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
74834         upon out-of-memory.
74835         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
74836         out-of-memory.
74837         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
74838         upon out-of-memory.
74839         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
74840         upon out-of-memory.
74841         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
74842         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
74843         gl_anytree_list1.h before gl_anyavltree_list2.h.
74844         (gl_avltree_list_implementation): Update.
74845         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
74846         gl_anytree_list1.h before gl_anyavltree_list2.h.
74847         (gl_rbtree_list_implementation): Update.
74848         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
74849         Change return type to 'int'. Return -1 upon out-of-memory. Use
74850         __builtin_expect.
74851         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
74852         (gl_avltreehash_list_implementation): Update.
74853         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
74854         (gl_rbtreehash_list_implementation): Update.
74855         * modules/array-list (Depends-on): Remove xalloc.
74856         * modules/carray-list (Depends-on): Likewise.
74857         * modules/linked-list (Depends-on): Likewise.
74858         * modules/linkedhash-list (Depends-on): Likewise.
74859         * modules/avltree-list (Depends-on): Likewise.
74860         * modules/rbtree-list (Depends-on): Likewise.
74861         * modules/avltreehash-list (Depends-on): Likewise.
74862         * modules/rbtreehash-list (Depends-on): Likewise.
74864         * modules/xsublist: New file.
74865         * lib/gl_xsublist.h: New file.
74866         * lib/gl_xsublist.c: New file.
74867         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
74868         (gl_sublist_nx_create): New declaration.
74869         * lib/gl_sublist.c: Don't include xalloc.h.
74870         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
74871         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
74872         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
74873         Change return type to 'int'. Return -1 upon out-of-memory.
74874         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
74875         upon out-of-memory.
74876         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
74877         NULL upon out-of-memory.
74878         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
74879         upon out-of-memory.
74880         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
74881         NULL upon out-of-memory.
74882         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
74883         NULL upon out-of-memory.
74884         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
74885         upon out-of-memory.
74886         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
74887         (gl_sublist_list_implementation): Update.
74888         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
74889         upon out-of-memory.
74890         * modules/sublist (Depends-on): Remove xalloc.
74892         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
74893         * tests/test-carray_list.c: Likewise.
74894         * tests/test-linked_list.c: Likewise.
74895         * tests/test-linkedhash_list.c: Likewise.
74896         * tests/test-avltree_list.c: Likewise.
74897         * tests/test-rbtree_list.c: Likewise.
74898         * tests/test-avltreehash_list.c: Likewise.
74899         * tests/test-rbtreehash_list.c: Likewise.
74900         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
74901         * modules/carray-list-tests (Makefile.am): Likewise.
74902         * modules/linked-list-tests (Makefile.am): Likewise.
74903         * modules/linkedhash-list-tests (Makefile.am): Likewise.
74904         * modules/avltree-list-tests (Makefile.am): Likewise.
74905         * modules/rbtree-list-tests (Makefile.am): Likewise.
74906         * modules/avltreehash-list-tests (Makefile.am): Likewise.
74907         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
74909         * NEWS: Mention the changes.
74911         * lib/clean-temp.c: Include gl_xlist.h.
74912         * modules/clean-temp (Depends-on): Add xlist.
74914         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
74915         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
74917         * tests/test-array_oset.c: Include gl_xlist.h.
74918         * modules/array-oset-tests (Depends-on): Add xlist.
74920         Reported by José E. Marchesi <jemarch@gnu.org>.
74922 2009-12-13  Bruno Haible  <bruno@clisp.org>
74924         Move the malloc checking from module 'oset' to new module 'xoset'.
74925         * modules/xoset: New file.
74926         * lib/gl_xoset.h: New file.
74927         * lib/gl_xoset.c: New file.
74928         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
74929         declarations.
74930         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
74931         (struct gl_oset_implementation): Rename and change methods accordingly.
74932         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
74933         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
74934         'int'. Mark as __warn_unused_result__.
74935         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
74936         gl_oset_create_empty.
74937         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
74938         'int'.
74939         * lib/gl_array_oset.c: Don't include xalloc.h.
74940         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
74941         malloc, not xmalloc.
74942         (grow): Change return type to 'int'. Don't call xalloc_die.
74943         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
74944         to 'int'.
74945         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
74946         'int'.
74947         (gl_array_oset_implementation): Update.
74948         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
74949         gl_tree_create_empty.
74950         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
74951         'int'.
74952         * lib/gl_avltree_oset.c: Don't include xalloc.h.
74953         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
74954         xmalloc.
74955         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
74956         not xmalloc.
74957         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
74958         xmalloc.
74959         (gl_avltree_oset_implementation): Update.
74960         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
74961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
74962         xmalloc.
74963         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
74964         not xmalloc.
74965         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
74966         xmalloc.
74967         (gl_rbtree_oset_implementation): Update.
74968         * modules/array-oset (Depends-on): Remove xalloc.
74969         * modules/avltree-oset (Depends-on): Likewise.
74970         * modules/rbtree-oset (Depends-on): Likewise.
74971         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
74972         * tests/test-avltree_oset.c: Likewise.
74973         * tests/test-rbtree_oset.c: Likewise.
74974         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74975         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
74976         * modules/rbtree-oset-tests (Makefile.am): Likewise.
74977         * NEWS: Mention the change.
74979 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
74981         maint.mk: allow a project to override release-prep commands
74982         * top/maint.mk (alpha, beta, stable): Move release-preparatory
74983         commands into a new rule.
74984         (release-prep): New rule.
74985         (release-prep-hook): New overridable variable.
74987 2009-12-13  Bruno Haible  <bruno@clisp.org>
74989         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
74991 2009-12-13  Jim Meyering  <meyering@redhat.com>
74993         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
74994         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
74996 2009-12-12  Bruno Haible  <bruno@clisp.org>
74998         duplocale: Tweak.
74999         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
75001 2009-12-12  Karl Berry  <karl@gnu.org>
75003         * config/srclist.txt (strtoll.c): tab changes, no more sync.
75005 2009-12-12  Bruno Haible  <bruno@clisp.org>
75007         * m4/po.m4: Undo incorrect untabification.
75009 2009-12-12  Bruno Haible  <bruno@clisp.org>
75011         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
75012         * modules/c-strtod (Depends-on): Add locale.
75013         * modules/c-strtold (Depends-on): Likewise.
75015 2009-12-12  Bruno Haible  <bruno@clisp.org>
75017         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
75019 2009-12-11  Eric Blake  <ebb9@byu.net>
75021         setenv: relax requirement in light of POSIX ruling
75022         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
75023         not NULL.
75024         * tests/test-setenv.c (main): Relax test.
75025         * tests/test-unsetenv.c (main): Likewise.
75026         * doc/posix-functions/setenv.texi (setenv): Document this.
75027         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
75029 2009-12-11  Bruno Haible  <bruno@clisp.org>
75031         New module 'fd-safer-flag'.
75032         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
75033         * lib/dup-safer.c (dup_safer_flag): Remove function.
75034         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
75035         * lib/fd-safer.c (fd_safer_flag): Remove function.
75036         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
75037         * modules/cloexec (configure.ac): Drop indicator macro.
75038         * modules/fd-safer-flag: New file.
75039         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
75040         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
75041         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
75043 2009-12-11  Bruno Haible  <bruno@clisp.org>
75045         Tests for module 'nl_langinfo'.
75046         * modules/nl_langinfo-tests: New file.
75047         * tests/test-nl_langinfo.sh: New file.
75048         * tests/test-nl_langinfo.c: New file.
75050         New module 'nl_langinfo'.
75051         * lib/nl_langinfo.c: New file.
75052         * m4/nl_langinfo.m4: New file.
75053         * modules/nl_langinfo: New file.
75054         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
75056 2009-12-11  Bruno Haible  <bruno@clisp.org>
75058         Tests for module 'langinfo'.
75059         * modules/langinfo-tests: New file.
75060         * tests/test-langinfo.c: New file.
75062         New module 'langinfo'.
75063         * lib/langinfo.in.h: New file.
75064         * m4/langinfo_h.m4: New file.
75065         * modules/langinfo: New file.
75066         * doc/posix-headers/langinfo.texi: Mention the new module.
75068 2009-12-11  Bruno Haible  <bruno@clisp.org>
75070         * lib/config.charset: Untabify.
75072 2009-12-11  Bruno Haible  <bruno@clisp.org>
75074         * modules/unistd-safer (configure.ac): Drop indicator macro.
75076 2009-12-11  Bruno Haible  <bruno@clisp.org>
75078         Move pipe2-safer code to its own file.
75079         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
75080         * lib/pipe-safer.c (pipe2_safer): Remove function.
75081         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
75082         (Makefile.am): Add it to lib_SOURCES.
75084 2009-12-10  Bruno Haible  <bruno@clisp.org>
75086         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
75088 2009-12-10  Bruno Haible  <bruno@clisp.org>
75090         Declare which arguments expect non-NULL values, for GCC and clang.
75091         * build-aux/arg-nonnull.h: New file.
75092         * modules/arg-nonnull: New file.
75093         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
75094         (inet_ntop, inet_pton): Use it.
75095         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
75096         (closedir, dirfd, opendir, scandir, alphasort): Use it.
75097         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
75098         (open, openat): Use it.
75099         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
75100         (fnmatch): Use it.
75101         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
75102         (getopt, getopt_long, getopt_long_only): Use it.
75103         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
75104         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
75105         Use it.
75106         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
75107         (iconv_open): Use it.
75108         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
75109         (strtoimax, strtoumax): Use it.
75110         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
75111         (duplocale): Use it.
75112         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
75113         (frexp, frexpl): Use it.
75114         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
75115         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
75116         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
75117         (tsearch, tfind, tdelete, twalk): Use it.
75118         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
75119         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
75120         sigpending): Use it.
75121         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
75122         (posix_spawn, posix_spawnp, posix_spawnattr_init,
75123         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
75124         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
75125         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
75126         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
75127         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
75128         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
75129         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
75130         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
75131         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
75132         Use it.
75133         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
75134         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
75135         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
75136         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
75137         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
75138         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
75139         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
75140         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
75141         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
75142         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
75143         strtoull, unsetenv): Use it.
75144         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
75145         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
75146         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
75147         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
75148         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
75149         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
75150         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
75151         (strcasecmp, strncasecmp): Use it.
75152         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
75153         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
75154         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
75155         rpl_setsockopt): Use it.
75156         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
75157         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
75158         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
75159         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
75160         (gettimeofday): Use it.
75161         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
75162         (times): Use it.
75163         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
75164         (uname): Use it.
75165         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
75166         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
75167         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
75168         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
75169         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
75170         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
75171         unlinkat, write): Use it.
75172         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
75173         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
75174         * lib/argv-iter.h: Include arg-nonnull.h.
75175         (_ATTRIBUTE_NONNULL_): Remove macro.
75176         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
75177         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
75178         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
75179         optimization.
75180         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
75181         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
75182         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
75183         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
75184         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
75185         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
75186         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
75187         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
75188         * modules/arpa_inet (Depends-on): Add arg-nonnull.
75189         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
75190         * modules/dirent (Depends-on): Add arg-nonnull.
75191         (Makefile.am): Insert arg-nonnull.h into dirent.h.
75192         * modules/fcntl-h (Depends-on): Add arg-nonnull.
75193         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
75194         * modules/fnmatch (Depends-on): Add arg-nonnull.
75195         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
75196         * modules/getopt-posix (Depends-on): Add arg-nonnull.
75197         (Makefile.am): Insert arg-nonnull.h into getopt.h.
75198         * modules/glob (Depends-on): Add arg-nonnull.
75199         (Makefile.am): Insert arg-nonnull.h into glob.h.
75200         * modules/iconv_open (Depends-on): Add arg-nonnull.
75201         (Makefile.am): Insert arg-nonnull.h into iconv.h.
75202         * modules/inttypes (Depends-on): Add arg-nonnull.
75203         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
75204         * modules/locale (Depends-on): Add arg-nonnull.
75205         (Makefile.am): Insert arg-nonnull.h into locale.h.
75206         * modules/math (Depends-on): Add arg-nonnull.
75207         (Makefile.am): Insert arg-nonnull.h into math.h.
75208         * modules/netdb (Depends-on): Add arg-nonnull.
75209         (Makefile.am): Insert arg-nonnull.h into netdb.h.
75210         * modules/search (Depends-on): Add arg-nonnull.
75211         (Makefile.am): Insert arg-nonnull.h into search.h.
75212         * modules/signal (Depends-on): Add arg-nonnull.
75213         (Makefile.am): Insert arg-nonnull.h into signal.h.
75214         * modules/spawn (Depends-on): Add arg-nonnull.
75215         (Makefile.am): Insert arg-nonnull.h into spawn.h.
75216         * modules/stdio (Depends-on): Add arg-nonnull.
75217         (Makefile.am): Insert arg-nonnull.h into stdio.h.
75218         * modules/stdlib (Depends-on): Add arg-nonnull.
75219         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
75220         * modules/string (Depends-on): Add arg-nonnull.
75221         (Makefile.am): Insert arg-nonnull.h into string.h.
75222         * modules/strings (Depends-on): Add arg-nonnull.
75223         (Makefile.am): Insert arg-nonnull.h into strings.h.
75224         * modules/sys_socket (Depends-on): Add arg-nonnull.
75225         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
75226         * modules/sys_stat (Depends-on): Add arg-nonnull.
75227         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
75228         * modules/sys_time (Depends-on): Add arg-nonnull.
75229         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
75230         * modules/sys_times (Depends-on): Add arg-nonnull.
75231         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
75232         * modules/sys_utsname (Depends-on): Add arg-nonnull.
75233         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
75234         * modules/time (Depends-on): Add arg-nonnull.
75235         (Makefile.am): Insert arg-nonnull.h into time.h.
75236         * modules/unistd (Depends-on): Add arg-nonnull.
75237         (Makefile.am): Insert arg-nonnull.h into unistd.h.
75238         * modules/wchar (Depends-on): Add arg-nonnull.
75239         (Makefile.am): Insert arg-nonnull.h into wchar.h.
75240         * modules/argv-iter (Depends-on): Add arg-nonnull.
75241         * tests/test-canonicalize.c (null_ptr): New function.
75242         (main): Use it.
75243         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
75244         (main): Use it.
75245         * tests/test-memmem.c (null_ptr): New function.
75246         (main): Use it.
75247         Reported by Jim Meyering.
75249 2009-12-10  Bruno Haible  <bruno@clisp.org>
75251         Use spaces for indentation, not tabs.
75252         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
75253         * m4/*.m4: Untabify.
75254         * build-aux/*.h: Untabify.
75255         * tests/**/*.[hc]: Untabify.
75256         * README: New section "Indent with spaces, not TABs", based on
75257         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
75258         * NEWS: Mention the change.
75260 2009-12-10  Bruno Haible  <bruno@clisp.org>
75262         pty test: Fix link error.
75263         * modules/pty-tests (Makefile.am): Add the default LDADD value to
75264         test_pty_LDADD.
75266 2009-12-07  Simon Josefsson  <simon@josefsson.org>
75268         * modules/pty: New file.
75269         * modules/pty-tests: New file.
75270         * m4/pty.m4: New file.
75271         * tests/test-pty.c: New file.
75272         * doc/glibc-headers/pty.texi: Modified.
75273         * doc/glibc-functions/forkpty.texi: Modified.
75274         * doc/glibc-functions/openpty.texi: Modified.
75276 2009-12-10  Bruno Haible  <bruno@clisp.org>
75278         Avoid syntax error in C++ mode.
75279         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
75281 2009-12-10  Bruno Haible  <bruno@clisp.org>
75283         Use sed with option -e.
75284         * gnulib-tool (func_version, func_emit_copyright_notice,
75285         func_emit_initmacro_end, func_import, func_create_testdir): Pass
75286         option -e to sed.
75287         * modules/link-warning (Makefile.am): Likewise.
75289 2009-12-10  Jim Meyering  <meyering@redhat.com>
75291         mgetgroups: do not write bytes beyond end of malloc'd buffer
75292         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
75293         username, we call getgroups with a one-element-shorter buffer,
75294         but still told it the length was original, max_n_groups.
75296 2009-12-09  Eric Blake  <ebb9@byu.net>
75298         cloexec: relax license
75299         * modules/cloexec (Maintainer): Add myself.
75300         (License): Use LGPL, not GPL.
75302         link-warning: optimize generation
75303         * modules/link-warning (Makefile.am): Reduce process usage.
75305 2009-12-09  Bruno Haible  <bruno@clisp.org>
75307         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
75308         workaround was added on 2009-11-17.
75310 2009-12-09  Jim Meyering  <meyering@redhat.com>
75311             Bruno Haible  <bruno@clisp.org>
75313         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
75314         * modules/link-warning (Makefile.am): Make the comment-removing sed
75315         command more robust in the face of bootstrap-prepended comment lines.
75317 2009-12-09  Bruno Haible  <bruno@clisp.org>
75319         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
75320         most one group.
75322 2009-12-09  Simon Josefsson  <simon@josefsson.org>
75323             Bruno Haible  <bruno@clisp.org>
75325         * build-aux/link-warning.h: Add copyright notice.
75326         * modules/link-warning (Makefile.am): Generate link-warning.h from
75327         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
75328         * NEWS: Mention change in link-warning module.
75329         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
75330         * modules/dirent (Makefile.am): Add dependency to dirent.h.
75331         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
75332         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
75333         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
75334         * modules/math (Makefile.am): Add dependency to math.h.
75335         * modules/search (Makefile.am): Add dependency to search.h.
75336         * modules/signal (Makefile.am): Add dependency to signal.h.
75337         * modules/spawn (Makefile.am): Add dependency to spawn.h.
75338         * modules/stdio (Makefile.am): Add dependency to stdio.h.
75339         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
75340         * modules/string (Makefile.am): Add dependency to string.h.
75341         * modules/strings (Makefile.am): Add dependency to strings.h.
75342         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
75343         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
75344         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
75345         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
75346         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
75347         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
75348         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
75349         * modules/unistd (Makefile.am): Add dependency to unistd.h.
75350         * modules/wchar (Makefile.am): Add dependency to wchar.h.
75352 2009-12-09  Bruno Haible  <bruno@clisp.org>
75354         fchdir: Optimize away rpl_fstat when possible.
75355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
75356         REPLACE_OPEN_DIRECTORY.
75357         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
75359 2009-12-09  Bruno Haible  <bruno@clisp.org>
75361         * lib/fchdir.c: Update comment.
75363 2009-12-09  Bruno Haible  <bruno@clisp.org>
75365         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
75367 2009-12-08  Eric Blake  <ebb9@byu.net>
75369         fchdir: avoid memory leak on re-registration.
75370         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
75372 2009-12-08  Jim Meyering  <meyering@redhat.com>
75374         init.sh: avoid Solaris 10 /bin/sh portability problem
75375         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
75376         sourced script:
75377           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
75378           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
75379           bar
75380         tests/init.sh relied on that, accepting a --set-path=DIR argument,
75381         and two tests used that idiom.
75382         * tests/init.sh: Update suggested usage comments.
75383         (path_prepend_): New function, to be used in place
75384         of the --src-path=DIR option.
75385         (setup_): Move PATH-prepending code into path_prepend_.
75386         * tests/test-pread.sh: Adapt to new usage.
75387         * tests/test-xalloc-die.sh: Likewise.
75389 2009-12-08  Simon Josefsson  <simon@josefsson.org>
75391         * doc/gnulib.texi (Glibc pty.h): Add.
75392         * doc/glibc-functions/forkpty.texi: Add.
75393         * doc/glibc-functions/openpty.texi: Add.
75394         Suggested by Bruno Haible.
75396 2009-12-08  Eric Blake  <ebb9@byu.net>
75398         fchdir: fix logic bugs
75399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
75400         * tests/test-fchdir.c (main): Enhance test.
75401         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
75402         is in use.
75404         dup2: fix logic bugs
75405         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
75406         REPLACE_DUP2 to decide when rpl_dup2 is needed.
75407         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
75408         exists.
75409         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
75411 2009-12-07  Eric Blake  <ebb9@byu.net>
75413         unlink: fix m4 detection
75414         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
75416         unistd-safer: add unit test
75417         * modules/unistd-safer-tests: New file.
75418         * tests/test-dup-safer.c: Likewise.
75419         * tests/test-cloexec.c (setmode): Avoid compiler warning.
75420         * tests/test-dup2.c (setmode): Likewise.
75421         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
75423         cloexec: preserve text vs. binary across dup_cloexec
75424         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
75425         mode.
75426         * modules/dup2-tests (Depends-on): Add binary-io.
75427         * modules/cloexec-tests (Depends-on): Likewise.
75428         * tests/test-dup2.c (setmode, is_mode): New helpers.
75429         (main): Add tests that translation mode is preserved.
75430         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
75431         Reported by Bruno Haible.
75433         mgetgroups: reduce duplicate listings
75434         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
75435         resulting array.
75436         * tests/test-chown.h (test_chown): Simplify client.
75437         * tests/test-lchown.h (test_lchown): Likewise.
75439 2009-12-06  Bruno Haible  <bruno@clisp.org>
75441         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
75442         value.
75444 2009-12-06  Bruno Haible  <bruno@clisp.org>
75446         * lib/progname.c: Include stdio.h, stdlib.h.
75447         (set_program_name): Reject a NULL argument.
75449 2009-12-05  Eric Blake  <ebb9@byu.net>
75451         pipe2-safer: new module
75452         * modules/pipe2-safer: New file.
75453         * lib/unistd-safer.h (pipe2_safer): New prototype.
75454         * lib/unistd--.h (pipe2): New wrapper.
75455         * lib/pipe-safer.c (pipe2_safer): New function.
75456         * modules/pipe (Depends-on): Add pipe2-safer.
75457         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
75459         stdlib-safer: preserve cloexec flag for mkostemp[s]
75460         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
75461         fd_safer_flag.
75463         unistd-safer: allow preservation of cloexec status via flag
75464         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
75465         prototypes.
75466         * lib/dup-safer.c (dup_safer_flag): New function.
75467         * lib/fd-safer.c (fd_safer_flag): Likewise.
75468         * modules/cloexec (configure.ac): Set witness.
75470         test-dup2: enhance test
75471         * modules/dup2-tests (Depends-on): Add cloexec.
75472         * tests/test-dup2.c (main): Enhance test.
75474         cloexec: add dup_cloexec
75475         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
75476         header and comments.
75477         * lib/cloexec.c (set_cloexec_flag): Add comments.
75478         (dup_cloexec): New function, with mingw implementation borrowed
75479         from...
75480         * lib/w32spawn.h (dup_noinherit): ...here.
75481         * modules/execute (Depends-on): Add cloexec.
75482         * modules/pipe (Depends-on): Likewise.
75483         * modules/cloexec (Depends-on): Add dup2.
75484         * modules/cloexec-tests (Files): New file.
75485         * tests/test-cloexec.c: Likewise.
75487         test-xalloc-die: fix test for mingw
75488         * modules/xalloc-die-tests (Files): Add tests/init.sh.
75489         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
75490         directory and .exe suffix off argv[0] output.
75492         test-fseeko: fix test for mingw
75493         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
75494         than undefining fseek, so test will pass on mingw.
75496 2009-12-05  Bruno Haible  <bruno@clisp.org>
75498         * lib/progname.h (set_program_name): Clarify specification.
75499         * lib/progname.c (set_program_name): Likewise.
75500         Reported by Jim Meyering.
75502 2009-12-05  Jim Meyering  <meyering@redhat.com>
75504         maint.mk: backslash-escape parens in default regexp
75505         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
75506         backslash-escape the literal parentheses.
75508         maint.mk: news-date-check: use grep -E
75509         * top/maint.mk (today): Define a Make variable, not a...
75510         (news-date-check): ...shell variable.
75511         (news-date-regexp): Use the Make variable.
75512         Use grep's -E option.  Change the failing diagnostic to mention
75513         the variable, $(news-date-regexp).
75515 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
75517         maintainer-makefile: allow customization of NEWS entry format
75518         * top/maint.mk (news-date-regexp): New overridable variable.
75519         (news-date-check): Use it.
75521 2009-12-04  Eric Blake  <ebb9@byu.net>
75523         mgetgroups: add xgetgroups, and avoid ENOSYS failures
75524         * lib/mgetgroups.h (xgetgroups): New prototype.
75525         * lib/mgetgroups.c (xgetgroups): New wrapper.
75526         (mgetgroups): Handle ENOSYS.
75527         * modules/mgetgroups (Depends-on): Add realloc.
75528         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
75530         mgetgroups: avoid argument promotion issues with -1
75531         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
75532         for invalid gid_t.
75533         * tests/test-chown.h (getegid, test_chown): Likewise.
75534         * tests/test-lchown.h (getegid, test_lchown): Likewise.
75536 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
75538         exclude: Fix header file problems.
75539         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
75541 2009-12-01  Jim Meyering  <meyering@redhat.com>
75543         fts: fts_open: do not let an empty string cause immediate failure
75544         This is required in support of GNU rm, for which the command
75545         "rm A '' B" must process and remove both A and B, in spite of
75546         the empty string argument.
75547         * lib/fts.c (fts_open): Do not let the presence of an empty string
75548         cause fts_open to fail immediately.  Most fts-using tools must be
75549         able to process all arguments, in order, and can be expected to
75550         diagnose such arguments themselves.
75552 2009-11-30  Eric Blake  <ebb9@byu.net>
75554         utimens: fix compilation error
75555         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
75556         Declare variable at right scope.
75558 2009-11-29  Jim Meyering  <meyering@redhat.com>
75560         bootstrap: handle perl-5.11's changed --version output
75561         * build-aux/bootstrap (get_version): Handle perl separately,
75562         since perl-5.11's --version output is different.
75564 2009-11-28  Jim Meyering  <meyering@redhat.com>
75566         userspec: depend on the inttostr module, too
75567         * modules/userspec (Depends-on): Add inttostr.
75569         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
75570         * lib/userspec.c (parse_with_separator): Do not accept a user ID
75571         number of MAXUID when it evaluates to (uid_t) -1.
75572         Likewise for group ID.  Reported by Matt McCutchen in
75573         <http://savannah.gnu.org/bugs/?28113>
75575         userspec: reformat to use spaces, not TABs
75576         * lib/userspec.c: Expand TABs to spaces.
75577         Add Emacs' "indent-tabs-mode: nil" hint.
75579 2009-11-27  Eric Blake  <ebb9@byu.net>
75581         getopt-gnu: flush out another BSD bug
75582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
75583         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
75584         flush out BSD bug.
75585         * tests/test-getopt.h (test_getopt): End lists with NULL.
75586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
75587         (test_getopt_long_posix): Enhance test.
75588         * modules/getopt-posix-tests (Depends-on): Add stdbool.
75589         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
75590         getopt-gnu.
75591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75592         Likewise.
75594 2009-11-27  Simon Josefsson  <simon@josefsson.org>
75596         * modules/idpriv-droptemp-tests (Notice): Fix text.
75598 2009-11-27  Jim Meyering  <meyering@redhat.com>
75600         test-xalloc-die: avoid spurious failure due to libtool argv difference
75601         In a libtool-enabled project, this test would fail due to a difference
75602         in the emitted program name, e.g.,
75603         -test-xalloc-die: memory exhausted
75604         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
75605         Use program to avoid that.
75606         * modules/xalloc-die-tests (Depends-on): Add progname.
75607         * tests/test-xalloc-die.c: Include progname.h".
75608         (program_name): Remove decl.
75609         (main): Call set_program_name.
75610         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
75612 2009-11-26  Richard Jones  <rjones@redhat.com>
75614         w32sock: leave win32 error in place.
75615         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
75617 2009-11-26  Eric Blake  <ebb9@byu.net>
75619         init.sh: suggest to use skip_ and fail_ functions in comments
75620         * tests/init.sh: Add a sentence.
75622 2009-11-25  Bruno Haible  <bruno@clisp.org>
75624         init.sh: add documentation in comments
75625         * tests/init.sh: Add some developer and user documentation.
75627 2009-11-26  Jim Meyering  <meyering@redhat.com>
75629         init.sh: accommodate even those who specify bogus srcdir manually
75630         * tests/init.sh: Normally, srcdir is guaranteed by automake and
75631         configure-time tests to be sanitized, so that there is no need to
75632         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
75633         (with no double quotes) suffices.  However, since tests may be
75634         invoked manually, and since you may explicitly set srcdir to the
75635         name of a directory containing spaces, do quote its uses here.
75636         * tests/test-pread.sh: Likewise.
75637         Suggested by Bruno Haible.
75639         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
75640         * tests/test-pread.sh: Write no data into the pipe, because
75641         test-pread actually reads none.  This avoids a diagnostic,
75642         "bash: echo: write error: Broken pipe", that arises in the unusual
75643         event something is ignoring SIGPIPE, and might be interpreted
75644         as some sort of failure.  Reported by Bruno Haible.
75646 2009-11-25  Jim Meyering  <meyering@redhat.com>
75648         test-pread: cover failure with ESPIPE and EINVAL
75649         * tests/test-pread.c (main): Test for failure, too.
75650         * tests/test-pread.sh: Invoke with stdin on a pipe.
75651         Suggested by Eric Blake.
75653         pread: improvement and fix
75654         * modules/pread (Depends-on): Depend on lseek, for portability to
75655         e.g., mingw.  Suggested by Eric Blake.
75656         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
75658         unistd.in.h: correct declaration of pread
75659         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
75660         Reported by Richard W.M. Jones.
75662         test-pread.sh: distribute the test script
75663         * modules/pread-tests (Files): Include test-pread.sh.
75665         test-pread.sh: clean up
75666         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
75667         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
75668         That is unnecessary, since it's always ".".
75669         Suggestion from Eric Blake.
75671         test-pread.sh: make executable
75672         * tests/test-pread.sh: Set executable bit.
75673         Reported by Eric Blake.
75675         correct typo in test-pread.sh
75676         * tests/test-pread.sh: Add #! line.
75678         test pread
75679         * tests/test-pread.c: New file.
75680         * tests/test-pread.sh: Likewise.
75681         * modules/pread-tests: Likewise.
75683         pread: new module
75684         * modules/pread: New file.
75685         * lib/unistd.in.h (pread): Define/declare.
75686         * lib/pread.c (pread): New file.
75687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
75688         * modules/unistd (Makefile.am): Substitute witnesses.
75689         * doc/posix-functions/pread.texi (pread): Update.
75690         * MODULES.html.sh: Add pread.
75692 2009-11-25  Jim Meyering  <meyering@redhat.com>
75694         tests/init.sh: new file to be used via most *.sh tests
75695         * tests/init.sh: New file.
75697 2009-11-25  Eric Blake  <ebb9@byu.net>
75699         utimens: work around older Linux failure with symlinks
75700         * lib/utimens.c (lutimensat_works_really): New variable.
75701         (fdutimens, lutimens): Use it to manage kernels that support
75702         nanosecond times on files, but not on symlinks.
75703         Reported by Ondřej Vašík.
75705         utimes: fix configure grammar
75706         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
75708 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
75710         regex: Fix fastmap for multibyte character ranges.
75711         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
75712         characters when a multibyte character range is included.
75714 2009-11-22  Andy Wingo  <wingo@pobox.com>
75716         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
75717         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
75719 2009-11-24  Bruno Haible  <bruno@clisp.org>
75721         doc: Most *_l functions exist in MacOS X 10.5.
75722         * doc/posix-functions/duplocale.texi: Update platforms list.
75723         * doc/posix-functions/freelocale.texi: Likewise.
75724         * doc/posix-functions/newlocale.texi: Likewise.
75725         * doc/posix-functions/uselocale.texi: Likewise.
75726         * doc/posix-functions/isalnum_l.texi: Likewise.
75727         * doc/posix-functions/isalpha_l.texi: Likewise.
75728         * doc/posix-functions/isblank_l.texi: Likewise.
75729         * doc/posix-functions/iscntrl_l.texi: Likewise.
75730         * doc/posix-functions/isdigit_l.texi: Likewise.
75731         * doc/posix-functions/isgraph_l.texi: Likewise.
75732         * doc/posix-functions/islower_l.texi: Likewise.
75733         * doc/posix-functions/isprint_l.texi: Likewise.
75734         * doc/posix-functions/ispunct_l.texi: Likewise.
75735         * doc/posix-functions/isspace_l.texi: Likewise.
75736         * doc/posix-functions/isupper_l.texi: Likewise.
75737         * doc/posix-functions/iswalnum_l.texi: Likewise.
75738         * doc/posix-functions/iswalpha_l.texi: Likewise.
75739         * doc/posix-functions/iswblank_l.texi: Likewise.
75740         * doc/posix-functions/iswcntrl_l.texi: Likewise.
75741         * doc/posix-functions/iswctype_l.texi: Likewise.
75742         * doc/posix-functions/iswdigit_l.texi: Likewise.
75743         * doc/posix-functions/iswgraph_l.texi: Likewise.
75744         * doc/posix-functions/iswlower_l.texi: Likewise.
75745         * doc/posix-functions/iswprint_l.texi: Likewise.
75746         * doc/posix-functions/iswpunct_l.texi: Likewise.
75747         * doc/posix-functions/iswspace_l.texi: Likewise.
75748         * doc/posix-functions/iswupper_l.texi: Likewise.
75749         * doc/posix-functions/iswxdigit_l.texi: Likewise.
75750         * doc/posix-functions/isxdigit_l.texi: Likewise.
75751         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
75752         * doc/posix-functions/strcasecmp_l.texi: Likewise.
75753         * doc/posix-functions/strcoll_l.texi: Likewise.
75754         * doc/posix-functions/strfmon_l.texi: Likewise.
75755         * doc/posix-functions/strftime_l.texi: Likewise.
75756         * doc/posix-functions/strncasecmp_l.texi: Likewise.
75757         * doc/posix-functions/strxfrm_l.texi: Likewise.
75758         * doc/posix-functions/tolower_l.texi: Likewise.
75759         * doc/posix-functions/toupper_l.texi: Likewise.
75760         * doc/posix-functions/towctrans_l.texi: Likewise.
75761         * doc/posix-functions/towlower_l.texi: Likewise.
75762         * doc/posix-functions/towupper_l.texi: Likewise.
75763         * doc/posix-functions/wcscoll_l.texi: Likewise.
75764         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
75765         * doc/posix-functions/wctrans_l.texi: Likewise.
75766         * doc/posix-functions/wctype_l.texi: Likewise.
75767         * doc/glibc-functions/strptime_l.texi: Likewise.
75768         * doc/glibc-functions/strtod_l.texi: Likewise.
75769         * doc/glibc-functions/strtof_l.texi: Likewise.
75770         * doc/glibc-functions/strtol_l.texi: Likewise.
75771         * doc/glibc-functions/strtold_l.texi: Likewise.
75772         * doc/glibc-functions/strtoll_l.texi: Likewise.
75773         * doc/glibc-functions/strtoul_l.texi: Likewise.
75774         * doc/glibc-functions/strtoull_l.texi: Likewise.
75775         * doc/glibc-functions/wcsftime_l.texi: Likewise.
75776         * doc/glibc-functions/wcstod_l.texi: Likewise.
75777         * doc/glibc-functions/wcstof_l.texi: Likewise.
75778         * doc/glibc-functions/wcstol_l.texi: Likewise.
75779         * doc/glibc-functions/wcstold_l.texi: Likewise.
75780         * doc/glibc-functions/wcstoll_l.texi: Likewise.
75781         * doc/glibc-functions/wcstoul_l.texi: Likewise.
75782         * doc/glibc-functions/wcstoull_l.texi: Likewise.
75784 2009-11-24  Bruno Haible  <bruno@clisp.org>
75786         duplocale: Fix logic bug.
75787         * lib/duplocale.c: Don't include <langinfo.h>.
75788         (_NL_LOCALE_NAME): Remove macro.
75789         (rpl_duplocale): Use setlocale instead of nl_langinfo.
75790         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
75792 2009-11-23  Jim Meyering  <meyering@redhat.com>
75794         test-update-copyright: don't hard-code /usr/bin/perl
75795         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
75796         perl to print the current year.  Gilles Espinasse reported that
75797         the replaced use of perl was hard-coded as /usr/bin/perl.
75799 2009-11-23  Bruno Haible  <bruno@clisp.org>
75801         duplocale: Add support for glibc 2.3.x.
75802         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
75804 2009-11-22  Bruno Haible  <bruno@clisp.org>
75806         vasnprintf: Tiny optimization.
75807         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
75808         MacOS X.
75810 2009-11-22  Bruno Haible  <bruno@clisp.org>
75812         Tests for module 'duplocale'.
75813         * modules/duplocale-tests: New file.
75814         * tests/test-duplocale.c: New file.
75816         New module 'duplocale'.
75817         * m4/duplocale.m4: New file.
75818         * lib/locale.in.h (duplocale): New declaration.
75819         * lib/duplocale.c: New file.
75820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
75821         gl_LOCALE_H_DEFAULTS): New macros.
75822         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
75823         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
75824         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
75825         REPLACE_DUPLOCALE.
75826         * modules/duplocale: New file.
75827         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
75829 2009-11-22  Bruno Haible  <bruno@clisp.org>
75831         * modules/locale-tests (configure.ac): Test for newlocale function.
75832         * tests/test-locale.c: When the system has extended locale functions,
75833         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
75835         locale: Make locale_t available when possible.
75836         * lib/locale.in.h: Include <xlocale.h> when it exists.
75837         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
75838         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
75839         * modules/locale (Depends-on): Add extensions.
75840         (Makefile.am): Also substitute HAVE_XLOCALE_H.
75841         * doc/posix-headers/locale.texi: Document the problem with locale_t.
75843 2009-11-22  Bruno Haible  <bruno@clisp.org>
75845         Add comments.
75846         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
75847         invocation.
75848         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
75849         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
75850         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
75852 2009-11-22  Bruno Haible  <bruno@clisp.org>
75854         error: account for the possibility of freopen (stdout).
75855         * lib/error.c: Include <unistd.h>.
75856         (flush_stdout): New function, extracted from error and error_at_line.
75857         Determine stdout's fd dynamically.
75858         (error, error_at_line): Invoke flush_stdout.
75859         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
75860         * modules/error (Depends-on): Add unistd.
75862 2009-11-22  Bruno Haible  <bruno@clisp.org>
75864         diffseq: Add comment.
75865         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
75867 2009-11-22  Jim Meyering  <meyering@redhat.com>
75869         c-stack: avoid defining an unused static function
75870         * lib/c-stack.c (find_stack_direction): Do not define this function
75871         when it will not be used.
75873         diffseq: avoid spurious gcc warnings
75874         * lib/diffseq.h (IF_LINT2): Define.
75875         (compareseq): Use it to initialize two members of "part".
75876         This avoids two used-uninitialized warnings.
75878 2009-11-21  Jim Meyering  <meyering@redhat.com>
75880         c-stack: avoid "ignoring return value of `write'" warning
75881         * lib/c-stack.c: Include "ignore-value.h".
75882         (die): Explicitly ignore each write return value.
75883         * modules/c-stack (Depends-on): Add ignore-value.
75885 2009-11-21  Bruno Haible  <bruno@clisp.org>
75887         diffseq: reduce scope of variable 'best'.
75888         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
75889         variable, earlier used for two different purposes.
75891 2009-11-21  Jim Meyering  <meyering@redhat.com>
75893         diffseq: remove useless assignment to "best"
75894         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
75895         assignment.  At that point "best" is already guaranteed to be zero.
75897 2009-11-20  Eric Blake  <ebb9@byu.net>
75899         build: mention ftp redirector in release announcements
75900         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
75901         values that used to come from cfg.mk; mention FTP redirect URL.
75902         * build-aux/announce-gen: Mention the mirror list.
75903         Suggested by Karl Berry.
75905         nanosleep: improve port to mingw
75906         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
75907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
75908         LIB_NANOSLEEP, but only when needed.
75909         * modules/select (Link): Document LIBSOCKET.
75910         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
75911         enough.
75913         nanosleep: work around cygwin bug
75914         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
75915         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
75916         bug.
75917         (getnow): Delete, not needed.
75918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
75919         LIB_CLOCK_GETTIME.
75920         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
75921         clock-time, gettime.
75922         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
75923         bug.
75924         * modules/nanosleep-tests: New test.
75925         * tests/test-nanosleep.c: New file.
75927         sleep: work around cygwin bug
75928         * lib/sleep.c (rpl_sleep): Work around the bug.
75929         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
75930         (gl_PREREQ_SLEEP): Delete unused macro.
75931         * modules/sleep (Depends-on): Add verify.
75932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
75933         * modules/unistd (Makefile.am): Substitute witness.
75934         * lib/unistd.in.h (sleep): Update prototype.
75935         * doc/posix-functions/sleep.texi (sleep): Document the bug.
75936         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
75937         * modules/sleep-tests (Depends-on): Check for alarm.
75939 2009-11-20  Jim Meyering  <meyering@redhat.com>
75941         maint.mk: improve sc_prohibit_magic_number_exit
75942         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
75943         so it does not match uses like System.exit(1).
75944         Add comments showing how to correct all offenders.
75946 2009-11-19  Eric Blake  <ebb9@byu.net>
75948         xalloc-die-tests: add missing library
75949         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
75951         test-xvasprintf: silence compiler warnings
75952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
75953         empty string from gcc.
75955 2009-11-19  Jim Meyering  <meyering@redhat.com>
75957         xfreopen: new module, from coreutils
75958         * modules/xfreopen: New module.
75959         * lib/xfreopen.c: New file.
75960         * lib/xfreopen.h: New file.
75961         * MODULES.html.sh (File stream based Input/Output"): Add it.
75963 2009-11-19  Eric Blake  <ebb9@byu.net>
75965         manywarnings: depend on warnings
75966         * modules/manywarnings (Depends-on): Add warnings.
75968         build: avoid compiler warnings
75969         * lib/select.c (rpl_select): Delete unused variable.
75970         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
75972 2009-11-18  Eric Blake  <ebb9@byu.net>
75974         tests: avoid false negative with --with-packager
75975         * tests/test-version-etc.sh: Discard packager information.
75976         * tests/test-argp-version-etc-1.sh: Likewise.
75977         Reported by Mike Frysinger.
75979         utimens: fix regression on Solaris
75980         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
75981         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
75982         can only change fd timestamps via futimesat.  Instead, use an
75983         additional witness macro to avoid BSD bug.
75984         Reported by Jim Meyering.
75986 2009-11-17  Eric Blake  <ebb9@byu.net>
75988         usleep: use it to simplify tests
75989         * modules/stat-time-tests (Depends-on): Add usleep.
75990         (configure.ac): Drop usleep check.
75991         * modules/chown-tests (Depends-on, configure.ac): Likewise.
75992         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
75993         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
75994         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
75995         * modules/openat-tests (Depends-on, configure.ac): Likewise.
75996         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
75997         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
75998         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
75999         Likewise.
76000         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
76001         * tests/test-lchown.h (nap): Likewise.
76002         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
76003         * tests/test-stat-time.c (nap): Likewise.
76004         * tests/test-utimens-common.h (nap): Update comments.
76006         usleep: new module
76007         * modules/usleep: New file.
76008         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
76009         * lib/usleep.c (usleep): Likewise.
76010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76011         * modules/unistd (Makefile.am): Substitute witnesses.
76012         * lib/unistd.in.h (usleep): Add declaration.
76013         * doc/pastposix-functions/usleep.texi (usleep): Document this.
76014         * MODULES.html.sh (Date and time): Likewise.
76015         * modules/usleep-tests (Depends-on): New test.
76016         * tests/test-usleep.c: New file.
76018         chown: work around OpenBSD bug
76019         * lib/chown.c (rpl_chown): Work around the bug.
76020         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
76021         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
76022         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
76023         * modules/chown (Depends-on): Add stdbool.
76024         * modules/lchown (Depends-on): Likewise.
76025         * doc/posix-functions/chown.texi (chown): Document the bug.
76026         * doc/posix-functions/lchown.texi (lchown): Likewise.
76027         * tests/test-lchown.h (test_chown): Relax test.
76029         mkstemp: avoid conflict with C++ keyword template
76030         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
76031         * lib/mkostemp.c (mkostemp): Likewise.
76032         * lib/mkostemps.c (mkostemps): Likewise.
76033         * lib/mkstemp.c (mkstemp): Likewise.
76034         * lib/mkstemps.c (mkstemps): Likewise.
76036         xalloc-die-tests: optimize
76037         * tests/test-xalloc-die.sh: Reduce number of processes.
76039 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76041         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
76042         patch from ludo@gnu.org (Ludovic Courtès).
76044 2009-11-17  Jim Meyering  <meyering@redhat.com>
76046         version-etc: use proper license string
76047         * modules/version-etc (License): Use LGPL, not LGPLv3+.
76048         * modules/version-etc-fsf: Likewise.
76050 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76052         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
76053         printed to stdout.  Deal with EOL differences.
76055 2009-11-17  Eric Blake  <ebb9@byu.net>
76057         unsetenv: work around Solaris bug
76058         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
76059         * lib/unsetenv.c (rpl_unsetenv): Work around it.
76060         Reported by Jim Meyering.
76062         vasnprintf: avoid compiler warnings
76063         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
76064         variables.
76065         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
76067 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76069         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
76070         settings since xalloc-die is no longer the self test,
76071         xalloc-die.sh is.
76073 2009-11-17  Jim Meyering  <meyering@redhat.com>
76075         test-xalloc-die.sh: make the code agree with the commit log
76076         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
76077         at the end, just in case you happen to have a test-xalloc-die
76078         program in some other PATH directory.
76080         test-xalloc-die.sh: fix a portability bug
76081         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
76082         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
76083         Otherwise, argv[0] (as often seen in diagnostics) would be too
76084         system-dependent, sometimes with, and sometimes without the leading "./".
76086         version-etc-fsf: relax license to LGPLv3+
76087         * modules/version-etc-fsf (License): Relax license.
76089 2009-11-16  Eric Blake  <ebb9@byu.net>
76091         xalloc-die-tests: avoid printing null pointer
76092         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
76093         shell script.
76094         * tests/test-xalloc-die.c (program_name): Declare.
76095         * tests/test-xalloc-die.sh (tmpfiles): New file.
76097         setenv, unsetenv: work around various bugs
76098         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
76099         (setenv) [HAVE_SETENV]: Work around bugs.
76100         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
76101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
76102         for bugs.
76103         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
76104         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
76105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
76106         * modules/stdlib (Makefile.am): Update substitutions.
76107         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
76108         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
76109         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76110         * modules/setenv-tests: New test.
76111         * modules/unsetenv-tests: Likewise.
76112         * tests/test-setenv.c: New file.
76113         * tests/test-unsetenv.c: Likewise.
76115 2009-11-16  Jim Meyering  <meyering@redhat.com>
76117         version-etc: relax license to LGPLv3+
76118         * modules/version-etc (License): Relax license.
76120         better AC_REQUIRE expanded-before-required-warning avoidance
76121         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
76122         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
76123         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
76124         which is no longer needed.
76126 2009-11-16  Eric Blake  <ebb9@byu.net>
76128         test-freading: clean up temporary file
76129         * tests/test-freading.c (main): Remove file on success, and use
76130         ASSERT more liberally.
76131         Reported by Jim Meyering.
76133 2009-11-16  Jim Meyering  <meyering@redhat.com>
76135         avoid new AC_REQUIRE expanded-before-required warnings
76136         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
76137         merely using it.
76138         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
76139         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
76141 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76143         * tests/test-xalloc-die.c: New file.
76144         * modules/xalloc-die-tests: New file.
76145         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
76146         XFAIL_TESTS so it can be appended by modules.
76148 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76150         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
76151         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
76153 2009-11-14  Eric Blake  <ebb9@byu.net>
76155         fnmatch: avoid compiler warning
76156         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
76157         to silence compiler warning about mismatch signedness in ?:.
76158         Reported by Robert Millan.
76160         intprops: add double-inclusion guard
76161         * lib/intprops.h: Allow idempotent includes.
76162         Suggested by Bruce Korb.
76164         openat: detect Solaris fchownat bug
76165         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
76166         penalizing glibc chownat when only lchownat is broken.
76167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
76168         trailing slash bugs.
76169         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
76170         * modules/openat-tests (Files): Include more files.
76171         (Depends-on): Add mgetgroups, sleep, stat-time.
76172         (configure.ac): Add additional checks.
76173         (Makefile.am): Build new test.
76174         * tests/test-fchownat.c: New file.
76176         lchown: detect Solaris and FreeBSD bug
76177         * lib/lchown.c (rpl_lchown): Work around bug.
76178         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
76179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76180         * modules/unistd (Makefile.am): Populate it.
76181         * lib/unistd.in.h (lchown): Update declaration.
76182         * doc/posix-functions/lchown.texi (lchown): Document the bug.
76183         * modules/lchown-tests: New file.
76184         * tests/test-lchown.h (test_lchown): Likewise.
76185         * tests/test-lchown.c (main): Likewise.
76187         chown: detect Solaris and FreeBSD bug
76188         * lib/chown.c (rpl_chown): Work around bug.
76189         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
76190         (gl_PREREQ_CHOWN): Delete.
76191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76192         * modules/unistd (Makefile.am): Populate it.
76193         * lib/unistd.in.h (chown): Update declaration.
76194         * lib/lchown.c (chown): Update client.
76195         * modules/lchown (Depends-on): Add lstat.
76196         * doc/posix-functions/chown.texi (chown): Document the bug.
76197         * doc/posix-functions/getgroups.texi (getgroups): Document
76198         getgroups pitfall.
76199         * modules/chown-tests: New file.
76200         * tests/test-chown.h (test_chown): Likewise.
76201         * tests/test-chown.c (main): Likewise.
76203 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
76205         gnulib-tool: correctly detect absence of m4 directories
76206         * gnulib-tool: Avoid extra newline on data passed to wc -l.
76208 2009-11-14  Jim Meyering  <meyering@redhat.com>
76210         maint.mk: Prohibit inclusion of "xalloc.h" without use.
76211         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
76213 2009-11-14  John W. Eaton  <jwe@gnu.org>
76215         strftime.h: wrap function declaration in extern "C" block
76216         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
76218 2009-11-13  Eric Blake  <ebb9@byu.net>
76220         getgroups: avoid compiler warning
76221         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
76223         getgroups: work around FreeBSD bug
76224         * lib/getgroups.c (rpl_getgroups): Work around the bug.
76225         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
76226         * doc/posix-functions/getgroups.texi (getgroups): Document it.
76227         * tests/test-getgroups.c (main): Fix buffer overrun.
76229         getgroups: avoid compilation failure
76230         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
76231         * modules/getgroups (Depends-on): Add stdint.
76233 2009-11-13  Jim Meyering  <meyering@redhat.com>
76235         test-getgroups: avoid compilation failure
76236         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
76238 2009-11-13  Eric Blake  <ebb9@byu.net>
76240         mgetgroups: new module, taken from coreutils
76241         * modules/mgetgroups: New file.
76242         * lib/mgetgroups.h: Likewise.
76243         * lib/mgetgroups.c (mgetgroups): Likewise.
76244         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
76245         * MODULES.html.sh (Users and groups): Mention it.
76247         getgroups: don't expose GETGROUPS_T to user
76248         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
76249         an element at a time if GETGROUPS_T is wrong size.
76250         * lib/getugroups.h (getugroups): Change signature.
76251         * lib/unistd.in.h (getgroups): Likewise.
76252         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
76253         signature needs fixing.
76254         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
76255         AC_TYPE_GETGROUPS.
76256         * modules/group-member (Depends-on): Add getgroups.
76257         * lib/group-member.c (group_info, get_group_info): Use gid_t.
76258         (group_member): Rely on getgroups replacement.
76259         * lib/getugroups.c (getugroups): Use gid_t.
76260         * tests/test-getgroups.c (main): Likewise.
76261         * NEWS: Mention the signature change.
76262         * doc/posix-functions/getgroups.texi (getgroups): Mention the
76263         problem with signature.
76264         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
76265         GETGROUPS_T is still useful for setgroups.
76267         getgroups, getugroups: provide stubs for mingw
76268         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
76269         * lib/getugroups.c (getugroups): Likewise.
76270         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
76271         function.  Modernize replacement scheme.
76272         (gl_PREREQ_GETGROUPS): Delete.
76273         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
76274         * modules/getgroups (configure.ac): Declare witness.
76275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76276         * modules/unistd (Depends-on): Substitute witness.
76277         * lib/unistd.in.h (getgroups): Declare replacement.
76279         getgroups: avoid calling exit
76280         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
76281         drop xalloc.
76282         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
76283         dependencies.
76284         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
76285         exiting, in the rare case of malloc failure.
76287         getgroups: fix logic error
76288         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
76289         has more than 20 groups.
76290         * modules/getgroups-tests: New test.
76291         * tests/test-getgroups.c: New file.
76293 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76295         * tests/test-base64.c: Improve.
76297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76299         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
76300         Blake <ebb9@byu.net>.
76302 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76304         * tests/test-xvasprintf.c: Add %s%s related checks.
76306 2009-11-12  Eric Blake  <ebb9@byu.net>
76308         version-etc: match standards.texi style
76309         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
76310         and use <> only for URLs.
76312 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
76314         fts: do not fail on a submount during traversal
76315         * lib/fts.c (fts_build): Read the stat info again after opening
76316         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
76317         Original report at http://bugzilla.redhat.com/501848.
76319 2009-11-12  Jim Meyering  <meyering@redhat.com>
76321         bootstrap: sync from coreutils
76322         * build-aux/bootstrap (bootstrap_epilogue): New function.
76323         Use git_modules_config in one more place.  This make bootstrap's
76324         --gnulib-srcdir option more useful for testing.
76326         bootstrap: generalize autoheader check
76327         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
76328         AC_CONFIG_HEADERS.
76330 2009-11-11  Eric Blake  <ebb9@byu.net>
76332         mkfifoat: use new modules for Solaris and BSD bugs
76333         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
76334         * lib/mkfifoat.c (mknodat): Split...
76335         * lib/mknodat.c (mknodat): ...into new file.
76336         * modules/mkfifoat (Files): Ship new file.
76337         (Depends-on): Add mkfifo, mknod.
76338         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
76339         (Depends-on): Add symlink.
76340         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
76341         redundant with test_mkfifo.h.
76342         (do_mkfifoat, do_mknodat): New helpers.
76344         mknod: new module
76345         * modules/mknod: New file.
76346         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
76347         * lib/mknod.c (mknod): Likewise.
76348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
76349         defaults.
76350         * modules/sys_stat (Makefile.am): Substitute them.
76351         * lib/sys_stat.in.h (mknod): Declare replacement.
76352         * MODULES.html.sh (Support for systems lacking POSIX:2008):
76353         Document it.
76354         * doc/posix-functions/mknod.texi (mknod): Likewise.
76355         * modules/mknod-tests: New test.
76356         * tests/test-mknod.c: Likewise.
76358         mkfifo: new module
76359         * modules/mkfifo: New file.
76360         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
76361         * lib/mkfifo.c (mkfifo): Likewise.
76362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
76363         defaults.
76364         * modules/sys_stat (Makefile.am): Substitute them.
76365         * lib/sys_stat.in.h (mkfifo): Declare replacement.
76366         * MODULES.html.sh (Support for systems lacking POSIX:2008):
76367         Document it.
76368         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
76369         * modules/mkfifo-tests: New test.
76370         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
76371         from test-mkfifoat.c.
76372         * tests/test-mkfifo.c: New file.
76374         readlink: detect FreeBSD bug
76375         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
76376         slash on symlink.
76377         * doc/posix-functions/readlink.texi (readlink): Document the bug.
76378         * tests/test-readlink.h (test_readlink): Enhance test.
76380         symlink: detect FreeBSD bug
76381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
76382         slash on symlink.
76383         * doc/posix-functions/symlink.texi (symlink): Document the bug.
76384         * tests/test-symlink.h (test_symlink): Enhance test.
76386 2009-11-10  Eric Blake  <ebb9@byu.net>
76388         link: detect FreeBSD bug
76389         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
76390         symlink.
76391         * doc/posix-functions/link.texi (link): Document the bug.
76392         * tests/test-link.h (test_link): Enhance test.
76393         * tests/test-linkat.c (main): Update caller.
76395         unlink, remove: detect FreeBSD bug
76396         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
76397         slash on symlink.
76398         * doc/posix-functions/unlink.texi (unlink): Document the bug.
76399         * doc/posix-functions/remove.texi (remove): Likewise.
76400         * tests/test-unlink.h (test_unlink): Enhance test.
76401         * tests/test-remove.c (main): Likewise.
76403 2009-11-09  Eric Blake  <ebb9@byu.net>
76405         rename: detect FreeBSD bug
76406         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
76407         slash on symlink.
76408         * modules/renameat-tests (Depends-on): Add filenamecat.
76409         * tests/test-rename.h (test_rename): Allow one more errno.
76410         * tests/test-renameat.c (main): Likewise.
76411         * doc/posix-functions/rename.texi (rename): Document the bug.
76413         open: detect FreeBSD bug
76414         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
76415         symlink.
76416         * doc/posix-functions/open.texi (open): Document the bug.
76417         * doc/posix-functions/utimes.texi (utimes): Likewise.
76418         * tests/test-open.h (test_open): Add parameters, and test symlink
76419         handling.
76420         * tests/test-open.c (main): Adjust caller.
76421         * tests/test-fcntl-safer.c (main): Likewise.
76422         * modules/open-tests (Depends-on): Add stdbool, symlink.
76423         * modules/fcntl-safer-tests (Depends-on): Likewise.
76424         * tests/test-openat.c (main): Add test-open tests.
76426         stat: detect FreeBSD bug
76427         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
76428         symlink.
76429         * doc/posix-functions/stat.texi (stat): Document the bug.
76430         * tests/test-stat.h (test_stat_func): Add argument.
76431         * tests/test-stat.c (main): Adjust caller.
76432         * tests/test-fstatat.c (main): Likewise.
76433         * modules/stat-tests (Depends-on): Add stdbool, symlink.
76434         Reported by Jim Meyering.
76436 2009-11-09  James Youngman  <jay@gnu.org>
76438         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
76439         * lib/strftime.c: Correct placement of #include "ignore-value.h".
76441 2009-11-08  Jim Meyering  <meyering@redhat.com>
76443         utimens: remove invalid futimesat call
76444         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
76445         It used the file descriptor of the target file as the DIR_FD
76446         parameter and NULL as the file name.  That caused failure with
76447         errno == EFAULT on FreeBSD-8.0-rc2
76449 2009-11-07  Eric Blake  <ebb9@byu.net>
76451         fflush, freadseek: use fseeko, not fseek
76452         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
76453         (clear_ungetc_buffer): Avoid potential problems on large files.
76454         * lib/freadseek.c (freadseek): Likewise.
76455         * modules/freadseek (Depends-on): Add fseeko.
76456         * modules/fseek (configure.ac): Set a witness.
76457         * tests/test-fflush.c (main): Use fseeko.
76458         * tests/test-fpurge.c (fseek): Disable link warning.
76459         * tests/test-freadable.c (fseek): Likewise.
76460         * tests/test-freading.c (fseek): Likewise.
76461         * tests/test-fseeko.c (fseek): Likewise.
76462         * tests/test-ftell.c (fseek): Likewise.
76463         * tests/test-ftello.c (fseek): Likewise.
76464         * tests/test-fwritable.c (fseek): Likewise.
76465         * tests/test-fwriting.c (fseek): Likewise.
76467 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76469         * modules/memchr (Depends-on): Drop getpagesize dependency.
76471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76473         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
76474         Reported by Ludovic Courtès.
76475         * build-aux/pmccabe2html: Improve example usage.
76476         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
76478 2009-11-06  Jim Meyering  <meyering@redhat.com>
76480         do-release-commit-and-tag: New module.
76481         Automate the release-commit and tag process.
76482         * build-aux/do-release-commit-and-tag: New script, from coreutils.
76483         * modules/do-release-commit-and-tag: New file.
76484         * MODULES.html.sh (Support for maintaining and releasing): Add it.
76486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76488         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
76489         because test-select.c uses inet_pton.
76491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76493         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
76494         GETADDRINFO_LIB.  Bump serial number.
76495         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
76496         Suggested by Eric Blake <ebb9@byu.net>.
76498 2009-11-05  Eric Blake  <ebb9@byu.net>
76500         strtod: detect darwin bug
76501         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
76502         Reported by Leo Davis.
76504         freopen-safer: new module
76505         * modules/freopen-safer: New module.
76506         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
76507         * lib/freopen-safer.c (freopen_safer): New file.
76508         * lib/stdio-safer.h (freopen_safer): New declaration.
76509         * lib/stdio--.h (freopen): New override.
76510         * MODULES.html.sh (File stream based Input/Output): Mention it.
76511         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
76512         freopen-safer module.
76513         * doc/posix-functions/stderr.texi (stderr): Likewise.
76514         * doc/posix-functions/stdin.texi (stdin): Likewise.
76515         * doc/posix-functions/stdout.texi (stdout): Likewise.
76516         * modules/freopen-safer-tests: New test.
76517         * tests/test-reopen-safer.c: New file.
76519 2009-11-05  Jim Meyering  <meyering@redhat.com>
76521         maint.mk: Prohibit inclusion of "close-stream.h" without use.
76522         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
76524 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76526         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
76528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76530         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
76532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76534         Fix link error.
76535         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
76536         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76538 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76540         * tests/test-func.c: Also test value of __func__.
76542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76544         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
76545         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
76547 2009-11-05  Bruno Haible  <bruno@clisp.org>
76549         Fix link error.
76550         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
76551         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76552         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
76554 2009-11-05  Bruno Haible  <bruno@clisp.org>
76556         Tests for module 'inet_pton'.
76557         * modules/inet_pton-tests: New file.
76558         * tests/test-inet_pton.c: New file.
76560 2009-11-05  Bruno Haible  <bruno@clisp.org>
76562         Tests for module 'inet_ntop'.
76563         * modules/inet_ntop-tests: New file.
76564         * tests/test-inet_ntop.c: New file.
76566 2009-11-04  Eric Blake  <ebb9@byu.net>
76568         stdlib-safer: wrap all mkstemp variants
76569         * modules/mkostemp (configure.ac): Set witness.
76570         * modules/mkostemps (configure.ac): Likewise.
76571         * modules/mkstemps (configure.ac): Likewise.
76572         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
76573         (mkstemps_safer): Wrap more functions.
76574         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
76575         wrapping.
76576         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
76577         (mkstemps_safer): Implement the wrappers.
76579         mkstemps, mkostemps: new modules
76580         * modules/mkostemps: New module.
76581         * modules/mkstemps: Likewise.
76582         * lib/mkostemps.c (mkostemps): New file.
76583         * lib/mkstemps.c (mkstemps): Likewise.
76584         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
76585         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
76586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
76587         * modules/stdlib (Makefile.am): Substitute them.
76588         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
76589         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
76590         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
76591         * doc/gnulib.texi (Glibc stdlib.h): Include them.
76592         * MODULES.html.sh (File system functions): Mention them.
76594         tempname: resync from glibc
76595         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
76596         same values for __GT_FILE as glibc.  Abort even when assertions
76597         are disabled.
76598         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
76599         match its value otherwise.  Allow idempotent inclusion.
76600         * lib/mkdtemp.c (mkdtemp): Adjust caller.
76601         * lib/mkostemp.c (mkostemp): Likewise.
76602         * lib/mkstemp.c (mkstemp): Likewise.
76603         * lib/tmpfile.c (tmpfile): Likewise.
76604         * NEWS: Document this.
76606         utimens: fix use of futimens on older Linux
76607         * lib/utimens.c (fdutimens): Use updated, rather than original,
76608         timespec to avoid bug in older Linux kernel.
76609         Reported by Simon Josefsson.
76611 2009-11-04  Bruno Haible  <bruno@clisp.org>
76613         Make num_processors more flexible and consistent.
76614         * lib/nproc.h (enum nproc_query): New type.
76615         (num_processors): Add a 'query' argument.
76616         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
76617         (num_processors): Add a 'query' argument. Test the value of the
76618         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
76619         mingw, count the number of CPUs available for the current process.
76620         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
76621         Check for sched_getaffinity and sched_getaffinity_np.
76622         * modules/nproc (Depends-on): Add c-ctype, extensions.
76623         * NEWS: Mention the change.
76625 2009-11-03  Bruno Haible  <bruno@clisp.org>
76627         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
76629 2009-11-03  Jim Meyering  <meyering@redhat.com>
76631         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
76632         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
76633         if it is defined.
76635 2009-11-02  Eric Blake  <ebb9@byu.net>
76637         mktime, timegm: share common declaration
76638         * lib/mktime-internal.h: New file.
76639         * lib/mktime.c: Use it rather than open-coding a declaration.
76640         * lib/timegm.c: Likewise.
76641         * modules/mktime (Files): Ship it.
76642         * modules/timegm (Files): Likewise.
76643         Suggested by Bruno Haible.
76645         test-update-copyright: update test to match script changes
76646         * tests/test-update-copyright.sh: Avoid hard-coding perl
76647         location.  Don't update *.bak created by earlier runs.
76649 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76650             Simon Josefsson  <simon@josefsson.org>
76651             Bruno Haible  <bruno@clisp.org>
76653         Fix link error on Solaris 8.
76654         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
76655         also in libnsl. Define also INET_PTON_LIB.
76656         * modules/inet_pton (Link): New section.
76658 2009-11-02  Simon Josefsson  <simon@josefsson.org>
76659             Bruno Haible  <bruno@clisp.org>
76661         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
76662         * modules/inet_ntop (Link): New section.
76663         Reported by Boyan Kasarov <bkasarov@gmail.com>.
76665 2009-11-02  Eric Blake  <ebb9@byu.net>
76667         maint: avoid compiler warnings in m4 macros
76668         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
76669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
76671 2009-11-02  Simon Josefsson  <simon@josefsson.org>
76673         * m4/pmccabe2html.m4: Remove file.
76674         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
76675         function.  Change maintainer.
76676         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
76677         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
76678         Courtès).
76680 2009-10-31  Eric Blake  <ebb9@byu.net>
76682         fseeko: fix m4 regression
76683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
76684         regression from 2009-10-27.
76685         Reported by Ralf Wildenhues.
76687 2009-10-31  Jim Meyering  <meyering@redhat.com>
76689         inttostr: aesthetics and improved (compile-time) safety
76690         Define inttype_is_signed rather than inttype_is_unsigned,
76691         since the sole use is via "#if inttype_is_signed".
76692         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
76693         inttype_is_unsigned.
76694         * lib/offtostr.c (inttype_is_signed): Likewise.
76695         * lib/uinttostr.c (inttype_is_signed): Likewise.
76696         * lib/umaxtostr.c (inttype_is_signed): Likewise.
76697         * lib/inttostr.c (inttostr): Use verify to cross-check the
76698         inttype_is_signed value and the signedness of the actual type.
76699         * modules/inttostr (Depends-on): Add verify.
76701 2009-10-30  Eric Blake  <ebb9@byu.net>
76703         build: avoid compiler warnings
76704         * lib/fchmodat.c (lchmod): Mark unused variables.
76705         * lib/getopt.c (_getopt_initialize): Likewise.
76706         * lib/mktime.c (__mktime_internal): Provide prototype.
76707         * lib/inttostr.c (inttostr): Avoid compiler warning even with
76708         older gcc that do not understand #pragma GCC diagnostic.
76709         * lib/uinttostr.c (inttype_is_unsigned): Define.
76710         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
76712 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
76714         stat: fix compilation on AIX
76715         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
76716         only see struct stat64.
76718 2009-10-30  Eric Blake  <ebb9@byu.net>
76720         exclude: make more robust
76721         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
76722         rather than masking a coding bug.
76723         Suggested by Bruno Haible.
76725 2009-10-30  Jim Meyering  <meyering@redhat.com>
76727         perl scripts: remove #!/usr/bin/perl in favor of more portable...
76728         Rather than putting #!/usr/bin/perl on the first line,
76729         start with a variant of what's recommended by "man perlrun" that
76730         invokes the first "perl" program from your shell's search path.
76731         * build-aux/gitlog-to-changelog: Replace #!... as above.
76732         Add a "Local Variables" perl mode setting.
76733         Prompted by a patch from Ludovic Courtès.
76734         Improved by Eric Blake.
76735         * build-aux/useless-if-before-free: Likewise.
76736         * build-aux/announce-gen: Likewise.
76737         * build-aux/update-copyright: Likewise.
76739 2009-10-29  Eric Blake  <ebb9@byu.net>
76741         filenamecat-lgpl: adjust clients
76742         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
76743         filenamecat.
76744         * modules/renameat (Depends-on): Likewise.
76746         filenamecat: split into filenamecat-lgpl
76747         * modules/filenamecat-lgpl: New module.
76748         * modules/filenamecat (Files): Move library-safe files into
76749         filenamecat-lgpl.
76750         (Depends-on): Add filenamecat-lgpl.
76751         (configure.ac): Declare witness.
76752         * lib/filenamecat.h (file_name_concat): Only declare when using
76753         GPL module.
76754         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
76755         Move...
76756         * lib/filenamecat-lgpl.c: ...into new file.
76757         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
76758         (gl_FILE_NAME_CONCAT): Use it.
76759         * MODULES.html.sh (File system functions): Mention new module.
76761         argp: avoid memory leak
76762         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
76763         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
76764         base_name, since the latter malloc()s and can call exit().
76765         Leak introduced 2006-07-03.
76767         dirname-lgpl: adjust clients that don't need full dirname
76768         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
76769         * modules/filenamecat (Depends-on): Likewise.
76770         * modules/linkat (Depends-on): Likewise.
76771         * modules/mkancesdirs (Depends-on): Likewise.
76772         * modules/mkdir (Depends-on): Likewise.
76773         * modules/openat (Depends-on): Likewise.
76774         * modules/savewd (Depends-on): Likewise.
76775         * modules/rename (Depends-on): Likewise.
76776         (License): Relax license.
76777         * modules/mkdir-tests (Depends-on): Drop progname.
76778         (Makefile.am): Delete unneeded LDADD.
76779         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
76781         dirname: split into dirname-lgpl
76782         * modules/dirname-lgpl: New module.
76783         * modules/dirname (Files): Move library-safe files into
76784         dirname-lgpl.
76785         (Depends-on): Add dirname-lgpl.
76786         (configure.ac): Declare witness.
76787         * modules/double-slash-root (License): Relax license.
76788         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
76789         module.
76790         * lib/dirname.c (dir_len, mdir_name): Move...
76791         * lib/dirname-lgpl.c: ...into new file.
76792         * lib/basename.c (last_component, base_len): Move...
76793         * lib/basename-lgpl.c: ...into new file.
76794         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
76795         (gl_DIRNAME): Use it.
76796         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
76797         Mention new module.
76798         * modules/dirname-tests (Depends-on): Add progname.
76799         * tests/test-dirname.c (program_name): Delete.
76801         mkdir: make safe for libraries
76802         * modules/mkdir (Depends-on): Drop xalloc.
76803         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
76804         exit.
76806         tests: avoid some compiler warnings
76807         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
76808         literals.
76809         * tests/test-memchr.c (main): Avoid type mismatch.
76810         * tests/test-arpa_inet.c (main): Avoid unused parameters.
76811         * tests/test-base64.c (main): Likewise.
76812         * tests/test-getdelim.c (main): Likewise.
76813         * tests/test-gethostname.c (main): Likewise.
76814         * tests/test-getline.c (main): Likewise.
76815         * tests/test-netinet_in.c (main): Likewise.
76816         * tests/test-select.c (open_server_socket, main): Likewise.
76817         * tests/test-select-stdin.c (main): Likewise.
76818         * tests/test-sockets.c (main): Likewise.
76819         * tests/test-strsignal.c (main): Likewise.
76820         * tests/test-sys_select.c (main): Likewise.
76821         * tests/test-sys_socket.c (main): Likewise.
76822         * tests/test-u64.c (main): Likewise.
76823         * tests/test-xfprintf-posix.c (main): Likewise.
76824         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
76826         sockets: avoid compiler warning
76827         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
76829         maint: detect usage(1) and other suspicious exits
76830         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
76832 2009-10-29  Jim Meyering  <meyering@redhat.com>
76834         timespec: long-to-int truncation could make timespec_cmp malfunction
76835         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
76836         a multiple of 2^32 nanoseconds as no difference.
76838 2009-10-28  Jim Meyering  <meyering@redhat.com>
76840         fprintftime: wrap macro code argument in "do {...} while(0)"
76841         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
76842         cpy macro must be a statement that can be followed by a semicolon.
76843         Now that the else clause contains a comment and is hence longer
76844         than one line, I require curly braces.  That in turn requires
76845         that we wrap this code block in the standard do...while(0).
76847         fprintftime: remove stray semicolon from previous change
76848         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
76850         fprintftime: avoid a warning about ignored fwrite return value
76851         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
76852         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
76853         that is unsafe.
76854         * modules/fprintftime (Depends-on): Add ignore-value.
76856         exclude: avoid an unwarranted warning
76857         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
76859 2009-10-27  Eric Blake  <ebb9@byu.net>
76861         fseek: avoid compilation failure when fflush is replaced
76862         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
76863         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
76864         module is in use.
76865         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
76866         module is not in use; since REPLACE_FSEEK worked otherwise.
76867         (GNULIB_FTELLO): Likewise for ftell.
76868         Reported by Ian Beckwith and others.
76870 2009-10-27  Bruno Haible  <bruno@clisp.org>
76872         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
76873         Reported by Jim Meyering.
76875 2009-10-27  Jim Meyering  <jim@meyering.net>
76876             Bruno Haible  <bruno@clisp.org>
76878         Avoid warning despite dropping the return value of fwrite.
76879         * lib/unicodeio.c: Include ignore-value.h.
76880         (fwrite_success_callback): Explicitly ignore fwrite's return value.
76881         * modules/unicodeio (Depends-on): Add ignore-value.
76883 2009-10-26  Eric Blake  <ebb9@byu.net>
76885         areadlinkat: fix fallback path
76886         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
76887         pointer and zero.
76889 2009-10-22  Pádraig Brady  <P@draigBrady.com>
76891         Use a better IO block size for modern systems
76892         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
76893         * lib/md2.c: Likewise.
76894         * lib/md4.c: Likewise.
76895         * lib/md5.c: Likewise.
76896         * lib/sha1.c: Likewise.
76897         * lib/sha256.c: Likewise.
76898         * lib/sha512.c: Likewise.
76900 2009-10-22  Eric Blake  <ebb9@byu.net>
76902         tests: avoid several compiler warnings
76903         * tests/test-getcwd.c (main): Avoid buffer underflow.
76904         * tests/test-getdate.c (main): String literals are not safe with
76905         putenv, so use setenv.  Declare unused argument.
76906         * modules/getdate-tests (Depends-on): Add setenv.
76907         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
76908         problems with string literals in char *.
76909         * tests/test-hash.c (main): Avoid shadowing declaration.
76910         (insert_new): Treat string literals as char const *.
76911         * tests/test-getopt.h (test_getopt): Likewise.
76912         (getopt_loop): Alter types to minimize casting elsewhere.
76913         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
76914         (test_getopt_long_posix): Likewise.
76915         (do_getopt_long): Add wrapper to minimize casting.
76916         * tests/test-atexit.c (clear_temp_file): Use void.
76917         * tests/test-areadlink-with-size.c (main): Declare unused
76918         arguments.
76919         * tests/test-areadlink.c (main): Likewise.
76920         * tests/test-areadlinkat-with-size.c (main): Likewise.
76921         * tests/test-areadlinkat.c (main): Likewise.
76922         * tests/test-canonicalize-lgpl.c (main): Likewise.
76923         * tests/test-canonicalize.c (main): Likewise.
76924         * tests/test-dirent-safer.c (main): Likewise.
76925         * tests/test-dirname.c (main): Likewise.
76926         * tests/test-dup2.c (main): Likewise.
76927         * tests/test-fchdir.c (main): Likewise.
76928         * tests/test-fcntl-h.c (main): Likewise.
76929         * tests/test-fcntl-safer.c (main): Likewise.
76930         * tests/test-fdopendir.c (main): Likewise.
76931         * tests/test-fdutimensat.c (main): Likewise.
76932         * tests/test-fflush.c (main): Likewise.
76933         * tests/test-filenamecat.c (main): Likewise.
76934         * tests/test-filevercmp.c (main): Likewise.
76935         * tests/test-fopen-safer.c (main): Likewise.
76936         * tests/test-fopen.c (main): Likewise.
76937         * tests/test-fpending.c (main): Likewise.
76938         * tests/test-fpurge.c (main): Likewise.
76939         * tests/test-freading.c (main): Likewise.
76940         * tests/test-fstatat.c (main): Likewise.
76941         * tests/test-fsync.c (main): Likewise.
76942         * tests/test-futimens.c (main): Likewise.
76943         * tests/test-getndelim2.c (main): Likewise.
76944         * tests/test-gettimeofday.c (main): Likewise.
76945         * tests/test-getopt.c (main): Likewise.
76946         * tests/test-i-ring.c (main): Likewise.
76947         * tests/test-inttypes.c (main): Likewise.
76948         * tests/test-link.c (main): Likewise.
76949         * tests/test-lstat.c (main): Likewise.
76950         * tests/test-math.c (main): Likewise.
76951         * tests/test-md5.c (main): Likewise.
76952         * tests/test-memchr2.c (main): Likewise.
76953         * tests/test-memrchr.c (main): Likewise.
76954         * tests/test-mkdir.c (main): Likewise.
76955         * tests/test-mkdirat.c (main): Likewise.
76956         * tests/test-mkfifoat.c (main): Likewise.
76957         * tests/test-open.c (main): Likewise.
76958         * tests/test-openat-safer.c (main): Likewise.
76959         * tests/test-openat.c (main): Likewise.
76960         * tests/test-quotearg.c (main): Likewise.
76961         * tests/test-rawmemchr.c (main): Likewise.
76962         * tests/test-readlink.c (main): Likewise.
76963         * tests/test-remove.c (main): Likewise.
76964         * tests/test-rename.c (main): Likewise.
76965         * tests/test-renameat.c (main): Likewise.
76966         * tests/test-rmdir.c (main): Likewise.
76967         * tests/test-sha1.c (main): Likewise.
76968         * tests/test-signal.c (main): Likewise.
76969         * tests/test-sigaction.c (main): Likewise.
76970         * tests/test-stat.c (main): Likewise.
76971         * tests/test-stat-time.c (main): Likewise.
76972         * tests/test-stddef.c (main): Likewise.
76973         * tests/test-stdint.c (main): Likewise.
76974         * tests/test-stdio.c (main): Likewise.
76975         * tests/test-stdlib.c (main): Likewise.
76976         * tests/test-strchrnul.c (main): Likewise.
76977         * tests/test-strerror.c (main): Likewise.
76978         * tests/test-string.c (main): Likewise.
76979         * tests/test-strtod.c (main): Likewise.
76980         * tests/test-strverscmp.c (main): Likewise.
76981         * tests/test-symlink.c (main): Likewise.
76982         * tests/test-symlinkat.c (main): Likewise.
76983         * tests/test-sys_stat.c (main): Likewise.
76984         * tests/test-sys_time.c (main): Likewise.
76985         * tests/test-time.c (main): Likewise.
76986         * tests/test-unistd.c (main): Likewise.
76987         * tests/test-unlink.c (main): Likewise.
76988         * tests/test-unlinkat.c (main): Likewise.
76989         * tests/test-utimens.c (main): Likewise.
76990         * tests/test-utimensat.c (main): Likewise.
76991         * tests/test-version-etc.c (main): Likewise.
76992         * tests/test-wchar.c (main): Likewise.
76993         * tests/test-wctype.c (main): Likewise.
76994         * tests/test-xprintf-posix.c (main): Likewise.
76995         * tests/test-posixtm.c (main): Likewise.
76996         (STREQ): Delete unused macro.
76997         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
76998         shadowed variables.
76999         * tests/test-memchr.c (main): Likewise.
77001 2009-10-21  Eric Blake  <ebb9@byu.net>
77003         areadlinkat: avoid failure on older glibc
77004         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
77005         rather than mis-comparing 0 against FUNC_RESULT of char*.
77007 2009-10-21  Bruno Haible  <bruno@clisp.org>
77009         * modules/stpncpy (License): Relicense under LGPLv2+.
77010         Reported by David Lutterkort <lutter@redhat.com>.
77012 2009-10-20  Eric Blake  <ebb9@byu.net>
77014         utimensat: work around Solaris 9 bug
77015         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
77016         has trailing slash bugs.
77017         * tests/test-lutimens.h (test_lutimens): Enhance test.
77018         * tests/test-utimens.h (test_utimens): Likewise.
77019         * doc/posix-functions/utime.texi (utime): Enhance documentation.
77020         * doc/posix-functions/utimes.texi (utimes): Likewise.
77021         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77022         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
77023         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
77024         * doc/posix-functions/futimens.texi (futimens): Likewise.
77026         fdutimensat: new module
77027         * modules/fdutimensat: New file.
77028         * lib/fdutimensat.c (fdutimensat): Likewise.
77029         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
77030         * MODULES.html.sh (File system functions): Mention module.
77031         * modules/fdutimensat-tests: New test.
77032         * tests/test-fdutimensat.c: Likewise.
77034         doc: regenerate INSTALL
77035         * doc/INSTALL: Reflect recent autoconf update.
77036         * doc/INSTALL.ISO: Likewise.
77037         * doc/INSTALL.UTF-8: Likewise.
77039 2009-10-20  Pádraig Brady  <P@draigBrady.com>
77041         acl: warn if ACL support is not detected
77042         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
77044 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
77046         * lib/nproc.h: Add extern "C" block for C++.
77048 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
77049             Bruno Haible  <bruno@clisp.org>
77051         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
77052         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
77053         * doc/posix-functions/isalpha.texi: Likewise.
77054         * doc/posix-functions/isblank.texi: Likewise.
77055         * doc/posix-functions/iscntrl.texi: Likewise.
77056         * doc/posix-functions/isdigit.texi: Likewise.
77057         * doc/posix-functions/isgraph.texi: Likewise.
77058         * doc/posix-functions/islower.texi: Likewise.
77059         * doc/posix-functions/isprint.texi: Likewise.
77060         * doc/posix-functions/ispunct.texi: Likewise.
77061         * doc/posix-functions/isspace.texi: Likewise.
77062         * doc/posix-functions/isupper.texi: Likewise.
77063         * doc/posix-functions/isxdigit.texi: Likewise.
77065 2009-10-18  Bruno Haible  <bruno@clisp.org>
77067         Tests for module 'isblank'.
77068         * modules/isblank-tests: New file.
77069         * tests/test-isblank.c: New file.
77071         New module 'isblank'.
77072         * lib/isblank.c: New file.
77073         * m4/isblank.m4: New file.
77074         * modules/isblank: New file.
77075         * doc/posix-functions/isblank.texi: Mention the new module.
77077 2009-10-18  Bruno Haible  <bruno@clisp.org>
77079         New module 'ctype'.
77080         * lib/ctype.in.h: New file.
77081         * m4/ctype.m4: New file.
77082         * modules/ctype: New file.
77083         * doc/posix-headers/ctype.texi: Mention the new module.
77085 2009-10-18  Jim Meyering  <meyering@redhat.com>
77087         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
77088         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
77089         right after its initialization, rather than farther down.
77090         Keeping these in close proximity makes it easier to ensure
77091         that each such variable is initialized.  E.g.,
77093             LIB_CLOCK_GETTIME=
77094             AC_SUBST([LIB_CLOCK_GETTIME])
77096         This change also increments these serial numbers.
77097         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
77098         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77101 2009-10-18  Bruno Haible  <bruno@clisp.org>
77103         Don't let environment variables perturb build.
77104         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
77105         (gl_PREREQ_GETHRXTIME): ... not here.
77107 2009-10-18  Bruno Haible  <bruno@clisp.org>
77109         Avoid symlink attack in localcharset module.
77110         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
77111         (O_NOFOLLOW): Define fallback.
77112         (get_charset_aliases): Don't open the file if it is a symbolic link.
77113         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
77114         gl_FCNTL_H.
77115         (gl_FCNTL_H): Require it.
77116         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
77117         * modules/localcharset (Files): Add m4/fcntl_h.m4.
77118         Reported by Fergal Glynn <fglynn@veracode.com>.
77120 2009-10-18  Bruno Haible  <bruno@clisp.org>
77122         Implement nproc for mingw.
77123         * lib/nproc.c: Include <windows.h>
77124         (num_processors): On native Windows platforms, try GetSystemInfo.
77126 2009-10-18  Bruno Haible  <bruno@clisp.org>
77128         Implement nproc for IRIX.
77129         * lib/nproc.c: Include <sys/sysmp.h>.
77130         (num_processors): On IRIX systems, try sysmp.
77131         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
77133 2009-10-18  Bruno Haible  <bruno@clisp.org>
77135         Implement nproc for HP-UX.
77136         * lib/nproc.c: Include <sys/pstat.h>
77137         (num_processors): On HP-UX systems, try pstat_getdynamic.
77138         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
77139         pstat_getdynamic.
77141 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
77142             Bruno Haible  <bruno@clisp.org>
77144         Implement nproc for NetBSD, OpenBSD.
77145         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
77146         (ARRAY_SIZE): New macro.
77147         (num_processors): On BSD systems, try sysctl of HW_NCPU.
77148         * m4/nproc.m4: New file.
77149         * modules/nproc (Files): Add m4/nproc.m4.
77150         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
77151         (Makefile.am): Instead, augment lib_SOURCES.
77153 2009-10-18  Bruno Haible  <bruno@clisp.org>
77155         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
77156         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
77157         sys/param.h.
77159 2009-10-16  Eric Blake  <ebb9@byu.net>
77161         utimensat: new module
77162         * modules/utimensat: New file.
77163         * lib/utimensat.c (utimensat): Likewise.
77164         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77165         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
77166         so we can work around Linux bugs.
77167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77168         * modules/sys_stat (Makefile.am): Substitute them.
77169         * lib/sys_stat.in.h (utimensat): Declare it.
77170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77171         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77172         * modules/utimensat-tests: New test.
77173         * tests/test-utimensat.c: Likewise.
77175         utimens: let lutimens work on non-symlinks
77176         * lib/utimens.c (lutimens): Fall back to utimens rather than
77177         failing with ENOSYS, when file is not a symlink.
77178         (utimens): Reduce redirection.
77179         * tests/test-lutimens.h (test_lutimens): Update test to cover
77180         non-symlinks.
77181         * tests/test-utimens.h (test_utimens): Update test to cover
77182         symlinks.
77183         * tests/test-utimens.c (main): Update caller.
77185         utimens: cache whether utimensat syscall works
77186         * lib/utimens.c (utimensat_works_really): New cache variable.
77187         (fdutimens, lutimens): Use it to avoid failing syscall.
77189         test-stat-time, test-utimens: improve portability
77190         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
77191         ext4 on alpha, and for cygwin.
77192         * tests/test-utimens-common.h: New file.
77193         (nap): Factor delays into single function.
77194         * tests/test-lutimens.h (test_lutimens): Use new header.
77195         * tests/test-futimens.h (test_futimens): Likewise.
77196         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
77197         timestamps to occur from same machine, as was done previously for
77198         test_utimens.
77199         * modules/utimens-tests (Files): Ship new file.
77200         * modules/futimens-tests (Files): Likewise.
77201         Reported in part by Jim Meyering.
77203         sys_stat: sort replacement declarations
77204         * lib/sys_stat.in.h: Sort declarations.
77205         * lib/futimens.c (futimens): Fix typo.
77207 2009-10-15  Jim Meyering  <meyering@redhat.com>
77209         don't let environment settings perturb build
77210         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
77211         could cause a configure-time and/or build-time malfunction.
77212         Typically, a configure-time function-in-library test is performed
77213         via code like this:
77215           LIB_VAR=
77216           AC_SUBST([LIB_VAR])
77217           prefix_saved_LIBS=$LIBS
77218             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
77219                        [test "$ac_cv_search_FUNC" = "none required" ||
77220                         LIB_VAR=$ac_cv_search_FUNC])
77221           LIBS=$prefix_saved_LIBS
77223         However, in each of the files affected by this change, the LIB_VAR=
77224         initialization was omitted.  Thus, when set in the environment, its
77225         value would propagate into generated Makefiles when FUNC is not found
77226         in LIB_NAME.
77227         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
77228         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77231 2009-10-14  Eric Blake  <ebb9@byu.net>
77233         fchdir: avoid infinite recursion in mingw
77234         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
77235         recursing.
77237         test-stat-time: port to mingw
77238         * tests/test-stat-time.c (force_unlink): Return a value.
77239         (test_ctime) [W32]: Fix compilation error.
77240         (nap): Don't call usleep with too large an argument.  Use
77241         force_unlink.
77242         * doc/pastposix-functions/usleep.texi (usleep): Document the
77243         portability issue.
77245 2009-10-13  Jim Meyering  <meyering@redhat.com>
77247         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
77248         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
77249         * modules/pipe-filter-ii: Likewise.
77250         * modules/sys_socket-tests: Likewise.
77251         * modules/tsearch-tests: Likewise.
77252         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
77253         (check): Depend on it.
77255 2009-10-12  Eric Blake  <ebb9@byu.net>
77257         utimens-tests: port to NFS file systems
77258         * tests/test-utimens.h (test_utimens): Refactor utimecmp
77259         comparisons to avoid spurious failures from timestamp drift
77260         between NFS machines.
77262 2009-10-12  Eric Blake  <ebb9@byu.net>
77264         stat-time-tests: minor cleanups
77265         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
77266         * tests/test-stat-time.c (nap): Separate assignment from call.
77267         Suggested by Paolo Bonzini and Bruno Haible.
77269         sys_stat: guarantee struct timespec
77270         * lib/sys_stat.in.h (includes): Always include <time.h>
77271         * modules/sys_stat (Depends-on): Add time.
77272         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
77273         mode_t permission values.
77274         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
77275         get at subsecond timestamps.
77277 2009-10-10  Eric Blake  <ebb9@byu.net>
77279         futimens: new module
77280         * modules/futimens: New file.
77281         * lib/futimens.c (futimens): Likewise.
77282         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
77283         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
77284         we can work around Linux bugs.
77285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77286         * modules/sys_stat (Makefile.am): Substitute them.
77287         * lib/sys_stat.in.h (futimens): Declare it.
77288         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77289         * doc/posix-functions/futimens.texi (futimens): Likewise.
77290         * modules/futimens-tests: New test.
77291         * tests/test-futimens.c: Likewise.
77293         utimens: introduce fdutimens
77294         * lib/utimens.h (fdutimens): New prototype.
77295         * lib/utimens.c (gl_futimens): Move guts...
77296         (fdutimens): ...to new interface.
77297         * tests/test-utimens.c (do_fdutimens): Use it.
77299         utimens: add UTIME_NOW and UTIME_OMIT support
77300         * lib/utimens.c (validate_timespec, update_timespec): New helper
77301         functions.
77302         (gl_futimens, lutimens): Use them.
77303         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
77304         stdbool, sys_stat.
77305         (Link): Mention resulting library dependency.
77306         * modules/utimecmp (Link): Likewise.
77307         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
77308         (Makefile.am): Pick up library dependency.
77309         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
77310         definition.
77311         * tests/test-sys_stat.c: Test the definitions.
77312         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
77313         * NEWS: Document library dependency.
77315         utimecmp: support symlink timestamps
77316         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
77317         hashing when possible.  Use pathconf when available.
77318         (SYSCALL_RESOLUTION): Recognize tighter resolution.
77319         * modules/utimecmp (Depends-on): Add lstat.
77321         utimens: add lutimens interface
77322         * lib/utimens.c (lutimens): New function.
77323         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
77324         * lib/utimens.h (lutimens): Declare new interface.
77325         * tests/test-utimens.c (main): Enhance test.
77326         * tests/test-lutimens.h (test_lutimens): New file.
77327         * modules/utimens-tests (Files): Distribute it.
77328         (Depends-on): Add symlink.
77329         (configure.ac): Check for usleep.
77331         utimens: validate futimens usage
77332         * lib/utimens.c (gl_futimens): Require valid fd up front, using
77333         fewer syscalls on failure later on.  Avoid compiler warning on
77334         mingw.
77335         * modules/utimens (Depends-on): Add dup2.
77337         utimens: add test
77338         * modules/utimens-tests: New test.
77339         * tests/test-utimens.h: New file.
77340         * tests/test-futimens.h: Likewise.
77341         * tests/test-utimens.c: Likewise.
77343         doc: mention timestamp portability issues
77344         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
77345         instead.
77346         * doc/posix-functions/utime.texi (utime): Likewise.
77347         * doc/posix-functions/utimes.texi (utimes): Likewise.
77348         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
77349         instead.
77350         * doc/posix-functions/futimens.texi (futimens): Mention utimens
77351         module.
77352         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77353         Mention weakness with symlink timestamps.
77354         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
77355         to utimensat/futimens instead.
77356         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
77358         test-dup2: enhance test
77359         * tests/test-dup2.c (main): Also check AT_FDCWD.
77361         test-stat-time: avoid more spurious failures
77362         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
77363         xfs; and avoid race if the two timestamps cross quantization edge.
77365         relocatable: prefer 'file system' over 'filesystem'
77366         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
77367         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
77368         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
77369         * doc/relocatable.texi (Enabling Relocatability): Likewise.
77370         * lib/relocatable.c (compute_curr_prefix): Likewise.
77372 2009-10-10  Jim Meyering  <meyering@redhat.com>
77374         stat-time-tests: check for the usleep function
77375         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
77377 2009-10-10  Bruno Haible  <bruno@clisp.org>
77379         * modules/xnanosleep: Put the Link section after the Include section.
77381 2009-10-09  Eric Blake  <ebb9@byu.net>
77383         dup2: work around FreeBSD 6.1 bug
77384         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
77385         * doc/posix-functions/dup2.texi (dup2): Document it.
77386         Reported by Nelson H. F. Beebe and Jim Meyering.
77388         test-stat-time: port to buggy NFS clients
77389         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
77390         (test_ctime): Also skip test if mtime and ctime are skewed.
77392         maint: prefer 'file system' over 'filesystem'
77393         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
77394         * doc/posix-functions/lstat.texi (lstat): Likewise.
77395         * lib/file-has-acl.c (file_has_acl): Likewise.
77396         * lib/fwriteerror.c [TEST]: Likewise.
77397         * tests/test-areadlink.h (test_areadlink): Likewise.
77398         * tests/test-areadlinkat-with-size.c (main): Likewise.
77399         * tests/test-areadlinkat.c (main): Likewise.
77400         * tests/test-canonicalize-lgpl.c (main): Likewise.
77401         * tests/test-canonicalize.c (main): Likewise.
77402         * tests/test-fstatat.c (main): Likewise.
77403         * tests/test-linkat.c (main): Likewise.
77404         * tests/test-lstat.h (test_lstat_func): Likewise.
77405         * tests/test-mkdir.h (test_mkdir): Likewise.
77406         * tests/test-readlink.h (test_readlink): Likewise.
77407         * tests/test-remove.c (main): Likewise.
77408         * tests/test-rename.h (test_rename): Likewise.
77409         * tests/test-renameat.c (main): Likewise.
77410         * tests/test-rmdir.h (test_rmdir_func): Likewise.
77411         * tests/test-symlink.h (test_symlink): Likewise.
77412         * tests/test-symlinkat.c (main): Likewise.
77413         * tests/test-unlink.h (test_unlink_func): Likewise.
77414         * tests/test-unlinkat.c (main): Likewise.
77416         maint: make realtime library usage explicit
77417         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
77418         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
77419         * modules/settime (Link): Likewise.
77420         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
77422         test-stat-time: speed up execution
77423         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
77424         warning on mingw.
77425         (nap): New helper function.
77426         (prepare_test): Use it to reduce sleep time.
77427         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
77428         execution.
77429         * modules/stat-time-tests (configure.ac): Check for usleep.
77431 2009-10-09  Jim Meyering  <meyering@redhat.com>
77433         selinux-h: always use getfilecon wrappers
77434         * lib/getfilecon.c: New file.
77435         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
77436         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
77437         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
77438         (fgetfilecon): Provide a stub.
77439         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
77440         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
77441         file unconditionally.
77442         When <selinux/selinux.h> is found, arrange to use wrappers.
77443         * modules/selinux-h (Files): Add getfilecon.c.
77444         (Makefile.am): Substitute include-next-related bits
77445         into the now-always-generated selinux/selinux.h file.
77446         * doc/glibc-functions/lgetfilecon.texi: New file.
77447         * doc/glibc-functions/fgetfilecon.texi: New file.
77448         * doc/glibc-functions/getfilecon.texi: New file.
77449         * doc/glibc-functions/getfilecon-desc.texi: New file.
77450         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
77451         which to pull in the new files.
77452         * MODULES.html.sh (Misc): Add selinux-h.
77454 2009-10-08  Jim Meyering  <meyering@redhat.com>
77456         unistd: fix comment typo
77457         * lib/unistd.in.h (euidaccess): Fix a comment typo.
77459 2009-10-08  Eric Blake  <ebb9@byu.net>
77461         areadlink: use SIZE_MAX consistently
77462         * modules/areadlink (Depends-on): Add stdint.
77463         * modules/areadlink-with-size (Depends-on): Likewise.
77464         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
77465         gives NULL; drop sys/types, since unistd gives size_t; and add
77466         stdint for SIZE_MAX.
77467         (SIZE_MAX): Rely on headers.
77468         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
77469         and add stdint.
77470         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
77471         (SIZE_MAX): Likewise.
77472         (INITIAL_BUF_SIZE): Turn into enum.
77473         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
77475 2009-10-08  Jim Meyering  <meyering@redhat.com>
77477         areadlinkat: avoid compilation failure
77478         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
77479         Fix typo in comment.
77481 2009-10-07  Eric Blake  <ebb9@byu.net>
77483         areadlinkat-with-size: new module
77484         * modules/areadlinkat-with-size: New module.
77485         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
77486         * lib/areadlink.h (areadlinkat): Declare it.
77487         * MODULES.html.sh (File system functions): Mention it.
77488         * modules/areadlinkat-with-size-tests: New test.
77489         * tests/test-areadlinkat-with-size.c: New file.
77491         xreadlinkat: new module
77492         * modules/xreadlinkat: New module.
77493         * lib/xreadlinkat.c (xreadlinkat): New file.
77494         * lib/xreadlink.h (xreadlinkat): Declare it.
77495         * MODULES.html.sh (File system functions): Mention it.
77497         areadlinkat: new module
77498         * lib/at-func.c (FUNC_FAIL): New define.
77499         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
77500         * modules/areadlinkat: New module.
77501         * lib/linkat.c (areadlinkat): Move...
77502         * lib/areadlinkat.c (areadlinkat): ...to new file.
77503         * lib/areadlink.h (areadlinkat): Declare it.
77504         * modules/linkat (Depends-on): Add areadlinkat.
77505         * MODULES.html.sh (File system functions): Mention it.
77506         * modules/areadlinkat-tests: New test.
77507         * tests/test-areadlinkat.c: New file.
77509         areadlink, areadlink-with-size: add tests
77510         * modules/areadlink-tests: New test.
77511         * modules/areadlink-with-size-tests: Likewise.
77512         * tests/test-areadlink.h: New file.
77513         * tests/test-areadlink.c: Likewise.
77514         * tests/test-areadlink-with-size.c: Likewise.
77516         maint: minor cleanups
77517         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
77518         _UNUSED_PARAMETER_ instead.
77519         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
77520         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
77521         * modules/linkat-tests (Files): Distribute test-link.h.
77523         openat, utimens: whitespace cleanup
77524         * lib/openat.c: Prefer space throughout, rather than mix of 8
77525         spaces vs. tabs.
77526         * lib/at-func.c: Likewise.
77527         * lib/utimens.c: Likewise.
77529         openat: avoid using wrong fd
77530         * lib/openat.c (openat_permissive): Reject user's fd if saving the
77531         working directory chooses same fd.
77532         * lib/at-func.c (AT_FUNC_NAME): Likewise.
77534         mkdir, mkdirat: fix cygwin 1.5.x bug
77535         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
77536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
77537         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
77538         bug.
77539         (gl_PREREQ_MKDIR): Delete unused macro.
77540         * modules/mkdir (Files): Track file rename.
77541         (configure.ac): Update macro name.
77542         * modules/openat (Depends-on): Add mkdir.
77543         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
77545         mkdir, mkdirat: add tests
77546         * modules/mkdir-tests: New test.
77547         * tests/test-mkdir.h: New file.
77548         * tests/test-mkdir.c: Likewise.
77549         * tests/test-mkdirat.c: Likewise.
77550         * modules/openat-tests (Files): Add new files.
77551         (Makefile.am): Run new test.
77553 2009-10-06  Eric Blake  <ebb9@byu.net>
77555         doc: tweak *at function documentation
77556         * doc/posix-functions/faccessat.texi (faccessat): Mention
77557         known issue with replacement.
77558         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
77559         * doc/posix-functions/linkat.texi (linkat): Likewise.
77560         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77561         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77562         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77563         * doc/posix-functions/renameat.texi (renameat): Likewise.
77564         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77566         openat: fix GNU/Hurd bug in unlinkat
77567         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
77568         broken.
77569         * doc/posix-functions/unlink.texi (unlink): Document this.
77570         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
77572         fdopendir: fix GNU/Hurd bug
77573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
77574         allowing non-directory fds.
77575         * lib/fdopendir.c (rpl_fdopendir): Work around it.
77576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
77577         * modules/dirent (Makefile.am): Substitute it.
77578         * lib/dirent.in.h (fdopendir): Declare replacement.
77579         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
77580         * tests/test-fdopendir.c (main): Test something other than
77581         /dev/null, since on Hurd that behaves like a directory.
77583         test-symlink: port to GNU/Hurd
77584         * tests/test-symlink.h (test_symlink): Relax expected errno.
77586         doc: tweak more cygwin information
77587         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
77588         now compatible with glibc.
77589         * doc/posix-functions/getopt.texi (getopt): Likewise.
77591         getopt-gnu: add another test
77592         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
77593         guarantee behavior relied on by m4.
77594         * tests/test-getopt.c (main): Use it.
77595         * modules/getopt-posix-tests (Depends-on): Add setenv.
77596         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
77598         getopt: fix compilation on darwin
77599         * lib/getopt.in.h (includes): Leave breadcrumbs during system
77600         include.
77601         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
77602         Reported by Ludovic Courtès.
77604 2009-10-06  Bruno Haible  <bruno@clisp.org>
77606         * modules/size_max (Description): Discourage its use.
77607         Reported by Simon Josefsson.
77609 2009-10-06  Jim Meyering  <meyering@redhat.com>
77611         linkat: avoid compilation failure
77612         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
77614 2009-10-05  Eric Blake  <ebb9@byu.net>
77616         linkat: support Linux 2.6.17
77617         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
77618         linkat on Linux, but allow cache variable override.
77619         * lib/linkat.c (rpl_linkat): Define override.
77620         * modules/linkat (Depends-on): Add symlinkat.
77621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
77622         * modules/unistd (Makefile.am): Substitute it.
77623         * lib/unistd.in.h (linkat): Declare replacement.
77624         Reported by Pádraig Brady.
77626         quotearg: port test to systems with C.UTF-8 locale
77627         * tests/test-quotearg.c (struct result_strings): Add another
77628         member, differentiating between C.ASCII and C.UTF-8 handling.
77629         (compare_strings): Add parameter.
77630         (main): Adjust all callers.
77632         getopt: avoid clash with FreeBSD _getopt_internal
77633         * lib/getopt.in.h (_getopt_internal): Override the name.
77634         * lib/getopt_int.h (includes): Pick up any overrides.
77635         Reported by Reuben Thomas.
77637         hash: allow C89 compilation
77638         * lib/hash.c (check_tuning): Move declaration before statement.
77639         Reported by Reuben Thomas.
77641 2009-10-05  Karl Berry  <karl@gnu.org>
77643         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
77645 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
77646             Bruno Haible  <bruno@clisp.org>
77648         * lib/uname.c (uname): Use a table-driven algorithm to compute
77649         Windows NT versions.
77651 2009-10-04  Bruno Haible  <bruno@clisp.org>
77653         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
77654         program_invocation_short_name.
77655         * modules/progname (configure.ac): Test for presence of
77656         program_invocation_short_name.
77657         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
77659 2009-10-04  Bruno Haible  <bruno@clisp.org>
77661         * lib/progname.c (set_program_name): Fix comment.
77662         Reported by Jim Meyering.
77664 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
77665             Bruno Haible  <bruno@clisp.org>
77667         * lib/uname.c: Include <string.h>.
77668         (uname): Do only one call to GetVersionEx in the common case.
77670 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
77671             Bruno Haible  <bruno@clisp.org>
77673         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
77674         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
77675         (uname): Add support for Windows CE and various non-x86 CPU types.
77677 2009-10-03  Bruno Haible  <bruno@clisp.org>
77679         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
77680         invocation to tests/configure.ac.
77681         Reported by Ian Beckwith <ianb@erislabs.net>.
77683 2009-10-02  Eric Blake  <ebb9@byu.net>
77685         fchdir: avoid compiler warning
77686         * lib/fchdir.c (canonicalize_file_name)
77687         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
77689         test-open: support mingw errno values
77690         * tests/test-open.h (test_open): Relax test.
77691         * tests/test-fopen.h (test_fopen): Likewise.
77692         * tests/test-openat-safer.c (main): Likewise.
77694         open: fix opening directory on mingw
77695         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
77697         test-open: on GNU/Hurd, /dev/null is a directory
77698         * tests/test-fopen.h (main): Rename...
77699         (test_fopen): ...to this.  Use a guaranteed non-directory when
77700         confirming open behavior on trailing slash.
77701         * tests/test-openat-safer.c (main): Likewise.
77702         * tests/test-open.h (main): Likewise....
77703         (test_open): ...to this.
77704         * tests/test-fopen.c (main): Adjust caller.
77705         * tests/test-fopen-safer.c (main): Likewise.
77706         * tests/test-open.c (main): Likewise.
77707         * tests/test-fcntl-safer.c (main): Likewise.
77708         Reported by Samuel Thibault.
77710         rename, fchdir: don't ignore chdir failure
77711         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
77712         * lib/rename.c (rpl_rename) [W32]: Likewise.
77713         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
77714         an empty destination directory if source cannot be renamed,
77715         although there is still possibility for failure.
77716         * doc/posix-functions/rename.texi (rename): Document the race.
77717         Reported by Jim Meyering.
77719         maint: cleanup whitespace in recent commits
77720         * lib/rename.c (rpl_rename): Remove tabs.
77721         * tests/test-link.h (test_link): Likewise.
77722         * lib/fchdir.c (get_name): Likewise.
77723         Reported by Jim Meyering.
77725 2009-10-02  Ben Pfaff  <blp@gnu.org>
77727         relocatable-prog-wrapper: Add missing dependency on
77728         double-slash-root.
77729         * modules/relocatable-prog-wrapper: Add dependency.
77730         Reported by Ian Beckwith <ianb@erislabs.net>.
77732 2009-10-02  Eric Blake  <ebb9@byu.net>
77734         renameat: fix Solaris bugs
77735         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
77736         needed fixing.
77737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
77738         * modules/stdio (Makefile.am): Substitute it.
77739         * lib/stdio.in.h (renameat): Declare replacement.
77740         * lib/renameat.c (rpl_renameat): Implement fix.
77742         renameat: new module
77743         * modules/renameat: New file.
77744         * lib/renameat.c (renameat): Likewise.
77745         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
77746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
77747         * modules/stdio (Makefile.am): Substitute them.
77748         * lib/stdio.in.h (renameat): Declare it.
77749         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77750         * doc/posix-functions/renameat.texi (renameat): Likewise.
77751         * modules/renameat-tests: New test.
77752         * tests/test-renameat.c: Likewise.
77754         rename: fix mingw bugs
77755         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
77756         directory overwrite bugs.
77758         rename: fix another cygwin 1.5 bug
77759         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
77760         checks.
77761         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
77762         unnecessary cygwin workarounds.  Also work around bug with moving
77763         full directory onto an empty one.
77764         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
77766         rename-dest-slash: merge into rename module
77767         * modules/rename-dest-slash (Status): Mark obsolete.
77768         (Depends-on): Add rename.
77769         (Files): Let rename do it all.
77770         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
77771         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
77772         * m4/rename-dest-slash.m4: ...so this file can be deleted.
77773         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
77774         * lib/rename.c (rpl_rename): Update comments.
77776         rename: fix cygwin 1.5.x bugs
77777         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
77778         * lib/rename.c (rpl_rename): Work around them.
77779         * modules/rename (Depends-on): Add same-inode.
77781         rename: fix Solaris 10 bug
77782         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
77783         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
77784         was the only bug.
77786         rename: fix Solaris 9 bug
77787         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
77788         on non-directory.  Avoid calling exit.
77789         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
77790         strdup.
77791         * modules/rename-tests (Depends-on): Drop lstat.
77792         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
77793         (gl_PREREQ_RENAME): Delete unused macro.
77795         rename-dest-slash: fix NetBSD bug
77796         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
77797         links.
77798         * modules/rename-dest-slash (Depends-on): Add same-inode.
77800         rename-tests: new test, exposes several platform bugs
77801         * modules/rename-tests: New file.
77802         * tests/test-rename.h: Likewise.
77803         * tests/test-rename.c: Likewise.
77804         * doc/posix-functions/rename.texi (rename): Improve documentation,
77805         including bugs that will eventually be fixed in gnulib.
77807 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
77809         * lib/uname.c: Include <stdlib.h>
77810         (uname): Assume version info is available.
77812 2009-10-02  Jim Meyering  <meyering@redhat.com>
77814         gnu-web-doc-update: correct --help output
77815         * build-aux/gnu-web-doc-update: Make --help output relevant.
77817         gnu-web-doc-update: add standard options
77818         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
77820         gnu-web-doc-update: New module.
77821         Use this script to automatically update the on-line web documentation
77822         for your GNU project at http://www.gnu.org/software/$pkg/manual/
77823         * modules/gnu-web-doc-update: New file, from coreutils.
77824         * build-aux/gnu-web-doc-update: New script.
77826 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
77828         link: LoadLibrary is not needed.
77829         * lib/link.c: Use GetModuleHandle.
77831 2009-10-01  Eric Blake  <ebb9@byu.net>
77833         getopt: bump serial number
77834         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
77835         change.
77837         tests: tighten link, rmdir, and remove tests
77838         * tests/test-link.h (includes): No need to use <config.h> here.
77839         Clean up if directory hard link was created, otherwise test for
77840         trailing '.'.
77841         * tests/test-linkat.c (main): Simplify.
77842         * tests/test-remove.c (main): Enhance test for trailing '.'.
77843         * tests/test-rmdir.h (test_rmdir_func): Likewise.
77845 2009-10-01  Jim Meyering  <meyering@redhat.com>
77847         maint.mk: requiring "make major" was annoying, for a "minor" release.
77848         What is intended is "stable", to contrast with alpha and beta,
77849         so require "make stable", not "make major".
77850         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
77851         (get_tool_versions): Likewise.
77852         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
77854 2009-09-30  Ben Pfaff  <blp@gnu.org>
77856         Fix broken build of replacement for Windows tmpfile().
77857         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
77858         flags argument added along with the 'mkostemp' module.
77860 2009-09-28  Bruno Haible  <bruno@clisp.org>
77862         Avoid identifier clash with POSIX function 'remove' defined as a macro.
77863         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
77864         to 'remove_elt'.
77865         (gl_list_remove): Update.
77866         * lib/gl_list.c (gl_list_remove): Update.
77867         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
77868         to 'remove_elt'.
77869         (gl_oset_remove): Update.
77870         * lib/gl_list.c (gl_oset_remove): Update.
77871         Reported by Eric Blake.
77873 2009-09-28  Eric Blake  <ebb9@byu.net>
77875         doc: mention yet more cygwin 1.7 status
77876         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
77877         cygwin.
77878         * doc/glibc-functions/execvpe.texi (execvpe): New file.
77879         * doc/gnulib.texi (Glibc unistd.h): Mention it.
77881         argp: fix test failure
77882         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
77883         that are not upper-case.  Pass correct range to tolower.
77885 2009-09-27  Jim Meyering  <meyering@redhat.com>
77887         test-yesno: work around sparc-dash here-document infelicity
77888         Without this change, the literal \177 byte in a here document
77889         would make dash 0.5.5.1-3 access uninitialized memory.
77890         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
77891         Instead, use a marker, "@", and filter through tr to create the desired
77892         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
77894 2009-09-27  Bruno Haible  <bruno@clisp.org>
77896         Disable untested support for new flavours of ACLs on AIX.
77897         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
77898         progress.
77899         * lib/set-mode-acl.c (qset_acl): Likewise.
77901 2008-12-07  Bruno Haible  <bruno@clisp.org>
77903         Add support for new flavours of ACLs on AIX. (Untested.)
77904         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
77905         (file_has_acl): Add support for newer AIX.
77906         * lib/set-mode-acl.c (qset_acl): Likewise.
77907         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
77908         Rainer Tammer <tammer@tammer.net>.
77910 2009-09-26  Eric Blake  <ebb9@byu.net>
77912         argp: fix compilation of getopt
77913         * lib/getopt.in.h (includes): Use different guard than glibc.
77914         Reported by Sergey Poznyakoff.
77916         doc: mention more cygwin 1.7 status
77917         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
77918         bug.
77919         * doc/posix-functions/execl.texi (execl): Likewise.
77920         * doc/posix-functions/execle.texi (execle): Likewise.
77921         * doc/posix-functions/execlp.texi (execlp): Likewise.
77922         * doc/posix-functions/execv.texi (execv): Likewise.
77923         * doc/posix-functions/execve.texi (execve): Likewise.
77924         * doc/posix-functions/execvp.texi (execvp): Likewise.
77925         * doc/glibc-functions/canonicalize_file_name.texi
77926         (canonicalize_file_name): Cygwin 1.7 now provides this.
77927         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
77928         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
77929         on AT_SYMLINK_NOFOLLOW.
77931 2009-09-24  Eric Blake  <ebb9@byu.net>
77933         test-linkat: make test more robust
77934         * tests/test-linkat.c (main): Avoid collision with EEXIST.
77936         getopt: fix inclusion guards for cygwin
77937         * modules/getopt-posix (Depends-on): Add include-next.
77938         (Makefile.am): Substitute more items in replacement header.
77939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
77940         <getopt.h>.
77941         * lib/getopt.in.h (includes): Use split inclusion guard, and
77942         prefer <getopt.h> over include <unistd.h> when one is present.
77943         (option): Also override name of 'struct option'.
77945         same-inode: revert prior change; it is not yet ready
77946         * NEWS: Undo mention of this change.
77947         * lib/same-inode.h (same-inode.h): Undo tri-state change.
77948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
77949         * lib/cycle-check.c (cycle_check): Likewise.
77950         * lib/same.c (same_name): Likewise.
77951         * lib/at-func2.c (at_func2): Likewise.
77953 2009-09-23  Eric Blake  <ebb9@byu.net>
77955         linkat: new module
77956         * modules/linkat: New file.
77957         * lib/at-func2.c (at_func2): Likewise.
77958         * lib/linkat.c (linkat): Likewise.
77959         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
77960         * lib/openat-priv.h (at_func2): Add declaration.
77961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77962         * modules/unistd (Makefile.am): Substitute them.
77963         * lib/unistd.in.h (linkat): Declare it.
77964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77965         * doc/posix-functions/linkat.texi (linkat): Likewise.
77966         * doc/posix-functions/link.texi (link): Tweak wording.
77967         * tests/test-link.c (main): Move guts...
77968         * tests/test-link.h (test_link): ...into new file.
77969         * modules/linkat-tests: New test.
77970         * tests/test-linkat.c: Likewise.
77971         * modules/link-tests (Files): Ship new file.
77972         (Depends-on): Add stdbool.
77974         dirname: add library-safe mdir_name
77975         * lib/dirname.h (mdir_name): New prototype.
77976         * lib/dirname.c (dir_name): Move guts...
77977         (mdir_name): ...to new function that avoids xalloc_die.
77979         fchdir: another mingw fix
77980         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
77981         * lib/fchdir.c (get_name): New helper method; skips canonicalize
77982         on mingw (where it has not yet been ported), and make it optional
77983         elsewhere.
77984         (_gl_register_fd): Use it.
77986         same-inode: make SAME_INODE tri-state, to port to mingw
77987         * NEWS: Mention this change.
77988         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
77989         st_ino always being 0.
77990         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
77991         * lib/cycle-check.c (cycle_check): Likewise.
77992         * lib/same.c (same_name): Likewise.
77994         lstat: avoid mingw compilation error
77995         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
77996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
77997         lstat ourselves.
77998         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
77999         was adequate.
78000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
78001         the checks for lstat.
78002         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
78004         link: fix test failure on Solaris 9
78005         * lib/link.c (rpl_link): Don't assume link will catch bogus
78006         trailing slash on source.
78008         test-symlinkat: enhance test
78009         * tests/test-readlink.c (main): Move guts...
78010         * tests/test-readlink.h (test_readlink): ...into new file.
78011         * tests/test-symlink.c (main): Move guts...
78012         * tests/test-symlink.h (test_symlink): ...into new file.
78013         * tests/test-symlinkat.c (main): Use new files for further
78014         coverage.
78015         (do_symlink, do_readlink): New helper functions.
78016         * modules/symlink-tests (Files): Ship new file.
78017         (Depends-on): Add stdbool.
78018         * modules/readlink-tests (Files): Ship new file.
78019         (Depends-on): Add stdbool.
78020         * modules/symlinkat-tests (Files): Use new files.
78022 2009-09-23  Eric Blake  <ebb9@byu.net>
78024         readlink: document portability issue with symlink length
78025         * doc/posix-functions/lstat.texi (lstat): Mention that some file
78026         systems have bogus st_size on symlinks, and mention the
78027         areadlink-with-size module.
78028         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78029         * doc/posix-functions/readlink.texi (readlink): Mention the
78030         areadlink module, and ERANGE failure.
78031         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78032         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
78034         readlink: fix Solaris 9 bug with trailing slash
78035         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
78036         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
78037         * doc/posix-functions/readlink.texi (readlink): Document this.
78038         * modules/readlink-tests: New test.
78039         * tests/test-readlink.c: Likewise.
78041         readlink: fix cygwin 1.5.x bug with return type
78042         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
78043         * lib/unistd.in.h (readlink): Use ssize_t.
78044         * lib/readlink.c (readlink): Likewise.
78045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78046         * modules/unistd (Makefile.am): Substitute it.
78047         * lib/unistd.in.h (readlink): Declare replacement.
78048         * doc/posix-functions/readlink.texi (readlink): Document this.
78050         symlink: use throughout gnulib
78051         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
78052         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
78053         symlink is not used.
78054         * modules/symlinkat (Depends-on): Add symlink.
78055         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78056         * modules/canonicalize-tests (Depends-on): Likewise.
78057         * modules/lstat-tests (Depends-on): Likewise.
78058         * modules/openat-tests (Depends-on): Likewise.
78059         * modules/remove-tests (Depends-on): Likewise.
78060         * modules/rmdir-tests (Depends-on): Likewise.
78061         * modules/unlink-tests (Depends-on): Likewise.
78062         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
78063         * tests/test-canonicalize.c (symlink): Likewise.
78064         * tests/test-fstatat.c (symlink): Likewise.
78065         * tests/test-lstat.c (symlink): Likewise.
78066         * tests/test-remove.c (symlink): Likewise.
78067         * tests/test-rmdir.c (symlink): Likewise.
78068         * tests/test-unlink.c (symlink): Likewise.
78069         * tests/test-unlinkat.c (symlink): Likewise.
78071         symlink: new module, for Solaris 9 bug
78072         * modules/symlink: New file.
78073         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
78074         * lib/symlink.c: Likewise.
78075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78076         * modules/unistd (Makefile.am): Substitute them.
78077         * lib/unistd.in.h (symlink): Declare replacement.
78078         * MODULES.html.sh (File system functions): Mention it.
78079         * doc/posix-functions/symlink.texi (symlink): Likewise.
78080         * modules/symlink-tests: New test.
78081         * tests/test-symlink.c: Likewise.
78083 2009-09-23  Bruno Haible  <bruno@clisp.org>
78085         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
78086         when needed.
78087         Test case: gnulib-tool --import --with-tests atexit inttypes.
78088         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
78090 2009-09-23  Bruno Haible  <bruno@clisp.org>
78092         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
78093         subcommand, not in a subshell.
78095 2009-09-22  Eric Blake  <ebb9@byu.net>
78097         unistd: sort replacement declarations
78098         * lib/unistd.in.h: Sort declarations.
78100         open, openat: minor optimization
78101         * lib/open.c (open): If open succeeded, len is non-zero.
78102         * lib/openat.c (rpl_openat): Likewise.
78104         link-follow: ensure correct result
78105         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
78106         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
78107         distinguish between possible failures.
78109 2009-09-21  Eric Blake  <ebb9@byu.net>
78111         fts: avoid compiler warning
78112         * lib/fts.c (dirent_inode_sort_may_be_useful)
78113         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
78115 2009-09-19  Bruno Haible  <bruno@clisp.org>
78117         * lib/progreloc.c (canonicalize_file_name): New declaration.
78119 2009-09-19  Eric Blake  <ebb9@byu.net>
78121         link: fix quoting
78122         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
78124         openat: fix openat bugs on Solaris 9
78125         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
78126         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
78127         * modules/openat (Depends-on): Add open.
78128         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
78129         * modules/fcntl-h (Makefile.am): Substitute it.
78130         * lib/fcntl.in.h (openat): Declare replacement.
78131         * doc/posix-functions/openat.texi (openat): Document this.
78133         openat: move fstatat and unlinkat into correct files
78134         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
78135         compiled.
78136         * lib/openat.c (fstatat, unlinkat): Move...
78137         * lib/fstatat.c (fstatat): ...into correct files.
78138         * lib/unlinkat.c (unlinkat): Likewise.
78140         openat: fix unlinkat bugs on Solaris 9
78141         * lib/unlinkat.c (unlinkat): New file.
78142         * modules/openat (Depends-on): Add unlink.
78143         (Files): Distribute it.
78144         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
78145         trailing slash behavior is broken.
78146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78147         * modules/unistd (Makefile.am): Substitute it.
78148         * lib/unistd.in.h (unlinkat): Declare replacement.
78149         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
78151         openat: fix fstatat bugs on Solaris 9
78152         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
78153         stat.
78154         * doc/posix-functions/fstatat.texi (fstatat): Document this.
78156         test-unlinkat: enhance test, to expose Solaris 9 bug
78157         * tests/test-unlink.c (main): Factor guts...
78158         * tests/test-unlink.h (test_rmdir_func): ...into new file.
78159         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
78160         * tests/test-rmdir.c (main): Adjust caller.
78161         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
78162         (unlinker): New helper function.
78163         (rmdirat): Enhance check.
78164         * modules/rmdir-tests (Depends-on): Add stdbool.
78165         * modules/unlink-tests (Depends-on): Likewise.
78166         (Files): Add test-unlink.h.
78167         * modules/openat-tests (Files): Likewise.
78168         (Depends-on): Add unlinkdir.
78170         test-fstatat: new test, to expose Solaris 9 bugs
78171         * tests/test-stat.c (main): Factor guts...
78172         * tests/test-stat.h (test_stat_func): ...into new file.
78173         * tests/test-lstat.c (main): Factor guts...
78174         * tests/test-lstat.h (test_lstat_func): ...into new file.
78175         * tests/test-fstatat.c: New file.
78176         * modules/stat-tests (Files): Add test-stat.h.
78177         * modules/lstat-tests (Files): Add test-lstat.h.
78178         (Depends-on): Add stdbool.
78179         * modules/openat-tests (Depends-on): Add pathmax.
78180         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
78181         (Makefile.am): Run new test.
78183         remove: new module, for mingw and Solaris 9 bugs
78184         * modules/remove: New file.
78185         * lib/remove.c: Likewise.
78186         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
78187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78188         * modules/stdio (Makefile.am): Use them.
78189         * lib/stdio.in.h (remove): Declare replacement.
78190         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78191         * doc/posix-functions/remove.texi (remove): Likewise.
78192         * modules/remove-tests: New test.
78193         * tests/test-remove.c: Likewise.
78195         unlink: new module, for Solaris 9 bug
78196         * modules/unlink: New file.
78197         * lib/unlink.c: Likewise.
78198         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
78199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78200         * modules/unistd (Makefile.am): Use them.
78201         * lib/unistd.in.h (stat): Declare replacement.
78202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78203         * doc/posix-functions/unlink.texi (unlink): Likewise.
78204         * modules/unlink-tests: New test.
78205         * tests/test-unlink.c: Likewise.
78207         lstat: fix Solaris 9 bug
78208         * lib/lstat.c (lstat): Also check for trailing slash on
78209         non-symlink, non-directories.  Use stat module to simplify logic.
78210         * doc/posix-functions/lstat.texi (lstat): Document it.
78211         * modules/lstat-tests (Depends-on): Add errno, same-inode.
78212         (configure.ac): Check for symlink.
78213         * tests/test-lstat.c (main): Add more tests.
78215         stat: add as dependency to other modules
78216         * modules/chown (Depends-on): Add stat.
78217         * modules/euidaccess (Depends-on): Likewise.
78218         * modules/fchdir (Depends-on): Likewise.
78219         * modules/isdir (Depends-on): Likewise.
78220         * modules/link (Depends-on): Likewise.
78221         * modules/lstat (Depends-on): Likewise.
78222         * modules/mkdir-p (Depends-on): Likewise.
78223         * modules/modechange (Depends-on): Likewise.
78224         * modules/open (Depends-on): Likewise.
78225         * modules/readlink (Depends-on): Likewise.
78226         * modules/same (Depends-on): Likewise.
78228         stat: fix Solaris 9 bug
78229         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
78230         slash.
78231         * lib/stat.c (rpl_stat): Work around it.
78232         * doc/posix-functions/stat.texi (stat): Update documentation.
78234         stat: new module, for mingw bug
78235         * modules/stat: New file.
78236         * lib/stat.c: Likewise.
78237         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
78238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78239         * modules/sys_stat (Makefile.am): Use them.
78240         * lib/sys_stat.in.h (stat): Declare replacement.
78241         * lib/openat.c (fstatat): Deal with lstat and stat being function
78242         macros.
78243         * modules/openat (Depends-on): Add inline.
78244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78245         * doc/posix-functions/stat.texi (stat): Likewise.
78246         * modules/stat-tests: New test.
78247         * tests/test-stat.c: Likewise.
78249 2009-09-19  Jim Meyering  <meyering@redhat.com>
78251         syntax-check: detect unnecessary inclusion of canonicalize.h
78252         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
78254 2009-09-19  Eric Blake  <ebb9@byu.net>
78256         canonicalize-lgpl: adjust clients to use correct header
78257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78258         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
78259         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
78260         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
78261         * lib/progreloc.c (includes): Likewise.
78263 2009-09-19  Jim Meyering  <meyering@redhat.com>
78265         test-posixtm.c: correct a comment
78266         * tests/test-posixtm.c: Correct first-line comment.
78267         Spotted by Eric Blake.
78269 2009-09-16  Jim Meyering  <meyering@redhat.com>
78271         posixtm-tests: make T const-correct; add a test case
78272         * tests/test-posixtm.c (T): Declare const.
78273         Add a test for -(2^31+1).
78274         Remove useless can-succeed-only-in-2002 test.
78276         posixtm-tests: adjust the sole failing test
78277         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
78278         expected output matches what mktime now produces.  Cross-checked via
78279         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
78281         posixtm: move #ifdef'd tests into a new module
78282         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
78283         * tests/test-posixtm.c: ... this new file.
78284         * modules/posixtm-tests: New module.
78286 2009-09-19  Eric Blake  <ebb9@byu.net>
78288         openat: simplify use of at-func.c
78289         * lib/at-func.c (includes): Include prerequisites here, to
78290         simplify requirements on client files.
78291         * lib/openat-priv.h: Add double-inclusion guard.
78292         * lib/faccessat.c (includes): Simplify.
78293         * lib/fchmodat.c (includes): Likewise.
78294         * lib/fchownat.c (includes): Likewise.
78295         * lib/mkdirat.c (includes): Likewise.
78296         * lib/mkfifoat.c (includes): Likewise.
78297         * lib/symlinkat.c (includes): Likewise.
78299         openat: allow return of fd 0
78300         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
78301         * modules/save-cwd (Depends-on): Replace fcntl-safer with
78302         unistd-safer.
78303         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
78304         <fcntl.h>; this module does not leak fds.
78305         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
78306         must be allowed to return 0, leaving openat_safer to add the
78307         safety.
78308         (openat_permissive): Avoid writing to just-opened fd 2 if
78309         restoring the current directory fails.
78310         * lib/openat-die.c (openat_restore_fail): Add comment.
78311         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
78312         (save_cwd): Guarantee safe fd, but without use of open_safer.
78313         * tests/test-openat.c: New test.
78314         * modules/openat-tests (Files, Makefile.am): Distribute and build
78315         new file.
78317         relocatable-prog-wrapper: fix build
78318         * modules/relocatable-prog-wrapper (Files): Update name of
78319         canonicalize m4 file, broken on 2009-09-17.
78320         Reported by emad hajjar <aleppos@hotmail.com>.
78322 2009-09-19  Bruno Haible  <bruno@clisp.org>
78324         * lib/safe-alloc.h: Use the standard header with GPL copyright.
78325         * lib/safe-alloc.c: Likewise.
78326         Reported by Ian Beckwith <ianb@erislabs.net>.
78328 2009-09-18  Bruno Haible  <bruno@clisp.org>
78330         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
78331         Reported by <erobles@sensacd.com.mx>.
78333 2009-09-17  Eric Blake  <ebb9@byu.net>
78335         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
78336         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
78337         slashes when checking if last component is missing.
78338         * tests/test-canonicalize.c (main): Test this.
78340         canonicalize, canonicalize-lgpl: honor // if distinct from /
78341         * modules/canonicalize (Files): Add double-slash-root.m4.
78342         * modules/canonicalize-lgpl (Files): Likewise.
78343         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78344         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
78345         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
78346         fallback definition.
78347         (canonicalize_filename_mode): Use it to protect //.
78348         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
78349         (__realpath): Likewise.
78350         * tests/test-canonicalize.c (main): Test this.
78351         * tests/test-canonicalize-lgpl.c (main): Likewise.
78352         * modules/canonicalize-tests (Depends-on): Add same-inode.
78353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78355         canonicalize-lgpl: fix glibc bug with trailing slash
78356         * m4/canonicalize-lgpl.m4: Move contents...
78357         * m4/canonicalize.m4: ...here.
78358         (gl_CANONICALIZE_LGPL): Factor realpath check...
78359         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
78360         glibc 2.3.5 bug, fixed 2005-04-27.
78361         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
78362         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
78363         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
78364         * modules/canonicalize-lgpl (Files): Manage file rename.
78365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
78366         * modules/stdlib (Makefile.am): Substitute witness.
78367         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
78368         is needed.
78369         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
78370         replacement is required.
78371         * lib/canonicalize.c (canonicalize_file_name): Likewise.
78372         * doc/glibc-functions/canonicalize_file_name.texi
78373         (canonicalize_file_name): Document this.
78374         * doc/posix-functions/realpath.texi (realpath): Likewise.
78376         canonicalize-lgpl: reject non-directory with trailing slash
78377         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
78378         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
78379         catches failures in glibc 2.3.5.
78380         * tests/test-canonicalize.c (main): Likewise.
78382         canonicalize-lgpl: use native realpath if it works
78383         * lib/canonicalize-lgpl.c (realpath): Guard with
78384         FUNC_REALPATH_WORKS.
78385         * lib/stdlib.in.h (realpath): Make declaration optional based on
78386         HAVE_REALPATH.
78387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
78388         native realpath works.
78389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
78390         * modules/stdlib (Makefile.am): Substitute witness.
78392         canonicalize, canonicalize-lgpl: use <stdlib.h>
78393         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
78394         (Include): Mention <stdlib.h>.
78395         (configure.ac): Mention functions we provide.
78396         * modules/canonicalize (configure.ac): Likewise.
78397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
78398         realpath if canonicalize_file_name is missing.
78399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
78400         * modules/stdlib (Makefile.am): Substitute witnesses.
78401         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
78402         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
78403         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
78404         * NEWS: Document this.
78405         * doc/glibc-functions/canonicalize_file_name.texi
78406         (canonicalize_file_name): Likewise.
78407         * doc/posix-functions/realpath.texi (realpath): Likewise.
78408         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
78410         test-canonicalize: consolidate into single C program
78411         * tests/test-canonicalize.sh: Delete; move setup into...
78412         * tests/test-canonicalize.c (main): ...the program, making it
78413         easier to run in debugger.  Add some tests.
78414         * modules/canonicalize-tests (Files): Remove unused file.
78415         (Depends-on): Add progname.
78416         (configure.ac, Makefile.am): Simplify.
78418         test-canonicalize-lgpl: consolidate into single C program
78419         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
78420         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
78421         easier to run in debugger.  Add some tests.
78422         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
78423         (configure.ac, Makefile.am): Simplify.
78425         canonicalize: avoid resolvepath
78426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
78427         unnecessary checks.
78428         * lib/canonicalize.c (includes): Simplify.
78429         (canonicalize_file_name): Drop resolvepath implementation.
78430         * modules/canonicalize (Depends-on): Drop filenamecat.
78432         canonicalize: don't lose errno
78433         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
78434         over calls to free.
78436         canonicalize: simplify errno handling
78437         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
78438         assignment.
78440         canonicalize, canonicalize-lgpl: update module dependencies
78441         * modules/canonicalize (Depends-on): Add extensions, lstat,
78442         pathmax, stdlib.
78443         (Files): Drop pathmax.h.
78444         (configure.ac): Adjust macro name.
78445         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
78446         lstat, stdlib, sys_stat.
78447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
78448         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
78449         extensions.
78450         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
78451         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
78452         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
78453         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
78454         declaration, if available.
78455         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
78456         we can rely on the readlink module.
78457         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
78458         (includes): Use <unistd.h> unconditionally.
78460 2009-09-17  Eric Blake  <ebb9@byu.net>
78462         maint: make Include sections of modules consistent
78463         * modules/alloca: Use only header name; no need to list #include.
78464         * modules/alloca-opt: Likewise.
78465         * modules/arpa_inet: Likewise.
78466         * modules/canon-host: Likewise.
78467         * modules/configmake: Likewise.
78468         * modules/dirent: Likewise.
78469         * modules/eealloc: Likewise.
78470         * modules/environ: Likewise.
78471         * modules/fchdir: Likewise.
78472         * modules/fcntl: Likewise.
78473         * modules/fcntl-h: Likewise.
78474         * modules/gethrxtime: Likewise.
78475         * modules/gettime: Likewise.
78476         * modules/ignore-value: Likewise.
78477         * modules/inet_ntop: Likewise.
78478         * modules/inet_pton: Likewise.
78479         * modules/inttypes: Likewise.
78480         * modules/isnand-nolibm: Likewise.
78481         * modules/isnanf-nolibm: Likewise.
78482         * modules/mbchar: Likewise.
78483         * modules/mbfile: Likewise.
78484         * modules/mbiter: Likewise.
78485         * modules/mbuiter: Likewise.
78486         * modules/netdb: Likewise.
78487         * modules/netinet_in: Likewise.
78488         * modules/nproc: Likewise.
78489         * modules/pagealign_alloc: Likewise.
78490         * modules/poll: Likewise.
78491         * modules/printf-frexp: Likewise.
78492         * modules/pthread: Likewise.
78493         * modules/putenv: Likewise.
78494         * modules/random_r: Likewise.
78495         * modules/relocatable-prog: Likewise.
78496         * modules/search: Likewise.
78497         * modules/select: Likewise.
78498         * modules/selinux-h: Likewise.
78499         * modules/settime: Likewise.
78500         * modules/signal: Likewise.
78501         * modules/size_max: Likewise.
78502         * modules/socklen: Likewise.
78503         * modules/ssize_t: Likewise.
78504         * modules/stdarg: Likewise.
78505         * modules/stdbool: Likewise.
78506         * modules/stddef: Likewise.
78507         * modules/stdint: Likewise.
78508         * modules/stdio: Likewise.
78509         * modules/stdlib: Likewise.
78510         * modules/string: Likewise.
78511         * modules/strings: Likewise.
78512         * modules/sys_file: Likewise.
78513         * modules/sys_ioctl: Likewise.
78514         * modules/sys_select: Likewise.
78515         * modules/sys_socket: Likewise.
78516         * modules/sys_stat: Likewise.
78517         * modules/sys_time: Likewise.
78518         * modules/sys_times: Likewise.
78519         * modules/sys_utsname: Likewise.
78520         * modules/sys_wait: Likewise.
78521         * modules/sysexits: Likewise.
78522         * modules/time: Likewise.
78523         * modules/times: Likewise.
78524         * modules/tmpfile: Likewise.
78525         * modules/trim: Likewise.
78526         * modules/unistd: Likewise.
78527         * modules/wchar: Likewise.
78528         * modules/wctype: Likewise.
78530 2009-09-17  Bruno Haible  <bruno@clisp.org>
78532         Make getdate.y compile on QNX and NetBSD 5 / i386.
78533         * m4/getdate.m4 (gl_GETDATE): Conditionally define
78534         TIME_T_FITS_IN_LONG_INT.
78535         * lib/getdate.y (long_time_t): New type.
78536         (relative_time): Change type of 'seconds' field to long_time_t.
78537         (get_date): Update types of local variables. Check against overflow
78538         during conversion from long_time_t to time_t.
78539         Reported by Matt Kraai <kraai@ftbfs.org>
78540         and Hasso Tepper <hasso@netbsd.org>.
78542 2009-09-17  Bruno Haible  <bruno@clisp.org>
78544         * modules/COPYING: Update copyright years.
78545         * modules/README: Likeiwse.
78546         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
78547         Reported by Ian Beckwith <ianb@erislabs.net>.
78549 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
78551         * users.txt: Update references for gnuit package.
78553 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
78555         * m4/getdelim.m4: Fix typo in copyright line.
78557 2009-09-17  Bruno Haible  <bruno@clisp.org>
78559         * lib/atoll.c: Use the standard header with GPL copyright.
78560         * lib/argz.in.h: Likewise.
78561         * lib/glob.c: Likewise.
78562         * lib/glob-libc.h: Likewise.
78563         * lib/random_r.c: Likewise.
78564         * lib/siglist.h: Likewise.
78565         * lib/strsignal.c: Likewise.
78566         Reported by Ian Beckwith <ianb@erislabs.net>.
78568 2009-09-17  Eric Blake  <ebb9@byu.net>
78570         rmdir: ensure correct dependency order
78571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
78573 2009-09-17  Bruno Haible  <bruno@clisp.org>
78575         Disable assertion that fails on NetBSD 5 / i386.
78576         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
78577         Reported by Sam Steingold <sds@gnu.org>
78578         and Hasso Tepper <hasso@netbsd.org>.
78580 2009-09-16  Eric Blake  <ebb9@byu.net>
78582         unlinkdir: port to mingw
78583         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
78584         on which no one can unlink a directory.
78586         stdlib: sort witness names
78587         * modules/stdlib (Makefile.am): Sort replacements.
78588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
78589         * lib/stdlib.in.h: Likewise.
78591         parse-duration-tests: avoid link failure
78592         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
78593         LIBINTL.
78594         Reported by Tom G. Christensen.
78596         openat-tests: ensure unlinkat behaves like rmdir
78597         * tests/test-rmdir.c (main): Factor guts...
78598         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
78599         * modules/rmdir-tests (Files): Ship new file.
78600         * modules/openat-tests: New test.
78601         * tests/test-unlinkat.c: Likewise.
78603         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
78604         * modules/rmdir-errno (Status, Notice): Now obsolete.
78606         rmdir: work around cygwin 1.5.x and mingw bugs
78607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
78608         * lib/rmdir.c (rmdir): Work around it.
78609         * modules/rmdir (Status, Notice): No longer obsolete.
78610         (Files): Add dos.m4.
78611         (Depends-on): Add unistd.
78612         (configure.ac): Set witnesses.
78613         (License): Relax to LGPLv2+.
78614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
78615         * modules/unistd (Makefile.am): Substitute witnesses.
78616         * lib/unistd.in.h (rmdir): Declare replacement.
78617         * doc/posix-functions/rmdir.texi (rmdir): Document this.
78618         * modules/rmdir-tests: New tests.
78619         * tests/test-rmdir.c: Likewise.
78621 2009-09-15  Eric Blake  <ebb9@byu.net>
78623         fchdir: improve use of replacement functions
78624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
78625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
78626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
78627         REPLACE_CLOSEDIR.
78628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
78629         * modules/sys_stat (Makefile.am): Substitute correct witness.
78630         * modules/dirent (Makefile.am): Likewise.
78631         * modules/unistd (Makefile.am): Likewise.
78632         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
78633         * lib/unistd.in.h (dup): Likewise.
78634         * lib/sys_stat.in.h (fstat): Likewise.
78636         maint: ignore gnulib-tool temp files
78637         * .gitignore: Ignore files created during gnulib-tool --test.
78639 2009-09-13  Jim Meyering  <meyering@redhat.com>
78641         posixtm: don't reject a time that specify "60" as the number of seconds
78642         * lib/posixtm.c (posixtime): The code to reject invalid dates
78643         would also reject a time specified with the .60 suffix.
78644         But POSIX allows that, in order to accommodate leap seconds.
78645         So don't reject it.
78646         (main): Adjust tests accordingly.
78647         * modules/posixtm (Depends-on): Add stpcpy.
78649 2009-09-11  Jim Meyering  <meyering@redhat.com>
78651         announce-gen: include [$release_type] in emitted Subject:
78652         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
78653         e.g., [stable] in the emitted Subject: line.
78655 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78657         Remove obsolete macros from several modules.
78658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
78659         obsolete Autoconf macros with their modern counterparts.
78660         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
78661         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
78662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
78663         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78664         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
78665         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
78666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
78667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
78668         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
78669         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
78670         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
78671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
78672         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
78673         * m4/sockets.m4 (gl_SOCKETS): Likewise.
78674         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
78675         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
78676         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
78677         * m4/time_r.m4 (gl_TIME_R): Likewise.
78678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
78679         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
78680         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
78682         Fix copyright header in build-aux scripts.
78683         * build-aux/git-version-gen: Fix copyright header to match GPLv3
78684         recommendation.
78685         * build-aux/ncftpput-ftp: Likewise.
78686         * build-aux/update-copyright: Likewise.
78688 2009-09-09  Eric Blake  <ebb9@byu.net>
78690         test-link: allow Linux choice of errno
78691         * tests/test-link.c (main): Relax test for alternate error.
78693         strndup: fix improper m4 caching
78694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
78695         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
78696         (gl_PREREQ_STRNDUP): Delete.
78697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
78698         * modules/string (Makefile.am): Substitute it.
78699         * lib/string.in.h (strndup): Modernize prototype.
78701         getcwd: port to mingw
78702         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
78703         different from the POSIX assumptions made throughout the getcwd
78704         module; fortunately, the mingw getcwd does not need replacement.
78705         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
78706         * modules/getcwd-tests: New test.
78707         * tests/test-getcwd.c: Likewise.
78709         link: fix platform bugs
78710         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
78711         * lib/link.c (link): Work around them.  Fix related mingw bug.
78712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
78713         * modules/unistd (Makefile.am): Substitute it.
78714         * lib/unistd.in.h (link): Declare replacement.
78715         * doc/posix-functions/link.texi (link): Document this.
78716         * modules/link (Depends-on): Add strdup-posix, sys_stat.
78718         test-link: consolidate into single C program, test more cases
78719         * tests/test-link.sh: Delete.
78720         * tests/test-link.c: Test more error conditions.  Exposes bugs on
78721         at least Cygwin and Solaris.
78722         * modules/link-tests (Files): Remove unused file.
78723         (Depends-on): Add errno, sys_stat.
78724         (Makefile.am): Simplify.
78726 2009-09-08  Bruno Haible  <bruno@clisp.org>
78728         Work around towlower, towupper bug on mingw.
78729         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
78730         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
78731         * doc/posix-functions/towlower.texi: Mention the mingw bug.
78732         * doc/posix-functions/towupper.texi: Likewise.
78733         Reported by Eric Blake.
78735 2009-09-08  Jim Meyering  <meyering@redhat.com>
78737         build: don't try to run autoheader if we don't use it
78738         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
78739         is not used in configure.ac.
78741 2009-09-08  Eric Blake  <ebb9@byu.net>
78743         euidaccess: fix compilation error
78744         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
78746         rawmemchr: relax license
78747         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
78748         okay.
78749         Reported by Jim Meyering.
78751         mkfifoat: new module
78752         * modules/mkfifoat: New file.
78753         * lib/mkfifoat.c: Likewise.
78754         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
78755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78756         * modules/sys_stat (Makefile.am): Use them.
78757         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
78758         * MODULES.html.sh (File system functions): Mention module.
78759         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78760         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78761         * modules/mkfifoat-tests: New test.
78762         * tests/test-mkfifoat.c: Likewise.
78764         strchrnul: relax license
78765         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
78766         okay.
78767         Reported by Jim Meyering.
78769 2009-09-08  Eric Blake  <ebb9@byu.net>
78771         fstatat: fix compilation on Solaris
78772         * lib/fstatat.c (includes): Add fcntl.h.
78773         Reported by Pádraig Brady.
78775 2009-09-07  Eric Blake  <ebb9@byu.net>
78777         rename: modernize replacement
78778         * modules/rename (Depends-on): Add stdio.
78779         (configure.ac): Declare witness.
78780         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
78781         stdio take care of replacement.
78782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
78783         * modules/stdio (Makefile.am): Substitute them.
78784         * lib/stdio.in.h (rename): Declare replacement.
78785         * lib/rename.c (includes): Allow cross-compilation to non-windows
78786         machines.
78787         * doc/posix-functions/rename.texi (rename): Improve
78788         documentation.
78790         stdio: sort witness names
78791         * modules/stdio (Makefile.am): Sort replacements.
78792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78793         * lib/stdio.in.h: Likewise.
78795         getcwd: minor cleanups
78796         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
78797         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
78799         openat: provide more convenience names
78800         * modules/faccessat (configure.ac): Add C witness.
78801         * lib/unistd.in.h (readlinkat): Fix typo.
78802         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
78803         convenience wrappers.
78804         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
78805         wrappers in syntax checks.
78807 2009-09-06  Eric Blake  <ebb9@byu.net>
78809         doc: fix comments in recent patches
78810         * lib/faccessat.c: Mention correct function.
78811         * lib/fchmodat.c: Likewise.
78812         * lib/fchownat.c: Likewise.
78813         * lib/symlinkat.c: Likewise.
78814         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
78815         constants.
78817         faccessat, symlinkat: continue cleanup of previous patch
78818         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
78819         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
78820         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
78821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
78822         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
78823         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
78824         set.
78826 2009-09-06  Bruno Haible  <bruno@clisp.org>
78828         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
78829         (fstatat): Declare if GNULIB_FSTATAT is set.
78830         (mkdirat): Declare if GNULIB_MKDIRAT is set.
78831         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
78832         (unlinkat): Declare if GNULIB_UNLINKAT is set.
78833         * modules/fcntl-h (Files): Remove m4/openat.m4.
78834         * modules/sys_stat (Files): Remove m4/openat.m4.
78835         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
78836         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
78837         * modules/unistd (Files): Remove m4/openat.m4.
78838         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
78839         GNULIB_OPENAT.
78840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
78841         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
78842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
78843         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
78844         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
78845         gl_OPENAT_DEFAULTS.
78846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
78847         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
78848         Don't require gl_OPENAT_DEFAULTS.
78849         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
78850         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
78851         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
78852         (gl_OPENAT_DEFAULTS): Remove macro.
78854 2009-09-06  Bruno Haible  <bruno@clisp.org>
78856         * modules/openat (configure.ac): Remove unneeded witness.
78858 2009-09-06  Bruno Haible  <bruno@clisp.org>
78860         Set errno to ENOSYS when a function is entirely unsupported.
78861         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
78862         EOPNOTSUPP.
78863         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
78864         * modules/chown (Depends-on): Remove errno.
78866 2009-09-06  Bruno Haible  <bruno@clisp.org>
78868         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
78870 2009-09-06  Bruno Haible  <bruno@clisp.org>
78872         * lib/sys_stat.in.h: Fix preprocessor command indentation.
78874 2009-09-06  Ben Pfaff  <blp@gnu.org>
78875             Bruno Haible  <bruno@clisp.org>
78877         Work around a glibc bug in strtok_r.
78878         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
78879         Undefine if UNDEFINE_STRTOK_R is set.
78880         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
78881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78882         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
78883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
78884         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
78885         UNDEFINE_STRTOK_R.
78886         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
78888 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
78890         exclude: minor fix
78891         * lib/exclude.c: Include wctype.h
78893 2009-09-06  Akim Demaille  <demaille@gostai.com>
78895         bootstrap: improve error message
78896         * build-aux/bootstrap (find_tool): Upon failure, report the list
78897         of candidates.
78898         Honor the initial value of the envvar.
78900 2009-09-05  Eric Blake  <ebb9@byu.net>
78902         symlinkat: new module
78903         * modules/symlinkat: New file.
78904         * lib/symlinkat.c: Likewise.
78905         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
78906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78907         * modules/unistd (Makefile.am): Use them.
78908         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
78909         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
78910         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
78911         * MODULES.html.sh (File system functions): Mention module.
78912         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78913         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78914         * modules/symlinkat-tests: New test.
78915         * tests/test-symlinkat.c: Likewise.
78917         test-openat-safer: add more checks
78918         * tests/test-openat-safer.c (main): Check more code paths.
78920 2009-09-05  Jim Meyering  <meyering@redhat.com>
78922         syntax-check: detect unnecessary inclusion of openat.h
78923         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
78925 2009-09-05  Bruno Haible  <bruno@clisp.org>
78927         Support towlower, towupper.
78928         * doc/posix-functions/towlower.texi: Mention module wctype.
78929         * doc/posix-functions/towupper.texi: Likewise.
78930         * lib/wctype.in.h (towlower, towupper): New functions.
78931         * tests/test-wctype.c: Include stdio.h, stdlib.h.
78932         (ASSERT): New macro.
78933         (e): New variable.
78934         (main): Test also towlower, towupper. Test WEOF argument.
78935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
78937 2009-09-05  Bruno Haible  <bruno@clisp.org>
78939         Fix conversion behaviour when the input is invalid.
78940         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
78941         mark occurring in first pass of indirect conversion.
78942         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
78943         input.
78944         Found by clang's static analyzer.
78946 2009-09-05  Bruno Haible  <bruno@clisp.org>
78948         * tests/test-striconveh.c (main): Test indirect conversion on platforms
78949         where direct conversion is possible.
78951 2009-09-04  Eric Blake  <ebb9@byu.net>
78953         openat: fail with ENOENT on empty name
78954         * lib/openat-proc.c (openat_proc_name): Special-case the empty
78955         buffer.
78957         link-follow: fix logic bug in prior patch
78958         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
78959         reversed sense of yes and no in prior patch.  Avoid confusing
78960         compilation failure with desired semantics.
78962         link-follow: accommodate mingw and cross-compilation
78963         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
78964         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
78965         cross-compilation results to -1, to make linkat easier to
78966         implement when cross-compiling.  Trivially support mingw.
78967         * modules/link-follow (configure.ac): Call new name.
78968         * NEWS: Mention this.
78970 2009-09-03  Eric Blake  <ebb9@byu.net>
78972         faccessat: compile replacement
78973         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
78974         needed.
78976         fts: fix compilation error
78977         * lib/fts.c (includes): Re-add "openat.h", for
78978         openat_needs_fchdir.
78980         faccessat: new module
78981         * modules/faccessat: New file.
78982         * lib/faccessat.c: Likewise.
78983         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
78984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78985         * modules/unistd (Makefile.am): Use it.
78986         * lib/unistd.in.h (faccessat): Declare it.
78987         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
78988         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
78989         * MODULES.html.sh (File system functions): Mention it.
78990         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
78991         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
78993         euidaccess: prefer POSIX over non-standard implementation
78994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
78995         * lib/euidaccess.c (euidaccess): Use it if available.
78997         openat: make template easier to use
78998         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
78999         AT_FUNC_F2 to be undefined.
79000         (VALIDATE_FLAG): New macro; use it to reject bad flags.
79001         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
79002         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
79003         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
79004         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
79005         Likewise.
79006         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
79007         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
79008         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
79009         Likewise.
79011         openat: declare in POSIX headers
79012         * NEWS: Mention this.
79013         * modules/openat (configure.ac): Declare witnesses.
79014         (Depends-on): Add fcntl-h, sys_stat, unistd.
79015         (Include): Mention correct headers.
79016         * modules/fcntl-h (Depends-on): Add link-warning.
79017         (Files): Add openat.m4.
79018         (Makefile.am): Substitute witnesses.
79019         * modules/sys_stat (Files, Makefile.am): Likewise.
79020         * modules/unistd (Files, Makefile.am): Likewise.
79021         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
79022         (gl_OPENAT_DEFAULTS): New macro.
79023         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
79024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
79025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
79026         (SYS_STAT_H): Remove unused variable.
79027         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
79028         * lib/fcntl--.h (includes): Remove unneeded header.
79029         * lib/openat-safer.c (includes): Likewise.
79030         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
79031         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
79032         appropriate headers.
79033         (__OPENAT_PREFIX): Delete.
79034         * lib/fcntl.in.h (openat): Provide declaration.
79035         (AT_FDCWD): Fix Solaris bug.
79036         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
79037         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
79038         * lib/fchmodat.c (includes):  Adjust to find declaration.
79039         * lib/fchownat.c (includes): Likewise.
79040         * lib/mkdirat.c (includes): Likewise.
79041         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
79042         still visible.
79044 2009-09-02  Eric Blake  <ebb9@byu.net>
79046         errno: use consistently
79047         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
79048         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
79049         * lib/canonicalize.c (ELOOP): Likewise.
79050         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
79051         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
79052         * lib/lchown.c (EOPNOTSUPP): Likewise.
79053         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
79054         * lib/savewd.c (ESTALE): Likewise.
79055         * lib/settime.c (ENOSYS): Likewise.
79056         * lib/utimens.c (ENOSYS): Likewise.
79057         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
79058         * lib/chdir-safer.c (ELOOP): Likewise.
79059         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
79060         * modules/c-stack (Depends-on): Add errno.
79061         * modules/canonicalize (Depends-on): Likewise.
79062         * modules/chdir-safer (Depends-on): Likewise.
79063         * modules/fdopendir (Depends-on): Likewise.
79064         * modules/inet_ntop (Depends-on): Likewise.
79065         * modules/inet_pton (Depends-on): Likewise.
79066         * modules/lchown (Depends-on): Likewise.
79067         * modules/openat (Depends-on): Likewise.
79068         * modules/savewd (Depends-on): Likewise.
79069         * modules/settime (Depends-on): Likewise.
79070         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
79072         fts: avoid leaking fds
79073         * modules/fts (Depends-on): Add cloexec.
79074         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
79075         flag.
79077         fts: make directory fds more robust
79078         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
79079         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
79081         backupfile, chdir-long, fts, savedir: make safer
79082         * lib/backupfile.c (includes): Use "dirent--.h", since
79083         numbered_backup can write to stderr during readdir.
79084         * lib/savedir.c (includes): Likewise.
79085         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
79086         emulation can write to stderr on failure.
79087         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
79088         * lib/getcwd.c: Document why opendir_safer is unused.
79089         * lib/glob.c: Likewise.
79090         * lib/scandir.c: Likewise.
79091         * lib/openat-proc.c: Likewise, for open_safer.
79092         * modules/backupfile (Depends-on): Add dirent-safer.
79093         * modules/savedir (Depends-on): Likewise.
79094         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
79095         * modules/chdir-long (Depends-on): Add openat-safer.
79097         openat-safer: new module
79098         * modules/openat-safer: New file.
79099         * lib/openat-safer.c: Likewise.
79100         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
79101         * lib/fcntl-safer.h (openat_safer): Declare.
79102         * lib/fcntl--.h (openat): Override.
79103         * MODULES.html.sh (File descriptor based I/O): Mention it.
79104         * lib/openat.h: Add double-inclusion guards.
79105         * lib/openat.c (includes): Only include "fcntl-safer.h", not
79106         "fcntl--.h", so we can implement openat.
79107         * modules/openat-safer-tests: New test.
79108         * tests/test-openat-safer.c: New file.
79110         dirent-safer: new module
79111         * modules/dirent-safer: New file.
79112         * lib/dirent--.h: Likewise.
79113         * lib/dirent-safer.h: Likewise.
79114         * lib/opendir-safer.c: Likewise.
79115         * m4/dirent-safer.m4: Likewise.
79116         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
79117         * modules/dirent-safer-tests: New test.
79118         * tests/test-dirent-safer.c: New file.
79119         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
79121         fdopendir: optimize on mingw
79122         * lib/unistd.in.h (_gl_directory_name): New prototype.
79123         * lib/fchdir.c (_gl_directory_name): Implement it.
79124         (fchdir): Use it to simplify implementation.
79125         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
79126         fchdir, when available, to avoid calling [f]chdir().
79128         fdopendir: split into its own module
79129         * lib/openat.c (fdopendir): Move...
79130         * lib/fdopendir.c: ...into new file.
79131         * modules/fdopendir: New module.
79132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
79133         * modules/openat (Depends-on): Add fdopendir.
79134         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
79135         fdopendir here.
79136         * modules/savedir (Depends-on): Only need fdopendir, not full
79137         openat.
79138         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
79139         * lib/openat.h (fdopendir): Drop prototype.
79140         * lib/dirent.in.h (fdopendir): Provide prototype.
79141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
79142         * modules/dirent (Makefile.am): Substitute them.
79143         * MODULES.html.sh (File system functions): Mention it.
79144         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
79145         * modules/fdopendir-tests: New file.
79146         * tests/test-fdopendir.c: Likewise.
79148         fchdir: use more consistent macro convention
79149         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
79150         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
79151         REPLACE_FCHDIR, rather than relying on config.h macros.
79152         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
79153         inside a single make-time REPLACE_FCHDIR block, rather than using
79154         the config.h FCHDIR_REPLACEMENT.
79155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
79156         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
79157         Manage fstat replacement.
79158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
79159         REPLACE_FCHDIR.
79160         * modules/sys_stat (Files): Add m4/unistd_h.m4.
79161         (Makefile.am): Substitute REPLACE_FCHDIR.
79162         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
79163         FCHDIR_REPLACEMENT.
79164         * lib/dup-safer.c (dup_safer): Likewise.
79165         * lib/dup2.c (rpl_dup2): Likewise.
79166         * lib/dup3.c (rpl_dup3): Likewise.
79167         * lib/open.c (rpl_open): Likewise.
79169         fchdir: simplify error handling, and support dup3
79170         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
79171         stdbool, malloc-posix, realloc-posix.
79172         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
79173         (ensure_dirs_slot): Return false on allocation failure.
79174         (rpl_dup2): Delete.
79175         (_gl_register_dup): New function.
79176         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
79177         (_gl_register_fd): Close fd on allocation failure.
79178         * lib/fcntl.in.h (_gl_register_fd): Update signature.
79179         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
79180         prototype.
79181         (rpl_dup2_fchdir): Delete prototype.
79182         * lib/open.c (open): Update caller.
79183         * lib/dup2.c (dup2): Track fchdir metadata.
79184         * lib/dup3.c (dup3): Likewise.
79185         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
79186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
79188 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79190         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
79191         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
79192         don't pass arguments to AC_OUTPUT.
79194 2009-09-02  Bruno Haible  <bruno@clisp.org>
79196         * modules/mkdtemp (License): Relicense under LGPLv2+.
79197         Reported by Paolo Bonzini.
79199 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79201         Replace uses of obsolete autoconf macros in Jim's modules.
79202         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
79203         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
79204         can evoke a warning from autoconf when run with -Wobsolete
79205         enabled.  They were declared obsolete for good reasons (see
79206         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
79207         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
79208         should not continue using the deprecated macros.
79209         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
79210         obsolete Autoconf macros with modern counterparts.
79211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79212         * m4/dos.m4 (gl_AC_DOS): Likewise.
79213         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
79214         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
79215         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
79216         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
79217         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
79218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
79219         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
79220         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
79221         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
79222         Likewise.
79223         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
79224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79225         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
79226         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
79227         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
79228         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79230 2009-09-01  Eric Blake  <ebb9@byu.net>
79232         fchdir: fix off-by-one bug in previous patch
79233         * lib/fchdir.c (rpl_fstat): Use correct bounds.
79234         (_gl_unregister_fd): Delete useless if.
79236 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
79238         maint.mk: sort the list of syntax-check rules
79239         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
79240         easier to get a sense of progress when the rules are run sequentially
79241         and take a long time.
79243 2009-09-01  Simon Josefsson  <simon@josefsson.org>
79245         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
79246         * modules/netinet_in: Likewise.
79247         * modules/sys_file: Likewise.
79248         * modules/sys_ioctl: Likewise.
79249         * modules/sys_select: Likewise.
79250         * modules/sys_socket: Likewise.
79251         * modules/sys_stat: Likewise.
79252         * modules/sys_time: Likewise.
79253         * modules/sys_times: Likewise.
79254         * modules/sys_utsname: Likewise.
79255         * modules/sys_wait: Likewise.
79257 2009-09-01  Jim Meyering  <meyering@redhat.com>
79259         fts: help ensure that return values are not ignored
79260         * lib/fts_.h (__GNUC_PREREQ): Define.
79261         (__attribute_warn_unused_result__): Define.
79262         (fts_children, fts_close, fts_open, fts_read): Declare with
79263         __attribute_warn_unused_result__.
79265         fts: fts_close now fails also when closing a dir file descriptor fails
79266         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
79267         and propagate to caller, along with errno.
79269         announce-gen: correct formatting in --help output
79270         * build-aux/announce-gen (usage): Move the one-line description in
79271         --help output "up", to where it belongs, just after Usage:.
79273 2009-08-31  Eric Blake  <ebb9@byu.net>
79275         fchdir: port to mingw
79276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
79277         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
79278         opened, then use a substitute.
79279         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
79280         replacement.
79281         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
79282         (_gl_register_fd): No need to check stat if open already filters
79283         all directories.
79284         (fchdir): Fix error condition to match POSIX.
79285         * modules/fchdir (Depends-on): Add sys_stat.
79286         * doc/posix-functions/open.texi (open): Document the limitation.
79287         * modules/fchdir-tests: New file.
79288         * tests/test-fchdir.c: Likewise.
79290         canonicalize: allow cross-testing from cygwin to mingw
79291         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
79292         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
79293         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
79294         Likewise.
79295         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
79296         target does not support symlinks.
79297         * tests/test-canonicalize-lgpl.sh: Likewise.
79299         chown: avoid compilation warning on mingw
79300         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
79301         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
79302         mingw.
79303         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79304         * modules/chown (Depends-on): Add errno.
79306 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
79308         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
79309         command.
79311 2009-08-31  Jim Meyering  <meyering@redhat.com>
79313         canonicalize: remove useless initialization
79314         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
79315         initialization of local, "end".
79317 2009-08-30  Bruno Haible  <bruno@clisp.org>
79319         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
79320         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
79321         ENOSYS.
79323 2009-08-30  Bruno Haible  <bruno@clisp.org>
79325         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
79326         /usr/xpg4/bin/tr when it exists.
79327         * tests/test-pipe-filter-gi1.sh: Likewise.
79329 2009-08-30  Bruno Haible  <bruno@clisp.org>
79331         Work around deficient /usr/bin/id program on Solaris.
79332         * tests/test-file-has-acl.sh (ID): New variable.
79333         * tests/test-set-mode-acl.sh (ID): Likewise.
79334         * tests/test-copy-acl.sh (ID): Likewise.
79335         * tests/test-copy-file.sh (ID): Likewise.
79337 2009-08-30  Bruno Haible  <bruno@clisp.org>
79339         New module 'xstriconveh'.
79340         * lib/xstriconveh.h: New file.
79341         * lib/xstriconveh.c: New file.
79342         * modules/xstriconveh: New file.
79344 2009-08-30  Bruno Haible  <bruno@clisp.org>
79346         Make it easier to use mem_cd_iconveh.
79347         * lib/striconveh.h (iconveh_t): New type.
79348         (iconveh_open, iconveh_close): New declarations.
79349         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
79350         with a single 'const iconveh_t *' argument.
79351         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
79352         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
79353         with a single 'const iconveh_t *' argument.
79354         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
79355         * tests/test-striconveh.c (main): Update.
79356         * NEWS: Mention the change.
79358 2009-08-30  Bruno Haible  <bruno@clisp.org>
79360         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
79361         problem.
79363 2009-08-30  Bruno Haible  <bruno@clisp.org>
79365         Work around iconv_open problem on Solaris.
79366         * lib/iconv_open-solaris.gperf: New file.
79367         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
79368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
79369         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
79370         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
79371         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
79372         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
79374 2009-08-29  Jim Meyering  <meyering@redhat.com>
79376         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
79377         * top/maint.mk (cvs-check): Remove target; it was just an alias
79378         to the better-named vc-diff-check.
79379         (maintainer-distcheck): Remove rule.  It was used only from
79380         the (alpha/beta/major) target, and all of its commands but one
79381         were coreutils-specific.
79382         (vc-dist): Remove rule.
79383         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
79384         Run vc-diff-check, not vc-dist.
79385         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
79387 2009-08-27  Bruno Haible  <bruno@clisp.org>
79389         * tests/test-bitrotate.c (main): Remove test that uses a shift count
79390         of 0.
79392 2009-08-27  Bruno Haible  <bruno@clisp.org>
79394         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
79395         compilers.
79396         * doc/func.texi: Document the SunPRO C bug.
79398 2009-08-27  Bruno Haible  <bruno@clisp.org>
79400         Fix link error on Solaris.
79401         * tests/test-parse-duration.c (xstrdup): Remove function.
79403 2009-08-26  Pádraig Brady  <P@draigbrady.com>
79405         ignore-value: handle pointer types, too
79406         * lib/ignore-value.h (__attribute__): Remove definition.
79407         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
79408         of a more concise and more-often effective "(void) i" statement.
79409         (ignore_ptr): New function to suppress warnings from functions that
79410         return pointers, and to make it explicit that one function doesn't
79411         handle all cases.
79413 2009-08-25  Bruno Haible  <bruno@clisp.org>
79415         dup2: work around a Linux bug.
79416         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
79417         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
79418         * doc/posix-functions/dup2.texi: Mention the Linux bug.
79419         Reported by Simon Josefsson.
79421 2009-08-25  Jim Meyering  <meyering@redhat.com>
79423         libguestfs uses gnulib
79424         * users.txt: Add libguestfs.
79426 2009-08-24  Eric Blake  <ebb9@byu.net>
79428         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
79429         * lib/pipe2.c (includes): Add binary-io.h.
79430         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
79432 2009-08-24  Bruno Haible  <bruno@clisp.org>
79434         Tolerate declared but missing accept4 syscall.
79435         * lib/accept4.c (accept4): Invoke original accept4 function first, if
79436         available.
79437         * lib/sys_socket.in.h (accept4): If the function is already present,
79438         override it.
79439         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
79440         * modules/accept4 (Makefile.am): Compile accept4.c always.
79441         Reported by Paolo Bonzini and Eric Blake.
79443 2009-08-23  Bruno Haible  <bruno@clisp.org>
79445         New module 'accept4'.
79446         * lib/sys_socket.in.h (accept4): New declaration.
79447         * lib/accept4.c: New file.
79448         * m4/accept4.m4: New file.
79449         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
79450         GNULIB_ACCEPT4, HAVE_ACCEPT4.
79451         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
79452         HAVE_ACCEPT4.
79453         * modules/accept4: New file.
79454         * doc/glibc-functions/accept4.texi: Mention the new module.
79456 2009-08-24  Jim Meyering  <meyering@redhat.com>
79458         progname: also set global program_invocation_name, when possible
79459         Before this change, a libtool-enabled program that calls glibc's
79460         error function would report the program name as
79461         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
79462         * modules/progname (configure.ac): Check for a declaration of
79463         program_invocation_name.
79464         * lib/progname.c:  Include <errno.h>.
79465         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
79466         Set program_invocation_name.
79468 2009-08-23  Bruno Haible  <bruno@clisp.org>
79470         * lib/dup3.c: Include <string.h>.
79472 2009-08-23  Bruno Haible  <bruno@clisp.org>
79474         * lib/dup3.c (dup3): Test only once whether the system actually exists.
79475         * lib/pipe2.c (pipe2): Likewise.
79476         Suggested by Eric Blake.
79478 2009-08-23  Bruno Haible  <bruno@clisp.org>
79480         Tolerate declared but missing dup3 syscall.
79481         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
79482         * lib/unistd.in.h (dup3): If the function is already present,
79483         override it.
79484         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
79485         * modules/dup3 (Makefile.am): Compile dup3.c always.
79486         Reported by Paolo Bonzini.
79488 2009-08-23  Bruno Haible  <bruno@clisp.org>
79490         Tolerate declared but missing pipe2 syscall.
79491         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
79492         available.
79493         * lib/unistd.in.h (pipe2): If the function is already present,
79494         override it.
79495         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
79496         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
79497         Reported by Paolo Bonzini.
79499 2009-08-23  Bruno Haible  <bruno@clisp.org>
79501         * lib/pipe2.c (pipe2): Move #ifs inside function.
79503 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
79505         quotearg: document limitations of quote_these_too
79506         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
79507         those limitations are created.
79508         * lib/quotearg.h (set_char_quoting): Document that digits and
79509         letters that are special after backslash are not permitted.
79510         (quotearg_char): Cross-reference set_char_quoting documentation.
79512 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
79514         quotearg: implement custom_quoting_style
79515         * lib/quotearg.c: (struct quoting_options): Add left_quote and
79516         right_quote fields.
79517         (set_custom_quoting): New public function.
79518         (quotearg_buffer_restyled): Add left_quote and right_quote
79519         arguments, handle them very much like locale quoting, and update
79520         all uses.
79521         (quotearg_n_custom): New public function.
79522         (quotearg_n_custom_mem): New public function.
79523         (quotearg_custom): New public function.
79524         (quotearg_custom_mem): New public function.
79525         * lib/quotearg.h: Prototype and document new public functions.
79526         (enum quoting_style): For escape_quoting_style and
79527         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
79528         ignored even though they're otherwise like c_quoting_style.
79529         Add custom_quoting_style member and document with comparison to
79530         clocale_quoting_style.
79531         * tests/test-quotearg.c (custom_quotes): New array.
79532         (custom_results): New array.
79533         (main): Extend to test custom quoting.
79535 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
79537         quotearg: fix right quote escaping when it's in quote_these_too
79538         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
79539         quote, be sure to prepend only one backslash.
79540         * tests/test-quotearg.c (use_quote_double_quotes): New function.
79541         (main): Test it.
79543 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
79545         quotearg-tests: test escaping of embedded locale quotes
79546         * tests/test-quotearg.c (struct result_strings): Add member for
79547         new input.
79548         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
79549         (inputs): Add new input.
79550         (results_g): Add expected results.
79551         (flag_results): Likewise.
79552         (locale_results): Likewise.
79553         (compare_strings): Check those.
79555 2009-08-23  Bruno Haible  <bruno@clisp.org>
79557         Tests for module 'dup3'.
79558         * modules/dup3-tests: New file.
79559         * tests/test-dup3.c: New file.
79561         New module 'dup3'.
79562         * lib/unistd.in.h (dup3): New declaration.
79563         * lib/dup3.c: New file.
79564         * m4/dup3.m4: New file.
79565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
79566         HAVE_DUP3.
79567         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
79568         * modules/dup3: New file.
79569         * doc/glibc-functions/dup3.texi: Mention the new module.
79571 2009-08-23  Bruno Haible  <bruno@clisp.org>
79573         Tweak the dup2 test.
79574         * tests/test-dup2.c (main): Create the test file empty. Verify that an
79575         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
79576         the test file is still empty. Fix argument order of lseek.
79578 2009-08-23  Bruno Haible  <bruno@clisp.org>
79580         Avoid test link errors when the modules getopt-gnu, gettext are used.
79581         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
79582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79584 2009-08-23  Bruno Haible  <bruno@clisp.org>
79586         Fix getdtablesize() on mingw.
79587         * lib/getdtablesize.c (getdtablesize): Implement differently.
79588         * lib/unistd.in.h (getdtablesize): Improve comment.
79590 2009-08-23  Bruno Haible  <bruno@clisp.org>
79592         New module 'mkostemp'.
79593         Based on Ulrich Drepper's 2007-08-10 change in glibc.
79594         * lib/stdlib.in.h (mksotemp): New declaration.
79595         * lib/mkostemp.c: New file, from glibc with modifications.
79596         * lib/tempname.h (GT_FILE): Remove outdated comment.
79597         (gen_tempname): Add flags argument.
79598         * lib/tempname.c (__GT_BIGFILE): Remove macro.
79599         (__GT_FILE): Map to 1.
79600         (small_open, large_open): Remove macros.
79601         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
79602         * lib/mkstemp.c (mkstemp): Update.
79603         * lib/mkdtemp.c (mkdtemp): Likewise.
79604         * m4/mkostemp.m4: New file.
79605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
79606         HAVE_MKOSTEMP.
79607         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
79608         HAVE_MKOSTEMP.
79609         * modules/mkostemp: New file, based on modules/mkstemp.
79610         * doc/glibc-functions/mkostemp.texi: Mention the new module.
79611         * NEWS: Mention the change.
79613 2009-08-23  Bruno Haible  <bruno@clisp.org>
79615         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
79616         Reported by Eric Blake.
79618 2009-08-23  Bruno Haible  <bruno@clisp.org>
79620         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
79621         Reported by Eric Blake.
79623 2009-08-23  Bruno Haible  <bruno@clisp.org>
79625         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
79626         * modules/pipe2 (Depends-on): Likewise.
79628 2009-08-23  Eric Blake  <ebb9@byu.net>
79630         fcntl-h: add O_TTY_INIT support
79631         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
79632         * tests/test-fcntl-h.c (o): Test it.
79633         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
79635         fcntl-h: rename from fcntl, in preparation for fcntl(2)
79636         * modules/fcntl: Move <fcntl.h> header replacement...
79637         * modules/fcntl-h: ...to new name, so as not to collide with
79638         like-named function.
79639         * tests/test-fcntl.c: Rename...
79640         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
79641         * modules/fcntl-tests: Rename...
79642         * modules/fcntl-h-tests: ...to this.  Update test file name.
79643         * modules/chdir-long (Depends-on): Update clients.
79644         * modules/chdir-safer (Depends-on): Likewise.
79645         * modules/fcntl-safer (Depends-on): Likewise.
79646         * modules/fts (Depends-on): Likewise.
79647         * modules/mkancesdirs (Depends-on): Likewise.
79648         * modules/mkdir-p (Depends-on): Likewise.
79649         * modules/open (Depends-on): Likewise.
79650         * modules/savewd (Depends-on): Likewise.
79651         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
79652         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
79654 2009-08-22  Bruno Haible  <bruno@clisp.org>
79656         * modules/binary-io (License): Relicense under LGPL.
79657         * modules/pipe2 (License): Likewise.
79659 2009-08-22  Bruno Haible  <bruno@clisp.org>
79661         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
79662         return value.
79663         * lib/pipe-filter-gi.c (filter_init): Likewise.
79664         Reported by Eric Blake.
79666 2009-08-22  Bruno Haible  <bruno@clisp.org>
79668         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
79669         * modules/pipe (Depends-on): Add pipe2.
79671 2009-08-22  Bruno Haible  <bruno@clisp.org>
79673         Tests for module 'pipe2'.
79674         * modules/pipe2-tests: New file.
79675         * tests/test-pipe2.c: New file.
79677         New module 'pipe2'.
79678         * lib/unistd.in.h (pipe2): New declaration.
79679         * lib/pipe2.c: New file.
79680         * m4/pipe2.m4: New file.
79681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
79682         HAVE_PIPE2.
79683         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
79684         * modules/pipe2: New file.
79685         * doc/glibc-functions/pipe2.texi: Mention the new module.
79687 2009-08-22  Bruno Haible  <bruno@clisp.org>
79689         Reference some new glibc functions.
79690         * doc/glibc-functions/accept4.texi: New file.
79691         * doc/glibc-functions/dup3.texi: New file.
79692         * doc/glibc-functions/mkostemp.texi: New file.
79693         * doc/glibc-functions/pipe2.texi: New file.
79694         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
79695         (Glibc sys/socket.h): Refer to accept4.
79696         (Glibc unistd.h): Refer to dup3, pipe2.
79697         Reported by Eric Blake.
79699 2009-08-22  Jim Meyering  <meyering@redhat.com>
79700             Bruno Haible  <bruno@clisp.org>
79702         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
79703         This makes it so packages using automake-1.11's silent-rules option
79704         can print e.g., a single "GEN    configmake.h" line, rather than
79705         the 30+ statements that perform the job.  If you want to see the
79706         actual commands, you can still run "make V=1".
79707         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
79708         so that make output is abbreviated when those variables are defined
79709         appropriately.
79710         * modules/argz: Likewise.
79711         * modules/arpa_inet: Likewise.
79712         * modules/byteswap: Likewise.
79713         * modules/configmake: Likewise.
79714         * modules/dirent: Likewise.
79715         * modules/errno: Likewise.
79716         * modules/fcntl: Likewise.
79717         * modules/float: Likewise.
79718         * modules/fnmatch: Likewise.
79719         * modules/getopt-posix: Likewise.
79720         * modules/glob: Likewise.
79721         * modules/iconv_open: Likewise.
79722         * modules/inttypes: Likewise.
79723         * modules/localcharset: Likewise.
79724         * modules/locale: Likewise.
79725         * modules/math: Likewise.
79726         * modules/netdb: Likewise.
79727         * modules/netinet_in: Likewise.
79728         * modules/poll: Likewise.
79729         * modules/posix_spawnp-tests: Likewise.
79730         * modules/sched: Likewise.
79731         * modules/search: Likewise.
79732         * modules/selinux-h: Likewise.
79733         * modules/signal: Likewise.
79734         * modules/spawn: Likewise.
79735         * modules/stdarg: Likewise.
79736         * modules/stdbool: Likewise.
79737         * modules/stddef: Likewise.
79738         * modules/stdint: Likewise.
79739         * modules/stdio: Likewise.
79740         * modules/stdlib: Likewise.
79741         * modules/string: Likewise.
79742         * modules/strings: Likewise.
79743         * modules/sys_file: Likewise.
79744         * modules/sys_ioctl: Likewise.
79745         * modules/sys_select: Likewise.
79746         * modules/sys_socket: Likewise.
79747         * modules/sys_stat: Likewise.
79748         * modules/sys_time: Likewise.
79749         * modules/sys_times: Likewise.
79750         * modules/sys_utsname: Likewise.
79751         * modules/sys_wait: Likewise.
79752         * modules/sysexits: Likewise.
79753         * modules/time: Likewise.
79754         * modules/unistd: Likewise.
79755         * modules/wchar: Likewise.
79756         * modules/wctype: Likewise.
79758 2009-08-22  Jim Meyering  <meyering@redhat.com>
79760         announce-gen: detect write failure
79761         * build-aux/announce-gen: Add Coda at end.
79762         Remove equivalent-but-more-verbose block at top.
79764 2009-08-19  Akim Demaille  <demaille@gostai.com>
79766         bootstrap: --help to stdout.
79767         * bootstrap (usage): Don't send --help to stderr.
79768         Use a here doc instead of a long string.
79770 2009-08-21  Eric Blake  <ebb9@byu.net>
79772         test-popen-safer: split from test-popen
79773         * tests/test-popen.c (main): Move...
79774         * tests/test-popen.h: ...into new file.
79775         * tests/test-popen-safer2.c: New file.
79776         * modules/popen-tests (Files): Add test-popen.h.
79777         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
79778         Suggested by Bruno Haible.
79780         test-fcntl-safer: split from test-open
79781         * tests/test-open.c (main): Move...
79782         * tests/test-open.h: ...into new file.
79783         * tests/test-fcntl-safer.c: New file.
79784         * modules/open-tests (Files): Add test-open.h.
79785         * modules/fcntl-safer-tests: New file.
79786         Suggested by Bruno Haible.
79788         test-fopen-safer: split from test-fopen
79789         * tests/test-fopen.c (main): Move...
79790         * tests/test-fopen.h: ...into new file.
79791         * tests/test-fopen-safer.c: New file.
79792         * modules/fopen-tests (Files): Add test-fopen.h.
79793         * modules/fopen-safer-tests: New file.
79794         Suggested by Bruno Haible.
79796 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
79798         popen-safer: test O_CLOEXEC at run-time.
79799         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
79801 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
79803         fcntl: move more flags to the header
79804         * lib/cloexec.c: Do not define FD_CLOEXEC here.
79805         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
79806         * lib/fcntl.in.h: Do both things here.
79808 2009-08-21  Jim Meyering  <meyering@redhat.com>
79810         consistently remove $@-t before redirecting to it
79811         * modules/argz: Remove $@-t and $@ before redirecting to the former.
79812         * modules/alloca-opt: Likewise.
79813         * modules/byteswap: Likewise.
79814         * modules/fnmatch: Likewise.
79815         * modules/getopt-posix: Likewise.
79816         * modules/glob: Likewise.
79817         * modules/poll: Likewise.
79818         * modules/posix_spawnp-tests: Likewise.
79819         * modules/sys_socket: Likewise.
79820         * modules/sysexits: Likewise.
79822 2009-08-21  Eric Blake  <ebb9@byu.net>
79824         popen: simplify access to original popen
79825         * lib/popen.c (rpl_popen): No need to worry about popen being a
79826         macro.
79827         Reported by Bruno Haible.
79829 2009-08-20  Eric Blake  <ebb9@byu.net>
79831         build: avoid some compiler warnings
79832         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
79833         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
79834         type.
79835         (new_exclude_segment, excluded_file_pattern_p)
79836         (excluded_file_name_p): Reduce scope.
79837         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
79838         old-style declaration.
79840 2009-08-20  Simon Josefsson  <simon@josefsson.org>
79842         * tests/test-exclude1.sh: Handle Windows EOL.
79843         * tests/test-exclude2.sh: Likewise.
79844         * tests/test-exclude3.sh: Likewise.
79845         * tests/test-exclude4.sh: Likewise.
79846         * tests/test-exclude5.sh: Likewise.
79847         * tests/test-exclude6.sh: Likewise.
79848         * tests/test-exclude7.sh: Likewise.
79850 2009-08-19  Akim Demaille  <demaille@gostai.com>
79852         bootstrap: find sha1sum when named gsha1sum.
79853         * bootstrap (find_tool): New.
79854         ($SHA1SUM): New.
79855         Use it.
79857 2009-08-20  Jim Meyering  <meyering@redhat.com>
79859         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
79860         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
79861         expression that converts "." in a file name to "\." in the resulting
79862         regexp.  Start with a dummy statement, so that prior shell variable
79863         definitions are expanded portably.  Reported by Simon Josefsson.
79865 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
79867         Fix polling for writeability of a screen buffer.
79868         * lib/poll.c: Distinguish input and screen buffers for the
79869         Win32 implementation.
79870         * lib/select.c: Likewise.
79872 2009-08-19  Eric Blake  <ebb9@byu.net>
79874         popen-safer: prevent popen from clobbering std descriptors
79875         * modules/popen-safer: New file.
79876         * lib/popen-safer.c: Likewise.
79877         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
79878         * lib/stdio--.h (popen): Provide override.
79879         * lib/stdio-safer.h (popen_safer): Provide declaration.
79880         * tests/test-popen.c (includes): Partially test this.
79881         * modules/popen-safer-tests: New file, for more tests.
79882         * tests/test-popen-safer.c: Likewise.
79883         * MODULES.html.sh (file stream based Input/Output): Mention it.
79885         tests: test some of the *-safer modules
79886         * modules/fopen-safer (Depends-on): Add fopen.
79887         * modules/fcntl-safer (Depends-on): Add fcntl.
79888         * modules/stdlib-safer (Depends-on): Add stdlib.
79889         (configure.ac): Set indicator.
79890         * modules/unistd-safer (configure.ac): Likewise.
79891         * modules/tmpfile-safer (configure.ac): Likewise.
79892         (Depends-on): Add tmpfile.
79893         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
79894         active.
79895         * tests/test-fopen.c (includes): Test safer versions when they are
79896         in use.
79897         * tests/test-open.c (includes): Likewise.
79899         popen: fix cygwin 1.5 bug when stdin closed
79900         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
79901         * modules/popen: New file.
79902         * modules/popen-tests: Likewise.
79903         * tests/test-popen.c: Likewise.
79904         * m4/popen.m4: Likewise.
79905         * lib/popen.c: Likewise.
79906         * lib/stdio.in.h (popen): New declaration.
79907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
79908         * modules/stdio (Makefile.am): Likewise.
79909         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
79911 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
79913         maint.mk: give full control over update-copyright exclusions
79914         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
79915         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
79916         (update-copyright): Don't force inclusion of top-level
79917         ChangeLog.  Don't force exclusion of all COPYING files, but make
79918         them the default exclusion instead.
79920 2009-08-16  Bruno Haible  <bruno@clisp.org>
79922         Fix test failures on Solaris 10.
79923         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
79924         tests when Solaris iconv() is used.
79925         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
79926         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
79927         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
79928         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
79929         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
79931 2009-08-16  Bruno Haible  <bruno@clisp.org>
79933         Fix test failures on Solaris 10.
79934         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
79935         'tr' program and pass it as first argument.
79936         * tests/test-pipe-filter-gi1.sh: Likewise.
79937         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
79938         program as first argument.
79939         * tests/test-pipe-filter-gi1.c (main): Likewise.
79941 2009-08-16  Eric Blake  <ebb9@byu.net>
79943         fpurge: fix previous commits
79944         * modules/fpurge (Makefile.am): Make replacement conditional,
79945         partially reverting 2007-04-29 change; missed in previous
79946         attempt.
79947         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
79948         is missing.
79950 2009-08-16  Bruno Haible  <bruno@clisp.org>
79952         Clarify fpurge's effect on the file position.
79953         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
79954         * tests/test-fpurge.c (main): Make a second pass for checking the file
79955         position.
79957 2009-08-16  Bruno Haible  <bruno@clisp.org>
79959         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
79960         declaration of fpurge is missing.
79961         * tests/test-fpurge.c (main): Check that the file has not more contents
79962         than expected. Close the file before removing it.
79964 2009-08-15  Eric Blake  <ebb9@byu.net>
79966         fpurge: don't wrap working cygwin implementation
79967         * lib/fpurge.c (fpurge): Fix comment typo.
79968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
79969         1.7 to avoid replacement.
79970         * tests/test-fpurge.c (main): Enhance test.
79972 2009-08-15  Eric Blake  <ebb9@byu.net>
79973         and Jim Meyering  <meyering@redhat.com>
79975         test-update-copyright: skip if perl is insufficient
79976         * tests/test-update-copyright.sh: Failure to run maintainer tool
79977         should not cause testsuite failure on cygwin 1.5.
79979 2009-08-14  Eric Blake  <ebb9@byu.net>
79981         doc: mention more functions added in cygwin 1.7.0
79982         * doc/posix-headers/limits.texi (limits.h): Update for recent
79983         cygwin additions.
79984         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
79985         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
79986         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
79987         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
79988         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
79990 2009-08-14  Eric Blake  <ebb9@byu.net>
79992         maint.mk: simplify update-copyright rule
79993         * top/maint.mk (update-copyright-local): Delete, and document how
79994         to do it in cfg.mk instead.
79995         (update-copyright-exclude-regexp): Delete, and document how to do
79996         it in .x-update-copyright instead.
79997         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
79998         exclude ChangeLog.
80000 2009-08-14  Bruno Haible  <bruno@clisp.org>
80002         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
80004 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80006         maint.mk: support update-copyright-env
80007         * top/maint.mk (update-copyright-env): Define place-holder.
80008         (update-copyright): Expand $(update-copyright-env) before
80009         invoking update-copyright.
80011 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80013         update-copyright: implement forced reformatting
80014         * build-aux/update-copyright: Implement and document
80015         UPDATE_COPYRIGHT_FORCE.
80016         * tests/test-update-copyright.sh: Test it.
80018 2009-08-14  Eric Blake  <ebb9@byu.net>
80019         and Bruno Haible  <bruno@clisp.org>
80021         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
80022         * tests/test-locale.c: Revert previous patch related to NULL.
80023         * tests/test-stdio.c: Likewise.
80024         * tests/test-stdlib.c: Likewise.
80025         * tests/test-string.c: Likewise.
80026         * tests/test-unistd.c: Likewise.
80027         * modules/time-tests (Depends-on): Add verify.
80028         * modules/wchar-tests (Depends-on): Likewise.
80029         * tests/test-time.c: Test for NULL compliance.
80030         * tests/test-wchar.c: Likewise.
80031         * modules/locale (Depends-on): Add stddef.
80032         * modules/stdio (Depends-on): Likewise.
80033         * modules/stdlib (Depends-on): Likewise.
80034         * modules/string (Depends-on): Likewise.
80035         * modules/time (Depends-on): Likewise.
80036         * modules/unistd (Depends-on): Likewise.
80037         * modules/wchar (Depends-on): Likewise.
80038         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
80039         * lib/stdlib.in.h (includes): Likewise.
80040         * lib/string.in.h (includes): Likewise.
80041         * lib/time.in.h (includes): Likewise.
80042         * lib/unistd.in.h (includes): Likewise.
80043         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
80044         replaced.
80045         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80046         * m4/stddef_h.m4: New file.
80047         * modules/stddef: Likewise.
80048         * lib/stddef.in.h: Likewise.
80049         * modules/stddef-tests: Likewise.
80050         * tests/test-stddef.c: Likewise.
80051         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
80052         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
80053         * doc/posix-headers/locale.texi (locale.h): Likewise.
80054         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
80055         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
80056         * doc/posix-headers/string.texi (string.h): Likewise.
80057         * doc/posix-headers/time.texi (time.h): Likewise.
80058         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
80059         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
80061 2009-08-14  Eric Blake  <ebb9@byu.net>
80063         doc: improve git diff of texinfo files
80064         * .gitattributes: Add rule for *.texi files, with hint on how to
80065         use it.
80066         Copied from m4, and based on a report by Bruno Haible.
80068 2009-08-14  Bruno Haible  <bruno@clisp.org>
80070         Disable multithread support by default on Cygwin 1.5.x for real.
80071         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
80073 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80075         update-copyright: much ado about intervals
80076         * build-aux/update-copyright: Implement and document
80077         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
80078         of copyright year intervals.
80079         Also, document UPDATE_COPYRIGHT_YEAR.
80080         * tests/test-update-copyright.sh: Test it.
80082         update-copyright: convert 2-digit to 4-digit years
80083         * build-aux/update-copyright: Implement and document.
80084         * tests/test-update-copyright.sh: Update.
80086 2009-08-14  Jim Meyering  <meyering@redhat.com>
80088         test-exclude: avoid coreutils "make check" failure
80089         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
80090         just as in test-argmatch.c.
80092 2009-08-13  Eric Blake  <ebb9@byu.net>
80094         test-dup2: fix bad assumption
80095         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
80096         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
80098         test-version-etc: fix CRLF portability issue
80099         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
80100         recognize \r.
80101         * tests/test-argp-version-etc-1.sh: Likewise.
80103         getopt: update client modules
80104         * modules/argp (Depends-on): Use getopt-gnu.
80105         * modules/git-merge-changelog (Depends-on): Likewise.
80106         * modules/long-options (Depends-on): Likewise.
80107         * modules/xstrtol (Depends-on): Likewise.
80109 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80111         * tests/test-version-etc.sh: Don't fail on different
80112         project/version.  Don't fail on CRLF differences.  Rewrite to use
80113         multiple -e instead of multiple sed forks, suggested by Eric Blake
80114         <ebb9@byu.net>.
80115         * tests/test-argp-version-etc-1.sh: Likewise.
80117 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80119         * tests/test-version-etc.sh: Don't fail on different
80120         project/version.
80122 2009-08-12  Bruno Haible  <bruno@clisp.org>
80124         Tests for modules 'getopt-posix', 'getopt-gnu'.
80125         * modules/getopt-posix-tests: New file.
80126         * tests/test-getopt.c: New file.
80127         * tests/test-getopt.h: New file.
80128         * tests/test-getopt_long.h: New file.
80130         New modules 'getopt-posix', 'getopt-gnu'.
80131         * modules/getopt-gnu: New file, renamed from modules/getopt.
80132         * modules/getopt-posix: New file.
80133         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
80134         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
80135         (gl_GETOPT): Remove macro.
80136         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
80137         Disable the test against BSD systems that declare optreset. Test
80138         against mingw bug. Test against lack of support of optional arguments
80139         on many platforms.
80140         * doc/glibc-headers/getopt.texi: Update module name and list of
80141         relevant platforms.
80142         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
80143         'getopt-gnu' and more portability problems.
80144         * NEWS: Mention the changes.
80146 2009-08-12  Bruno Haible  <bruno@clisp.org>
80148         Ensure that optarg etc. get declared by <unistd.h>.
80149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
80150         AC_USE_SYSTEM_EXTENSIONS.
80151         * modules/getopt (Depends-on): Add 'extensions'.
80153 2009-08-12  Bruno Haible  <bruno@clisp.org>
80155         Avoid test link errors.
80156         * modules/pipe-filter-ii-tests (Makefile.am): Define
80157         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
80158         * modules/pipe-filter-gi-tests (Makefile.am): Define
80159         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
80160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80162 2009-08-12  Bruno Haible  <bruno@clisp.org>
80164         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
80165         gl_GETOPT_SUBSTITUTE before.
80166         (gl_GETOPT): Use it.
80167         * m4/argp.m4 (gl_ARGP): Update.
80168         Reported by Sergey Poznyakoff.
80170         * m4/getopt.m4: Reorder macros.
80171         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
80172         (gl_GETOPT_SUBSTITUTE): Remove macro.
80174 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80176         Minor improvement in gitlog-to-changelog
80178         * build-aux/gitlog-to-changelog: New option `--format' makes
80179         output format string configurable.
80181 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80183         Optimize exclude: use hash tables for non-wildcard patterns.
80185         * lib/exclude.c: Include hash.h and mbuiter.h
80186         (struct exclude_pattern, exclude_segment): New data types.
80187         (struct exclude): Rewrite.
80188         (fnmatch_pattern_has_wildcards): New function.
80189         (new_exclude_segment, free_exclude_segment): New functions.
80190         (excluded_file_pattern_p, excluded_file_name_p): New functions.
80191         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
80192         * lib/exclude.h (is_fnmatch_pattern): New prototype.
80193         * modules/exclude: Depend on hash and mbuiter.
80195         * modules/exclude-tests: New file.
80196         * tests/test-exclude.c: New file.
80197         * tests/test-exclude1.sh: New file.
80198         * tests/test-exclude2.sh: New file.
80199         * tests/test-exclude3.sh: New file.
80200         * tests/test-exclude4.sh: New file.
80201         * tests/test-exclude5.sh: New file.
80202         * tests/test-exclude6.sh: New file.
80203         * tests/test-exclude7.sh: New file.
80205 2009-08-12  Bruno Haible  <bruno@clisp.org>
80207         Ensure that getopt() gets declared by <unistd.h>.
80208         * lib/unistd.in.h: Conditionally include getopt.h.
80209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
80210         Set GNULIB_UNISTD_H_GETOPT.
80211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80212         GNULIB_UNISTD_H_GETOPT.
80213         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
80215 2009-08-12  Bruno Haible  <bruno@clisp.org>
80217         Clarify logic.
80218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
80219         gl_replace_getopt instead of GETOPT_H.
80221 2009-08-12  Bruno Haible  <bruno@clisp.org>
80223         * m4/getopt.m4: Add comments.
80225 2009-08-12  Bruno Haible  <bruno@clisp.org>
80227         Disable multithread support by default on Cygwin 1.5.x.
80228         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
80229         set gl_use_threads=no if not specified otherwise.
80231 2009-08-11  Bruno Haible  <bruno@clisp.org>
80233         Avoid compilation error on NetBSD 5.0.
80234         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
80235         * tests/test-stdio.c: Likewise.
80236         * tests/test-stdlib.c: Likewise.
80237         * tests/test-string.c: Likewise.
80238         * tests/test-unistd.c: Likewise.
80239         Reported by Greg Troxel <gdt@ir.bbn.com>
80240         at <https://savannah.gnu.org/support/?106973>.
80242 2009-08-11  Bruno Haible  <bruno@clisp.org>
80244         * modules/dup2-tests (Depends-on): Remove close.
80246         Undo 2009-07-19 commit.
80247         * modules/acl-tests (Depends-on): Remove close.
80248         * modules/binary-io-tests (Depends-on): Likewise.
80249         * modules/closein-tests (Depends-on): Likewise.
80250         * modules/flock-tests (Depends-on): Likewise.
80251         * modules/fsync-tests (Depends-on): Likewise.
80252         * modules/lseek-tests (Depends-on): Likewise.
80253         * modules/pipe-tests (Depends-on): Likewise.
80254         * modules/posix_spawn-tests (Depends-on): Likewise.
80255         * modules/posix_spawnp-tests (Depends-on): Likewise.
80256         * modules/stat-time-tests (Depends-on): Likewise.
80257         * modules/yesno-tests (Depends-on): Likewise.
80259 2009-08-10  Bruno Haible  <bruno@clisp.org>
80261         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
80263 2009-08-10  Bruno Haible  <bruno@clisp.org>
80265         Fix a gcc warning.
80266         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
80268 2009-08-10  Bruno Haible  <bruno@clisp.org>
80270         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
80271         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
80272         not only the first time.
80273         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
80274         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
80275         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
80276         is 1, not only the first time.
80278 2009-08-10  Bruno Haible  <bruno@clisp.org>
80280         Make it possible to use module 'gethostname' without module 'close'.
80281         * lib/unistd.in.h (close): Evoke a link error only if
80282         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
80283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80284         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80285         * modules/unistd (Makefile.am): Substitute
80286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80287         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
80288         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
80289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
80290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80291         * modules/sys_ioctl (Makefile.am): Substitute
80292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80293         * modules/socket (configure.ac): On native Windows, set
80294         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
80295         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80296         Reported by Sam Steingold <sds@gnu.org>.
80298 2009-08-10  Bruno Haible  <bruno@clisp.org>
80300         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
80301         * modules/ioctl (configure.ac): Likewise.
80303 2009-08-10  Bruno Haible  <bruno@clisp.org>
80305         Avoid collision between gnulib wrapper and libintl wrapper.
80306         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
80307         already defined in intl/printf.c.
80308         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
80309         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
80311 2009-08-09  Bruno Haible  <bruno@clisp.org>
80313         Make <sys/select.h> really self-contained, also on Solaris 10.
80314         * lib/sys_select.in.h: Include <string.h>.
80315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
80316         Solaris 10 problem.
80317         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
80318         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
80319         Reported by Jim Meyering.
80321 2009-08-09  Bruno Haible  <bruno@clisp.org>
80323         Avoid warnings from 'aclocal' that are due to a use of macro name
80324         AM_XGETTEXT_OPTION that is not defined in automake.
80325         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
80326         automake.
80327         * modules/error (configure.ac): Likewise.
80328         * modules/propername (configure.ac): Likewise.
80329         * modules/vasprintf (configure.ac): Likewise.
80330         * modules/verror (configure.ac): Likewise.
80331         * modules/xprintf (configure.ac): Likewise.
80332         * modules/xvasprintf (configure.ac): Likewise.
80334 2009-08-08  Bruno Haible  <bruno@clisp.org>
80336         Avoid compilation error in C++ mode.
80337         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
80338         Reported by Sam Steingold <sds@gnu.org>.
80340 2009-08-08  Bruno Haible  <bruno@clisp.org>
80342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
80343         for the various Unix platforms.
80344         * doc/posix-headers/limits.texi: Update platforms list regarding
80345         HOST_NAME_MAX.
80346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80348 2009-08-07  Jim Meyering  <meyering@redhat.com>
80350         selinux-at: fix typo in a comment
80351         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
80352         Spotted by Paolo Bonzini.
80354         selinux-at: remove redundant m4 code, add documentation
80355         * modules/selinux-at (configure.ac): Remove redundant code.
80356         LIB_SELINUX is already set via the dependent module, selinux-h.
80357         (Include): Add quotes around selinux-at.h.
80358         * lib/selinux-at.h: Add documentation.
80359         Reported by Bruno Haible in
80360         http://marc.info/?l=gnulib-bug&m=124958988300749
80362 2009-08-07  Bruno Haible  <bruno@clisp.org>
80364         Avoid link error on MacOS X 10.3 and 10.4.
80365         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
80366         on non-ELF systems.
80367         * lib/argp-pv.c (argp_program_version): Likewise.
80368         Reported by Simon Josefsson.
80370 2009-08-07  Simon Josefsson  <simon@josefsson.org>
80372         * tests/test-version-etc.sh: Use $EXEEXT.
80374 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
80376         update-copyright: update documentation to point to maint.mk
80377         * build-aux/update-copyright: Here.
80379 2009-08-06  Jim Meyering  <meyering@redhat.com>
80381         maint.mk: support update-copyright-local
80382         * top/maint.mk (update-copyright-local): Define place-holder.
80383         (update-copyright): Depend on $(update-copyright-local).
80385 2009-08-06  Jim Meyering  <meyering@redhat.com>
80387         selinux-at: new module
80388         Initially written for coreutils, this module will soon be
80389         used by findutils, too.
80390         * MODULES.html.sh [Misc]: Add selinux-at.
80391         * lib/selinux-at.h: New file, from coreutils.
80392         * lib/selinux-at.c: Likewise.
80393         * modules/selinux-at: Likewise.
80394         (License): Change from LGPL to GPL, since it depends
80395         on the GPL'd openat module.
80397         doc: update README
80398         * README: Remove references to cogito.
80399         Remove cvs-repo-updating instructions from 2007.
80400         Don't imply that CVS is better if you have limited disk space.
80402 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80404         update-copyright: support C-style comments
80405         * build-aux/update-copyright: Implement and document.
80406         * tests/test-update-copyright.sh: Test.
80408 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80410         update-copyright: support omitted "(C)"
80411         * build-aux/update-copyright: Implement and document.  Also,
80412         allow variable whitespace before "(C)".
80413         * tests/test-update-copyright.sh: Test.
80415 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80417         update-copyright: don't trip on non-FSF copyright statements
80418         * build-aux/update-copyright: Fix so that the first correctly
80419         formatted FSF copyright statement is recognized no matter what
80420         appears before it.  Update documentation.
80421         * tests/test-update-copyright.sh: Test that.
80423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80425         update-copyright: clean up code a little
80426         * build-aux/update-copyright: Append "_re" to the name of any
80427         variable holding a regular expression.
80428         Replace "old" and "new" with "stmt" in variable names.
80429         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
80430         handled correctly.
80431         Format code more consistently.
80433 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80435         update-copyright-tests: improve portability
80436         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
80437         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
80439 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
80441         update-copyright: support @copyright{} and &copy;
80442         * build-aux/update-copyright: Implement and document.
80443         * tests/test-update-copyright.sh: Test.
80445 2009-08-04  Jim Meyering  <meyering@redhat.com>
80447         update-copyright-tests: correctly test EOL=\r\n handling
80448         * tests/test-update-copyright.sh: Put \r at the end of some lines
80449         for the dos-eol tests.  Based on a patch by Joel E. Denny.
80451         maint.mk: make update-copyright exclusion list more configurable
80452         * top/maint.mk (update-copyright): Default to excluding COPYING,
80453         but allow an override, in case someone does want to update that file.
80455         maint.mk: don't update copyright date in COPYING
80456         * top/maint.mk (update-copyright): Exclude COPYING.
80458         maint.mk: add a copyright-updating rule
80459         * top/maint.mk (update-copyright): New rule.
80460         Derived from coreutils/Makefile.am.
80462         update-copyright: rename some variables
80463         * build-aux/update-copyright: Rename a few variables for clarity.
80464         Tweak syntax.  List Joel E. Denny as coauthor.
80466 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
80468         update-copyright: fix bug for 2-digit last year and add tests
80469         * build-aux/update-copyright: Fix bug.
80470         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
80471         specified.
80472         * modules/update-copyright-tests: New
80473         * tests/test-update-copyright.sh: New.
80475 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
80477         update-copyright: handle leading tabs in line prefix
80478         * build-aux/update-copyright: Count leading tabs as 8 spaces
80479         when computing margin.  This helps with the formatting of
80480         ChangeLogs, for example.
80481         Fix documentation a little.
80483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
80485         update-copyright: support EOL=\r\n
80486         * build-aux/update-copyright: Implement that.
80488 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
80490         update-copyright: automatically format copyright statements
80491         * build-aux/update-copyright: Implement that.
80492         Also, be a little more predictable and safer by always failing
80493         when the full copyright format is not perfectly recognized as an
80494         unbroken whole.  Discussed at
80495         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
80496         Rewrite documentation.
80498 2009-08-03  Bruno Haible  <bruno@clisp.org>
80500         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
80502 2009-08-02  Bruno Haible  <bruno@clisp.org>
80504         Tests for module 'uname'.
80505         * modules/uname-tests: New file.
80506         * tests/test-uname.c: New file.
80508         New module 'uname'.
80509         * lib/uname.c: New file.
80510         * m4/uname.m4: New file.
80511         * modules/uname: New file.
80512         * doc/posix-functions/uname.texi: Mention the new module.
80514 2009-08-02  Bruno Haible  <bruno@clisp.org>
80516         Tests for module 'sys_utsname'.
80517         * modules/sys_utsname-tests: New file.
80518         * tests/test-sys_utsname.c: New file.
80520         New module 'sys_utsname'.
80521         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
80522         * m4/sys_utsname_h.m4: New file.
80523         * modules/sys_utsname: New file.
80524         * doc/posix-headers/sys_utsname.texi: Mention the new module.
80526 2009-08-02  Bruno Haible  <bruno@clisp.org>
80528         Implicitly initialize the sockets library.
80529         * lib/gethostname.c: Include sockets.h.
80530         (rpl_gethostname): Invoke gl_sockets_startup.
80531         * lib/socket.c: Include sockets.h.
80532         (rpl_socket): Invoke gl_sockets_startup.
80533         * modules/gethostname (Depends-on): Add sockets.
80534         * modules/socket (Depends-on): Likewise.
80535         * tests/test-poll.c: Don't include sockets.h.
80536         (main): Don't invoke gl_sockets_startup.
80537         * tests/test-select.c: Don't include sockets.h.
80538         (main): Don't invoke gl_sockets_startup.
80540 2009-08-02  Bruno Haible  <bruno@clisp.org>
80542         Allow multiple calls to gl_sockets_startup.
80543         * lib/sockets.c (initialized_sockets_version): New variable.
80544         (gl_sockets_startup): Do nothing if already called for this or a higher
80545         version.
80546         (gl_sockets_cleanup): Reset initialized_sockets_version.
80548 2009-08-03  Simon Josefsson  <simon@josefsson.org>
80550         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
80551         different project/version.
80553 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
80554             Bruno Haible  <bruno@clisp.org>
80556         Tests for module 'pipe-filter-gi'.
80557         * modules/pipe-filter-gi-tests: New file.
80558         * tests/test-pipe-filter-gi1.sh: New file.
80559         * tests/test-pipe-filter-gi1.c: New file.
80560         * tests/test-pipe-filter-gi2.sh: New file.
80561         * tests/test-pipe-filter-gi2-main.c: New file.
80562         * tests/test-pipe-filter-gi2-child.c: New file.
80564         New module 'pipe-filter-gi'.
80565         * lib/pipe-filter-gi.c: New file.
80566         * modules/pipe-filter-gi: New file.
80568 2009-08-02  Bruno Haible  <bruno@clisp.org>
80569             Paolo Bonzini  <bonzini@gnu.org>
80571         Tests for module 'pipe-filter-ii'.
80572         * modules/pipe-filter-ii-tests: New file.
80573         * tests/test-pipe-filter-ii1.sh: New file.
80574         * tests/test-pipe-filter-ii1.c: New file.
80575         * tests/test-pipe-filter-ii2.sh: New file.
80576         * tests/test-pipe-filter-ii2-main.c: New file.
80577         * tests/test-pipe-filter-ii2-child.c: New file.
80579         New module 'pipe-filter-ii'.
80580         * lib/pipe-filter.h: New file.
80581         * lib/pipe-filter-ii.c: New file.
80582         * lib/pipe-filter-aux.h: New file.
80583         * modules/pipe-filter-ii: New file.
80585 2009-08-02  Simon Josefsson  <simon@josefsson.org>
80587         * lib/gc-libgcrypt.c: Change copyright to FSF.
80588         * lib/gc-gnulib.c: Likewise.
80590 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
80592         * lib/gethostname.c: Include limits.h.
80594 2009-08-02  Simon Josefsson  <simon@josefsson.org>
80595             Bruno Haible  <bruno@clisp.org>
80597         Ensure HOST_NAME_MAX as part of the gethostname module.
80598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
80599         define also HOST_NAME_MAX.
80600         * tests/test-gethostname.c: Include <limits.h>.
80601         (main): Check also HOST_NAME_MAX.
80602         * doc/posix-headers/limits.texi: Document the mingw problem.
80604 2009-08-02  Bruno Haible  <bruno@clisp.org>
80606         * lib/gethostname.c (gethostname): Fix handling of large len argument.
80607         Add comments.
80609 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80611         * lib/gethostname.c: Add Windows wrapper.
80612         * m4/gethostname.m4: Look for gethostname in -lws2_32.
80613         * modules/gethostname: Depend on sys_socket & errno, for also
80614         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
80615         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
80617 2009-07-31  Jim Meyering  <meyering@redhat.com>
80619         getloadavg: fix symbol name in comment
80620         * lib/getloadavg.c: Correct a typo I introduced when adding
80621         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
80622         Matt Kraai spotted the problem.
80624 2009-07-29  Matt Kraai  <mkraai@beckman.com>
80626         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
80627         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
80628         code also if ! defined N_NAME_POINTER.
80629         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
80630         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
80631         but the n_name member is a 12-byte array.
80633 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
80635         update-copyright: generalize comment handling
80636         * build-aux/update-copyright: Handle copyright statements
80637         within more comment styles.
80638         Document usage.
80639         Report any file with an external copyright holder or parse failure.
80641 2009-07-29  Jim Meyering  <meyering@redhat.com>
80643         mktime: correct setting of REPLACE_MKTIME
80644         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
80646         update-copyright: new module
80647         * modules/update-copyright: New file.
80648         * build-aux/update-copyright: New file.
80649         * MODULES.html.sh (maint+release support): Add update-copyright.
80651 2009-07-27  Bruno Haible  <bruno@clisp.org>
80653         Fix compilation error when <ctime> is used and mktime is replaced.
80654         * lib/time.in.h (mktime): New declaration.
80655         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
80656         REPLACE_MKTIME instead of defining mktime in config.h.
80657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
80658         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
80659         Reported by Ross McFarland <rwmcfa1@neces.com>.
80661 2009-07-27  Bruno Haible  <bruno@clisp.org>
80663         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
80664         Reported by Matt Kraai <mkraai@beckman.com>.
80666 2009-07-25  Jim Meyering  <meyering@redhat.com>
80668         maint.mk: avoid warnings about missing files
80669         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
80670         diagnostic when .prev-version does not exist.
80671         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
80672         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
80673         nonexistent cfg.mk.
80674         Suggestions from Simon Josefsson.
80676 2009-07-25  Bruno Haible  <bruno@clisp.org>
80678         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
80679         defined as macros. Needed on QNX 6.4.1.
80680         Reported by Matt Kraai <mkraai@beckman.com>.
80682 2009-07-23  Jim Meyering  <meyering@redhat.com>
80684         maint.mk: invoke "make dist" with a working value of XZ_OPT
80685         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
80687 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
80689         Make fseeko.c compile on QNX.
80690         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
80692 2009-07-22  Peter Simons  <simons@cryp.to>
80694         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
80695         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
80696         * lib/md4.h: Likewise.
80697         * lib/md5.h: Likewise.
80698         * lib/sha1.h: Likewise.
80699         * lib/sha256.h: Likewise.
80700         * lib/sha512.h: Likewise.
80702         tests-sha1: don't assign literal string to 'char *' variable
80703         * tests/test-sha1.c (main): Declare locals with "const" to match
80704         attributes of the right hand side.
80706 2009-07-21  Eric Blake  <ebb9@byu.net>
80708         dup2: fix more mingw problems
80709         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
80710         fd to itself.
80711         * doc/posix-functions/dup2.texi (dup2): Document the bug.
80712         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
80713         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
80714         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
80715         care of mingw bugs.
80717 2009-07-21  Jim Meyering  <meyering@redhat.com>
80719         vc-list-files: avoid failure when /bin/sh is dash
80720         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
80721         On some Debian based systems, /bin/sh is a symlink to dash, and running
80722         this command would omit the "/" following each 'tests' prefix:
80723           dash -x build-aux/vc-list-files -C . tests
80724         That is because bash and dash work differently:
80725           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
80726           bash ok
80727           dash odd
80729 2009-07-21  Eric Blake  <ebb9@byu.net>
80731         dup2-tests: test previous patch
80732         * modules/dup2-tests: New file.
80733         * tests/test-dup2.c: Likewise.
80734         * tests/test-open.c (main): Avoid unspecified behavior.
80735         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
80736         test.
80738         dup2: work around mingw and cygwin 1.5 bug
80739         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
80740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80741         * modules/unistd (Makefile.am): Substitute it.
80742         * lib/unistd.in.h (dup2): Declare the replacement.
80743         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
80744         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
80745         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
80746         * modules/execute (Depends-on): Add dup2.
80747         * modules/fseterr (Depends-on): Likewise.
80748         * modules/pipe (Depends-on): Likewise.
80749         * modules/posix_spawn-internal (Depends-on): Likewise.
80751 2009-07-21  Bruno Haible  <bruno@clisp.org>
80753         * modules/.gitattributes: New file.
80755 2009-07-20  Bruno Haible  <bruno@clisp.org>
80757         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
80758         (main): Use it.
80760 2009-07-20  Eric Blake  <ebb9@byu.net>
80762         test-pipe: make a bit more robust.
80763         * tests/test-pipe.c (myerr): Allow error messages regardless of
80764         what we do to stderr.
80765         (test_pipe): Rearrange to avoid deadlock.
80766         (child_main): Try a larger read, to ensure we avoided deadlock.
80767         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
80768         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
80769         if misused.
80771 2009-07-19  Jim Meyering  <meyering@redhat.com>
80773         fts: avoid false-positive cycle-detection
80774         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
80775         for each new command line argument.
80777 2009-07-19  Bruno Haible  <bruno@clisp.org>
80779         Fix build error on mingw with the modules sys_select and unistd.
80780         * modules/acl-tests (Depends-on): Add close.
80781         * modules/binary-io-tests (Depends-on): Likewise.
80782         * modules/closein-tests (Depends-on): Likewise.
80783         * modules/flock-tests (Depends-on): Likewise.
80784         * modules/fsync-tests (Depends-on): Likewise.
80785         * modules/lseek-tests (Depends-on): Likewise.
80786         * modules/pipe-tests (Depends-on): Likewise.
80787         * modules/posix_spawn-tests (Depends-on): Likewise.
80788         * modules/posix_spawnp-tests (Depends-on): Likewise.
80789         * modules/stat-time-tests (Depends-on): Likewise.
80790         * modules/yesno-tests (Depends-on): Likewise.
80792 2009-07-19  Bruno Haible  <bruno@clisp.org>
80794         Unify conditionals.
80795         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
80796         macros, not at the compiler macros.
80797         * lib/pipe.c: Likewise.
80798         * lib/execute.c: Likewise.
80799         * lib/spawni.c: Likewise.
80801 2009-07-19  Bruno Haible  <bruno@clisp.org>
80803         Fix handling of closed stdin/stdout/stderr on mingw.
80804         * lib/w32spawn.h: Include unistd.h.
80805         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
80806         file descriptor with O_NOINHERIT flag.
80807         (fd_safer_noinherit): New function, based on fd-safer.c.
80808         (dup_safer_noinherit): New function, based on dup-safer.c.
80809         (undup_safer_noinherit): New function.
80810         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
80811         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
80812         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
80813         instead of fd_safer.
80814         * tests/test-pipe.c: Include <windows.h>.
80815         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
80816         result.
80818         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
80819         from main.
80820         (test_pipe): Pass an extra argument for disambiguation.
80821         (main): Invoke parent_main or child_main.
80823         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
80824         consistently.
80826 2009-07-18  Eric Blake  <ebb9@byu.net>
80828         test-pipe: fix mingw build
80829         * tests/test-pipe.c (main): Avoid fcntl on mingw.
80831 2009-07-18  Bruno Haible  <bruno@clisp.org>
80833         * modules/pipe-tests (Makefile.am): Fix typo.
80835 2009-07-18  Eric Blake  <ebb9@byu.net>
80837         error: fix mingw build
80838         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
80839         Reported by Bruno Haible.
80841         error: avoid undefined use of stdout
80842         * lib/error.c (error, error_at_line): Check that fd 1 is open
80843         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
80844         is handling faults and the close_stdout module wants to report the
80845         detection of closed stdout as an error.
80847 2009-07-17  Eric Blake  <ebb9@byu.net>
80849         pipe: be robust in face of closed fds
80850         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
80851         should cause child to misbehave.
80852         * modules/pipe-tests: New module.
80853         * tests/test-pipe.c: New file.
80854         * tests/test-pipe.sh: New file.
80855         Reported by Akim Demaille.
80857 2009-07-14  Bruno Haible  <bruno@clisp.org>
80859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
80860         Reported by anonymous kc.
80862 2009-07-07  Jim Meyering  <meyering@redhat.com>
80864         maint.mk: don't look for translatable strings in *.m4 or *.mk
80865         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
80866         when searching for translatable strings.
80868 2009-07-05  Jim Meyering  <meyering@redhat.com>
80870         remove superfluous parentheses in STREQ definition
80871         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
80872         * lib/getugroups.c (STREQ): Likewise.
80873         * lib/fnmatch.c (STREQ): Likewise.
80874         Spotted by Bruno Haible.
80876 2009-07-04  Jim Meyering  <meyering@redhat.com>
80878         argv-iter: new module
80879         * MODULES.html.sh: Add argv-iter.
80880         * lib/argv-iter.c, lib/argv-iter.h: New files.
80881         * modules/argv-iter: New file.
80882         * modules/argv-iter-tests: New file.
80883         * tests/test-argv-iter.c: Test it.
80885 2009-07-04  Bruno Haible  <bruno@clisp.org>
80887         Fix assertion.
80888         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
80889         contains more exact copies of a given entry than file2, leave the extra
80890         copies unpaired rather than aborting.
80891         Reported by Eric Blake.
80893 2009-07-02  Bruno Haible  <bruno@clisp.org>
80895         Speedup git-merge-changelog for git cherry-pick.
80896         * lib/git-merge-changelog.c (struct entries_mapping): New type.
80897         (entries_mapping_get): New function, extracted from compute_mapping.
80898         (entries_mapping_reverse_get): New function.
80899         (compute_mapping): Add a 'full' argument. Return the result in a
80900         'struct entries_mapping'.
80901         (main): Update. Access the mappings through entries_mapping_get.
80902         Reported by Eric Blake.
80904 2009-07-02  Bruno Haible  <bruno@clisp.org>
80906         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
80907         best_i.
80909 2009-07-02  Bruno Haible  <bruno@clisp.org>
80911         Speed up approximate search for matching ChangeLog entries.
80912         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
80913         argument. Call fstrcmp_bounded instead of fstrcmp.
80914         (compute_mapping, try_split_merged_entry, main): Update callers.
80916 2009-07-02  Bruno Haible  <bruno@clisp.org>
80918         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
80920 2009-06-30  Bruno Haible  <bruno@clisp.org>
80922         Reduce the number of uc_is_cased calls.
80923         * lib/unicase.h (casing_suffix_context_t): Add
80924         'first_char_except_ignorable' field.
80925         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
80926         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
80927         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
80928         Update initializer.
80929         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
80930         case-ignorable characters.
80931         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
80932         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
80933         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
80934         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
80935         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
80937 2009-06-30  Bruno Haible  <bruno@clisp.org>
80939         Tests for module 'unicase/ignorable'.
80940         * modules/unicase/ignorable-tests: New file.
80941         * tests/unicase/test-ignorable.c: New file, generated by
80942         gen-uni-tables.
80944         Tests for module 'unicase/cased'.
80945         * modules/unicase/cased-tests: New file.
80946         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
80947         * tests/unicase/test-predicate-part1.h: New file, derived from
80948         tests/unictype/test-predicate-part1.h.
80949         * tests/unicase/test-predicate-part2.h: New file, same as
80950         tests/unictype/test-predicate-part2.h.
80952         Fix evaluation of "Before C" condition of FINAL_SIGMA.
80953         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
80954         (output_casing_properties): New function.
80955         (main): Call it.
80956         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
80957         * lib/unicase/cased.c: Include unictype/bitmap.h.
80958         (uc_is_cased): Define through a bitmap lookup.
80959         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
80960         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
80961         (uc_is_case_ignorable): Define through a bitmap lookup.
80962         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
80963         lib/unictype/bitmap.h.
80964         (Depends-on): Add inline. Clean up.
80965         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
80966         lib/unictype/bitmap.h.
80967         (Depends-on): Add inline. Clean up.
80968         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
80969         recognition.
80970         * tests/unicase/test-u16-tolower.c (main): Likewise.
80971         * tests/unicase/test-u32-tolower.c (main): Likewise.
80973 2009-06-30  Bruno Haible  <bruno@clisp.org>
80975         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
80976         * lib/unicase/u16-casemap.c: Likewise.
80977         * lib/unicase/u32-casemap.c: Likewise.
80979 2009-06-29  Bruno Haible  <bruno@clisp.org>
80981         Define u32_casefold as a wrapper around u32_ct_casefold.
80982         * lib/unicase/u32-casefold.c: Update.
80983         * modules/unicase/u32-casefold (Depends-on): Add
80984         unicase/u32-ct-casefold, unicase/empty-prefix-context,
80985         unicase/empty-suffix-context. Clean up.
80987         Define u16_casefold as a wrapper around u16_ct_casefold.
80988         * lib/unicase/u16-casefold.c: Update.
80989         * modules/unicase/u16-casefold (Depends-on): Add
80990         unicase/u16-ct-casefold, unicase/empty-prefix-context,
80991         unicase/empty-suffix-context. Clean up.
80993         Define u8_casefold as a wrapper around u8_ct_casefold.
80994         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
80995         * lib/unicase/u8-casefold.c: Update.
80996         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
80997         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
80999         Define u32_totitle as a wrapper around u32_ct_totitle.
81000         * lib/unicase/u32-totitle.c: Update.
81001         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
81002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81004         Define u16_totitle as a wrapper around u16_ct_totitle.
81005         * lib/unicase/u16-totitle.c: Update.
81006         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
81007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81009         Define u8_totitle as a wrapper around u8_ct_totitle.
81010         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
81011         functions.
81012         (FUNC): Delegate to U_CT_TOTITLE.
81013         * lib/unicase/u8-totitle.c: Update.
81014         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
81015         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81017         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
81018         invocation.
81019         * modules/unicase/u32-tolower (Depends-on): Add
81020         unicase/empty-prefix-context, unicase/empty-suffix-context.
81022         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
81023         invocation.
81024         * modules/unicase/u16-tolower (Depends-on): Add
81025         unicase/empty-prefix-context, unicase/empty-suffix-context.
81027         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
81028         * modules/unicase/u8-tolower (Depends-on): Add
81029         unicase/empty-prefix-context, unicase/empty-suffix-context.
81031         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
81032         invocation.
81033         * modules/unicase/u32-toupper (Depends-on): Add
81034         unicase/empty-prefix-context, unicase/empty-suffix-context.
81036         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
81037         invocation.
81038         * modules/unicase/u16-toupper (Depends-on): Add
81039         unicase/empty-prefix-context, unicase/empty-suffix-context.
81041         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
81042         * modules/unicase/u8-toupper (Depends-on): Add
81043         unicase/empty-prefix-context, unicase/empty-suffix-context.
81045         New module 'unicase/u32-ct-casefold'.
81046         * lib/unicase/u32-ct-casefold.c: New file.
81047         * modules/unicase/u32-ct-casefold: New file.
81049         New module 'unicase/u16-ct-casefold'.
81050         * lib/unicase/u16-ct-casefold.c: New file.
81051         * modules/unicase/u16-ct-casefold: New file.
81053         New module 'unicase/u8-ct-casefold'.
81054         * lib/unicase/u8-ct-casefold.c: New file.
81055         * lib/unicase/u-ct-casefold.h: New file, derived from
81056         lib/unicase/u-casefold.h.
81057         * modules/unicase/u8-ct-casefold: New file.
81059         New module 'unicase/u32-ct-totitle'.
81060         * lib/unicase/u32-ct-totitle.c: New file.
81061         * modules/unicase/u32-ct-totitle: New file.
81063         New module 'unicase/u16-ct-totitle'.
81064         * lib/unicase/u16-ct-totitle.c: New file.
81065         * modules/unicase/u16-ct-totitle: New file.
81067         New module 'unicase/u8-ct-totitle'.
81068         * lib/unicase/u8-ct-totitle.c: New file.
81069         * lib/unicase/u-ct-totitle.h: New file, derived from
81070         lib/unicase/u-totitle.h.
81071         * modules/unicase/u8-ct-totitle: New file.
81073         New module 'unicase/u32-ct-tolower'.
81074         * lib/unicase/u32-ct-tolower.c: New file.
81075         * modules/unicase/u32-ct-tolower: New file.
81077         New module 'unicase/u16-ct-tolower'.
81078         * lib/unicase/u16-ct-tolower.c: New file.
81079         * modules/unicase/u16-ct-tolower: New file.
81081         New module 'unicase/u8-ct-tolower'.
81082         * lib/unicase/u8-ct-tolower.c: New file.
81083         * modules/unicase/u8-ct-tolower: New file.
81085         New module 'unicase/u32-ct-toupper'.
81086         * lib/unicase/u32-ct-toupper.c: New file.
81087         * modules/unicase/u32-ct-toupper: New file.
81089         New module 'unicase/u16-ct-toupper'.
81090         * lib/unicase/u16-ct-toupper.c: New file.
81091         * modules/unicase/u16-ct-toupper: New file.
81093         New module 'unicase/u8-ct-toupper'.
81094         * lib/unicase/u8-ct-toupper.c: New file.
81095         * modules/unicase/u8-ct-toupper: New file.
81097         Add context arguments to u*_casemap functions.
81098         * lib/unicase/unicasemap.h: Include unicase.h.
81099         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
81100         suffix_context arguments.
81101         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
81102         functions.
81103         (FUNC): Add prefix_context and suffix_context arguments. Use
81104         uc_is_cased and uc_is_case_ignorable.
81105         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
81106         * lib/unicase/u16-casemap.c: Likewise.
81107         * lib/unicase/u32-casemap.c: Likewise.
81108         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
81109         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81110         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
81111         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81112         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
81113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81115         New module 'unicase/u32-suffix-context'.
81116         * lib/unicase/u32-suffix-context.c: New file.
81117         * modules/unicase/u32-suffix-context: New file.
81119         New module 'unicase/u16-suffix-context'.
81120         * lib/unicase/u16-suffix-context.c: New file.
81121         * modules/unicase/u16-suffix-context: New file.
81123         New module 'unicase/u8-suffix-context'.
81124         * lib/unicase/u8-suffix-context.c: New file.
81125         * lib/unicase/u-suffix-context.h: New file.
81126         * modules/unicase/u8-suffix-context: New file.
81128         New module 'unicase/empty-suffix-context'.
81129         * lib/unicase/empty-suffix-context.c: New file.
81130         * modules/unicase/empty-suffix-context: New file.
81132         New module 'unicase/u32-prefix-context'.
81133         * lib/unicase/u32-prefix-context.c: New file.
81134         * modules/unicase/u32-prefix-context: New file.
81136         New module 'unicase/u16-prefix-context'.
81137         * lib/unicase/u16-prefix-context.c: New file.
81138         * modules/unicase/u16-prefix-context: New file.
81140         New module 'unicase/u8-prefix-context'.
81141         * lib/unicase/u8-prefix-context.c: New file.
81142         * lib/unicase/u-prefix-context.h: New file.
81143         * lib/unicase/context.h: New file.
81144         * modules/unicase/u8-prefix-context: New file.
81146         New module 'unicase/empty-prefix-context'.
81147         * lib/unicase/empty-prefix-context.c: New file.
81148         * modules/unicase/empty-prefix-context: New file.
81150         New module 'unicase/ignorable'.
81151         * lib/unicase/ignorable.c: New file.
81152         * modules/unicase/ignorable: New file.
81154         New module 'unicase/cased'.
81155         * lib/unicase/caseprop.h: New file.
81156         * lib/unicase/cased.c: New file.
81157         * modules/unicase/cased: New file.
81159         New functions for case mapping of substrings.
81160         * lib/unicase.h (casing_prefix_context_t): New type.
81161         (unicase_empty_prefix_context): New variable.
81162         (u8_casing_prefix_context, u16_casing_prefix_context,
81163         u32_casing_prefix_context, u8_casing_prefixes_context,
81164         u16_casing_prefixes_context, u32_casing_prefixes_context): New
81165         declarations.
81166         (casing_suffix_context_t): New type.
81167         (unicase_empty_suffix_context): New variable.
81168         (u8_casing_suffix_context, u16_casing_suffix_context,
81169         u32_casing_suffix_context, u8_casing_suffixes_context,
81170         u16_casing_suffixes_context, u32_casing_suffixes_context,
81171         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
81172         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
81173         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
81174         declarations.
81176 2009-06-28  Jim Meyering  <meyering@redhat.com>
81178         boostrap: indent only with spaces
81179         * build-aux/bootstrap: Indent only with spaces, never TABs.
81181         bootstrap: split long lines
81182         * build-aux/bootstrap: Keep line length < 80.
81184         bootstrap: sync from coreutils
81185         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
81186         just as autoreconf does.  Verify a list of prerequisite
81187         package-name,version-number pairs if defined in bootstrap.conf.
81188         Refer to README-prereq, if prerequisites are not satisfied.
81190 2009-06-27  Eric Blake  <ebb9@byu.net>
81192         tests: add test for bogus NULL definition
81193         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
81194         * tests/test-stdlib.c: Likewise.
81195         * tests/test-string.c: Likewise.
81196         * tests/test-locale.c: Likewise.
81197         * tests/test-unistd.c: Likewise.
81198         * modules/stdio-tests (Depends-on): Add verify.
81199         * modules/stdlib-tests (Depends-on): Likewise.
81200         * modules/string-tests (Depends-on): Likewise.
81201         * modules/locale-tests (Depends-on): Likewise.
81202         * modules/unistd-tests (Depends-on): Likewise.
81204 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
81206         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
81207         self-explaining comment.
81208         * m4/selinux-selinux-h: Update serial.
81209         (gl_LIBSELINUX): New macro, adding a warning for missing development
81210         packages to code extracted from...
81211         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
81212         Add warning for missing development packages here, too.
81214 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
81216         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
81218 2009-06-25  Eric Blake  <ebb9@byu.net>
81220         version-etc: fix regression
81221         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
81222         gcc.
81223         (version_etc): Use it, to catch bugs with trailing NULL.
81224         * lib/version-etc.c (version_etc_arn): Delete unused argument.
81225         (version_etc_va): Fix logic bug.
81226         * modules/version-etc-tests: Add test.
81227         * tests/test-version-etc.c: New file.
81228         * tests/test-version-etc.sh: Likewise.
81230 2009-06-25  Sam Steingold  <sds@gnu.org>
81232         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
81233         mbtowc declaration.
81235 2009-06-25  Eric Blake  <ebb9@byu.net>
81237         fpurge: migrate into <stdio.h>
81238         * lib/fpurge.h: Delete...
81239         * lib/stdio.in.h (fpurge): ...and declare here, instead.
81240         * lib/fpurge.c (fpurge): Change declaring header.
81241         * modules/fpurge (Files): Drop deleted file.
81242         (Depends-on): Add stdio.
81243         (configure.ac): Set witness.
81244         * modules/stdio (Makefile.am): Support fpurge macros.
81245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
81247         * lib/fflush.c: Update client.
81248         * tests/test-fpurge.c: Likewise.
81249         * NEWS: Mention the change.
81251 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81253         * lib/argp-version-etc.c (program_authors): Add const
81254         qualifier.
81255         * lib/version-etc.c: Fix typos in the comments.
81256         * modules/argp-version-etc: Depends on version-etc.
81258 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81260         argp-version-etc: new module.
81262         * lib/argp-version-etc.c: New file.
81263         * lib/argp-version-etc.h: New file.
81264         * modules/argp-version-etc: New file.
81265         * modules/argp-version-etc-tests: New file.
81266         * tests/test-argp-version-etc.c: New test.
81267         * tests/test-argp-version-etc-1.sh: New test.
81269 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81271         Provide additional interfaces and documentation for version-etc
81272         module.
81274         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
81275         interfaces.
81276         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
81277         prototypes.
81279 2009-06-24  Bruno Haible  <bruno@clisp.org>
81281         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
81282         HAVE_LIB${NAME} macro.
81283         Reported by Sam Steingold <sds@gnu.org>.
81285 2009-06-23  Simon Josefsson  <simon@josefsson.org>
81287         * modules/hash-tests (test_hash_LDADD): Link to libintl when
81288         needed.
81290 2009-06-21  Bruno Haible  <bruno@clisp.org>
81292         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
81293         work.
81294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
81295         together with LIB${NAME}, LTLIB${NAME}.
81296         Reported by Sam Steingold <sds@gnu.org>.
81298 2009-06-20  Jim Meyering  <meyering@redhat.com>
81300         tests: make sc_require_test_exit_idiom more generic
81301         * top/maint.mk (Exit_witness_file): New overridable variable.
81302         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
81303         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
81305 2009-06-19  Jim Meyering  <meyering@redhat.com>
81307         hash: reverse order of src/dst parameters in an internal interface
81308         * lib/hash.c (transfer_entries): Reverse order of parameters to
81309         put DST before SRC.  Adjust callers.
81311         tests: test-hash: avoid wholesale duplication
81312         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
81313         Instead, use a loop and add a single conditional.
81315         tests: test-hash: allow seed selection via a command line argument
81316         * tests/test-hash.c (get_seed): New function.
81317         (main): Use it.
81319 2009-06-19  Eric Blake  <ebb9@byu.net>
81321         hash: avoid memory leak on allocation failure
81322         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
81323         failure.  Factor repeated algorithm...
81324         (transfer_entries): ...into new helper routine.
81325         (hash_delete): React to hash_rehash return value.
81327         hash: reduce memory pressure in hash_rehash no-op case
81328         * lib/hash.c (next_prime): Avoid overflow.
81329         (hash_initialize): Factor bucket size computation...
81330         (compute_bucket_size): ...into new helper function.
81331         (hash_rehash): Use new function and open coding to reduce memory
81332         pressure, and avoid a memory leak in USE_OBSTACK code.
81333         Reported by Jim Meyering.
81335 2009-06-18  Eric Blake  <ebb9@byu.net>
81337         hash: make rotation more obvious
81338         * modules/hash (Depends-on): Add bitrotate and stdint.
81339         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
81340         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
81341         (SIZE_MAX): Rely on headers for definition.
81342         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
81343         (raw_hasher): Use rotr_sz.
81344         Suggested by Jim Meyering.
81346         hash: fix memory leak in last patch
81347         * lib/hash.c (hash_rehash): Avoid memory leak.
81349         hash: avoid no-op rehashing
81350         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
81352         hash: provide default callback functions
81353         * lib/hash.c (raw_hasher, raw_comparator): New functions.
81354         (hash_initialize): Use them as defaults.
81355         * tests/test-hash.c (main): Test this.
81357         hash: minor optimization
81358         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
81359         when possible.
81360         (hash_initialize): Document this promise.
81361         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
81362         * tests/test-hash.c (hash_compare_strings): Test this.
81364 2009-06-18  Bruno Haible  <bruno@clisp.org>
81366         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
81367         going to be replaced anyway.
81369 2009-06-18  Bruno Haible  <bruno@clisp.org>
81371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
81372         in one place.
81373         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
81374         be replaced anyway.
81376 2009-06-18  Eric Blake  <ebb9@byu.net>
81378         hash: check for resize before insertion
81379         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
81380         threshold before insertion, so that a pathological hash_rehash
81381         that fills every bucket can still trigger another rehash.
81383 2009-06-18  Jim Meyering  <meyering@redhat.com>
81385         hash-tests: add a loop around the small tests
81386         * tests/test-hash.c (main): Repeat small tests with selected
81387         small initial table sizes.
81389 2009-06-17  Eric Blake  <ebb9@byu.net>
81391         hash: minor cleanups
81392         * lib/hash.h (hash_entry): Make opaque, by moving...
81393         * lib/hash.c (hash_entry): ...here.
81394         (hash_insert): Clarify restrictions on what can be inserted.
81395         (hash_get_next): Clarify when it is safe to remove an element
81396         during traversal.
81397         (check_tuning): Skip verification when tuning is known safe.
81398         (hash_initialize): Clarify restrictions on tuning.
81400 2009-06-17  Jim Meyering  <jim@meyering.net>
81401         and Eric Blake  <ebb9@byu.net>
81403         hash-tests: new module
81404         * modules/hash-tests: New file.
81405         * tests/test-hash.c: New file.
81407 2009-06-17  Eric Blake  <ebb9@byu.net>
81409         strstr-simple: document new module
81410         * MODULES.html.sh: Document new module.
81412         strstr, strcasestr: replace on platforms with broken memchr
81413         * modules/strstr: Split into...
81414         * modules/strstr-simple: ...new module that does not care about
81415         performance, but does care about glibc bug.
81416         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
81417         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
81418         if platform memchr is broken, per Debian bug 521737.
81419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
81420         memchr.
81421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
81422         * doc/posix-functions/strstr.texi (strstr): Document the fix.
81423         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
81424         * modules/mountlist (Depends-on): Add strstr-simple.
81425         * modules/gen-uni-tables (Depends-on): Likewise.
81426         * modules/argz (Depends-on): Add strstr.
81428 2009-06-17  Bruno Haible  <bruno@clisp.org>
81430         * modules/posix_spawn-internal (Depends-on): Add errno.
81432 2009-06-17  Bruno Haible  <bruno@clisp.org>
81434         Define missing ESTALE on Interix 3.5.
81435         * lib/errno.in.h (ESTALE): Assign a value if missing.
81436         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
81437         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
81438         missing.
81439         * doc/posix-headers/errno.texi: Mention the Interix bug.
81440         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
81442 2009-06-15  Eric Blake  <ebb9@byu.net>
81444         memchr, memchr2: add valgrind exception
81445         * lib/memchr.valgrind: New file.
81446         * lib/memchr2.valgrind: New file.
81447         * modules/memchr (Files): Distribute valgrind file.
81448         * modules/memchr2 (Files): Likewise.
81450         docs: memchr is no longer obsolete
81451         * MODULES.html.sh: Move memchr from obsolete to string.h section.
81452         * lib/string.in.h (memchr): Simplify logic.
81454 2009-06-14  Jim Meyering  <meyering@redhat.com>
81456         link-follow: fix the "checking..." message to not mention trailing slash
81457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
81458         never considered trailing slashes.
81460 2009-06-14  Bruno Haible  <bruno@clisp.org>
81462         * m4/memchr.m4: Mention also the bug on IA-64.
81463         * doc/posix-functions/memchr.texi: Likewise.
81465 2009-06-12  Eric Blake  <ebb9@byu.net>
81467         memchr: detect broken x86_64 and alpha implementations
81468         * modules/memchr-tests (Depends-on): Move mmap detection...
81469         * modules/memchr (Depends-on): ...here.
81470         (configure.ac): Set indicator.
81471         * lib/string.in.h (memchr): Declare replacement.
81472         * modules/string (Makefile.am): Trigger replacement.
81473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
81475         bugs.
81476         * doc/posix-functions/memchr.texi (memchr): Document the bug.
81477         * modules/getpagesize (License): Relax license.
81479 2009-06-11  Bruno Haible  <bruno@clisp.org>
81481         * lib/idpriv.h: Add more references.
81483 2009-06-08  Bruno Haible  <bruno@clisp.org>
81485         Tests for module 'idpriv-droptemp'.
81486         * modules/idpriv-droptemp-tests: New file.
81487         * tests/test-idpriv-droptemp.sh: New file.
81488         * tests/test-idpriv-droptemp.su.sh: New file.
81489         * tests/test-idpriv-droptemp.c: New file.
81491         New module 'idpriv-droptemp'.
81492         * lib/idpriv-droptemp.c: New file.
81493         * modules/idpriv-droptemp: New file.
81495 2009-06-08  Bruno Haible  <bruno@clisp.org>
81497         Tests for module 'idpriv-drop'.
81498         * modules/idpriv-drop-tests: New file.
81499         * tests/test-idpriv-drop.sh: New file.
81500         * tests/test-idpriv-drop.su.sh: New file.
81501         * tests/test-idpriv-drop.c: New file.
81503         New module 'idpriv-drop'.
81504         * lib/idpriv.h: New file.
81505         * lib-idpriv-drop.c: New file.
81506         * m4/idpriv.m4: New file.
81507         * modules/idpriv-drop: New file.
81509 2009-06-08  Bruno Haible  <bruno@clisp.org>
81511         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
81512         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81513         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81515         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81516         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81517         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81519 2009-06-08  Eric Blake  <ebb9@byu.net>
81521         test-strstr: use memory fence, when possible
81522         * tests/test-strstr.c (main): Use memory fence, in order to be
81523         more likely to trigger Debian bug 521737.
81524         * modules/strstr-tests (Files): Pull in additional files.
81526         memchr: no longer obsolete, for wider field testing
81527         * modules/memchr (Status, Notice): Delete, this module is no
81528         longer obsolete.
81529         * modules/vasnprintf (Depends-on): Add memchr.
81531 2009-06-07  Jim Meyering  <meyering@redhat.com>
81533         hash: declare some functions with the warn_unused_result attribute
81534         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
81536 2009-06-07  Bruno Haible  <bruno@clisp.org>
81538         * tests/test-alignof.c: Don't test int64_t if it does not exist.
81539         Reported by Eric Blake.
81541 2009-06-06  Eric Blake  <ebb9@byu.net>
81543         test-alignof: fix typo with long double
81544         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
81545         compiler error.
81547 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
81549         Escape non-texinfo { and }s.
81550         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
81551         markup error.
81553 2009-06-04  Jim Meyering  <meyering@redhat.com>
81555         gitlog-to-changelog: don't infloop on an empty commit log
81556         * build-aux/gitlog-to-changelog: Warn about an empty log message.
81557         Reported by Boris Petersen <transacid@centerim.org>.
81559 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
81561         version-etc: extend for packagers
81562         Add three new configure options, intended for packagers:
81563           --with-packager="packager name"
81564           --with-packager-version="packager-specific version"
81565           --with-packager-bug-reports="packager bug reporting"
81566         An example with coreutils:
81567           $ ./configure \
81568             --with-packager=Gentoo \
81569             --with-packager-bug-report=http://bugs.gentoo.org/ \
81570             --with-packager-version="patchset 1.6"
81571           $ ./src/ls --version | head -n2
81572           ls (GNU coreutils) 7.1-dirty
81573           Packaged by Gentoo (patchset 1.6)
81574         Note that the bug reporting info via --help doesn't show up because
81575         coreutils uses its own custom emit_bug_reporting_address() implementation
81576         in src/system.h.  If it didn't, it'd look like:
81577           $ ./src/ls --help | tail -n4
81578           Report bugs to <bug-coreutils@gnu.org>.
81579           Report Gentoo bugs to <http://bugs.gentoo.org/>.
81580           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
81581           General help using GNU software: <http://www.gnu.org/gethelp/>.
81582         * lib/version-etc.c: Print new information, if provided.
81583         * m4/version-etc.m4: New file.
81584         * modules/version-etc (Files): Add m4/version-etc.m4.
81585         (configure.ac): Add gl_VERSION_ETC.
81587 2009-05-31  Bruno Haible  <bruno@clisp.org>
81589         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
81590         and 'int64_t'.
81591         * modules/alignof-tests (Dependencies): Add stdint.
81592         Reported by Eric Blake.
81594 2009-05-31  Bruno Haible  <bruno@clisp.org>
81596         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
81597         restriction due to compiler bugs.
81598         Reported by Eric Blake.
81600 2009-05-31  Simon Josefsson  <simon@josefsson.org>
81601             Bruno Haible  <bruno@clisp.org>
81603         Fix test-alignof failure.
81604         * lib/alignof.h (alignof_slot): New macro.
81605         (alignof_type): New macro, with the same semantics as the previous
81606         'alignof'.
81607         (alignof): Alias to alignof_slot.
81608         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
81609         check that the results are usable as constant expressions.
81611 2009-05-31  Bruno Haible  <bruno@clisp.org>
81613         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
81614         * tests/test-memchr.c (main): Check that memchr does not read past the
81615         first occurrence of the byte.
81616         * tests/test-strstr.c (main): Update comment.
81617         Suggested by Eric Blake.
81619 2009-05-30  Bruno Haible  <bruno@clisp.org>
81621         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
81622         detail how to use dumpbin.
81623         Reported by David Byron <dbyron@dbyron.com>.
81625 2009-06-02  Simon Josefsson  <simon@josefsson.org>
81627         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
81629 2009-06-02  Simon Josefsson  <simon@josefsson.org>
81631         * m4/manywarnings.m4: Add GCC 4.4 warnings.
81633 2009-05-28  Bruno Haible  <bruno@clisp.org>
81635         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
81636         build-aux/ files.
81638 2009-05-28  Simon Josefsson  <simon@josefsson.org>
81640         * gnulib-tool (func_import): Transform license on build-aux/ files too.
81642 2009-05-27  Simon Josefsson  <simon@josefsson.org>
81644         * gnulib-tool (sed_transform_main_lib_file)
81645         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
81646         regexps.
81648 2009-05-26  Simon Josefsson  <simon@josefsson.org>
81650         * tests/test-strstr.c: Add another self-test.
81651         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
81652         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
81654 2009-05-23  Bruno Haible  <bruno@clisp.org>
81656         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
81657         change.
81659 2009-05-21  Bruno Haible  <bruno@clisp.org>
81661         Simplify use of mode_t varargs.
81662         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
81663         uses 'mode_t' or 'int'.
81664         * lib/openat.c (openat): Likewise.
81665         * lib/open-safer.c (open_safer): Likewise.
81666         * m4/mode_t.m4: New file.
81667         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
81668         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
81669         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
81670         * modules/open (Files): Add m4/mode_t.m4.
81671         * modules/openat (Files): Likewise.
81672         * modules/fcntl-safer (Files): Likewise.
81673         Suggested by Eric Blake.
81675 2009-05-21  Pádraig Brady  <P@draigbrady.com>
81677         * doc/glibc-functions/fallocate.texi: New file.
81678         * doc/gnulib.texi: Include it.
81680 2009-05-21  Eric Blake  <ebb9@byu.net>
81681             Bruno Haible  <bruno@clisp.org>
81683         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
81684         invocations.
81685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
81687 2009-05-21  Eric Blake  <ebb9@byu.net>
81688             Bruno Haible  <bruno@clisp.org>
81690         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
81691         include_next. Fix of 2008-11-20 commit.
81692         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
81693         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
81694         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
81695         NEXT_MATH_H.
81696         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
81697         instead of NEXT_MATH_H.
81699 2009-05-21  Bruno Haible  <bruno@clisp.org>
81701         Avoid redefinition warnings for SIZE_MAX.
81702         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
81703         Reported by Simon Josefsson.
81705 2009-05-21  Bruno Haible  <bruno@clisp.org>
81707         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
81708         AC_CACHE_VAL.
81710 2009-05-20  Bruno Haible  <bruno@clisp.org>
81712         Make zeroptr.h work on mingw.
81713         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
81714         mprotect.
81715         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
81716         * modules/memchr2-tests (configure.ac): Likewise.
81717         * modules/memcmp-tests (configure.ac): Likewise.
81718         * modules/memmem-tests (configure.ac): Likewise.
81719         * modules/memrchr-tests (configure.ac): Likewise.
81720         Reported by Simon Josefsson.
81722 2009-05-20  Simon Josefsson  <simon@josefsson.org>
81724         * tests/test-glob.c: Include string.h for strcmp prototype.
81726 2009-05-20  Simon Josefsson  <simon@josefsson.org>
81728         * modules/getdelim (Depends-on): Add explicit stdint, although it
81729         was implicitly already pulled in via realloc-posix.
81730         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
81732 2009-05-20  Simon Josefsson  <simon@josefsson.org>
81734         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
81735         G. Christensen" <tgc@jupiterrise.com>.
81736         * m4/sys_socket_h.m4: Check for sa_family_t.
81737         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
81738         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
81739         * tests/test-sys_socket.c: Check that sa_family_t works.
81741 2009-05-18  Eric Blake  <ebb9@byu.net>
81743         maint.mk: allow gnulib_dir in VPATH build
81744         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
81746 2009-05-15  Jim Meyering  <meyering@redhat.com>
81748         maint.mk: Give gnulib_dir a default definition.
81749         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
81750         Thus, most packages no longer need to specify this variable in cfg.mk
81752 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
81754         rename.m4: fix typos that would make non-mingw cross-configure fail
81755         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
81757 2009-05-13  Eric Blake  <ebb9@byu.net>
81759         mmap-anon: avoid out-of-order autoconf expansion
81760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
81761         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
81762         * modules/memchr-tests (Depends-on): Add extensions.
81763         * modules/memchr2-tests (Depends-on): Add extensions.
81764         * modules/memcmp-tests (Depends-on): Add extensions.
81765         * modules/memmem-tests (Depends-on): Add extensions.
81766         * modules/memrchr-tests (Depends-on): Add extensions.
81768 2009-05-13  Bruno Haible  <bruno@clisp.org>
81770         Make some tests ISO C 99 compliant.
81771         * tests/zerosize-ptr.h: New file.
81772         * tests/test-memchr.c: Include zerosize-ptr.h.
81773         (main): Use a zero-size object pointer instead of NULL.
81774         * tests/test-memchr2.c: Include zerosize-ptr.h.
81775         (main): Use a zero-size object pointer instead of NULL.
81776         * tests/test-memcmp.c: Include zerosize-ptr.h.
81777         (main): Use a zero-size object pointer instead of NULL.
81778         * tests/test-memmem.c: Include zerosize-ptr.h.
81779         (main): Use a zero-size object pointer instead of NULL.
81780         * tests/test-memrchr.c: Include zerosize-ptr.h.
81781         (main): Use a zero-size object pointer instead of NULL.
81782         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
81783         m4/mmap-anon.m4.
81784         (Depends-on): Add getpagesize.
81785         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
81786         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
81787         m4/mmap-anon.m4.
81788         (Depends-on): Add getpagesize.
81789         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
81790         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
81791         m4/mmap-anon.m4.
81792         (Depends-on): Add getpagesize.
81793         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
81794         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
81795         m4/mmap-anon.m4.
81796         (Depends-on): Add getpagesize.
81797         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
81798         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
81799         m4/mmap-anon.m4.
81800         (Depends-on): Add getpagesize.
81801         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
81803 2009-05-12  Bruno Haible  <bruno@clisp.org>
81805         Tests for module 'alignof'.
81806         * modules/alignof-tests: New file.
81807         * tests/test-alignof.c: New file.
81809 2009-05-12  Bruno Haible  <bruno@clisp.org>
81811         Fix alignof macro.
81812         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
81813         vendor compilers that are always correct.
81815 2009-05-12  Bruno Haible  <bruno@clisp.org>
81817         Make the MAP_ANONYMOUS detection work on HP-UX 11.
81818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
81819         not whether its fully works.
81821 2009-05-12  Bruno Haible  <bruno@clisp.org>
81823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
81825 2009-05-12  Jim Meyering  <meyering@redhat.com>
81827         * top/maint.mk: Adjust backslash alignment.
81829 2009-05-11  Simon Josefsson  <simon@josefsson.org>
81831         * top/maint.mk: Make $(srcdir)/build-aux configurable.
81833 2009-05-11  Eric Blake  <ebb9@byu.net>
81835         argp: avoid undefined behavior
81836         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
81837         macros.
81839 2009-05-08  Simon Josefsson  <simon@josefsson.org>
81841         * tests/test-vc-list-files-git.sh: Do git config of user.email and
81842         user.name to prevent git commit from complaining.
81844 2009-05-10  Bruno Haible  <bruno@clisp.org>
81846         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
81847         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
81848         it rewrites every file name only once.
81849         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
81851 2009-05-08  Bruno Haible  <bruno@clisp.org>
81853         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
81854         instead of 'max'.
81856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
81858         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
81859         sockaddr_storage test.
81861 2009-05-07  Simon Josefsson  <simon@josefsson.org>
81863         * modules/sys_socket (Makefile.am): Substitute
81864         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
81865         * m4/sys_socket_h.m4: Check for sockaddr_storage.
81866         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
81867         * tests/test-sys_socket.c: Check sockaddr_storage.
81869 2009-05-08  Bruno Haible  <bruno@clisp.org>
81871         New module 'alignof'.
81872         * lib/alignof.h: New file.
81873         * modules/alignof: New file.
81875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81876             Bruno Haible  <bruno@clisp.org>
81878         Fix test-file-has-acl on FreeBSD.
81879         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
81880         mask is implicitly added.
81881         * tests/test-file-has-acl.c: Include <signal.h>.
81882         (main): Terminate the test after 5 seconds.
81883         * modules/acl-tests (configure.ac): Check for alarm function.
81885 2009-05-04  Bruno Haible  <bruno@clisp.org>
81887         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
81888         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
81889         * modules/errno (configure.ac): Drop AC_REQUIRE.
81890         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
81891         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
81893 2009-05-04  Simon Josefsson  <simon@josefsson.org>
81895         * modules/glob-tests: New module.
81896         * tests/test-glob.c: Add.
81898 2009-05-04  Simon Josefsson  <simon@josefsson.org>
81900         * modules/fnmatch-tests: New module.
81901         * tests/test-fnmatch.c: Add.
81903 2009-05-04  Eric Blake  <ebb9@byu.net>
81905         maint: make the new no-submodule-changes rule VPATH-safe
81906         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
81908 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81909             Bruno Haible  <bruno@clisp.org>
81911         acl: Fix infinite loop on FreeBSD.
81912         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
81913         of return value from acl_get_entry.
81914         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
81915         Likewise.
81917 2009-05-03  Bruno Haible  <bruno@clisp.org>
81919         * lib/acl-internal.h (acl_entries): Clarify return value.
81920         * lib/acl_entries.c (acl_entries): Likewise.
81922 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81924         Bug fix in acl module.
81925         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
81927 2009-05-03  Bruno Haible  <bruno@clisp.org>
81929         Create gperf-generated file in the source dir, not in the build dir.
81930         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
81931         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
81932         * modules/unicase/locale-language (unicase/locale-languages.h):
81933         Likewise.
81934         * modules/unicase/special-casing (unicase/special-casing-table.h):
81935         Likewise.
81936         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
81937         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
81938         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
81939         Reported by Ralf Wildenhues.
81941 2009-05-03  Bruno Haible  <bruno@clisp.org>
81943         * modules/fnmatch (Description, configure.ac): Taken from
81944         fnmatch-posix.
81945         * modules/fnmatch-posix: Turn into a symbolic reference to the
81946         'fnmatch' module, and deprecate.
81947         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
81949 2009-05-03  Bruno Haible  <bruno@clisp.org>
81951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
81952         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
81953         Reported by Ralf Wildenhues.
81955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
81957         * m4/fnmatch.m4: Fix fnmatch re-define.
81959 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81961         priv-set: new module and tests; adapt write-any-file
81962         * lib/priv-set.c: New file.
81963         * lib/priv-set.h: New file.
81964         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
81965         * lib/write-any-file.c: Simplify by using priv-set module.
81966         * m4/priv-set.m4: New file.
81967         * modules/priv-set: New file.
81968         * modules/unlinkdir: Add dependency on priv-set module.
81969         * modules/write-any-file: Likewise.
81971         Tests for module 'priv-set'.
81972         * modules/priv-set-tests: New file.
81973         * tests/test-priv-set.c: New file.
81975 2009-05-03  Jim Meyering  <meyering@redhat.com>
81976             Bruno Haible  <bruno@clisp.org>
81978         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
81979         use the converted UTF-8 variant of the name instead.
81981 2009-05-03  Jim Meyering  <meyering@redhat.com>
81983         tests: tighten some getdate tests
81984         * tests/test-getdate.c (main): Tighten tests: require equality,
81985         not just greater than.  Set TZ envvar to UTC0.
81987 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
81989         getdate: correctly interpret "next monday" when run on a Monday
81990         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
81991         that e.g., "next tues" (when run on a tuesday) results in a date
81992         that is one week in the future, and not today's date.
81993         I.e., add a week when the wday is the same as the current one.
81994         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
81995         and earlier by Martin Bernreuther and Jan Minář.
81996         * tests/test-getdate.c (main): Check that "next DAY" is always in
81997         the future and that "last DAY" is always in the past.
81999 2009-05-02  Jim Meyering  <meyering@redhat.com>
82001         build: ensure that a release build fails when a submodule is unclean
82002         * top/maint.mk (no-submodule-changes): New rule.
82003         (alpha beta major): Depend on it.
82005 2009-05-02  Bruno Haible  <bruno@clisp.org>
82007         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
82008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
82009         shell variable gl_fnmatch_required to detect which variant is
82010         requested.
82011         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
82012         gl_FUNC_FNMATCH_POSIX.
82013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
82014         exclude fnmatch-posix.
82016 2009-05-02  Bruno Haible  <bruno@clisp.org>
82018         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
82019         * modules/mbsrtowcs (License): Change to LGPLv2+.
82020         * modules/strnlen1 (License): Likewise.
82021         Reported by Simon Josefsson.
82023 2009-05-02  Bruno Haible  <bruno@clisp.org>
82025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
82026         "cross".
82027         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
82028         gnulib-tool was called with option --source-base=lib.
82030 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82032         Use automake *-local hooks without commands, for extensibility.
82033         * modules/localcharset (Makefile.am): Rename install-exec-local
82034         rule to install-exec-localcharset, and make it a prerequisite of
82035         install-exec-local.  Likewise, rename the uninstall-local rule to
82036         uninstall-localcharset, and make it a prerequisite of the former.
82038 2009-05-01  Bruno Haible  <bruno@clisp.org>
82040         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
82041         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82042         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
82043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
82044         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
82045         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82046         m4/locale-zh.m4, m4/codeset.m4.
82048         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82049         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
82050         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82051         m4/locale-zh.m4.
82053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
82054         REPLACE_WCRTOMB if mbstate_t must be replaced.
82055         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
82056         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
82058 2009-05-01  Bruno Haible  <bruno@clisp.org>
82060         Avoid compiler warnings when redefining macros defined by <libintl.h>.
82061         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
82062         dngettext, dcngettext, textdomain, bindtextdomain,
82063         bind_textdomain_codeset): Undefine before redefining.
82065 2009-04-30  Bruno Haible  <bruno@clisp.org>
82067         Fix bug introduced on 2009-04-25.
82068         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
82069         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
82070         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
82071         is defined.
82072         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
82073         is defined.
82074         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
82075         is defined.
82076         Reported by Elbert_Pol <elbert.pol@gmail.com>.
82078 2009-04-28  Bruno Haible  <bruno@clisp.org>
82080         Comment tweaks.
82081         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
82082         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
82083         * lib/unicase.h (u*_casexfrm): Likewise.
82084         Reported by Paolo Bonzini.
82086 2009-04-28  Bruno Haible  <bruno@clisp.org>
82088         Fix a compilation error.
82089         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
82090         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82091         Reported by Jim Meyering.
82093 2009-04-27  Bruno Haible  <bruno@clisp.org>
82095         New module 'libunistring'.
82096         * modules/libunistring: New file.
82097         * m4/libunistring.m4: New file.
82098         * MODULES.html.sh (Unicode string functions): Add it.
82100 2009-04-27  Eric Blake  <ebb9@byu.net>
82102         maint.mk: allow package-specific header to provide <config.h>
82103         * top/maint.mk (sc_require_config_h): New variable.
82104         (sc_require_config_h, sc_require_config_h_first): Use it.
82106 2009-04-27  Simon Josefsson  <simon@josefsson.org>
82108         * top/maint.mk (sc_avoid_if_before_free): Except
82109         useless-if-before-free script.
82111 2009-04-27  Eric Blake  <ebb9@byu.net>
82113         maintainer-makefile: depend on all required helper scripts
82114         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
82115         useless-if-before-free.
82116         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
82117         version, rather than assuming gnulib checkout is available.
82118         Reported by Simen Josefsson.
82120 2009-04-26  Bruno Haible  <bruno@clisp.org>
82122         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
82123         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
82124         "../" or "..".
82126 2009-04-26  Bruno Haible  <bruno@clisp.org>
82128         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
82129         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
82130         AC_LIB_HAVE_LINKFLAGS.
82132 2009-04-26  Bruno Haible  <bruno@clisp.org>
82134         Simplify calling convention of u*_conv_from_encoding.
82135         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
82136         u32_conv_from_encoding): Expect a resultbuf argument and return the
82137         result directly as a pointer.
82138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
82139         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
82140         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
82141         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
82142         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
82143         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82144         Update.
82145         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
82146         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
82147         * lib/vasnprintf.c (VASNPRINTF): Update.
82148         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
82149         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
82150         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
82151         * NEWS: Mention the change.
82153 2009-04-26  Bruno Haible  <bruno@clisp.org>
82155         Simplify calling convention of u*_conv_to_encoding.
82156         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
82157         u32_conv_to_encoding): Expect a resultbuf argument and return the
82158         result directly as a pointer.
82159         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82160         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
82161         freeing scaled_offsets if mem_iconveha failed.
82162         * lib/unicase/u-casexfrm.h (FUNC): Update.
82163         * lib/uninorm/u-normxfrm.h (FUNC): Update.
82164         * lib/vasnprintf.c (VASNPRINTF): Update.
82165         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
82166         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
82167         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
82168         * NEWS: Mention the change.
82170 2009-04-26  Bruno Haible  <bruno@clisp.org>
82172         Avoid test failures on AIX and OSF/1.
82173         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
82174         malloc(0).
82175         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82176         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82177         Likewise.
82178         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
82179         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
82180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
82181         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
82182         * doc/posix-functions/malloc.texi: Document the portability problem
82183         related to malloc(0).
82185 2009-04-26  Bruno Haible  <bruno@clisp.org>
82187         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
82188         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
82189         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
82191 2009-04-25  Bruno Haible  <bruno@clisp.org>
82193         Avoid link error when creating a namespace clean library.
82194         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
82195         as macro with arguments if already defined as an alias.
82196         * lib/signbitf.c (gl_signbitf): Don't undefine.
82197         * lib/signbitd.c (gl_signbitd): Don't undefine.
82198         * lib/signbitl.c (gl_signbitl): Don't undefine.
82200 2009-04-25  Jim Meyering  <meyering@redhat.com>
82202         vc-list-files: fix another quoting bug
82203         * build-aux/vc-list-files: Avoid sed backslash expansion
82204         of pathological directory names.
82206 2009-04-25  Eric Blake  <ebb9@byu.net>
82208         vc-list-files: fix shell quoting error
82209         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
82210         timestamp.
82212 2009-04-25  Jim Meyering  <meyering@redhat.com>
82214         vc-list-files: restore lost functionality with subdir argument
82215         * build-aux/vc-list-files: When given a non-"." sub-directory
82216         argument, substitute the $dir/ prefix back onto each resulting name.
82217         Otherwise, coreutils' root_tests check would fail.
82219 2009-04-24  Eric Blake  <ebb9@byu.net>
82221         vc-list-files: ignore git symlinks
82222         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
82223         than ls-files, to ignore git symlinks.
82225         maint.mk: import improvements from m4
82226         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
82227         (move_if_change): Delete unused macro.
82228         (news-date-check, vc-diff-check): Support VPATH builds.
82229         (announcement): Likewise.  Split --bootstrap-tools list...
82230         (boostrap-tools): ...into separate list, which can be overridden
82231         in cfg.mk.
82232         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
82233         requiring dependency on useless-if-before-free module.
82234         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
82235         Support VPATH builds.
82237 2009-04-24  Jim Meyering  <meyering@redhat.com>
82239         maint.mk: remove coreutils-specific rules and variables
82240         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
82241         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
82242         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
82244         maint.mk: remove obsolete rule
82245         * top/maint.mk (rel-check): Remove rule.
82246         (WGET, WGETFLAGS): Remove now-unused variables.
82248 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82250         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
82251         consistency.
82253         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
82254         '$(PATH_SEPARATOR)' instead of ':'.
82256 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82258         * lib/getopt1.c (main): Use 'const' for static array.
82260 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82262         * top/maint.mk: Sync with coreutils.
82263         * NEWS: Explain incompatibilities.
82265 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82266             Bruno Haible  <bruno@clisp.org>
82268         Fix cross-compilation results.
82269         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
82270         statement, as third argument of AC_TRY_RUN.
82271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
82272         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
82273         Likewise.
82274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
82275         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
82276         Likewise.
82277         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
82278         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
82279         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
82281 2009-04-20  Bruno Haible  <bruno@clisp.org>
82283         Avoid test failure on mingw.
82284         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
82286 2009-04-20  Bruno Haible  <bruno@clisp.org>
82288         Avoid compilation error on mingw.
82289         * modules/localename-tests (Depends-on): Add locale.
82291 2009-04-19  Bruno Haible  <bruno@clisp.org>
82293         Support for building a shared library on Windows platforms.
82294         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
82295         (main): Test the presence of UNINORM_NFC here.
82296         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
82297         (main): Test the presence of UNINORM_NFD here.
82298         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
82299         (main): Test the presence of UNINORM_NFKC here.
82300         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
82301         (main): Test the presence of UNINORM_NFKD here.
82303 2009-04-19  Bruno Haible  <bruno@clisp.org>
82305         Avoid a compiler warning.
82306         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
82307         Change type of variable 'sequence'.
82309 2009-04-19  Bruno Haible  <bruno@clisp.org>
82311         * modules/configmake (Makefile.am): When the contents of configmake.h
82312         does not change, arrange to preserve its modification time.
82314 2009-04-17  Simon Josefsson  <simon@josefsson.org>
82316         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
82317         gettext domain.
82319 2009-04-16  Jim Meyering  <meyering@redhat.com>
82321         useless-if-before-free: improve conversion code
82322         * build-aux/useless-if-before-free: Adjust code-in-comment to match
82323         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
82325 2009-04-14  Bruno Haible  <bruno@clisp.org>
82327         * modules/fcntl (Depends-on): Add extensions.
82328         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
82330 2009-04-12  Ben Pfaff  <blp@gnu.org>
82332         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
82333         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
82335 2009-03-20  Ben Pfaff  <blp@gnu.org>
82337         Make rename replace existing destinations on Windows.
82338         * m4/rename.m4: Add test for Mingw.
82339         * lib/rename.c: Add rename replacement that uses MoveFileEx with
82340         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
82341         * doc/posix-functions/rename.texi: Document.
82343 2009-04-10  Bruno Haible  <bruno@clisp.org>
82345         New include file "iconveh.h".
82346         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
82347         * lib/striconveh.h: Include it.
82348         (enum iconv_ilseq_handler): Remove definition.
82349         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
82350         striconveh.h.
82351         * lib/striconveha.c: Include striconveh.h.
82352         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
82353         * modules/striconveh (Files): Add lib/iconveh.h.
82354         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
82355         lib/striconveh.h.
82357 2009-04-10  Bruno Haible  <bruno@clisp.org>
82359         * lib/uniconv.h: Update comment.
82361 2009-04-10  Bruno Haible  <bruno@clisp.org>
82363         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
82364         always.
82365         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82366         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82367         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82368         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
82369         "unistring-notinline.h", so that the function gets defined always.
82370         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82371         * lib/unistr/u8-uctomb.c: Likewise.
82372         * lib/unistr/u16-mbtouc.c: Likewise.
82373         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82374         * lib/unistr/u16-uctomb.c: Likewise.
82375         * lib/unistr/u32-mbtouc.c: Likewise.
82376         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82377         * lib/unistr/u32-uctomb.c: Likewise.
82379 2009-04-10  Bruno Haible  <bruno@clisp.org>
82381         Mark 'utime' obsolete.
82382         * modules/utime (Status, Notice): New sections.
82383         Suggested by Jim Meyering.
82385         Fix cross-compile guess for utime test.
82386         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
82387         autoconf.
82388         * doc/posix-functions/utime.texi: Give more precisions.
82389         Reported by Jan <ipif@ymail.com>.
82391 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
82393         filevercmp: correct today's change
82394         * lib/filevercmp.c: Also handle coreutils' test inputs.
82395         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
82397         Fix regression in 'filevercmp' module. Thanks Sven Joachim
82398         for reporting it.
82399         * lib/filevercmp.c: Special handle for "", "." and "..".
82400         * tests/test-filevercmp.c: Enlarge the set suite.
82402 2009-04-07  Jim Meyering  <meyering@redhat.com>
82404         useless-if-before-free: show how to remove braced useless free, too
82405         * build-aux/useless-if-before-free: still only in a comment, though.
82407 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
82409         maint.mk: import changes to syntax-check macros from coreutils
82410         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
82411         Use them in the relevant macros.
82413 2009-04-06  Bruno Haible  <bruno@clisp.org>
82415         Fix unportable use of bit-fields.
82416         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
82417         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
82418         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
82420 2009-04-06  Bruno Haible  <bruno@clisp.org>
82422         Avoid test failures on AIX and OSF/1.
82423         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
82424         that malloc(0) = NULL.
82425         * tests/unicase/test-u8-tolower.c (check): Likewise.
82426         * tests/unicase/test-u8-totitle.c (check): Likewise.
82427         * tests/unicase/test-u8-toupper.c (check): Likewise.
82428         * tests/unicase/test-u16-casefold.c (check): Likewise.
82429         * tests/unicase/test-u16-tolower.c (check): Likewise.
82430         * tests/unicase/test-u16-totitle.c (check): Likewise.
82431         * tests/unicase/test-u16-toupper.c (check): Likewise.
82432         * tests/unicase/test-u32-casefold.c (check): Likewise.
82433         * tests/unicase/test-u32-tolower.c (check): Likewise.
82434         * tests/unicase/test-u32-totitle.c (check): Likewise.
82435         * tests/unicase/test-u32-toupper.c (check): Likewise.
82436         * tests/uninorm/test-u8-nfc.c (check): Likewise.
82437         * tests/uninorm/test-u8-nfd.c (check): Likewise.
82438         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
82439         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
82440         * tests/uninorm/test-u16-nfc.c (check): Likewise.
82441         * tests/uninorm/test-u16-nfd.c (check): Likewise.
82442         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
82443         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
82444         * tests/uninorm/test-u32-nfc.c (check): Likewise.
82445         * tests/uninorm/test-u32-nfd.c (check): Likewise.
82446         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
82447         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
82449 2009-04-05  Bruno Haible  <bruno@clisp.org>
82451         Work around an autoconf limitation.
82452         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
82453         comment line if it would be longer than 3 KB.
82455 2009-04-05  Bruno Haible  <bruno@clisp.org>
82457         Avoid test failure with libiconv-1.13.
82458         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
82459         of the expected test results.
82461 2009-04-05  Bruno Haible  <bruno@clisp.org>
82463         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
82464         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
82465         that it should be installed.
82467 2009-04-05  Bruno Haible  <bruno@clisp.org>
82469         * gnulib-tool: New option --copy-file.
82470         (func_usage): Document it.
82471         (func_dest_tmpfilename): Moved out of func_import.
82472         (func_add_file, func_update_file): New functions, extracted from
82473         func_import.
82474         (func_import): Update.
82476 2009-04-05  Karl Berry  <karl@gnu.org>
82478         * README: prominently mention gnulib-tool.
82479         Rearrange sections so getting the code is near the top.
82481 2009-04-05  Bruno Haible  <bruno@clisp.org>
82483         * lib/unicase.h: Mention u*_cmp2.
82484         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
82485         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
82486         * lib/unicase/ulc-casecmp.c: Likewise.
82487         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
82488         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
82489         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
82490         unistr/u8-cmp.
82491         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
82492         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
82493         unistr/u16-cmp.
82494         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
82495         unistr/u32-cmp.
82497         * lib/uninorm.h: Mention u*_cmp2.
82498         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
82499         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
82500         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
82501         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
82502         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
82503         unistr/u8-cmp.
82504         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
82505         unistr/u16-cmp.
82506         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
82507         unistr/u32-cmp.
82509         New module 'unistr/u32-cmp2'.
82510         * lib/unistr/u32-cmp2.c: New file.
82511         * modules/unistr/u32-cmp2: New file.
82513         New module 'unistr/u16-cmp2'.
82514         * lib/unistr/u16-cmp2.c: New file.
82515         * modules/unistr/u16-cmp2: New file.
82517         New module 'unistr/u8-cmp2'.
82518         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
82519         * lib/unistr/u8-cmp2.c: New file.
82520         * lib/unistr/u-cmp2.h: New file.
82521         * modules/unistr/u8-cmp2: New file.
82523 2009-04-05  Bruno Haible  <bruno@clisp.org>
82525         * lib/unictype.h (uc_property_is_valid): New macro.
82526         * tests/unictype/test-pr_byname.c (main): Use it.
82528         * lib/unistr.h: Doc fixes.
82529         * lib/uniconv.h: Doc fixes.
82530         * lib/unictype.h: Doc fixes.
82532 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
82534         Port coreutils 7.2 to Solaris 8.
82536         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
82537         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
82538         for Solaris 8.  This is a bit of a hack, as it means it's the
82539         caller's responsibility to add -lnsl if needed, but most likely it
82540         won't be needed since only getaddrinfo uses this and getaddrinfo
82541         isn't needed on Solaris 8.
82543         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
82544         problem to Solaris 8 encountered with coreutils 7.2, which
82545         resulted in a message "fnmatch.c:292: warning: passing argument 4
82546         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
82547         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
82549 2009-04-03  Simon Josefsson  <simon@josefsson.org>
82551         * m4/ld-version-script.m4: Add FIXME comment.
82553 2009-04-02  Simon Josefsson  <simon@josefsson.org>
82555         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
82556         SOVERSION variable.
82558 2009-04-02  Bruno Haible  <bruno@clisp.org>
82560         * Makefile (info, html, dvi, pdf): Combine the rules.
82561         Suggested by Jim Meyering.
82563 2009-04-01  Bruno Haible  <bruno@clisp.org>
82565         * Makefile (info, html, dvi, pdf): New targets.
82566         Reported by Reuben Thomas <rrt@sc3d.org>.
82568 2009-04-01  Bruno Haible  <bruno@clisp.org>
82570         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
82571         can be put into PATH.
82572         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
82574 2009-04-01  Bruno Haible  <bruno@clisp.org>
82576         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
82578 2009-04-01  Bruno Haible  <bruno@clisp.org>
82580         Rename module 'visibility'.
82581         * modules/lib-symbol-visibility: Renamed from modules/visibility.
82582         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
82583         * doc/gnulib.texi: Update.
82584         * MODULES.html.sh (Misc): Update.
82585         * NEWS: Mention the change.
82587 2009-04-01  Simon Josefsson  <simon@josefsson.org>
82589         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
82590         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
82591         Eric Blake <ebb9@byu.net> for review.
82592         * MODULES.html.sh: Add lib-msvc-compat.
82593         * doc/gnulib.texi: Link to new section.
82594         * m4/ld-output-def.m4: New file.
82595         * doc/ld-output-def.texi: New file.
82597 2009-04-01  Simon Josefsson  <simon@josefsson.org>
82599         Rename ld-version-script to lib-symbol-versions.  Suggested by
82600         Bruno Haible <bruno@clisp.org>.
82601         * modules/ld-version-script: Renamed to lib-symbol-versions.
82602         * doc/ld-version-script.texi: Fix module name.
82603         * MODULES.html.sh: Add lib-symbol-versions.
82605 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82607         * modules/u64-tests: New file.
82608         * tests/test-u64.c: New file.
82610 2009-03-04  Simon Josefsson  <simon@josefsson.org>
82612         * MODULES.html.sh: Mention u64.
82613         * modules/u64: New module.
82614         * modules/crypto/sha512: Depend on u64 module instead of providing
82615         u64.h.
82617 2009-03-27  Eric Blake  <ebb9@byu.net>
82619         test-strerror: make debugging EAI_SYSTEM easier
82620         * modules/getaddrinfo-tests (Depends-on): Add strerror.
82621         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
82622         failure was EAI_SYSTEM.
82624 2009-03-25  Bruno Haible  <bruno@clisp.org>
82626         Fix a problem with --enable-relocatable on Solaris 7.
82627         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
82628         since 2008-02-24.
82630 2009-03-25  Eric Blake  <ebb9@byu.net>
82632         test-sockets: avoid gcc warning
82633         * tests/test-sockets.c (main): Silence compiler warning.
82635 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82637         New modules nproc, pthread, contributed by Glen Lenker.
82639         * MODULES.html.sh: Add pthread, nproc.
82640         * lib/nproc.c: New file.
82641         * lib/nproc.h: New file.
82642         * lib/pthread.in.h: New file.
82643         * m4/pthread.m4: New file.
82644         * modules/nproc: New file.
82645         * modules/pthread: New file.
82647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
82649         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
82650         New variable.
82652 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
82654         filevercmp: handle simple~ and numbered.~3~ backup suffixes
82655         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
82656         * tests/test-filevercmp.c: Add tests for backup suffixes.
82658 2009-03-24  Simon Josefsson  <simon@josefsson.org>
82660         * modules/stdlib (Depends-on): Add stdint, needed when defining
82661         struct random_data on, for example, HP-UX 10.20.  Reported by
82662         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
82666         * lib/readline.c (readline): Call fflush on stdout after printing
82667         prompt.
82669 2009-03-20  Bruno Haible  <bruno@clisp.org>
82671         Remove dependency from 'close' module to -lws2_32 on native Windows.
82672         * lib/close-hook.h: New file.
82673         * lib/close-hook.c: New file.
82674         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
82675         w32sock.h.
82676         (_gl_close_fd_maybe_socket): Remove function.
82677         (rpl_close): Invoke execute_all_close_hooks instead of
82678         _gl_close_fd_maybe_socket.
82679         * lib/sockets.c: Include close-hook.h, w32sock.h.
82680         (close_fd_maybe_socket): New function, essentially from lib/close.c.
82681         (close_sockets_hook): New variable.
82682         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
82683         (gl_sockets_cleanup): Unregister it.
82684         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
82685         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
82686         * modules/close-hook: New file.
82687         * modules/close (Files): Remove lib/w32sock.h.
82688         (Depends-on): Add close-hook.
82689         (Link): Remove section.
82690         * modules/sockets (Files): Add lib/w32sock.h.
82691         (Depends-on): Add close-hook.
82692         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
82693         invocation.
82694         * NEWS: Mention that LIB_CLOSE is gone.
82696 2009-03-23  Eric Blake  <ebb9@byu.net>
82698         signal-tests: test previous patch
82699         * tests/test-signal.c: New file.
82700         * modules/signal-tests: Likewise.
82702         signal.h: always support 'volatile sig_atomic_t'
82703         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
82704         (gl_SIGNAL_H_DEFAULTS): Add a default.
82705         * modules/signal (Makefile.am): Substitute if needed.
82706         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
82707         users can blindly add volatile.
82708         * doc/posix-headers/signal.texi (signal.h): Document it.
82709         Reported by Matthew Woehlke.
82711 2009-03-23  Jim Meyering  <meyering@redhat.com>
82713         pathmax: PATH_MAX: use pathconf only when available
82714         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
82715         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
82716         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
82717         This avoids a link failure in a PSP cross-compilation environment
82718         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
82720         * lib/vasnprintf.c (divide): Fix typo in comment.
82722 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82724         * gnulib-tool (func_filter_filelist): Fix comment.
82726 2009-03-20  Bruno Haible  <bruno@clisp.org>
82728         Make sockets.h self-contained.
82729         * lib/sockets.c: Include sockets.h first.
82730         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
82732 2009-03-19  Eric Blake  <ebb9@byu.net>
82734         doc: mention more functions added in cygwin 1.7.0
82735         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
82736         addition.
82737         * doc/posix-functions/log2f.texi: Likewise.
82739 2009-03-19  Jim Meyering  <meyering@redhat.com>
82741         fsusage: avoid syntax error due to statement-before-declaration
82742         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
82743         after all declarations.  Reported by Matthew Woehlke in
82744         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
82746 2009-03-18  Eric Blake  <ebb9@byu.net>
82748         build-aux/compile: sync from automake
82749         * build-aux/compile: New file, from automake.
82750         * config/srclist.txt: Mention build-aux/compile.
82752 2009-03-17  Bruno Haible  <bruno@clisp.org>
82754         * lib/git-merge-changelog.c: Fix typo in comment.
82755         Reported by Reuben Thomas <rrt@sc3d.org>.
82757 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
82759         * m4/regex.m4: update and improve help for
82760         --without-included-regex.
82762 2009-03-17  Simon Josefsson  <simon@josefsson.org>
82764         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
82765         failure on missing include files.
82767 2009-03-17  Eric Blake  <ebb9@byu.net>
82769         doc: mention more functions added in cygwin 1.7.0
82770         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
82771         addition.
82772         * doc/posix-functions/fwscanf.texi: Likewise.
82773         * doc/posix-functions/swprintf.texi: Likewise.
82774         * doc/posix-functions/swscanf.texi: Likewise.
82775         * doc/posix-functions/vfwprintf.texi: Likewise.
82776         * doc/posix-functions/vfwscanf.texi: Likewise.
82777         * doc/posix-functions/vswprintf.texi: Likewise.
82778         * doc/posix-functions/vswscanf.texi: Likewise.
82779         * doc/posix-functions/vwprintf.texi: Likewise.
82780         * doc/posix-functions/vwscanf.texi: Likewise.
82781         * doc/posix-functions/wcscasecmp.texi: Likewise.
82782         * doc/posix-functions/wcsdup.texi: Likewise.
82783         * doc/posix-functions/wcsftime.texi: Likewise.
82784         * doc/posix-functions/wcsncasecmp.texi: Likewise.
82785         * doc/posix-functions/wprintf.texi: Likewise.
82786         * doc/posix-functions/wscanf.texi: Likewise.
82787         * doc/glibc-functions/gethostbyname2.texi: Likewise.
82789 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82791         maint.mk: really add $(AM_MAKEFLAGS)
82792         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
82793         was inadvertently omitted in the last commit.
82794         Spotted by Bruno Haible.
82796         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
82797         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
82798         $(AM_MAKEFLAGS)' rather than plain `make'.
82800         gnulib-tool: execute $MAKE not make
82801         * gnulib-tool: Default $MAKE to 'make'.
82802         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
82803         than make.  Initialize $MAKE in the do-autobuild script.
82805         gnulib-tool: use $MAKE not make in generated files
82806         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
82807         make, in generated files.  Initialize $MAKE in the do-autobuild
82808         script.
82810         * top/GNUmakefile (_have-git-version-gen): Fix typo.
82812         GNUmakefile: disable parallelism only for multiple, recursive targets
82813         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
82814         additions in the Makefile.
82815         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
82816         by Automake.
82817         (.NOTPARALLEL): Only disable parallel builds if multiple targets
82818         are listed on the command line and at least one of them is
82819         listed in $(ALL_RECURSIVE_TARGETS).
82821 2009-03-14  Bruno Haible  <bruno@clisp.org>
82823         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
82824         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
82825         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
82826         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
82827         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
82828         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
82829         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
82830         unistr/u8-uctomb.
82831         * modules/unistr/u8-strchr (Depends-on): Likewise.
82832         * modules/unistr/u8-strrchr (Depends-on): Likewise.
82833         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
82834         unistr/u16-uctomb.
82835         * modules/unistr/u16-strchr (Depends-on): Likewise.
82836         * modules/unistr/u16-strrchr (Depends-on): Likewise.
82838 2009-03-12  Bruno Haible  <bruno@clisp.org>
82840         Work around select() bug on Interix 3.5.
82841         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
82842         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
82843         * m4/select.m4: New file.
82844         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
82845         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
82846         * modules/select (Files): Add m4/select.m4.
82847         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
82848         * modules/nanosleep (Depends-on): Add select.
82849         * modules/poll (Depends-on): Likewise.
82850         * doc/posix-functions/select.texi: Mention the Interix bug.
82851         Reported by Markus Duft <mduft@gentoo.org>.
82853         * lib/select.c: Renamed from lib/winsock-select.c.
82854         * modules/select (Files): Add lib/select.c, remove
82855         lib/winsock-select.c.
82856         (configure.ac): Update.
82858 2009-03-12  Jim Meyering  <meyering@redhat.com>
82860         avoid gcc warnings about unused macro definitions
82861         * lib/readtokens.c (STREQ): Remove unused definition.
82862         * lib/xmalloc.c (SIZE_MAX): Likewise.
82863         * lib/openat-die.c (N_): Likewise.
82864         * lib/mountlist.c (SIZE_MAX): Remove definition.
82865         Instead, include <stdint.h>.
82866         * lib/readutmp.c: Likewise.
82867         * modules/readutmp (Depends-on): Add stdint.
82868         * modules/mountlist (Depends-on): Add stdint.
82869         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
82871 2009-03-10  Bruno Haible  <bruno@clisp.org>
82873         Tests for module 'mbmemcasecoll'.
82874         * modules/mbmemcasecoll-tests: New file.
82875         * tests/test-mbmemcasecoll1.sh: New file.
82876         * tests/test-mbmemcasecoll2.sh: New file.
82877         * tests/test-mbmemcasecoll3.sh: New file.
82878         * tests/test-mbmemcasecoll.c: New file.
82880         New module 'mbmemcasecoll'.
82881         * lib/mbmemcasecoll.h: New file.
82882         * lib/mbmemcasecoll.c: New file.
82883         * modules/mbmemcasecoll: New file.
82885         * tests/test-mbmemcasecmp.h: New file, extracted from
82886         tests/test-mbmemcasecmp.c.
82887         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
82888         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
82889         (main): Update.
82890         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
82892 2009-03-09  Bruno Haible  <bruno@clisp.org>
82894         Tests for module 'mbmemcasecmp'.
82895         * modules/mbmemcasecmp-tests: New file.
82896         * tests/test-mbmemcasecmp1.sh: New file.
82897         * tests/test-mbmemcasecmp2.sh: New file.
82898         * tests/test-mbmemcasecmp3.sh: New file.
82899         * tests/test-mbmemcasecmp.c: New file.
82901         New module 'mbmemcasecmp'.
82902         * lib/mbmemcasecmp.h: New file.
82903         * lib/mbmemcasecmp.c: New file.
82904         * modules/mbmemcasecmp: New file.
82906 2009-03-09  Bruno Haible  <bruno@clisp.org>
82908         Tests for module 'unicase/ulc-casecoll'.
82909         * modules/unicase/ulc-casecoll-tests: New file.
82910         * tests/unicase/test-ulc-casecoll1.sh: New file.
82911         * tests/unicase/test-ulc-casecoll2.sh: New file.
82912         * tests/unicase/test-ulc-casecoll.c: New file.
82914         New module 'unicase/ulc-casecoll'.
82915         * lib/unicase.h (ulc_casecoll): New declaration.
82916         * lib/unicase/ulc-casecoll.c: New file.
82917         * modules/unicase/ulc-casecoll: New file.
82919         New module 'unicase/ulc-casexfrm'.
82920         * lib/unicase.h (ulc_casexfrm): New declaration.
82921         * lib/unicase/ulc-casexfrm.c: New file.
82922         * modules/unicase/ulc-casexfrm: New file.
82924 2009-03-09  Bruno Haible  <bruno@clisp.org>
82926         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
82927         invocations.
82929         * m4/mbscasecmp.m4: Remove file.
82930         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
82931         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
82933         * m4/mbscasestr.m4: Remove file.
82934         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
82935         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
82937         * m4/mbschr.m4: Remove file.
82938         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
82939         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
82941         * m4/mbscspn.m4: Remove file.
82942         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
82943         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
82945         * m4/mbslen.m4: Remove file.
82946         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
82947         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
82949         * m4/mbsncasecmp.m4: Remove file.
82950         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
82951         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
82953         * m4/mbsnlen.m4: Remove file.
82954         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
82955         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
82957         * m4/mbspbrk.m4: Remove file.
82958         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
82959         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
82961         * m4/mbspcasecmp.m4: Remove file.
82962         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
82963         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
82965         * m4/mbsrchr.m4: Remove file.
82966         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
82967         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
82969         * m4/mbssep.m4: Remove file.
82970         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
82971         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
82973         * m4/mbsspn.m4: Remove file.
82974         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
82975         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
82977         * m4/mbsstr.m4: Remove file.
82978         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
82979         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
82981         * m4/mbstok_r.m4: Remove file.
82982         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
82983         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
82985         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
82987         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
82988         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
82990         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
82992 2009-03-08  Bruno Haible  <bruno@clisp.org>
82994         Tests for module 'unicase/ulc-casecmp'.
82995         * modules/unicase/ulc-casecmp-tests: New file.
82996         * tests/unicase/test-ulc-casecmp1.sh: New file.
82997         * tests/unicase/test-ulc-casecmp2.sh: New file.
82998         * tests/unicase/test-ulc-casecmp.c: New file.
83000         New module 'unicase/ulc-casecmp'.
83001         * lib/unicase.h (ulc_casecmp): New declaration.
83002         * lib/unicase/ulc-casecmp.c: New file.
83003         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
83004         'const SRC_UNIT *'.
83005         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
83006         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
83007         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
83008         * modules/unicase/ulc-casecmp: New file.
83010         Tests for module 'unicase/u32-is-cased'.
83011         * modules/unicase/u32-is-cased-tests: New file.
83012         * tests/unicase/test-u32-is-cased.c: New file.
83014         Tests for module 'unicase/u16-is-cased'.
83015         * modules/unicase/u16-is-cased-tests: New file.
83016         * tests/unicase/test-u16-is-cased.c: New file.
83018         Tests for module 'unicase/u8-is-cased'.
83019         * modules/unicase/u8-is-cased-tests: New file.
83020         * tests/unicase/test-u8-is-cased.c: New file.
83021         * tests/unicase/test-is-cased.h: New file.
83023         New module 'unicase/u32-is-cased'.
83024         * lib/unicase/u32-is-cased.c: New file.
83025         * modules/unicase/u32-is-cased: New file.
83027         New module 'unicase/u16-is-cased'.
83028         * lib/unicase/u16-is-cased.c: New file.
83029         * modules/unicase/u16-is-cased: New file.
83031         New module 'unicase/u8-is-cased'.
83032         * lib/unicase/u8-is-cased.c: New file.
83033         * lib/unicase/u-is-cased.h: New file.
83034         * modules/unicase/u8-is-cased: New file.
83036         Tests for module 'unicase/u32-is-casefolded'.
83037         * modules/unicase/u32-is-casefolded-tests: New file.
83038         * tests/unicase/test-u32-is-casefolded.c: New file.
83040         Tests for module 'unicase/u16-is-casefolded'.
83041         * modules/unicase/u16-is-casefolded-tests: New file.
83042         * tests/unicase/test-u16-is-casefolded.c: New file.
83044         Tests for module 'unicase/u8-is-casefolded'.
83045         * modules/unicase/u8-is-casefolded-tests: New file.
83046         * tests/unicase/test-u8-is-casefolded.c: New file.
83047         * tests/unicase/test-is-casefolded.h: New file.
83049         New module 'unicase/u32-is-casefolded'.
83050         * lib/unicase/u32-is-casefolded.c: New file.
83051         * modules/unicase/u32-is-casefolded: New file.
83053         New module 'unicase/u16-is-casefolded'.
83054         * lib/unicase/u16-is-casefolded.c: New file.
83055         * modules/unicase/u16-is-casefolded: New file.
83057         New module 'unicase/u8-is-casefolded'.
83058         * lib/unicase/u8-is-casefolded.c: New file.
83059         * modules/unicase/u8-is-casefolded: New file.
83061         Tests for module 'unicase/u32-is-titlecase'.
83062         * modules/unicase/u32-is-titlecase-tests: New file.
83063         * tests/unicase/test-u32-is-titlecase.c: New file.
83065         Tests for module 'unicase/u16-is-titlecase'.
83066         * modules/unicase/u16-is-titlecase-tests: New file.
83067         * tests/unicase/test-u16-is-titlecase.c: New file.
83069         Tests for module 'unicase/u8-is-titlecase'.
83070         * modules/unicase/u8-is-titlecase-tests: New file.
83071         * tests/unicase/test-u8-is-titlecase.c: New file.
83072         * tests/unicase/test-is-titlecase.h: New file.
83074         New module 'unicase/u32-is-titlecase'.
83075         * lib/unicase/u32-is-titlecase.c: New file.
83076         * modules/unicase/u32-is-titlecase: New file.
83078         New module 'unicase/u16-is-titlecase'.
83079         * lib/unicase/u16-is-titlecase.c: New file.
83080         * modules/unicase/u16-is-titlecase: New file.
83082         New module 'unicase/u8-is-titlecase'.
83083         * lib/unicase/u8-is-titlecase.c: New file.
83084         * modules/unicase/u8-is-titlecase: New file.
83086         Tests for module 'unicase/u32-is-lowercase'.
83087         * modules/unicase/u32-is-lowercase-tests: New file.
83088         * tests/unicase/test-u32-is-lowercase.c: New file.
83090         Tests for module 'unicase/u16-is-lowercase'.
83091         * modules/unicase/u16-is-lowercase-tests: New file.
83092         * tests/unicase/test-u16-is-lowercase.c: New file.
83094         Tests for module 'unicase/u8-is-lowercase'.
83095         * modules/unicase/u8-is-lowercase-tests: New file.
83096         * tests/unicase/test-u8-is-lowercase.c: New file.
83097         * tests/unicase/test-is-lowercase.h: New file.
83099         New module 'unicase/u32-is-lowercase'.
83100         * lib/unicase/u32-is-lowercase.c: New file.
83101         * modules/unicase/u32-is-lowercase: New file.
83103         New module 'unicase/u16-is-lowercase'.
83104         * lib/unicase/u16-is-lowercase.c: New file.
83105         * modules/unicase/u16-is-lowercase: New file.
83107         New module 'unicase/u8-is-lowercase'.
83108         * lib/unicase/u8-is-lowercase.c: New file.
83109         * modules/unicase/u8-is-lowercase: New file.
83111         Tests for module 'unicase/u32-is-uppercase'.
83112         * modules/unicase/u32-is-uppercase-tests: New file.
83113         * tests/unicase/test-u32-is-uppercase.c: New file.
83115         Tests for module 'unicase/u16-is-uppercase'.
83116         * modules/unicase/u16-is-uppercase-tests: New file.
83117         * tests/unicase/test-u16-is-uppercase.c: New file.
83119         Tests for module 'unicase/u8-is-uppercase'.
83120         * modules/unicase/u8-is-uppercase-tests: New file.
83121         * tests/unicase/test-u8-is-uppercase.c: New file.
83122         * tests/unicase/test-is-uppercase.h: New file.
83124         New module 'unicase/u32-is-uppercase'.
83125         * lib/unicase/u32-is-uppercase.c: New file.
83126         * modules/unicase/u32-is-uppercase: New file.
83128         New module 'unicase/u16-is-uppercase'.
83129         * lib/unicase/u16-is-uppercase.c: New file.
83130         * modules/unicase/u16-is-uppercase: New file.
83132         New module 'unicase/u8-is-uppercase'.
83133         * lib/unicase/u8-is-uppercase.c: New file.
83134         * modules/unicase/u8-is-uppercase: New file.
83136         New module 'unicase/u32-is-invariant'.
83137         * lib/unicase/u32-is-invariant.c: New file.
83138         * modules/unicase/u32-is-invariant: New file.
83140         New module 'unicase/u16-is-invariant'.
83141         * lib/unicase/u16-is-invariant.c: New file.
83142         * modules/unicase/u16-is-invariant: New file.
83144         New module 'unicase/u8-is-invariant'.
83145         * lib/unicase/u8-is-invariant.c: New file.
83146         * lib/unicase/invariant.h: New file.
83147         * lib/unicase/u-is-invariant.h: New file.
83148         * modules/unicase/u8-is-invariant: New file.
83150         Tests for module 'unicase/u32-casecoll'.
83151         * modules/unicase/u32-casecoll-tests: New file.
83152         * tests/unicase/test-u32-casecoll.c: New file.
83154         Tests for module 'unicase/u16-casecoll'.
83155         * modules/unicase/u16-casecoll-tests: New file.
83156         * tests/unicase/test-u16-casecoll.c: New file.
83158         Tests for module 'unicase/u8-casecoll'.
83159         * modules/unicase/u8-casecoll-tests: New file.
83160         * tests/unicase/test-u8-casecoll.c: New file.
83162         New module 'unicase/u32-casecoll'.
83163         * lib/unicase/u32-casecoll.c: New file.
83164         * modules/unicase/u32-casecoll: New file.
83166         New module 'unicase/u16-casecoll'.
83167         * lib/unicase/u16-casecoll.c: New file.
83168         * modules/unicase/u16-casecoll: New file.
83170         New module 'unicase/u8-casecoll'.
83171         * lib/unicase/u8-casecoll.c: New file.
83172         * lib/unicase/u-casecoll.h: New file.
83173         * modules/unicase/u8-casecoll: New file.
83175         New module 'unicase/u32-casexfrm'.
83176         * lib/unicase/u32-casexfrm.c: New file.
83177         * modules/unicase/u32-casexfrm: New file.
83179         New module 'unicase/u16-casexfrm'.
83180         * lib/unicase/u16-casexfrm.c: New file.
83181         * modules/unicase/u16-casexfrm: New file.
83183         New module 'unicase/u8-casexfrm'.
83184         * lib/unicase/u8-casexfrm.c: New file.
83185         * lib/unicase/u-casexfrm.h: New file.
83186         * modules/unicase/u8-casexfrm: New file.
83188         Tests for module 'unicase/u32-casecmp'.
83189         * modules/unicase/u32-casecmp-tests: New file.
83190         * tests/unicase/test-u32-casecmp.c: New file.
83192         Tests for module 'unicase/u16-casecmp'.
83193         * modules/unicase/u16-casecmp-tests: New file.
83194         * tests/unicase/test-u16-casecmp.c: New file.
83196         Tests for module 'unicase/u8-casecmp'.
83197         * modules/unicase/u8-casecmp-tests: New file.
83198         * tests/unicase/test-u8-casecmp.c: New file.
83199         * tests/unicase/test-casecmp.h: New file.
83201         New module 'unicase/u32-casecmp'.
83202         * lib/unicase/u32-casecmp.c: New file.
83203         * modules/unicase/u32-casecmp: New file.
83205         New module 'unicase/u16-casecmp'.
83206         * lib/unicase/u16-casecmp.c: New file.
83207         * modules/unicase/u16-casecmp: New file.
83209         New module 'unicase/u8-casecmp'.
83210         * lib/unicase/u8-casecmp.c: New file.
83211         * lib/unicase/u-casecmp.h: New file.
83212         * modules/unicase/u8-casecmp: New file.
83214         Tests for module 'unicase/u32-casefold'.
83215         * modules/unicase/u32-casefold-tests: New file.
83216         * tests/unicase/test-u32-casefold.c: New file.
83218         Tests for module 'unicase/u16-casefold'.
83219         * modules/unicase/u16-casefold-tests: New file.
83220         * tests/unicase/test-u16-casefold.c: New file.
83222         Tests for module 'unicase/u8-casefold'.
83223         * modules/unicase/u8-casefold-tests: New file.
83224         * tests/unicase/test-u8-casefold.c: New file.
83226         New module 'unicase/u32-casefold'.
83227         * lib/unicase/u32-casefold.c: New file.
83228         * modules/unicase/u32-casefold: New file.
83230         New module 'unicase/u16-casefold'.
83231         * lib/unicase/u16-casefold.c: New file.
83232         * modules/unicase/u16-casefold: New file.
83234         New module 'unicase/u8-casefold'.
83235         * lib/unicase/u8-casefold.c: New file.
83236         * lib/unicase/u-casefold.h: New file.
83237         * modules/unicase/u8-casefold: New file.
83239         New module 'unicase/tocasefold'.
83240         * lib/unicase/casefold.h: New file.
83241         * lib/unicase/tocasefold.c: New file.
83242         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
83243         * modules/unicase/tocasefold: New file.
83245         Tests for module 'unicase/u32-totitle'.
83246         * modules/unicase/u32-totitle-tests: New file.
83247         * tests/unicase/test-u32-totitle.c: New file.
83249         Tests for module 'unicase/u16-totitle'.
83250         * modules/unicase/u16-totitle-tests: New file.
83251         * tests/unicase/test-u16-totitle.c: New file.
83253         Tests for module 'unicase/u8-totitle'.
83254         * modules/unicase/u8-totitle-tests: New file.
83255         * tests/unicase/test-u8-totitle.c: New file.
83257         New module 'unicase/u32-totitle'.
83258         * lib/unicase/u32-totitle.c: New file.
83259         * modules/unicase/u32-totitle: New file.
83261         New module 'unicase/u16-totitle'.
83262         * lib/unicase/u16-totitle.c: New file.
83263         * modules/unicase/u16-totitle: New file.
83265         New module 'unicase/u8-totitle'.
83266         * lib/unicase/u8-totitle.c: New file.
83267         * lib/unicase/u-totitle.h: New file.
83268         * modules/unicase/u8-totitle: New file.
83270         Tests for module 'unicase/u32-tolower'.
83271         * modules/unicase/u32-tolower-tests: New file.
83272         * tests/unicase/test-u32-tolower.c: New file.
83274         Tests for module 'unicase/u16-tolower'.
83275         * modules/unicase/u16-tolower-tests: New file.
83276         * tests/unicase/test-u16-tolower.c: New file.
83278         Tests for module 'unicase/u8-tolower'.
83279         * modules/unicase/u8-tolower-tests: New file.
83280         * tests/unicase/test-u8-tolower.c: New file.
83282         New module 'unicase/u32-tolower'.
83283         * lib/unicase/u32-tolower.c: New file.
83284         * modules/unicase/u32-tolower: New file.
83286         New module 'unicase/u16-tolower'.
83287         * lib/unicase/u16-tolower.c: New file.
83288         * modules/unicase/u16-tolower: New file.
83290         New module 'unicase/u8-tolower'.
83291         * lib/unicase/u8-tolower.c: New file.
83292         * modules/unicase/u8-tolower: New file.
83294         Tests for module 'unicase/u32-toupper'.
83295         * modules/unicase/u32-toupper-tests: New file.
83296         * tests/unicase/test-u32-toupper.c: New file.
83298         Tests for module 'unicase/u16-toupper'.
83299         * modules/unicase/u16-toupper-tests: New file.
83300         * tests/unicase/test-u16-toupper.c: New file.
83302         Tests for module 'unicase/u8-toupper'.
83303         * modules/unicase/u8-toupper-tests: New file.
83304         * tests/unicase/test-u8-toupper.c: New file.
83306         New module 'unicase/u32-toupper'.
83307         * lib/unicase/u32-toupper.c: New file.
83308         * modules/unicase/u32-toupper: New file.
83310         New module 'unicase/u16-toupper'.
83311         * lib/unicase/u16-toupper.c: New file.
83312         * modules/unicase/u16-toupper: New file.
83314         New module 'unicase/u8-toupper'.
83315         * lib/unicase/u8-toupper.c: New file.
83316         * modules/unicase/u8-toupper: New file.
83318         New module 'unicase/u32-casemap'.
83319         * lib/unicase/u32-casemap.c: New file.
83320         * modules/unicase/u32-casemap: New file.
83322         New module 'unicase/u16-casemap'.
83323         * lib/unicase/u16-casemap.c: New file.
83324         * modules/unicase/u16-casemap: New file.
83326         New module 'unicase/u8-casemap'.
83327         * lib/unicase/unicasemap.h: New file.
83328         * lib/unicase/u8-casemap.c: New file.
83329         * lib/unicase/u-casemap.h: New file.
83330         * modules/unicase/u8-casemap: New file.
83332         New module 'unicase/special-casing'.
83333         * lib/unicase/special-casing.h: New file.
83334         * lib/unicase/special-casing.c: New file.
83335         * lib/unicase/special-casing-table.gperf: New file, generated by
83336         gen-uni-tables.c.
83337         * modules/unicase/special-casing: New file.
83339         Tests for module 'unicase/locale-language'.
83340         * modules/unicase/locale-language-tests: New file.
83341         * tests/unicase/test-locale-language.sh: New file.
83342         * tests/unicase/test-locale-language.c: New file.
83344         New module 'unicase/locale-language'.
83345         * lib/unicase/locale-language.c: New file.
83346         * lib/unicase/locale-languages.gperf: New file.
83347         * modules/unicase/locale-language: New file.
83349         Generate more tables for case conversion and case folding.
83350         * lib/gen-uni-tables.c (SCC_*): New enum items.
83351         (struct special_casing_rule): New type.
83352         (casing_rules, num_casing_rules, allocated_casing_rules): New
83353         variables.
83354         (add_casing_rule, fill_casing_rules): New functions.
83355         (struct casefold_rule): New type.
83356         (casefolding_rules, num_casefolding_rules,
83357         allocated_casefolding_rules): New variables.
83358         (fill_casefolding_rules): New function.
83359         (unicode_casefold): New variable.
83360         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
83361         sort_casing_rules, output_casing_rules): New functions.
83362         (main): Accept to more arguments: SpecialCasing.txt and
83363         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
83364         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
83365         Output mapping for casefolding.
83367         * lib/unicase.h: Include stdbool.h, uninorm.h.
83368         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
83369         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
83370         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
83371         arguments.
83372         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
83373         resultp arguments.
83374         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
83375         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
83376         resultp arguments.
83377         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
83378         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
83379         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
83380         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
83381         declarations.
83382         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
83384 2009-03-08  Bruno Haible  <bruno@clisp.org>
83386         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
83387         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
83388         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
83389         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
83391 2009-03-07  Bruno Haible  <bruno@clisp.org>
83393         Adjust u*_normcmp, u*_normcoll API.
83394         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
83395         u16_normcoll, u32_normcoll): Change failure conventions.
83396         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
83397         errno and return -1.
83398         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
83400 2009-03-07  Bruno Haible  <bruno@clisp.org>
83402         Tests for module 'uninorm/u32-normcoll'.
83403         * modules/uninorm/u32-normcoll-tests: New file.
83404         * tests/uninorm/test-u32-normcoll.c: New file.
83406         Tests for module 'uninorm/u16-normcoll'.
83407         * modules/uninorm/u16-normcoll-tests: New file.
83408         * tests/uninorm/test-u16-normcoll.c: New file.
83410         Tests for module 'uninorm/u8-normcoll'.
83411         * modules/uninorm/u8-normcoll-tests: New file.
83412         * tests/uninorm/test-u8-normcoll.c: New file.
83414 2009-03-07  Bruno Haible  <bruno@clisp.org>
83416         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
83417         tests/uninorm/test-u32-normcmp.c.
83418         * tests/uninorm/test-u32-normcmp.c: Include it.
83419         (test_nonascii): New function, extracted from main. Add some more
83420         tests.
83421         (main): Invoke test_ascii and test_nonascii.
83422         * modules/uninorm/u32-normcmp-tests (Files): Add
83423         tests/uninorm/test-u32-normcmp.h.
83424         (Depends-on): Remove uninorm/u32-normcmp.
83426         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
83427         tests/uninorm/test-u16-normcmp.c.
83428         * tests/uninorm/test-u16-normcmp.c: Include it.
83429         (test_nonascii): New function, extracted from main. Add some more
83430         tests.
83431         (main): Invoke test_ascii and test_nonascii.
83432         * modules/uninorm/u16-normcmp-tests (Files): Add
83433         tests/uninorm/test-u16-normcmp.h.
83434         (Depends-on): Remove uninorm/u16-normcmp.
83436         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
83437         tests/uninorm/test-u8-normcmp.c.
83438         * tests/uninorm/test-u8-normcmp.c: Include it.
83439         (test_nonascii): New function, extracted from main. Add some more
83440         tests.
83441         (main): Invoke test_ascii and test_nonascii.
83442         * modules/uninorm/u8-normcmp-tests (Files): Add
83443         tests/uninorm/test-u8-normcmp.h.
83444         (Depends-on): Remove uninorm/u8-normcmp.
83446 2009-03-07  Bruno Haible  <bruno@clisp.org>
83448         New module 'uninorm/u32-normcoll'.
83449         * lib/uninorm/u32-normcoll.c: New file.
83450         * modules/uninorm/u32-normcoll: New file.
83452         New module 'uninorm/u16-normcoll'.
83453         * lib/uninorm/u16-normcoll.c: New file.
83454         * modules/uninorm/u16-normcoll: New file.
83456         New module 'uninorm/u8-normcoll'.
83457         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
83458         declarations.
83459         * lib/uninorm/u8-normcoll.c: New file.
83460         * lib/uninorm/u-normcoll.h: New file.
83461         * modules/uninorm/u8-normcoll: New file.
83463         New module 'uninorm/u32-normxfrm'.
83464         * lib/uninorm/u32-normxfrm.c: New file.
83465         * modules/uninorm/u32-normxfrm: New file.
83467         New module 'uninorm/u16-normxfrm'.
83468         * lib/uninorm/u16-normxfrm.c: New file.
83469         * modules/uninorm/u16-normxfrm: New file.
83471         New module 'uninorm/u8-normxfrm'.
83472         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
83473         declarations.
83474         * lib/uninorm/u8-normxfrm.c: New file.
83475         * lib/uninorm/u-normxfrm.h: New file.
83476         * modules/uninorm/u8-normxfrm: New file.
83478 2009-03-07  Bruno Haible  <bruno@clisp.org>
83480         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
83481         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
83482         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
83484 2009-03-07  Bruno Haible  <bruno@clisp.org>
83486         New module 'memxfrm'.
83487         * lib/memxfrm.h: New file.
83488         * lib/memxfrm.c: New file.
83489         * modules/memxfrm: New file.
83491 2009-03-07  Bruno Haible  <bruno@clisp.org>
83493         New module 'memcmp2'.
83494         * lib/memcmp2.h: New file.
83495         * lib/memcmp2.c: New file.
83496         * modules/memcmp2: New file.
83498 2009-03-07  Bruno Haible  <bruno@clisp.org>
83500         Tests for module 'uninorm/decomposing-form'.
83501         * modules/uninorm/decomposing-form-tests: New file.
83502         * tests/uninorm/test-decomposing-form.c: New file.
83504         New module 'uninorm/decomposing-form'.
83505         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
83506         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
83507         Add 'decomposing_variant' field.
83508         * lib/uninorm/decomposing-form.c: New file.
83509         * lib/uninorm/nfc.c (uninorm_nfc): Update.
83510         * lib/uninorm/nfd.c (uninorm_nfd): Update.
83511         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
83512         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
83513         * modules/uninorm/decomposing-form: New file.
83514         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
83515         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
83517 2009-03-07  Bruno Haible  <bruno@clisp.org>
83519         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
83520         strings.
83522 2009-03-06  Bruno Haible  <bruno@clisp.org>
83524         Tests for module 'uninorm/u32-normcmp'.
83525         * tests/uninorm/test-u32-normcmp.c: New file.
83526         * modules/uninorm/u32-normcmp-tests: New file.
83528         Tests for module 'uninorm/u16-normcmp'.
83529         * tests/uninorm/test-u16-normcmp.c: New file.
83530         * modules/uninorm/u16-normcmp-tests: New file.
83532         Tests for module 'uninorm/u8-normcmp'.
83533         * tests/uninorm/test-u8-normcmp.c: New file.
83534         * modules/uninorm/u8-normcmp-tests: New file.
83536         New module 'uninorm/u32-normcmp'.
83537         * lib/uninorm/u32-normcmp.c: New file.
83538         * modules/uninorm/u32-normcmp: New file.
83540         New module 'uninorm/u16-normcmp'.
83541         * lib/uninorm/u16-normcmp.c: New file.
83542         * modules/uninorm/u16-normcmp: New file.
83544         New module 'uninorm/u8-normcmp'.
83545         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
83546         declarations.
83547         * lib/uninorm/u8-normcmp.c: New file.
83548         * lib/uninorm/u-normcmp.h: New file.
83549         * modules/uninorm/u8-normcmp: New file.
83551 2009-03-06  Bruno Haible  <bruno@clisp.org>
83553         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
83554         Reported by Eric Blake.
83556 2009-03-06  Eric Blake  <ebb9@byu.net>
83557             Bruno Haible  <bruno@clisp.org>
83559         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
83560         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
83561         condition.
83562         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
83563         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
83564         condition.
83565         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
83567 2009-03-06  Eric Blake  <ebb9@byu.net>
83569         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
83570         to avoid compiler warnings.
83571         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
83573 2009-03-05  Bruno Haible  <bruno@clisp.org>
83575         * tests/test-ftell.c (main): Disable test beyond end of file on
83576         FreeMiNT.
83577         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
83579 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
83581         * lib/filevercmp.c: Move hidden files up in ordering.
83582         * tests/test-filevercmp.c: Add tests for hidden files.
83584 2009-03-04  Bruno Haible  <bruno@clisp.org>
83586         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
83587         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
83588         AM_CFLAGS.
83589         Reported by Simon Josefsson.
83591 2009-03-03  Bruno Haible  <bruno@clisp.org>
83593         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
83594         Reported by Simon Josefsson.
83596         * doc/ld-version-script.texi: Update node reference.
83598 2009-03-03  Bruno Haible  <bruno@clisp.org>
83600         * modules/visibility (License): Change to 'unlimited'.
83601         Suggested by Simon Josefsson.
83603 2009-03-03  Jim Meyering  <meyering@redhat.com>
83605         unlinkdir: cannot_unlink_dir may modify process state
83606         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
83607         it's neither thread-safe nor appropriate for use in a library.
83609 2009-03-03  Eric Blake  <ebb9@byu.net>
83611         test-closein: silence test under Darwin
83612         * tests/test-closein.sh: Ignore stderr from cat, since we don't
83613         care if it dies from EPIPE or EBADF.
83615 2009-03-03  Bruno Haible  <bruno@clisp.org>
83617         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
83618         earlier.
83619         * doc/visibility.texi: Fix @node and @section.
83621 2009-03-03  Simon Josefsson  <simon@josefsson.org>
83623         * doc/gnulib.texi: Link to sections for ld version script and
83624         visibility.
83625         * doc/visibility.texi: Add @node and @section.
83626         * modules/ld-version-script: New module.
83627         * m4/ld-version-script.m4: New file.
83628         * doc/ld-version-script.texi: New file.
83630 2009-03-02  David Lutterkort  <lutter@redhat.com>
83632         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
83633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83635 2009-03-02  Bruno Haible  <bruno@clisp.org>
83637         * doc/visibility.texi: Mention libtool's -export-symbols option.
83639 2009-03-02  Jim Meyering  <meyering@redhat.com>
83641         announce-gen: new option: --no-print-checksums
83642         * build-aux/announce-gen (usage): Describe it.
83643         (print_checksums): Print a newline here, not in the [*] footnote.
83644         (main): Honor it.
83646 2009-03-01  Bruno Haible  <bruno@clisp.org>
83648         Use socklen_t in the native Windows replacements prototypes.
83649         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
83650         instead of 'int'.
83651         * lib/getsockopt.c (rpl_getsockopt): Likewise.
83652         * lib/setsockopt.c (rpl_setsockopt): Likewise.
83653         * modules/getsockopt (Depends-on): Add socklen.
83654         * modules/setsockopt (Depends-on): Add socklen.
83656 2009-03-01  Bruno Haible  <bruno@clisp.org>
83658         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
83659         least 4.2.
83661 2009-03-01  Eric Blake  <ebb9@byu.net>
83662             Bruno Haible  <bruno@clisp.org>
83664         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
83665         error messages.
83666         * lib/wait-process.c (wait_subprocess): Omit error message about
83667         deadly signal sent to the child of termsigp != NULL.
83669 2009-03-01  Eric Blake  <ebb9@byu.net>
83671         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
83673 2009-03-01  Bruno Haible  <bruno@clisp.org>
83675         Avoid a gcc warning.
83676         * tests/test-sched.c (b): Make global.
83677         Reported by Eric Blake.
83679 2009-01-19  Martin Lambers  <marlam@marlam.de>
83681         Provide POSIX semantics for socket timeout options on W32.
83682         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
83683         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
83684         * modules/setsockopt: Depend on sys_time module for struct timeval.
83685         * modules/getsockopt: Depend on sys_time module for struct timeval.
83687 2009-03-01  Simon Josefsson  <simon@josefsson.org>
83689         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
83690         __USE_GNU, for consistency with netdb.in.h.
83691         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
83693 2009-03-01  Bruno Haible  <bruno@clisp.org>
83695         More support for FreeMiNT.
83696         * lib/fseeko.c (rpl_fseeko): Complete last commit.
83697         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
83699 2009-03-01  Bruno Haible  <bruno@clisp.org>
83701         More support for FreeMiNT.
83702         * lib/fpurge.c (fpurge): Correct last commit.
83703         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
83705 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83707         Fix unportable awk script in vc-list-files.
83708         * build-aux/vc-list-files: In the replacement awk script, use
83709         substr with a second argument of 1, not zero.
83710         Report by Simon Josefsson.
83712 2009-02-28  Bruno Haible  <bruno@clisp.org>
83714         More support for FreeMiNT.
83715         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
83716         to FreeMiNT today.
83717         * lib/fwriting.c (fwriting): Likewise.
83718         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
83720 2009-02-28  Bruno Haible  <bruno@clisp.org>
83722         * tests/test-freadseek.c (main): Disable test beyond end of file on
83723         FreeMiNT.
83724         * tests/test-ftello.c (main): Likewise.
83725         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
83727 2009-02-28  Bruno Haible  <bruno@clisp.org>
83729         Add tentative support for FreeMiNT.
83730         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
83731         * lib/fpurge.c (fpurge): Likewise.
83732         * lib/freadable.c (freadable): Likewise.
83733         * lib/freading.c (freading): Likewise.
83734         * lib/freadptr.c (freadptr): Likewise.
83735         * lib/freadseek.c (freadptrinc): Likewise.
83736         * lib/fseeko.c (rpl_fseeko): Likewise.
83737         * lib/fseterr.c (fseterr): Likewise.
83738         * lib/fwritable.c (fwritable): Likewise.
83739         * lib/fwriting.c (fwriting): Likewise.
83740         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
83741         Hourihane.
83742         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
83744 2009-02-28  Bruno Haible  <bruno@clisp.org>
83746         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
83747         SIGCHLD.
83748         Reported by Jim Meyering.
83750 2009-02-28  Bruno Haible  <bruno@clisp.org>
83752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
83753         Mention the results of these tests on various platforms.
83754         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
83755         order.
83756         * doc/posix-functions/printf.texi: Likewise.
83757         * doc/posix-functions/snprintf.texi: Likewise.
83758         * doc/posix-functions/sprintf.texi: Likewise.
83759         * doc/posix-functions/vfprintf.texi: Likewise.
83760         * doc/posix-functions/vprintf.texi: Likewise.
83761         * doc/posix-functions/vsnprintf.texi: Likewise.
83762         * doc/posix-functions/vsprintf.texi: Likewise.
83763         * doc/glibc-functions/obstack_printf.texi: Likewise.
83764         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
83766 2009-02-28  Bruno Haible  <bruno@clisp.org>
83768         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
83769         Reported by Loïc Minier <lool@dooz.org>.
83771 2009-02-27  Bruno Haible  <bruno@clisp.org>
83773         * gnulib-tool (func_import): Make the sed expression used to create the
83774         sed script for updating the .gitignore file POSIX compliant.
83775         Reported by Eric Blake.
83777 2009-02-27  Bruno Haible  <bruno@clisp.org>
83779         * gnulib-tool (sed): Don't alias as "sed --posix".
83780         Reported by Eric Blake.
83782 2009-02-27  Bruno Haible  <bruno@clisp.org>
83784         Avoid test link errors.
83785         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
83786         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
83787         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
83788         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
83789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83791 2009-02-27  Bruno Haible  <bruno@clisp.org>
83793         Avoid spurious "(cached)" in configure output.
83794         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
83795         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
83796         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83797         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83798         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83799         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
83800         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
83802         Reported by Eric Blake.
83804 2009-02-27  Eric Blake  <ebb9@byu.net>
83806         printf: fix regression in previous patch
83807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
83809 2009-02-27  Bruno Haible  <bruno@clisp.org>
83811         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
83812         value.
83813         * lib/stdint.in.h: Likewise.
83814         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
83816 2009-02-27  Eric Blake  <ebb9@byu.net>
83818         doc: mention more functions added in cygwin 1.7.0
83819         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
83820         addition.
83821         * doc/posix-functions/open_wmemstream.texi: Likewise.
83822         * doc/posix-functions/wcsnlen.texi: Likewise.
83823         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83824         * doc/posix-functions/wcstod.texi: Likewise.
83825         * doc/posix-functions/wcstof.texi: Likewise.
83826         * doc/posix-functions/wcstoimax.texi: Likewise.
83827         * doc/posix-functions/wcstok.texi: Likewise.
83828         * doc/posix-functions/wcstoumax.texi: Likewise.
83830         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
83831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
83832         * doc/posix-functions/fprintf.texi: Update.
83833         * doc/posix-functions/printf.texi: Update.
83834         * doc/posix-functions/snprintf.texi: Update.
83835         * doc/posix-functions/sprintf.texi: Update.
83836         * doc/posix-functions/vfprintf.texi: Update.
83837         * doc/posix-functions/vprintf.texi: Update.
83838         * doc/posix-functions/vsnprintf.texi: Update.
83839         * doc/posix-functions/vsprintf.texi: Update.
83840         * doc/glibc-functions/obstack_printf.texi: Update.
83841         * doc/glibc-functions/obstack_vprintf.texi: Update.
83843 2009-02-26  Eric Blake  <ebb9@byu.net>
83845         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
83846         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
83847         compilation bug by using runtime conversion.
83848         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
83849         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
83850         * modules/ceill-tests (Files): Use nan.h.
83851         * modules/floorl-tests (Files): Likewise.
83852         * modules/frexpl-tests (Files): Likewise.
83853         * modules/isnanl-tests (Files): Likewise.
83854         * modules/ldexpl-tests (Files): Likewise.
83855         * modules/roundl-tests (Files): Likewise.
83856         * modules/truncl-tests (Files): Likewise.
83857         * tests/test-ceill.c (main): Use a working NaN.
83858         * tests/test-floorl.c (main): Likewise.
83859         * tests/test-frexpl.c (main): Likewise.
83860         * tests/test-isnan.c (test_long_double): Likewise.
83861         * tests/test-isnanl.h (main): Likewise.
83862         * tests/test-ldexpl.h (main): Likewise.
83863         * tests/test-roundl.h (main): Likewise.
83864         * tests/test-truncl.h (main): Likewise.
83865         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
83867 2009-02-26  Eric Blake  <ebb9@byu.net>
83868             Bruno Haible  <bruno@clisp.org>
83870         Work around a *printf bug with %ls on Solaris.
83871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
83872         precision is specified, sprintf stops converting the wide string
83873         argument when the number of bytes that have been produced by this
83874         conversion equals or exceeds the precision.
83875         * doc/posix-functions/fprintf.texi: Update.
83876         * doc/posix-functions/printf.texi: Update.
83877         * doc/posix-functions/snprintf.texi: Update.
83878         * doc/posix-functions/sprintf.texi: Update.
83879         * doc/posix-functions/vfprintf.texi: Update.
83880         * doc/posix-functions/vprintf.texi: Update.
83881         * doc/posix-functions/vsnprintf.texi: Update.
83882         * doc/posix-functions/vsprintf.texi: Update.
83883         * doc/glibc-functions/obstack_printf.texi: Update.
83884         * doc/glibc-functions/obstack_vprintf.texi: Update.
83886 2009-02-26  Eric Blake  <ebb9@byu.net>
83888         stdlib: favor compiler check of random.h
83889         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
83890         to avoid an ObjC random.h installed by Swarm.
83892 2009-02-26  Bruno Haible  <bruno@clisp.org>
83894         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
83895         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
83896         Reported by Gary V. Vaughan <gary@gnu.org>.
83898 2009-02-26  Bruno Haible  <bruno@clisp.org>
83900         Fix *printf behaviour regarding the %ls directive.
83901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
83902         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
83903         NEED_PRINTF_DIRECTIVE_LS.
83904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
83905         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83907         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
83908         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
83909         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
83910         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
83911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83915         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
83916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83919         * doc/posix-functions/fprintf.texi: Update.
83920         * doc/posix-functions/printf.texi: Update.
83921         * doc/posix-functions/snprintf.texi: Update.
83922         * doc/posix-functions/sprintf.texi: Update.
83923         * doc/posix-functions/vfprintf.texi: Update.
83924         * doc/posix-functions/vprintf.texi: Update.
83925         * doc/posix-functions/vsnprintf.texi: Update.
83926         * doc/posix-functions/vsprintf.texi: Update.
83927         * doc/glibc-functions/obstack_printf.texi: Update.
83928         * doc/glibc-functions/obstack_vprintf.texi: Update.
83929         Reported by Eric Blake.
83931 2009-02-25  Bruno Haible  <bruno@clisp.org>
83933         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
83934         with known value.
83935         Reported by Gary V. Vaughan <gary@gnu.org>.
83937 2009-02-25  Bruno Haible  <bruno@clisp.org>
83939         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
83940         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
83941         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
83942         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
83943         Reported by Gary V. Vaughan <gary@gnu.org>.
83945 2009-02-25  Bruno Haible  <bruno@clisp.org>
83947         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
83948         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
83949         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
83950         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
83951         Reported by Gary V. Vaughan <gary@gnu.org>.
83953 2009-02-25  Eric Blake  <ebb9@byu.net>
83955         tests: skip fseek/ftell tests if ungetc is broken
83956         * m4/ungetc.m4: New file.
83957         * modules/fseek-tests: Split test, so ungetc dependency is
83958         separate from rest of test.
83959         * modules/fseeko-tests: Likewise.
83960         * modules/ftell-tests: Likewise.
83961         * modules/ftello-tests: Likewise.
83962         * tests/test-fseek.c (main): Isolate ungetc dependency.
83963         * tests/test-fseeko.c (main): Likewise.
83964         * tests/test-ftell.c (main): Likewise.
83965         * tests/test-ftello.c (main): Likewise.
83966         * tests/test-fseek2.sh: New file.
83967         * tests/test-fseeko2.sh: Likewise.
83968         * tests/test-ftell2.sh: Likewise.
83969         * tests/test-ftello2.sh: Likewise.
83971 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
83973         test-getaddrinfo: fix usage of skip return code 77
83974         * tests/test-gettaddrinfo.c: Return skip code 77 only
83975         for first occurrence of skip (4x77 is not 77)
83977 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
83979         strtod: avoid C99 decl-after-statement
83980         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
83982 2009-02-24  Eric Blake  <ebb9@byu.net>
83984         strtod: detect HP-UX 11.31 bug
83985         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
83986         Reported by Gary V. Vaughan.
83988 2009-02-23  Bruno Haible  <bruno@clisp.org>
83990         Fix invalid read past end of memory block.
83991         * lib/vasnprintf.c (DCHAR_SET): Define.
83992         (local_wcslen): Define only when needed.
83993         (local_strnlen, local_wcsnlen): New functions.
83994         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
83995         directives that involve a conversion ourselves.
83996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
83997         wcsnlen, mbrtowc, wcrtomb.
83998         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
83999         * tests/test-vasprintf-posix.c (test_function): Likewise.
84000         * tests/test-snprintf-posix.h (test_function): Likewise.
84001         * tests/test-sprintf-posix.h (test_function): Likewise.
84002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84004 2009-02-22  Bruno Haible  <bruno@clisp.org>
84006         Implement new clarified decomposition of Hangul syllables.
84007         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
84008         of type LTV, return only a pairwise decomposition.
84009         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
84010         Likewise.
84011         * tests/uninorm/test-decomposition.c (main): Updated expected result.
84012         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
84013         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
84015 2009-02-22  Bruno Haible  <bruno@clisp.org>
84017         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
84018         zero-length results and shrink excess allocated memory.
84019         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
84020         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
84021         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
84022         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
84023         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
84024         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
84025         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
84026         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
84027         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
84028         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
84029         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
84030         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
84032 2009-02-21  Bruno Haible  <bruno@clisp.org>
84034         * doc/gnulib.texi: Include safe-alloc.texi earlier.
84035         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
84036         spaces after a period. Put a space between a macro name and its
84037         argument list. Trivial rewordings.
84038         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
84039         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
84040         (main): Return 0 explicitly.
84042 2009-02-21  Bruno Haible  <bruno@clisp.org>
84044         Tests for module 'uninorm/filter'.
84045         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
84046         * modules/uninorm/filter-tests: New file.
84048         New module 'uninorm/filter'.
84049         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
84050         uninorm_filter_flush, uninorm_filter_free): New declarations.
84051         * lib/uninorm/uninorm-filter.c: New file.
84052         * modules/uninorm/filter: New file.
84054 2009-02-21  Bruno Haible  <bruno@clisp.org>
84056         Tests for module 'uninorm/nfkc'.
84057         * tests/uninorm/test-nfkc.c: New file.
84058         * tests/uninorm/test-u8-nfkc.c: New file.
84059         * tests/uninorm/test-u16-nfkc.c: New file.
84060         * tests/uninorm/test-u32-nfkc.c: New file.
84061         * tests/uninorm/test-u32-nfkc-big.sh: New file.
84062         * tests/uninorm/test-u32-nfkc-big.c: New file.
84063         * modules/uninorm/nfkc-tests: New file.
84065         New module 'uninorm/nfkc'.
84066         * lib/uninorm/nfkc.c: New file.
84067         * modules/uninorm/nfkc: New file.
84069         Tests for module 'uninorm/nfkd'.
84070         * tests/uninorm/test-nfkd.c: New file.
84071         * tests/uninorm/test-u8-nfkd.c: New file.
84072         * tests/uninorm/test-u16-nfkd.c: New file.
84073         * tests/uninorm/test-u32-nfkd.c: New file.
84074         * tests/uninorm/test-u32-nfkd-big.sh: New file.
84075         * tests/uninorm/test-u32-nfkd-big.c: New file.
84076         * modules/uninorm/nfkd-tests: New file.
84078         New module 'uninorm/nfkd'.
84079         * lib/uninorm/nfkd.c: New file.
84080         * modules/uninorm/nfkd: New file.
84082         Tests for module 'uninorm/nfc'.
84083         * tests/uninorm/test-nfc.c: New file.
84084         * tests/uninorm/test-u8-nfc.c: New file.
84085         * tests/uninorm/test-u16-nfc.c: New file.
84086         * tests/uninorm/test-u32-nfc.c: New file.
84087         * tests/uninorm/test-u32-nfc-big.sh: New file.
84088         * tests/uninorm/test-u32-nfc-big.c: New file.
84089         * modules/uninorm/nfc-tests: New file.
84091         New module 'uninorm/nfc'.
84092         * lib/uninorm/nfc.c: New file.
84093         * modules/uninorm/nfc: New file.
84095         Tests for module 'uninorm/nfd'.
84096         * tests/uninorm/test-nfd.c: New file.
84097         * tests/uninorm/test-u8-nfd.c: New file.
84098         * tests/uninorm/test-u16-nfd.c: New file.
84099         * tests/uninorm/test-u32-nfd.c: New file.
84100         * tests/uninorm/test-u32-nfd-big.sh: New file.
84101         * tests/uninorm/test-u32-nfd-big.c: New file.
84102         * tests/uninorm/test-u32-normalize-big.h: New file.
84103         * tests/uninorm/test-u32-normalize-big.c: New file.
84104         * tests/uninorm/NormalizationTest.txt: New file, created from
84105         Unicode 5.1.0 NormalizationTest.txt.
84106         * modules/uninorm/nfd-tests: New file.
84108         New module 'uninorm/nfd'.
84109         * lib/uninorm/nfd.c: New file.
84110         * modules/uninorm/nfd: New file.
84112         New module 'uninorm/u32-normalize'.
84113         * lib/uninorm/u32-normalize.c: New file.
84114         * modules/uninorm/u32-normalize: New file.
84116         New module 'uninorm/u16-normalize'.
84117         * lib/uninorm/u16-normalize.c: New file.
84118         * modules/uninorm/u16-normalize: New file.
84120         New module 'uninorm/u8-normalize'.
84121         * lib/uninorm/u8-normalize.c: New file.
84122         * lib/uninorm/normalize-internal.h: New file.
84123         * lib/uninorm/u-normalize-internal.h: New file.
84124         * modules/uninorm/u8-normalize: New file.
84126         New module 'uninorm/decompose-internal'.
84127         * lib/uninorm/decompose-internal.c: New file.
84128         * modules/uninorm/decompose-internal: New file.
84130         Tests for module 'uninorm/composition'.
84131         * tests/uninorm/test-composition.c: New file.
84132         * modules/uninorm/composition-tests: New file.
84134         New module 'uninorm/composition'.
84135         * lib/uninorm/composition.c: New file.
84136         * lib/uninorm/composition-table.gperf: New file, generated by
84137         gen-uni-tables.
84138         * modules/uninorm/composition: New file.
84140         Tests for module 'uninorm/compat-decomposition'.
84141         * tests/uninorm/test-compat-decomposition.c: New file.
84142         * modules/uninorm/compat-decomposition-tests: New file.
84144         New module 'uninorm/compat-decomposition'.
84145         * lib/uninorm/decompose-internal.h: New file.
84146         * lib/uninorm/compat-decomposition.c: New file.
84147         * modules/uninorm/compat-decomposition: New file.
84149         Tests for module 'uninorm/canonical-decomposition'.
84150         * tests/uninorm/test-canonical-decomposition.c: New file.
84151         * modules/uninorm/canonical-decomposition-tests: New file.
84153         New module 'uninorm/canonical-decomposition'.
84154         * lib/uninorm/canonical-decomposition.c: New file.
84155         * modules/uninorm/canonical-decomposition: New file.
84157         Tests for module 'uninorm/decomposition'.
84158         * tests/uninorm/test-decomposition.c: New file.
84159         * modules/uninorm/decomposition-tests: New file.
84161         New module 'uninorm/decomposition'.
84162         * lib/uninorm/decomposition.c: New file.
84163         * modules/uninorm/decomposition: New file.
84165         New module 'uninorm/decomposition-table'.
84166         * lib/uninorm/decomposition-table.h: New file.
84167         * lib/uninorm/decomposition-table.c: New file.
84168         * lib/uninorm/decomposition-table1.h: New file, generated by
84169         gen-uni-tables.
84170         * lib/uninorm/decomposition-table2.h: New file, generated by
84171         gen-uni-tables.
84172         * modules/uninorm/decomposition-table: New file.
84174         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
84175         (UC_DECOMP_*): New enumeration items.
84176         (get_decomposition): New function.
84177         (struct decomp_table): New type.
84178         (output_decomposition, output_decomposition_tables): New functions.
84179         (unicode_composition_exclusions): New variable.
84180         (fill_composition_exclusions, debug_output_composition_tables): New
84181         functions.
84182         (main): Accept one more argument. Invoke fill_composition_exclusions.
84183         Output decomposition and composition tables.
84185         New module 'uninorm/base'.
84186         * lib/uninorm.h: New file.
84187         * lib/unictype.h: Update comment.
84188         * modules/uninorm/base: New file.
84190 2009-02-21  David Lutterkort  <lutter@redhat.com>
84192         Tests for module 'safe-alloc'.
84193         * tests/test-safe-alloc.c: New file.
84194         * modules/safe-alloc-tests: New file.
84196         New module 'safe-alloc'.
84197         * lib/safe-alloc.h: New file.
84198         * lib/safe-alloc.c: New file.
84199         * m4/safe-alloc.m4: New file.
84200         * modules/safe-alloc: New file.
84201         * doc/safe-alloc.texi: New file.
84202         * doc/gnulib.texi: Include it.
84203         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
84204         safe-alloc.
84206 2009-02-18  Bruno Haible  <bruno@clisp.org>
84208         Fix link error on non-glibc systems.
84209         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
84210         variable.
84211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84213 2009-02-18  Jim Meyering  <meyering@redhat.com>
84215         fts: avoid used-uninitialized error due to recent change
84216         * lib/fts.c (fts_read): Guard uses of the new member,
84217         parent->fts_n_dirs_remaining, since it's not relevant for
84218         the parent of a directory specified on the command-line.
84220 2009-02-17  James Youngman  <jay@gnu.org>
84221             Bruno Haible  <bruno@clisp.org>
84223         * m4/include_next.m4: Reformulate comment.
84225 2009-02-16  Jim Meyering  <meyering@redhat.com>
84227         fts: add #if guards so that the fts_lgpl module still builds
84228         * lib/fts.c: Guard just-added hash-table-using parts with
84229         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
84230         Reported by Simon Josefsson.
84232 2009-02-15  Bruno Haible  <bruno@clisp.org>
84234         * modules/array-mergesort-tests: New file.
84235         * tests/test-array-mergesort.c: New file.
84237         New module 'array-mergesort'.
84238         * modules/array-mergesort: New file.
84239         * lib/array-mergesort.h: New file.
84241 2009-02-15  Bruno Haible  <bruno@clisp.org>
84243         Fix 2009-02-07 commit.
84244         * lib/gen-uni-tables.c (output_predicate, output_category,
84245         output_combclass, output_bidi_category, output_decimal_digit,
84246         output_digit, output_numeric, output_mirror, output_scripts,
84247         output_ident_category, output_simple_mapping): Fix format directives.
84248         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
84250 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
84252         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
84253         fixes are available from IBM.
84255 2009-02-13  Jim Meyering  <meyering@redhat.com>
84257         fts: arrange not to stat non-directories in more cases
84258         This makes GNU find (when it doesn't need to stat each file)
84259         *much* more efficient at traversing reiserfs file systems.
84260         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
84261         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
84262         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
84263         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
84264         (leaf_optimization_applies): New function.
84265         (LCO_hash, LCO_compare): New helper functions.
84266         (link_count_optimize_ok): New function.
84267         (fts_stat): Initialize new member (if dir).
84268         (fts_read): Decrement parent's fts_n_dirs_remaining count if
84269         we've just stat'ed a directory.  Skip the stat call when possible.
84270         ---
84271         Note this AFS-related exchange:
84272         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
84273         and note find's pioctl call in find/fstype.c.
84274         But that is necessary only if you want to enable the
84275         optimization for AFS, and for now, I don't.
84277         fts: move a function definition "up" (no semantic change)
84278         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
84279         "up" to precede upcoming use of a related function.
84281 2009-02-11  Jim Meyering  <meyering@redhat.com>
84283         fts: correct internal computation of nlinks (optimization-related)
84284         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
84285         whether the current entry is a directory, so don't test it.
84287 2009-02-10  Bruno Haible  <bruno@clisp.org>
84289         Tests for module 'uniwbrk/ulc-wordbreaks'.
84290         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
84291         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
84292         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
84294         Tests for module 'uniwbrk/u32-wordbreaks'.
84295         * modules/uniwbrk/u32-wordbreaks-tests: New file.
84296         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
84298         Tests for module 'uniwbrk/u16-wordbreaks'.
84299         * modules/uniwbrk/u16-wordbreaks-tests: New file.
84300         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
84302         Tests for module 'uniwbrk/u8-wordbreaks'.
84303         * modules/uniwbrk/u8-wordbreaks-tests: New file.
84304         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
84306 2009-02-10  Bruno Haible  <bruno@clisp.org>
84308         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
84309         property.
84310         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
84311         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
84312         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
84314 2009-02-10  Simon Josefsson  <simon@josefsson.org>
84316         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
84317         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
84319 2009-02-10  Bruno Haible  <bruno@clisp.org>
84321         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
84322         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
84323         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
84324         * lib/unilbrk/u8-possible-linebreaks.c: Update.
84325         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
84326         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
84328 2009-02-09  Simon Josefsson  <simon@josefsson.org>
84330         * lib/sockets.h (gl_fd_to_handle): New function.
84332         * tests/test-sockets.c: Call gl_fd_to_handle.
84334 2009-02-09  Bruno Haible  <bruno@clisp.org>
84336         * doc/havelib.texi: Document the conventions on bi-arch systems.
84338 2009-02-08  Bruno Haible  <bruno@clisp.org>
84340         Document the AC_LIB_LINKFLAGS macro.
84341         * doc/havelib.texi: New file, mostly written on 2005-05-24.
84342         * doc/gnulib.texi: Include it.
84344 2009-02-08  Bruno Haible  <bruno@clisp.org>
84346         Fix wrong order of sections, compared to TOC.
84347         * doc/gnulib.texi: Include relocatable-maint.texi after the
84348         "Regular expressions" node, not before.
84350 2009-02-08  Bruno Haible  <bruno@clisp.org>
84352         Tests for module 'unicase/totitle'.
84353         * modules/unicase/totitle-tests: New file.
84355         Tests for module 'unicase/tolower'.
84356         * modules/unicase/tolower-tests: New file.
84358         Tests for module 'unicase/toupper'.
84359         * modules/unicase/toupper-tests: New file.
84360         * tests/unicase/test-mapping-part1.h: New file.
84361         * tests/unicase/test-mapping-part2.h: New file.
84363         New module 'unicase/totitle'.
84364         * modules/unicase/totitle: New file.
84365         * lib/unicase/totitle.c: New file.
84367         New module 'unicase/tolower'.
84368         * modules/unicase/tolower: New file.
84369         * lib/unicase/tolower.c: New file.
84371         New module 'unicase/toupper'.
84372         * modules/unicase/toupper: New file.
84373         * lib/unicase/toupper.c: New file.
84374         * lib/unicase/simple-mapping.h: New file.
84376         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
84377         (mapping_table): New structure.
84378         (output_simple_mapping): New function.
84379         (main): Invoke output_simple_mapping_test and output_simple_mapping.
84380         * modules/gen-uni-tables (Description): Update.
84381         * lib/unicase/toupper.h: New file, automatically generated by
84382         gen-uni-tables.
84383         * lib/unicase/tolower.h: New file, automatically generated by
84384         gen-uni-tables.
84385         * lib/unicase/totitle.h: New file, automatically generated by
84386         gen-uni-tables.
84387         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
84388         gen-uni-tables.
84389         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
84390         gen-uni-tables.
84391         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
84392         gen-uni-tables.
84394         New module 'unicase/base'.
84395         * modules/unicase/base: New file.
84396         * lib/unicase.h: New file.
84398 2009-02-08  Bruno Haible  <bruno@clisp.org>
84400         New module 'uniwbrk/ulc-wordbreaks'.
84401         * modules/uniwbrk/ulc-wordbreaks: New file.
84402         * lib/uniwbrk/ulc-wordbreaks.c: New file.
84404         New module 'uniwbrk/u32-wordbreaks'.
84405         * modules/uniwbrk/u32-wordbreaks: New file.
84406         * lib/uniwbrk/u32-wordbreaks.c: New file.
84408         New module 'uniwbrk/u16-wordbreaks'.
84409         * modules/uniwbrk/u16-wordbreaks: New file.
84410         * lib/uniwbrk/u16-wordbreaks.c: New file.
84412         New module 'uniwbrk/u8-wordbreaks'.
84413         * modules/uniwbrk/u8-wordbreaks: New file.
84414         * lib/uniwbrk/u8-wordbreaks.c: New file.
84415         * lib/uniwbrk/u-wordbreaks.h: New file.
84417         New module 'uniwbrk/table'.
84418         * modules/uniwbrk/table: New file.
84419         * lib/uniwbrk/wbrktable.h: New file.
84420         * lib/uniwbrk/wbrktable.c: New file.
84422         New module 'uniwbrk/wordbreak-property'.
84423         * modules/uniwbrk/wordbreak-property: New file.
84424         * lib/uniwbrk/wordbreak-property.c: New file.
84426         * lib/gen-uni-tables.c (WBP_*): New enum items.
84427         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
84428         (unicode_org_wbp): New variable.
84429         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
84430         New functions.
84431         (wbp_table): New structure.
84432         (output_wbp, output_wbrk_tables): New functions.
84433         (main): Accept additional argument. Invoke fill_org_wbp,
84434         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
84435         output_wbrk_tables.
84436         * modules/gen-uni-tables (Description): Update.
84437         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
84438         gen-uni-tables.
84440         New module 'uniwbrk/base'.
84441         * modules/uniwbrk/base: New file.
84442         * lib/uniwbrk.h: New file.
84444 2009-02-08  Bruno Haible  <bruno@clisp.org>
84446         Update to Unicode 5.1.0.
84447         * lib/gen-uni-tables.c (is_property_alphabetic): Include
84448         U+2185..U+2188.
84449         (is_property_default_ignorable_code_point): Don't include characters
84450         of category Cc or Cs and not-a-characters.
84451         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
84452         U+0D79, U+109E, U+109F, U+A60C.
84453         * lib/unictype/bidi_of.h: Regenerated.
84454         * lib/unictype/blocks.h: Regenerated.
84455         * lib/unictype/categ_C.h: Regenerated.
84456         * lib/unictype/categ_Cf.h: Regenerated.
84457         * lib/unictype/categ_Cn.h: Regenerated.
84458         * lib/unictype/categ_L.h: Regenerated.
84459         * lib/unictype/categ_Ll.h: Regenerated.
84460         * lib/unictype/categ_Lm.h: Regenerated.
84461         * lib/unictype/categ_Lo.h: Regenerated.
84462         * lib/unictype/categ_Lu.h: Regenerated.
84463         * lib/unictype/categ_M.h: Regenerated.
84464         * lib/unictype/categ_Mc.h: Regenerated.
84465         * lib/unictype/categ_Me.h: Regenerated.
84466         * lib/unictype/categ_Mn.h: Regenerated.
84467         * lib/unictype/categ_N.h: Regenerated.
84468         * lib/unictype/categ_Nd.h: Regenerated.
84469         * lib/unictype/categ_Nl.h: Regenerated.
84470         * lib/unictype/categ_No.h: Regenerated.
84471         * lib/unictype/categ_P.h: Regenerated.
84472         * lib/unictype/categ_Pd.h: Regenerated.
84473         * lib/unictype/categ_Pe.h: Regenerated.
84474         * lib/unictype/categ_Pf.h: Regenerated.
84475         * lib/unictype/categ_Pi.h: Regenerated.
84476         * lib/unictype/categ_Po.h: Regenerated.
84477         * lib/unictype/categ_Ps.h: Regenerated.
84478         * lib/unictype/categ_S.h: Regenerated.
84479         * lib/unictype/categ_Sk.h: Regenerated.
84480         * lib/unictype/categ_Sm.h: Regenerated.
84481         * lib/unictype/categ_So.h: Regenerated.
84482         * lib/unictype/categ_of.h: Regenerated.
84483         * lib/unictype/combining.h: Regenerated.
84484         * lib/unictype/ctype_alnum.h: Regenerated.
84485         * lib/unictype/ctype_alpha.h: Regenerated.
84486         * lib/unictype/ctype_graph.h: Regenerated.
84487         * lib/unictype/ctype_lower.h: Regenerated.
84488         * lib/unictype/ctype_print.h: Regenerated.
84489         * lib/unictype/ctype_punct.h: Regenerated.
84490         * lib/unictype/ctype_upper.h: Regenerated.
84491         * lib/unictype/decdigit.h: Regenerated.
84492         * lib/unictype/digit.h: Regenerated.
84493         * lib/unictype/mirror.h: Regenerated.
84494         * lib/unictype/numeric.h: Regenerated.
84495         * lib/unictype/pr_alphabetic.h: Regenerated.
84496         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
84497         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
84498         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
84499         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
84500         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
84501         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
84502         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
84503         * lib/unictype/pr_combining.h: Regenerated.
84504         * lib/unictype/pr_dash.h: Regenerated.
84505         * lib/unictype/pr_decimal_digit.h: Regenerated.
84506         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
84507         * lib/unictype/pr_deprecated.h: Regenerated.
84508         * lib/unictype/pr_diacritic.h: Regenerated.
84509         * lib/unictype/pr_extender.h: Regenerated.
84510         * lib/unictype/pr_format_control.h: Regenerated.
84511         * lib/unictype/pr_grapheme_base.h: Regenerated.
84512         * lib/unictype/pr_grapheme_extend.h: Regenerated.
84513         * lib/unictype/pr_grapheme_link.h: Regenerated.
84514         * lib/unictype/pr_id_continue.h: Regenerated.
84515         * lib/unictype/pr_id_start.h: Regenerated.
84516         * lib/unictype/pr_ideographic.h: Regenerated.
84517         * lib/unictype/pr_ignorable_control.h: Regenerated.
84518         * lib/unictype/pr_lowercase.h: Regenerated.
84519         * lib/unictype/pr_math.h: Regenerated.
84520         * lib/unictype/pr_numeric.h: Regenerated.
84521         * lib/unictype/pr_other_alphabetic.h: Regenerated.
84522         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
84523         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
84524         * lib/unictype/pr_other_id_continue.h: Regenerated.
84525         * lib/unictype/pr_other_lowercase.h: Regenerated.
84526         * lib/unictype/pr_other_math.h: Regenerated.
84527         * lib/unictype/pr_punctuation.h: Regenerated.
84528         * lib/unictype/pr_sentence_terminal.h: Regenerated.
84529         * lib/unictype/pr_soft_dotted.h: Regenerated.
84530         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
84531         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
84532         * lib/unictype/pr_unified_ideograph.h: Regenerated.
84533         * lib/unictype/pr_uppercase.h: Regenerated.
84534         * lib/unictype/pr_xid_continue.h: Regenerated.
84535         * lib/unictype/pr_xid_start.h: Regenerated.
84536         * lib/unictype/pr_zero_width.h: Regenerated.
84537         * lib/unictype/scripts.h: Regenerated.
84538         * lib/unictype/scripts_byname.gperf: Regenerated.
84539         * lib/unictype/sy_java_ident.h: Regenerated.
84540         * lib/unilbrk/lbrkprop1.h: Regenerated.
84541         * lib/unilbrk/lbrkprop2.h: Regenerated.
84542         * tests/unictype/test-categ_C.c: Regenerated.
84543         * tests/unictype/test-categ_Cf.c: Regenerated.
84544         * tests/unictype/test-categ_Cn.c: Regenerated.
84545         * tests/unictype/test-categ_L.c: Regenerated.
84546         * tests/unictype/test-categ_Ll.c: Regenerated.
84547         * tests/unictype/test-categ_Lm.c: Regenerated.
84548         * tests/unictype/test-categ_Lo.c: Regenerated.
84549         * tests/unictype/test-categ_Lu.c: Regenerated.
84550         * tests/unictype/test-categ_M.c: Regenerated.
84551         * tests/unictype/test-categ_Mc.c: Regenerated.
84552         * tests/unictype/test-categ_Me.c: Regenerated.
84553         * tests/unictype/test-categ_Mn.c: Regenerated.
84554         * tests/unictype/test-categ_N.c: Regenerated.
84555         * tests/unictype/test-categ_Nd.c: Regenerated.
84556         * tests/unictype/test-categ_Nl.c: Regenerated.
84557         * tests/unictype/test-categ_No.c: Regenerated.
84558         * tests/unictype/test-categ_P.c: Regenerated.
84559         * tests/unictype/test-categ_Pd.c: Regenerated.
84560         * tests/unictype/test-categ_Pe.c: Regenerated.
84561         * tests/unictype/test-categ_Pf.c: Regenerated.
84562         * tests/unictype/test-categ_Pi.c: Regenerated.
84563         * tests/unictype/test-categ_Po.c: Regenerated.
84564         * tests/unictype/test-categ_Ps.c: Regenerated.
84565         * tests/unictype/test-categ_S.c: Regenerated.
84566         * tests/unictype/test-categ_Sk.c: Regenerated.
84567         * tests/unictype/test-categ_Sm.c: Regenerated.
84568         * tests/unictype/test-categ_So.c: Regenerated.
84569         * tests/unictype/test-ctype_alnum.c: Regenerated.
84570         * tests/unictype/test-ctype_alpha.c: Regenerated.
84571         * tests/unictype/test-ctype_graph.c: Regenerated.
84572         * tests/unictype/test-ctype_lower.c: Regenerated.
84573         * tests/unictype/test-ctype_print.c: Regenerated.
84574         * tests/unictype/test-ctype_punct.c: Regenerated.
84575         * tests/unictype/test-ctype_upper.c: Regenerated.
84576         * tests/unictype/test-decdigit.h: Regenerated.
84577         * tests/unictype/test-digit.h: Regenerated.
84578         * tests/unictype/test-numeric.h: Regenerated.
84579         * tests/unictype/test-pr_alphabetic.c: Regenerated.
84580         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
84581         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
84582         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
84583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
84584         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
84585         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
84586         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
84587         * tests/unictype/test-pr_combining.c: Regenerated.
84588         * tests/unictype/test-pr_dash.c: Regenerated.
84589         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
84590         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
84591         * tests/unictype/test-pr_deprecated.c: Regenerated.
84592         * tests/unictype/test-pr_diacritic.c: Regenerated.
84593         * tests/unictype/test-pr_extender.c: Regenerated.
84594         * tests/unictype/test-pr_format_control.c: Regenerated.
84595         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
84596         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
84597         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
84598         * tests/unictype/test-pr_id_continue.c: Regenerated.
84599         * tests/unictype/test-pr_id_start.c: Regenerated.
84600         * tests/unictype/test-pr_ideographic.c: Regenerated.
84601         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
84602         * tests/unictype/test-pr_lowercase.c: Regenerated.
84603         * tests/unictype/test-pr_math.c: Regenerated.
84604         * tests/unictype/test-pr_numeric.c: Regenerated.
84605         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
84606         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
84607         Regenerated.
84608         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
84609         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
84610         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
84611         * tests/unictype/test-pr_other_math.c: Regenerated.
84612         * tests/unictype/test-pr_punctuation.c: Regenerated.
84613         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
84614         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
84615         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
84616         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
84617         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
84618         * tests/unictype/test-pr_uppercase.c: Regenerated.
84619         * tests/unictype/test-pr_xid_continue.c: Regenerated.
84620         * tests/unictype/test-pr_xid_start.c: Regenerated.
84621         * tests/unictype/test-pr_zero_width.c: Regenerated.
84623         Update to Unicode 5.1.0.
84624         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
84625         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
84626         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
84627         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
84628         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
84629         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
84630         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
84631         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
84632         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
84633         (nonspacing_table_ind): Update.
84634         * tests/uniwidth/test-uc_width2.sh: Update expected result.
84636         Update to Unicode 5.1.0.
84637         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
84638         code transform.
84639         * lib/uniname/uniname.c (unicode_character_name,
84640         unicode_name_character): Add the range 0x1Fxxx to the code transform.
84641         * lib/uniname/uninames.h: Regenerated.
84642         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
84644 2009-02-07  Bruno Haible  <bruno@clisp.org>
84646         Merge gen-ctype and gen-lbrk into a single program.
84647         * lib/gen-uni-tables.c: New file, incorporating
84648         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
84649         Add directory prefixes to the names of the generated files.
84650         * lib/unictype/gen-ctype.c: Remove file.
84651         * lib/unilbrk/gen-lbrk.c: Remove file.
84652         * modules/gen-uni-tables: New file.
84653         * modules/unictype/gen-ctype: Remove file.
84654         * modules/unilbrk/gen-lbrk: Remove file.
84656 2009-02-07  Bruno Haible  <bruno@clisp.org>
84658         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
84660         New module 'unistr/u32-strcoll'.
84661         * modules/unistr/u32-strcoll: New file.
84662         * lib/unistr/u32-strcoll.c: New file.
84664         New module 'unistr/u16-strcoll'.
84665         * modules/unistr/u16-strcoll: New file.
84666         * lib/unistr/u16-strcoll.c: New file.
84668         New module 'unistr/u8-strcoll'.
84669         * modules/unistr/u8-strcoll: New file.
84670         * lib/unistr/u8-strcoll.c: New file.
84671         * lib/unistr/u-strcoll.h: New file.
84673 2009-02-07  Bruno Haible  <bruno@clisp.org>
84675         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
84676         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
84677         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
84678         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
84679         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
84680         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
84682 2009-02-07  Bruno Haible  <bruno@clisp.org>
84684         Make 64-bit clean.
84685         * lib/unictype/gen-ctype.c (output_predicate, output_category,
84686         output_combclass, output_bidi_category, output_decimal_digit,
84687         output_digit, output_numeric, output_mirror, output_scripts,
84688         output_ident_category): Use proper width specifier in format strings.
84690 2009-02-07  Bruno Haible  <bruno@clisp.org>
84692         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
84693         failure behaviour.
84695 2009-02-07  Jim Meyering  <meyering@redhat.com>
84697         regex: avoid compilation failure with upcoming gcc-4.4
84698         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
84699         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
84700         "... error: integer overflow in preprocessor expression".
84702 2009-02-05  Ben Pfaff  <blp@gnu.org>
84704         Fix link errors on Windows when close module is used.
84705         * modules/close: Add $(LIB_CLOSE) to Link section.
84706         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
84707         $(LIB_CLOSE) on Windows.
84709 2009-02-05  Jim Meyering  <meyering@redhat.com>
84711         still avoid unused-parameter warnings, but do it cleanly
84712         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
84713         (get_fs_usage): Cast to void instead.
84714         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
84715         (dev_from_mount_options, read_file_system_list): Cast to void.
84716         Prompted by Bruno Haible.
84718 2009-02-04  Jim Meyering  <meyering@redhat.com>
84720         fsusage.c: correct copyright year
84721         * lib/fsusage.c: Reflect year in which the change is pushed into
84723         avoid misc. warnings
84724         * lib/fsusage.c (UNUSED_PARAM): Define.
84725         (get_fs_usage): Mark parameter "disk" as unused.
84726         * lib/getugroups.c (getgrent): Use "void" in prototype.
84727         * lib/mountlist.c: Mark unused parameters.
84728         (read_file_system_list): Declare a local with "const".
84729         * lib/nanosleep.c (getnow): Declare static.
84730         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
84732         dirfd: set errno upon failure
84733         * lib/dirfd.c: Include <errno.h>.
84734         Set errno to ENOTSUP when returning -1.
84735         * modules/dirfd (Depends-on): Add errno.
84736         Suggested by John Kodis <kodis@comcast.net>.
84738 2009-02-01  Bruno Haible  <bruno@clisp.org>
84740         Don't assume sizeof (long) >= sizeof (void *).
84741         * lib/memcmp.c: Include stdint.h.
84742         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
84743         srcp2 to 'const byte *'.
84744         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
84745         types to uintptr_t.
84746         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
84747         * modules/memcmp (Depends-on): Add stdint.
84748         Reported by Ozkan Sezer <sezeroz@gmail.com>.
84750 2009-01-30  Eric Blake  <ebb9@byu.net>
84752         fix more require-before-expand issues
84753         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
84754         expand, AC_PROG_AWK.
84755         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
84757 2009-01-28  Eric Blake  <ebb9@byu.net>
84759         version-etc: use consistent URL formatting
84760         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
84761         Improve formatting.  Use fputs for string without %.
84763 2009-01-28  Jim Meyering  <meyering@redhat.com>
84765         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
84766         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
84767         "underquoted definition of NAME" from autoconf-2.59.
84769 2009-01-28  Bruno Haible  <bruno@clisp.org>
84771         * doc/gnulib.texi: Add "Obsolete modules" to index.
84773 2009-01-28  Jim Meyering  <meyering@redhat.com>
84775         useless-if-before-free: recognize more variants
84776         * build-aux/useless-if-before-free: Also recognize e.g.,
84777         if (NULL != p) free (p);
84779 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
84781         test-getaddrinfo: skip (don't fail) this test when there's no network
84782         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
84783         on the presumption that it means you lack network access.
84785 2009-01-26  Jim Meyering  <meyering@redhat.com>
84787         fflush: avoid warnings on modern systems
84788         * lib/fflush.c (rpl_fflush): Move declarations of locals,
84789         pos and result, into scopes where they're used.
84791 2009-01-26  Eric Blake  <ebb9@byu.net>
84793         Silence warning reintroduced by recent extensions patch.
84794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
84795         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
84796         autoconf.
84798         Backport improved autoconf semantics of AC_DEFUN_ONCE.
84799         * m4/00gnulib.m4: New file.
84800         * gnulib-tool (func_get_filelist): Always use it.
84801         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
84802         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
84804 2009-01-25  Bruno Haible  <bruno@clisp.org>
84806         Make test-quotearg work on MacOS X and AIX.
84807         * tests/test-quotearg.sh: New file.
84808         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
84809         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
84810         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
84811         include <libintl.h>.
84812         (fake_locale): Remove variable.
84813         (gettext, dgettext, dcgettext): Remove functions.
84814         (main): Instead of setting a fake locale, set a real locale. Call
84815         textdomain and bindtextdomain.
84816         * modules/quotearg-tests (Files): Add the new files.
84817         (Depends-on): Add gettext, setenv, unsetenv.
84818         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
84819         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
84820         Augment TESTS_ENVIRONMENT.
84822 2009-01-25  Bruno Haible  <bruno@clisp.org>
84824         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
84825         fr_FR.ISO8859-1 locale on MacOS X.
84826         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
84827         ja_JP.eucJP locale on MacOS X.
84828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
84829         zh_CN.GB18030 locale on MacOS X.
84831 2009-01-25  Bruno Haible  <bruno@clisp.org>
84833         Avoid link errors on MacOS X 10.3.
84834         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
84835         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84837 2009-01-25  Bruno Haible  <bruno@clisp.org>
84839         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
84840         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
84841         * modules/pipe (Files): Remove m4/posix_spawn.m4.
84842         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
84843         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
84844         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
84845         posix_spawnattr_init, posix_spawnattr_setsigmask,
84846         posix_spawnattr_setflags, posix_spawnattr_destroy.
84848         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
84849         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
84850         * modules/execute (Files): Remove m4/posix_spawn.m4.
84851         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
84852         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
84853         posix_spawnattr_init, posix_spawnattr_setsigmask,
84854         posix_spawnattr_setflags, posix_spawnattr_destroy.
84856 2009-01-25  Bruno Haible  <bruno@clisp.org>
84858         * lib/glthread/threadlib.c: Include <stdlib.h>.
84860 2009-01-25  Bruno Haible  <bruno@clisp.org>
84862         * lib/glthread/threadlib.c (dummy): New declaration.
84864 2009-01-25  Bruno Haible  <bruno@clisp.org>
84866         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
84867         multibyte characters also for the GB18030 encoding. Don't crash when
84868         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
84870 2009-01-25  Bruno Haible  <bruno@clisp.org>
84872         Avoid redefining 'struct random_data' on OSF/1 5.1.
84873         * lib/stdlib.in.h: Include <random.h> if it exists.
84874         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
84875         HAVE_RANDOM_H. Include <random.h> when testing whether
84876         'struct random_data' exists.
84877         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
84879 2009-01-25  Bruno Haible  <bruno@clisp.org>
84881         Don't install charset.alias on MacOS X >= 10.3.
84882         * lib/localcharset.c (DARWIN7): New macro.
84883         (get_charset_aliases): Hardcode the result for Darwin7.
84884         * modules/localcharset (install-exec-local): Don't install
84885         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
84887 2009-01-25  Bruno Haible  <bruno@clisp.org>
84889         Don't install charset.alias on mingw and Cygwin.
84890         * modules/localcharset (install-exec-local): Don't install
84891         charset.alias on mingw and Cygwin, if the file does not yet exist.
84892         The result for these platforms is hardcoded in localcharset.c.
84894 2009-01-25  Bruno Haible  <bruno@clisp.org>
84896         Make it possible again to use AC_GNU_SOURCE together with gnulib.
84897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
84898         before requiring AC_USE_SYSTEM_EXTENSIONS.
84900 2009-01-25  Jim Meyering  <meyering@redhat.com>
84902         c-strtod: avoid warnings
84903         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
84904         "assignment discards qualifiers from pointer target type" warnings.
84906 2009-01-24  Bruno Haible  <bruno@clisp.org>
84908         Add support for non-UTF-8 locales on MacOS X.
84909         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
84910         canonical encodings. For Darwin 7 and newer, don't map traditional
84911         encodings to UTF-8.
84912         Reported by Vincent Lefevre <vincent@vinc17.org>
84913         at <http://savannah.gnu.org/bugs/?25235>.
84915 2009-01-24  Bruno Haible  <bruno@clisp.org>
84917         * doc/gnulib.texi (Obsolete modules): New section.
84918         Reported by Mike Frysinger <vapier@gentoo.org>.
84920 2009-01-24  Bruno Haible  <bruno@clisp.org>
84922         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
84923         (%.dvi): New rule.
84925 2009-01-24  Bruno Haible  <bruno@clisp.org>
84927         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
84928         Reported by Eric Blake.
84930 2009-01-24  Bruno Haible  <bruno@clisp.org>
84932         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
84933         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
84934         Reported by Gary V. Vaughan <gary@gnu.org>.
84936 2009-01-24  Bruno Haible  <bruno@clisp.org>
84938         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
84940 2009-01-23  Bruno Haible  <bruno@clisp.org>
84942         Make c-strtod, c-strtold usable in libraries.
84943         * lib/c-strtod.c: Include string.h instead of xalloc.h.
84944         (C_STRTOD): Call strdup instead of xstrdup.
84945         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
84946         * modules/c-strtold (Depends-on): Likewise.
84947         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
84948         * NEWS: Mention the change.
84949         Reported by Michael Gold <mgold@ncf.ca>.
84951 2009-01-23  Jim Meyering  <meyering@redhat.com>
84953         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
84954         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
84955         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
84957 2009-01-23  Simon Josefsson  <simon@josefsson.org>
84959         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
84960         GNU CoreUtils.
84961         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
84962         * modules/version-etc (Description): Update.
84964 2009-01-22  Bruno Haible  <bruno@clisp.org>
84966         Cache the C locale object.
84967         * lib/c-strtod.c (c_locale_cache): New variable.
84968         (c_locale): New function.
84969         (C_STRTOD): Use it, and don't call freelocale.
84970         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
84971         Suggested by Paolo Bonzini.
84973 2009-01-21  Bruno Haible  <bruno@clisp.org>
84975         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
84976         conditions other than overflow.
84978 2009-01-21  Bruno Haible  <bruno@clisp.org>
84980         * lib/c-strtod.c: Include errno.h.
84981         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
84982         value from STRTOD_L and STRTOD.
84984 2009-01-21  Bruno Haible  <bruno@clisp.org>
84985         and Jim Meyering  <meyering@redhat.com>
84987         nanosleep: skip configure test (fail it) for apple universal builds
84988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
84989         universal builds, assume that nanosleep does not work.
84990         * modules/nanosleep (Depends-on): Add multiarch.
84992         mktime: skip configure test (fail it) for apple universal builds
84993         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
84994         universal builds, assume that mktime does not work.
84995         * modules/mktime (Depends-on): Add multiarch.
84997 2009-01-21  Eric Blake  <ebb9@byu.net>
84999         multiarch: avoid expand-before-require warning
85000         * modules/multiarch (configure.ac): Require, rather than expand,
85001         gl_MULTIARCH.
85002         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
85003         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
85004         enforce that all clients require it.  Partial reversion of
85005         2008-12-29 patch.
85007         error: avoid expand-before-require warning
85008         * modules/errno (configure.ac): Require, rather than expand,
85009         gl_HEADER_ERRNO_H.
85010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
85011         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
85012         enforce that all clients require it.
85014         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
85015         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
85016         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
85017         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
85019 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
85021         Revert:
85022         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85024         regex: do not depend on obsolete modules.
85025         * modules/regex: Remove memcmp and memmove.
85027 2009-01-20  Bruno Haible  <bruno@clisp.org>
85029         Make the 'link' module link on Windows NT 4.
85030         * lib/link.c (_WIN32_WINNT): Don't define.
85031         (CreateHardLinkFuncType): New type.
85032         (CreateHardLinkFunc, initialized): New variables.
85033         (initialize): New function.
85034         (link): Invoke CreateHardLink indirectly through the function pointer.
85036 2009-01-20  Bruno Haible  <bruno@clisp.org>
85038         Fix compilation failure on mingw.
85039         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
85041 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
85043         * doc/c-strtod.texi: Mention a couple of restrictions.
85045 2009-01-20  Jim Meyering  <meyering@redhat.com>
85047         gettimeofday: move more declarations out of functions
85048         * lib/gettimeofday.c: Move extern declarations of tzset and
85049         gmtime out of containing functions.  Prompted by Bruno Haible.
85051 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85053         regex: do not depend on obsolete modules.
85054         * modules/regex: Remove memcmp and memmove.
85056 2009-01-19  Bruno Haible  <bruno@clisp.org>
85058         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85059         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
85060         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85061         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
85062         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
85064 2009-01-19  Bruno Haible  <bruno@clisp.org>
85066         * tests/test-link.c: Include <errno.h>.
85067         (main): Exit with code 77 when a hard link cannot be created due to
85068         the file system.
85069         * tests/test-link.sh: Skip test when a hard link cannot be created due
85070         to the file system.
85071         Suggested by Eric Blake.
85073 2009-01-19  Martin Lambers  <marlam@marlam.de>
85075         * modules/link-tests: New file.
85076         * tests/test-link.sh: New file.
85077         * tests/test-link.c: New file.
85079 2009-01-19  Eric Blake  <ebb9@byu.net>
85081         doc: mention another function added in cygwin 1.7.0
85082         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
85083         Another new function in cygwin 1.7.
85085 2009-01-19  Bruno Haible  <bruno@clisp.org>
85087         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85088         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
85089         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
85090         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
85092         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
85093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
85094         * m4/md4.m4 (gl_MD4): Likewise.
85095         * m4/md5.m4 (gl_MD5): Likewise.
85096         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
85097         * m4/sha1.m4 (gl_SHA1): Likewise.
85098         * m4/sha256.m4 (gl_SHA256): Likewise.
85099         * m4/sha512.m4 (gl_SHA512): Likewise.
85101 2009-01-19  Bruno Haible  <bruno@clisp.org>
85103         * modules/uniname/uniname-tests (Depends-on): Add progname.
85104         * tests/uniname/test-uninames.c: Include progname.h.
85105         (main): Call set_program_name.
85107         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
85108         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
85109         (main): Call set_program_name.
85111         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
85112         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
85113         (main): Call set_program_name.
85115         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
85116         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
85117         (main): Call set_program_name.
85119         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
85120         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
85121         (main): Call set_program_name.
85123         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
85124         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
85125         (main): Call set_program_name.
85127         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
85128         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
85129         (main): Call set_program_name.
85131         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
85132         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
85133         (main): Call set_program_name.
85135         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
85136         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
85137         (main): Call set_program_name.
85139 2009-01-19  Eric Blake  <ebb9@byu.net>
85141         test-unistd: test previous patch
85142         * tests/test-unistd.c: Test *_FILENO macros.
85144         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
85145         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85146         Guarantee a definition.
85147         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
85148         * modules/unistd-safer (Depends-on): Add dependency on unistd.
85149         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
85150         * lib/dup-safer.c (STDERR_FILENO): Likewise.
85151         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85152         Likewise.
85153         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
85154         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
85155         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85156         Likewise.
85157         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
85158         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
85159         (STDERR_FILENO): Likewise.
85160         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
85161         (STDERR_FILENO): Likewise.
85162         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
85163         (STDERR_FILENO): Likewise.
85164         Reported by Elbert Pol.
85166 2009-01-19  Eric Blake  <ebb9@byu.net>
85168         doc: mention more functions added in cygwin 1.7.0
85169         * doc/posix-functions/abort.texi (abort): Update wording related
85170         to cygwin.
85171         * doc/posix-functions/daylight.texi (daylight): Likewise.
85172         * doc/posix-functions/optarg.texi (optarg): Likewise.
85173         * doc/posix-functions/optarg.texi (opterr): Likewise.
85174         * doc/posix-functions/optarg.texi (optind): Likewise.
85175         * doc/posix-functions/optarg.texi (optopt): Likewise.
85176         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
85177         worked in 1.5.x, and was withdrawn in 1.7.
85178         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
85179         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
85180         cygwin versions.
85181         * doc/posix-functions/perror.texi (perror): Likewise.
85182         * doc/posix-functions/printf.texi (printf): Likewise.
85183         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
85184         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
85185         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
85186         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
85187         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
85188         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
85189         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85190         Likewise.
85191         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85192         Likewise.
85193         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
85194         this function.
85195         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
85196         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
85197         Likewise.
85198         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
85199         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
85200         * doc/posix-functions/confstr.texi (confstr): Likewise.
85201         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
85202         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
85203         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
85204         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
85205         * doc/posix-functions/fputws.texi (fputws): Likewise.
85206         * doc/posix-functions/fwide.texi (fwide): Likewise.
85207         * doc/posix-functions/getwc.texi (getwc): Likewise.
85208         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
85209         * doc/posix-functions/putwc.texi (putwc): Likewise.
85210         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
85211         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
85212         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
85213         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
85214         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
85215         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
85216         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
85217         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
85218         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
85219         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
85220         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
85222 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85224         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
85225         * lib/ioctl.c: Include <sys/ioctl.h>.
85227 2009-01-19  Simon Josefsson  <simon@josefsson.org>
85229         * modules/getdate-tests (Depends-on): Add progname.
85230         * tests/test-getdate.c: Use progname module, to avoid link errors
85231         on non-glibc systems.
85233 2009-01-18  Simon Josefsson  <simon@josefsson.org>
85235         * modules/filenamecat-tests (Depends-on): Add progname.
85236         * modules/fstrcmp-tests (Depends-on): Likewise.
85238         * tests/test-filenamecat.c: Use progname module, to avoid link
85239         errors on non-glibc systems.
85240         * tests/test-fstrcmp.c: Likewise.
85242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85244         gettimeofday: avoid warning: nested extern declaration of 'localtime'
85245         * lib/gettimeofday.c: Move extern declaration out of function.
85247 2009-01-18  Bruno Haible  <bruno@clisp.org>
85249         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
85250         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
85251         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
85253 2009-01-18  Bruno Haible  <bruno@clisp.org>
85255         * lib/strftime.c (MEMPCPY): Remove unused macro.
85256         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
85258 2009-01-18  Martin Lambers  <marlam@marlam.de>
85260         New module 'link'.
85261         * lib/unistd.in.h (link): New declaration.
85262         * lib/link.c: New file.
85263         * m4/link.m4: New file.
85264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
85265         HAVE_LINK.
85266         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
85267         * modules/link: New file.
85268         * doc/posix-functions/link.texi: Mention the new module.
85270 2009-01-18  Bruno Haible  <bruno@clisp.org>
85272         * tests/test-avltree_list.c (main): Call set_program_name.
85273         * tests/test-avltree_oset.c (main): Likewise.
85274         * tests/test-obstack-printf.c: Include progname.h.
85275         (main): Call set_program_name.
85276         * tests/test-quotearg.c: Include progname.h.
85277         (main): Call set_program_name.
85278         * tests/test-xmemdup0.c: Include progname.h.
85279         (main): Call set_program_name.
85281 2009-01-18  Bruno Haible  <bruno@clisp.org>
85283         New module 'alphasort'.
85284         * lib/dirent.in.h (alphasort): New declaration.
85285         * lib/alphasort.c: New file, from glibc with modifications.
85286         * m4/alphasort.m4: New file.
85287         * modules/alphasort: New file.
85288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
85289         HAVE_ALPHASORT.
85290         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
85291         HAVE_ALPHASORT.
85292         * doc/posix-functions/alphasort.texi: Mention the new module and the
85293         portability problems.
85295 2009-01-18  Bruno Haible  <bruno@clisp.org>
85297         New module 'scandir'.
85298         * lib/dirent.in.h (scandir): New declaration.
85299         * lib/scandir.c: New file, from glibc with modifications.
85300         * m4/scandir.m4: New file.
85301         * modules/scandir: New file.
85302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
85303         HAVE_SCANDIR.
85304         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
85305         HAVE_SCANDIR.
85306         * doc/posix-functions/scandir.texi: Mention the new module and the
85307         portability problems.
85309 2009-01-17  Bruno Haible  <bruno@clisp.org>
85311         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
85312         Update documentation.
85313         (func_remove_suffix): Escape all dots in the suffix. Update
85314         documentation.
85315         (func_filter_filelist): Update documentation.
85316         Reported by Ralf Wildenhues.
85318 2009-01-17  Bruno Haible  <bruno@clisp.org>
85320         * modules/dprintf-posix-tests: New file.
85321         * tests/test-dprintf-posix.sh: New file.
85322         * tests/test-dprintf-posix.c: New file.
85324         New modules 'dprintf', 'dprintf-posix'.
85325         * lib/stdio.in.h (dprintf): New declaration.
85326         * lib/dprintf.c: New file.
85327         * m4/dprintf.m4: New file.
85328         * m4/dprintf-posix.m4: New file.
85329         * modules/dprintf: New file.
85330         * modules/dprintf-posix: New file.
85331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
85332         HAVE_DPRINTF, REPLACE_DPRINTF.
85333         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
85334         HAVE_DPRINTF, REPLACE_DPRINTF.
85335         * doc/posix-functions/dprintf.texi: Mention the new modules.
85337 2009-01-17  Bruno Haible  <bruno@clisp.org>
85339         * modules/vdprintf-posix-tests: New file.
85340         * tests/test-vdprintf-posix.sh: New file.
85341         * tests/test-vdprintf-posix.c: New file.
85343         New modules 'vdprintf', 'vdprintf-posix'.
85344         * lib/stdio.in.h (vdprintf): New declaration.
85345         * lib/vdprintf.c: New file.
85346         * m4/vdprintf.m4: New file.
85347         * m4/vdprintf-posix.m4: New file.
85348         * modules/vdprintf: New file.
85349         * modules/vdprintf-posix: New file.
85350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
85351         HAVE_VDPRINTF, REPLACE_VDPRINTF.
85352         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
85353         HAVE_VDPRINTF, REPLACE_VDPRINTF.
85354         * doc/posix-functions/vdprintf.texi: Mention the new modules.
85356 2009-01-17  Bruno Haible  <bruno@clisp.org>
85358         Fix replacement of fopen on mingw.
85359         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
85360         mingw.
85362 2009-01-17  Bruno Haible  <bruno@clisp.org>
85364         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
85365         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
85367 2009-01-17  Bruno Haible  <bruno@clisp.org>
85369         Avoid test-fflush2.sh failure on mingw.
85370         * tests/test-fflush2.c: Include binary-io.h.
85371         (main): Put standard input into binary mode.
85372         * modules/fflush-tests (Depends-on): Add binary-io.
85374 2009-01-17  Bruno Haible  <bruno@clisp.org>
85376         * lib/wchar.in.h: In another particular situation, include only the
85377         system's <wchar.h> file.
85378         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
85379         Reported by Albert Chin-A-Young <china@thewrittenword.com>
85380         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
85382 2009-01-17  Bruno Haible  <bruno@clisp.org>
85384         Support for stripping executables in --enable-relocatable.
85385         * build-aux/install-reloc: Expect one more argument, or an environment
85386         variable RELOC_STRIP_PROG. If set, strip the destination program and
85387         its wrapper.
85388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
85389         RELOC_STRIP_PROG.
85390         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
85391         to set RELOCATABLE_STRIP.
85392         * NEWS: Mention the new Makefile requirement.
85394 2009-01-17  Bruno Haible  <bruno@clisp.org>
85396         * build-aux/install-reloc: Remove debugging information left over by
85397         C compiler on MacOS X.
85399 2009-01-17  Bruno Haible  <bruno@clisp.org>
85401         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
85402         * lib/progreloc.c (find_executable): Fix type of pointer passed to
85403         _NSGetExecutablePath.
85405 2009-01-16  Jim Meyering  <meyering@redhat.com>
85407         strerror: avoid warnings about discarding "const"
85408         * lib/strerror.c (rpl_strerror): Instead of returning a const
85409         string from each and every "case", use a variable, and add a single
85410         cast after the switch.
85412 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
85414         * lib/arpa_inet.in.h: Add extern "C" block for C++.
85416 2009-01-16  Bruno Haible  <bruno@clisp.org>
85418         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
85419         array initializer syntax that also works in C++ mode.
85420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85422 2009-01-16  Jim Meyering  <meyering@redhat.com>
85424         poll: suppress a warning
85425         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
85426         to ignore "...unsigned expression < 0 is always false" warnings.
85428 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
85430         poll: remove declarations of unused variables
85431         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
85432         sockbuf and optlen.
85434 2009-01-15  Bruno Haible  <bruno@clisp.org>
85436         Make fflush-after-ungetc POSIX compliant on BSD systems.
85437         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
85438         (clear_ungetc_buffer): Implement also for other systems.
85439         (rpl_fflush): On glibc systems, invoke
85440         clear_ungetc_buffer_preserving_position. Otherwise, invoke
85441         clear_ungetc_buffer after fetching the stream's position, not before.
85443 2009-01-15  Bruno Haible  <bruno@clisp.org>
85445         Make fflush-after-ungetc POSIX compliant on glibc systems.
85446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
85447         after ungetc.
85448         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
85449         (rpl_fflush): On glibc systems, simply call the system's fflush
85450         function after clearing the ungetc buffer.
85451         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
85452         Instead, lseek only to the end of file, then use the system's fseeko
85453         for the rest. On glibc systems, reset the EOF indicator bit.
85455 2009-01-15  Jim Meyering  <meyering@redhat.com>
85457         openmp.m4: revert quote-adding change, for portability to older autoconf
85458         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
85459         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
85460         Simon Josefsson noticed the problem when using autoconf-2.61.
85462 2009-01-15  Bruno Haible  <bruno@clisp.org>
85464         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
85465         * tests/test-fflush2.c (ASSERT): Always fail.
85466         (main): Add two tests for fflush() after ungetc(), taking into account
85467         the Austin Group's clarification.
85468         Suggested by Eric Blake.
85470 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
85472         mktime.m4: remove K&R-style function prototypes
85473         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
85474         for the Sun C++ compiler.
85476 2009-01-14  Bruno Haible  <bruno@clisp.org>
85478         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
85479         while including <wchar.h>.
85480         * lib/wchar.in.h: In two particular situations on HP-UX, include only
85481         the system's <wchar.h> file.
85482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85484 2009-01-14  Bruno Haible  <bruno@clisp.org>
85486         * m4/csharp.m4: Don't mention gettext on the serial number line.
85487         * m4/csharpexec.m4: Likewise.
85488         * m4/eaccess.m4: Likewise.
85489         * m4/javaexec.m4: Likewise.
85490         * m4/sig_atomic_t.m4: Likewise.
85491         * m4/tmpdir.m4: Likewise.
85492         * m4/intldir.m4: Bump gettext version.
85493         * m4/lib-ld.m4: Likewise.
85495 2009-01-14  Bruno Haible  <bruno@clisp.org>
85497         * lib/progname.c (set_program_name): Add more comments.
85498         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
85500 2009-01-14  Simon Josefsson  <simon@josefsson.org>
85502         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
85503         were sys/stat.h does not define it.
85505 2009-01-14  Jim Meyering  <meyering@redhat.com>
85507         many *.m4 files: improve m4 quoting
85508         99% of this change was performed by running the following commands:
85509         git ls-files | grep '\.m4$' | xargs perl -pi \
85510           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
85511           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
85512           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
85513           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
85514         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
85515         The remainder were to add Copyright dates, increment serial numbers,
85516         undo some changes in comments, exclude m4/intl.m4, and add quotes
85517         around the "1" in ",1" where the unusual spacing prohibited the
85518         above regexps from doing the job.  For more details, see
85519         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
85520         * m4/acl.m4: Modified.
85521         * m4/afs.m4: Likewise.
85522         * m4/alloca.m4: Likewise.
85523         * m4/argp.m4: Likewise.
85524         * m4/argz.m4: Likewise.
85525         * m4/atexit.m4: Likewise.
85526         * m4/bison-i18n.m4: Likewise.
85527         * m4/bison.m4: Likewise.
85528         * m4/byteswap.m4: Likewise.
85529         * m4/c-stack.m4: Likewise.
85530         * m4/c-strtod.m4: Likewise.
85531         * m4/calloc.m4: Likewise.
85532         * m4/canonicalize-lgpl.m4: Likewise.
85533         * m4/chown.m4: Likewise.
85534         * m4/clock_time.m4: Likewise.
85535         * m4/codeset.m4: Likewise.
85536         * m4/copy-file.m4: Likewise.
85537         * m4/csharp.m4: Likewise.
85538         * m4/csharpcomp.m4: Likewise.
85539         * m4/csharpexec.m4: Likewise.
85540         * m4/d-ino.m4: Likewise.
85541         * m4/d-type.m4: Likewise.
85542         * m4/dirfd.m4: Likewise.
85543         * m4/double-slash-root.m4: Likewise.
85544         * m4/eaccess.m4: Likewise.
85545         * m4/eealloc.m4: Likewise.
85546         * m4/environ.m4: Likewise.
85547         * m4/errno_h.m4: Likewise.
85548         * m4/euidaccess.m4: Likewise.
85549         * m4/execute.m4: Likewise.
85550         * m4/fatal-signal.m4: Likewise.
85551         * m4/fchdir.m4: Likewise.
85552         * m4/fcntl_h.m4: Likewise.
85553         * m4/fileblocks.m4: Likewise.
85554         * m4/filenamecat.m4: Likewise.
85555         * m4/findprog.m4: Likewise.
85556         * m4/flexmember.m4: Likewise.
85557         * m4/fnmatch.m4: Likewise.
85558         * m4/fopen.m4: Likewise.
85559         * m4/fpending.m4: Likewise.
85560         * m4/fprintf-posix.m4: Likewise.
85561         * m4/free.m4: Likewise.
85562         * m4/frexp.m4: Likewise.
85563         * m4/frexpl.m4: Likewise.
85564         * m4/fsusage.m4: Likewise.
85565         * m4/ftruncate.m4: Likewise.
85566         * m4/gc-camellia.m4: Likewise.
85567         * m4/gc-random.m4: Likewise.
85568         * m4/gc.m4: Likewise.
85569         * m4/getaddrinfo.m4: Likewise.
85570         * m4/getcwd-abort-bug.m4: Likewise.
85571         * m4/getcwd-path-max.m4: Likewise.
85572         * m4/getdate.m4: Likewise.
85573         * m4/getdomainname.m4: Likewise.
85574         * m4/getgroups.m4: Likewise.
85575         * m4/gethostname.m4: Likewise.
85576         * m4/gethrxtime.m4: Likewise.
85577         * m4/getline.m4: Likewise.
85578         * m4/getloadavg.m4: Likewise.
85579         * m4/getndelim2.m4: Likewise.
85580         * m4/getpass.m4: Likewise.
85581         * m4/gettext.m4: Likewise.
85582         * m4/gettime.m4: Likewise.
85583         * m4/gettimeofday.m4: Likewise.
85584         * m4/gnulib-common.m4: Likewise.
85585         * m4/group-member.m4: Likewise.
85586         * m4/host-os.m4: Likewise.
85587         * m4/iconv.m4: Likewise.
85588         * m4/iconv_open.m4: Likewise.
85589         * m4/inet_ntop.m4: Likewise.
85590         * m4/inet_pton.m4: Likewise.
85591         * m4/inline.m4: Likewise.
85592         * m4/intldir.m4: Likewise.
85593         * m4/intlmacosx.m4: Likewise.
85594         * m4/intmax.m4: Likewise.
85595         * m4/intmax_t.m4: Likewise.
85596         * m4/inttypes.m4: Likewise.
85597         * m4/inttypes_h.m4: Likewise.
85598         * m4/inttypes-pri.m4: Likewise.
85599         * m4/isapipe.m4: Likewise.
85600         * m4/isnand.m4: Likewise.
85601         * m4/isnanf.m4: Likewise.
85602         * m4/isnanl.m4: Likewise.
85603         * m4/javacomp.m4: Likewise.
85604         * m4/javaexec.m4: Likewise.
85605         * m4/jm-winsz1.m4: Likewise.
85606         * m4/jm-winsz2.m4: Likewise.
85607         * m4/lchown.m4: Likewise.
85608         * m4/lcmessage.m4: Likewise.
85609         * m4/ldexpl.m4: Likewise.
85610         * m4/lib-ld.m4: Likewise.
85611         * m4/lib-link.m4: Likewise.
85612         * m4/libsigsegv.m4: Likewise.
85613         * m4/link-follow.m4: Likewise.
85614         * m4/localcharset.m4: Likewise.
85615         * m4/locale-fr.m4: Likewise.
85616         * m4/locale-ja.m4: Likewise.
85617         * m4/locale-tr.m4: Likewise.
85618         * m4/locale-zh.m4: Likewise.
85619         * m4/lock.m4: Likewise.
85620         * m4/longlong.m4: Likewise.
85621         * m4/ls-mntd-fs.m4: Likewise.
85622         * m4/lstat.m4: Likewise.
85623         * m4/malloc.m4: Likewise.
85624         * m4/mathl.m4: Likewise.
85625         * m4/mbrtowc.m4: Likewise.
85626         * m4/mbstate_t.m4: Likewise.
85627         * m4/mbswidth.m4: Likewise.
85628         * m4/memchr.m4: Likewise.
85629         * m4/memcmp.m4: Likewise.
85630         * m4/memcpy.m4: Likewise.
85631         * m4/memmem.m4: Likewise.
85632         * m4/memmove.m4: Likewise.
85633         * m4/mempcpy.m4: Likewise.
85634         * m4/memrchr.m4: Likewise.
85635         * m4/memset.m4: Likewise.
85636         * m4/minmax.m4: Likewise.
85637         * m4/mkdir-slash.m4: Likewise.
85638         * m4/mkdtemp.m4: Likewise.
85639         * m4/mktime.m4: Likewise.
85640         * m4/mmap-anon.m4: Likewise.
85641         * m4/mountlist.m4: Likewise.
85642         * m4/nanosleep.m4: Likewise.
85643         * m4/nls.m4: Likewise.
85644         * m4/nocrash.m4: Likewise.
85645         * m4/open.m4: Likewise.
85646         * m4/openat.m4: Likewise.
85647         * m4/openmp.m4: Likewise.
85648         * m4/pathmax.m4: Likewise.
85649         * m4/perl.m4: Likewise.
85650         * m4/physmem.m4: Likewise.
85651         * m4/pipe.m4: Likewise.
85652         * m4/po.m4: Likewise.
85653         * m4/poll.m4: Likewise.
85654         * m4/posixtm.m4: Likewise.
85655         * m4/posixver.m4: Likewise.
85656         * m4/printf-frexp.m4: Likewise.
85657         * m4/printf-frexpl.m4: Likewise.
85658         * m4/printf-posix.m4: Likewise.
85659         * m4/printf-posix-rpl.m4: Likewise.
85660         * m4/printf.m4: Likewise.
85661         * m4/progtest.m4: Likewise.
85662         * m4/putenv.m4: Likewise.
85663         * m4/readline.m4: Likewise.
85664         * m4/readlink.m4: Likewise.
85665         * m4/readutmp.m4: Likewise.
85666         * m4/realloc.m4: Likewise.
85667         * m4/regex.m4: Likewise.
85668         * m4/relocatable.m4: Likewise.
85669         * m4/relocatable-lib.m4: Likewise.
85670         * m4/rename-dest-slash.m4: Likewise.
85671         * m4/rename.m4: Likewise.
85672         * m4/rmdir-errno.m4: Likewise.
85673         * m4/rmdir.m4: Likewise.
85674         * m4/roundf.m4: Likewise.
85675         * m4/roundl.m4: Likewise.
85676         * m4/rpmatch.m4: Likewise.
85677         * m4/save-cwd.m4: Likewise.
85678         * m4/selinux-selinux-h.m4: Likewise.
85679         * m4/setenv.m4: Likewise.
85680         * m4/settime.m4: Likewise.
85681         * m4/sig2str.m4: Likewise.
85682         * m4/sig_atomic_t.m4: Likewise.
85683         * m4/signalblocking.m4: Likewise.
85684         * m4/signbit.m4: Likewise.
85685         * m4/sigpipe.m4: Likewise.
85686         * m4/sockets.m4: Likewise.
85687         * m4/sockpfaf.m4: Likewise.
85688         * m4/st_dm_mode.m4: Likewise.
85689         * m4/stat-time.m4: Likewise.
85690         * m4/stdbool.m4: Likewise.
85691         * m4/stdint.m4: Likewise.
85692         * m4/stdint_h.m4: Likewise.
85693         * m4/stpcpy.m4: Likewise.
85694         * m4/stpncpy.m4: Likewise.
85695         * m4/strcase.m4: Likewise.
85696         * m4/strchrnul.m4: Likewise.
85697         * m4/strcspn.m4: Likewise.
85698         * m4/strdup.m4: Likewise.
85699         * m4/strftime.m4: Likewise.
85700         * m4/strndup.m4: Likewise.
85701         * m4/strnlen.m4: Likewise.
85702         * m4/strpbrk.m4: Likewise.
85703         * m4/strptime.m4: Likewise.
85704         * m4/strsep.m4: Likewise.
85705         * m4/strtod.m4: Likewise.
85706         * m4/strtoimax.m4: Likewise.
85707         * m4/strtok_r.m4: Likewise.
85708         * m4/strtol.m4: Likewise.
85709         * m4/strtoll.m4: Likewise.
85710         * m4/strtoul.m4: Likewise.
85711         * m4/strtoull.m4: Likewise.
85712         * m4/strtoumax.m4: Likewise.
85713         * m4/strverscmp.m4: Likewise.
85714         * m4/threadlib.m4: Likewise.
85715         * m4/timegm.m4: Likewise.
85716         * m4/tm_gmtoff.m4: Likewise.
85717         * m4/tmpdir.m4: Likewise.
85718         * m4/tmpfile.m4: Likewise.
85719         * m4/tzset.m4: Likewise.
85720         * m4/uintmax_t.m4: Likewise.
85721         * m4/unlinkdir.m4: Likewise.
85722         * m4/unlocked-io.m4: Likewise.
85723         * m4/uptime.m4: Likewise.
85724         * m4/userspec.m4: Likewise.
85725         * m4/utimbuf.m4: Likewise.
85726         * m4/utime.m4: Likewise.
85727         * m4/utimes-null.m4: Likewise.
85728         * m4/utimes.m4: Likewise.
85729         * m4/vararrays.m4: Likewise.
85730         * m4/vasnprintf.m4: Likewise.
85731         * m4/vfprintf-posix.m4: Likewise.
85732         * m4/vprintf-posix.m4: Likewise.
85733         * m4/wait-process.m4: Likewise.
85734         * m4/wchar_t.m4: Likewise.
85735         * m4/wint_t.m4: Likewise.
85736         * m4/write-any-file.m4: Likewise.
85737         * m4/yield.m4: Likewise.
85739 2009-01-13  Bruno Haible  <bruno@clisp.org>
85741         Avoid test-copy-file.sh failures when ACL support insufficient.
85742         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
85743         TESTS_ENVIRONMENT.
85744         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
85745         Reported by Jim Meyering.
85747 2009-01-13  Bruno Haible  <bruno@clisp.org>
85749         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
85750         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
85751         * modules/unistdio/u8-printf-parse (Files): Likewise.
85752         * modules/unistdio/u32-printf-parse (Files): Likewise.
85753         * modules/unistdio/ulc-printf-parse (Files): Likewise.
85755 2009-01-13  Simon Josefsson  <simon@josefsson.org>
85757         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
85758         and m4/inttypes_h.m4 too.
85760 2009-01-12  Eric Blake  <ebb9@byu.net>
85762         tests: IRIX 6.2 cc can't compile -0.0 into .data
85763         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
85764         rather than at compile-time.
85765         * tests/test-floorl.c (minus_zero): Likewise.
85766         * tests/test-frexpl.c (minus_zero): Likewise.
85767         * tests/test-isnan.c (minus_zerol): Likewise.
85768         * tests/test-isnanl.h (minus_zero): Likewise.
85769         * tests/test-ldexpl.c (minus_zero): Likewise.
85770         * tests/test-roundl.c (minus_zero): Likewise.
85771         * tests/test-signbit.c (minus_zerol): Likewise.
85772         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
85773         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
85774         * tests/test-truncl.c (minus_zero): Likewise.
85775         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
85776         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
85777         Reported by Tom G. Christensen and Nelson H. F. Beebe.
85779 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
85781         regex: fix glibc bug 9697
85782         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
85783         handling.
85785 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
85787         regex: fix glibc bug 697
85788         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
85789         being NULL also if there are no backreferences.
85791 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
85793         regex: merge glibc changes
85794         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
85795         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
85796         re_string_skip_chars, re_string_reconstruct): Likewise.
85797         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
85799 2009-01-07  Jim Meyering  <meyering@redhat.com>
85801         poll: filter through cppi
85802         * lib/poll.c: Indent cpp directives to reflect nesting.
85804 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
85806         poll: don't return uninitialized
85807         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
85809 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
85811         avoid compile failure on AIX 6.1
85812         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
85813         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
85815 2009-01-04  Jim Meyering  <meyering@redhat.com>
85817         remove duplicate inclusion of <stdio.h>
85818         * tests/test-fprintf-posix.c: Likewise.
85819         * tests/test-printf-posix.c: Likewise.
85820         * tests/test-snprintf-posix.c: Likewise.
85821         * tests/test-sprintf-posix.c: Likewise.
85822         * tests/test-vasprintf-posix.c: Likewise.
85823         * tests/test-vfprintf-posix.c: Likewise.
85824         * tests/test-vprintf-posix.c: Likewise.
85825         * tests/test-vsnprintf-posix.c: Likewise.
85826         * tests/test-vsprintf-posix.c: Likewise.
85828 2009-01-03  Jim Meyering  <meyering@redhat.com>
85830         gnulib-tool: fix sed-based filtering
85831         * gnulib-tool (func_filter_filelist): Remove extra backslash
85832         in sed_fff_filter definition.
85834 2009-01-02  Jim Meyering  <meyering@redhat.com>
85836         strftime: avoid compilation failure on Solaris 2.6
85837         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
85838         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
85839         Don't #define mbrlen or mbsinit, since now they're guaranteed to
85840         be available.  Reported by Tom G. Christensen.  Details in
85841         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
85843 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85844             Bruno Haible  <bruno@clisp.org>
85846         Speed up gnulib-tool by doing more string processing through shell
85847         built-ins.
85848         * gnulib-tool (fast_func_append): New variable.
85849         (func_remove_prefix, func_remove_suffix): New functions.
85850         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
85851         (func_filter_filelist): New function.
85852         (func_get_dependencies): Use func_remove_suffix instead of sed.
85853         (func_get_automake_snippet): Use func_filter_filelist instead of a
85854         subshell and sed invocation.
85856 2009-01-01  Bruno Haible  <bruno@clisp.org>
85858         Fix a security bug.
85859         * gnulib-tool (func_import, import, update): Don't allow the characters
85860         '"', '$', '`', '\' in macro arguments that become part of commands that
85861         are evaluated.
85863 2009-01-01  Bruno Haible  <bruno@clisp.org>
85865         * gnulib-tool (func_reset_sigpipe): Add more comments.
85867 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85869         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
85870         func_emit_tests_Makefile_am, func_import): Abort loops early if we
85871         already know the answer.
85873 2009-01-01  Jim Meyering  <meyering@redhat.com>
85875         * lib/version-etc.c (version_etc_va): Update copyright year.
85877 2008-12-30  Bruno Haible  <bruno@clisp.org>
85879         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
85880         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
85881         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
85883 2008-12-29  Eric Blake  <ebb9@byu.net>
85885         multiarch: avoid autoconf AC_REQUIRE bug
85886         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
85887         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
85888         2.63 and older.
85889         Reported by Bruno Haible, and analyzed in
85890         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
85892 2008-12-29  Bruno Haible  <bruno@clisp.org>
85894         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
85895         files in subdirectories correctly.
85896         Reported by Ralf Wildenhues.
85898 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85900         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
85901         rather than 'join FILE -', for Solaris join.
85903 2008-12-29  Bruno Haible  <bruno@clisp.org>
85905         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
85906         quoting.
85907         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85908         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
85909         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
85910         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
85911         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
85912         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
85913         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
85914         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
85915         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
85916         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
85917         * m4/nls.m4 (AM_NLS): Likewise.
85918         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
85919         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
85920         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85921         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
85922         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
85923         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
85924         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
85925         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
85926         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
85927         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
85928         * m4/xsize.m4 (gl_XSIZE): Likewise.
85929         Suggested by Jim Meyering.
85931 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85933         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
85934         * lib/parse-duration.c: use a switch instead of cascading if's.
85936 2008-12-29  Eric Blake  <ebb9@byu.net>
85938         wchar.h: supply WEOF on Irix 5.3
85939         * lib/wchar.in.h (wint_t): Also supply WEOF.
85940         * lib/wctype.in.h (wint_t): Likewise.
85941         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
85942         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
85943         Reported by Tom G. Christensen.
85945 2008-12-26  Bruno Haible  <bruno@clisp.org>
85947         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
85948         i486, i586, i686.
85950 2008-12-26  Bruno Haible  <bruno@clisp.org>
85952         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
85954 2008-12-26  Bruno Haible  <bruno@clisp.org>
85956         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
85957         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
85958         not __STDC_CONSTANT_MACROS.
85959         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
85961 2008-12-25  Bruno Haible  <bruno@clisp.org>
85963         Add support for universal builds to vasnprintf.
85964         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
85965         universal builds, guess no.
85966         * modules/vasnprintf-posix (Depends-on): Add multiarch.
85967         * modules/vasprintf-posix (Depends-on): Likewise.
85968         * modules/fprintf-posix (Depends-on): Likewise.
85969         * modules/vfprintf-posix (Depends-on): Likewise.
85970         * modules/snprintf-posix (Depends-on): Likewise.
85971         * modules/vsnprintf-posix (Depends-on): Likewise.
85972         * modules/sprintf-posix (Depends-on): Likewise.
85973         * modules/vsprintf-posix (Depends-on): Likewise.
85974         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
85975         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
85976         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
85977         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
85978         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
85979         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
85980         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
85982         Add support for universal builds to <inttypes.h>.
85983         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
85984         _SCNu64_PREFIX): In Apple
85985         universal builds, define directly, using _LP64.
85986         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
85987         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
85988         * modules/inttypes (Depends-on): Add multiarch.
85989         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
85991         Add support for universal builds to <stdint.h>.
85992         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
85993         universal builds, define directly, using _LP64.
85994         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
85995         Apple universal builds, don't test for the size and suffix of ptrdiff_t
85996         and size_t.
85997         * modules/stdint (Depends-on): Add multiarch.
85998         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86000         New module 'multiarch'.
86001         * modules/multiarch: New file.
86002         * m4/multiarch.m4: New file.
86004 2008-12-25  Bruno Haible  <bruno@clisp.org>
86006         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
86008 2008-12-25  Bruno Haible  <bruno@clisp.org>
86010         * modules/btowc (License): Relicense under LGPLv2+.
86011         * modules/mbsinit (License): Likewise.
86012         * modules/mbrtowc (License): Likewise.
86013         * modules/wcrtomb (License): Likewise.
86014         * modules/streq (License): Likewise.
86015         Reported by David Lutterkort <lutter@redhat.com>.
86017 2008-12-23  Bruno Haible  <bruno@clisp.org>
86019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
86021 2008-12-23  Bruno Haible  <bruno@clisp.org>
86023         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
86024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
86025         GETADDRINFO_LIB, not in LIBS.
86026         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
86027         * modules/canon-host (Link): Likewise.
86028         * NEWS: Mention the change.
86029         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
86030         GETADDRINFO_LIB.
86032 2008-12-22  Bruno Haible  <bruno@clisp.org>
86034         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
86035         * doc/posix-functions/iswalpha_l.texi: Likewise.
86036         * doc/posix-functions/iswblank_l.texi: Likewise.
86037         * doc/posix-functions/iswcntrl_l.texi: Likewise.
86038         * doc/posix-functions/iswctype_l.texi: Likewise.
86039         * doc/posix-functions/iswdigit_l.texi: Likewise.
86040         * doc/posix-functions/iswgraph_l.texi: Likewise.
86041         * doc/posix-functions/iswlower_l.texi: Likewise.
86042         * doc/posix-functions/iswprint_l.texi: Likewise.
86043         * doc/posix-functions/iswpunct_l.texi: Likewise.
86044         * doc/posix-functions/iswspace_l.texi: Likewise.
86045         * doc/posix-functions/iswupper_l.texi: Likewise.
86046         * doc/posix-functions/iswxdigit_l.texi: Likewise.
86047         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
86048         * doc/posix-functions/open_wmemstream.texi: Likewise.
86049         * doc/posix-functions/swscanf.texi: Likewise.
86050         * doc/posix-functions/towctrans_l.texi: Likewise.
86051         * doc/posix-functions/towlower.texi: Likewise.
86052         * doc/posix-functions/towlower_l.texi: Likewise.
86053         * doc/posix-functions/towupper.texi: Likewise.
86054         * doc/posix-functions/towupper_l.texi: Likewise.
86055         * doc/posix-functions/vfwprintf.texi: Likewise.
86056         * doc/posix-functions/vfwscanf.texi: Likewise.
86057         * doc/posix-functions/vswscanf.texi: Likewise.
86058         * doc/posix-functions/vwprintf.texi: Likewise.
86059         * doc/posix-functions/vwscanf.texi: Likewise.
86060         * doc/posix-functions/wcpcpy.texi: Likewise.
86061         * doc/posix-functions/wcpncpy.texi: Likewise.
86062         * doc/posix-functions/wcscasecmp.texi: Likewise.
86063         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
86064         * doc/posix-functions/wcscoll_l.texi: Likewise.
86065         * doc/posix-functions/wcsdup.texi: Likewise.
86066         * doc/posix-functions/wcsncasecmp.texi: Likewise.
86067         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
86068         * doc/posix-functions/wcsnlen.texi: Likewise.
86069         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86070         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
86071         * doc/posix-functions/wctrans_l.texi: Likewise.
86072         * doc/posix-functions/wctype_l.texi: Likewise.
86073         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
86074         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
86075         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
86076         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
86077         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
86078         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
86079         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
86080         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
86081         * doc/glibc-functions/wcschrnul.texi: Likewise.
86082         * doc/glibc-functions/wcsftime_l.texi: Likewise.
86083         * doc/glibc-functions/wcstod_l.texi: Likewise.
86084         * doc/glibc-functions/wcstof_l.texi: Likewise.
86085         * doc/glibc-functions/wcstol_l.texi: Likewise.
86086         * doc/glibc-functions/wcstold_l.texi: Likewise.
86087         * doc/glibc-functions/wcstoll_l.texi: Likewise.
86088         * doc/glibc-functions/wcstoq.texi: Likewise.
86089         * doc/glibc-functions/wcstoul_l.texi: Likewise.
86090         * doc/glibc-functions/wcstoull_l.texi: Likewise.
86091         * doc/glibc-functions/wcstouq.texi: Likewise.
86092         * doc/glibc-functions/wmempcpy.texi: Likewise.
86094 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
86095             Eric Blake  <ebb9@byu.net>
86096             Paolo Bonzini  <bonzini@gnu.org>
86097             Bruno Haible  <bruno@clisp.org>
86099         Make c-stack work on Haiku.
86100         * lib/c-stack.c (SA_ONSTACK): Define fallback.
86101         (c_stack_action): Use SA_ONSTACK flag.
86103 2008-12-22  Bruno Haible  <bruno@clisp.org>
86105         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
86107 2008-12-22  Bruno Haible  <bruno@clisp.org>
86109         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
86110         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
86111         being overridden.
86112         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
86113         New macros.
86114         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
86115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
86116         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
86117         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
86119 2008-12-22  Bruno Haible  <bruno@clisp.org>
86121         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
86122         from test code.
86124 2008-12-22  Eric Blake  <ebb9@byu.net>
86126         Avoid gcc warnings on cygwin.
86127         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
86128         Avoid unused variable.
86129         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
86130         Likewise.
86132 2008-12-22  Bruno Haible  <bruno@clisp.org>
86134         Remove HAVE_MBRTOWC conditionals.
86135         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
86136         (mbscasecmp): Assume mbrtowc function.
86137         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
86138         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
86139         * lib/mbschr.c: Include mbuiter.h unconditionally.
86140         (mbschr): Assume mbrtowc function.
86141         * lib/mbscspn.c: Include mbuiter.h unconditionally.
86142         (mbscspn): Assume mbrtowc function.
86143         * lib/mbslen.c: Include mbuiter.h unconditionally.
86144         (mbslen): Assume mbrtowc function.
86145         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
86146         (mbsncasecmp): Assume mbrtowc function.
86147         * lib/mbsnlen.c: Include mbiter.h unconditionally.
86148         (mbsnlen): Assume mbrtowc function.
86149         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
86150         (mbspbrk): Assume mbrtowc function.
86151         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
86152         (mbspcasecmp): Assume mbrtowc function.
86153         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
86154         (mbsrchr): Assume mbrtowc function.
86155         * lib/mbssep.c: Include mbuiter.h unconditionally.
86156         (mbssep): Assume mbrtowc function.
86157         * lib/mbsspn.c: Include mbuiter.h unconditionally.
86158         (mbsspn): Assume mbrtowc function.
86159         * lib/mbsstr.c: Include mbuiter.h unconditionally.
86160         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
86161         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
86162         (mbstok_r): Assume mbrtowc function.
86163         * lib/propername.c: Include mbuiter.h unconditionally.
86164         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
86165         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
86166         (trim2): Assume mbrtowc function.
86167         * lib/mbswidth.c (mbsinit): Remove fallback definition.
86168         (mbsnwidth): Assume mbrtowc function.
86169         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
86170         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
86171         fallback definitions.
86172         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
86174 2008-12-22  Bruno Haible  <bruno@clisp.org>
86176         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
86178 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
86180         * modules/regex: Request emulations for the mb*/wc* functions we need.
86181         * m4/regex.m4: Don't look for those functions here.
86182         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
86184 2008-12-22  Bruno Haible  <bruno@clisp.org>
86186         * modules/fnmatch (Depends-on): Remove duplicated dependency.
86188 2008-12-21  Bruno Haible  <bruno@clisp.org>
86190         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
86191         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
86192         (Include): Remove conditionalization.
86193         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
86194         (Include): Remove conditionalization.
86195         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
86196         (Include): Remove conditionalization.
86197         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
86198         * m4/mbfile.m4 (gl_MBFILE): Likewise.
86199         * NEWS: Mention the change.
86200         Reported by Alan Hourihane <alanh@fairlite.co.uk>
86201         via Sergey Poznyakoff <gray@gnu.org.ua>.
86203 2008-12-21  Bruno Haible  <bruno@clisp.org>
86205         * MODULES.html.sh (Extended multibyte and wide character utilities
86206         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
86207         wcrtomb, wcsrtombs.
86208         (Support for systems lacking POSIX:2008): Add accept, bind, close,
86209         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
86210         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
86211         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
86213 2008-12-21  Bruno Haible  <bruno@clisp.org>
86215         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
86217 2008-12-21  Bruno Haible  <bruno@clisp.org>
86219         * modules/wcsnrtombs-tests: New file.
86220         * tests/test-wcsnrtombs1.sh: New file.
86221         * tests/test-wcsnrtombs2.sh: New file.
86222         * tests/test-wcsnrtombs3.sh: New file.
86223         * tests/test-wcsnrtombs4.sh: New file.
86224         * tests/test-wcsnrtombs.c: New file.
86226         New module 'wcsnrtombs'.
86227         * lib/wchar.in.h (wcsnrtombs): New declaration.
86228         * lib/wcsnrtombs.c: New file.
86229         * lib/wcsrtombs-state.c: New file.
86230         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
86231         (internal_state): Remove variable.
86232         * m4/wcsnrtombs.m4: New file.
86233         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
86234         compilation units.
86235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
86236         HAVE_WCSNRTOMBS.
86237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
86238         HAVE_WCSNRTOMBS.
86239         * modules/wcsnrtombs: New file.
86240         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
86241         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
86243 2008-12-21  Bruno Haible  <bruno@clisp.org>
86245         * modules/wcsrtombs-tests: New file.
86246         * tests/test-wcsrtombs1.sh: New file.
86247         * tests/test-wcsrtombs2.sh: New file.
86248         * tests/test-wcsrtombs3.sh: New file.
86249         * tests/test-wcsrtombs4.sh: New file.
86250         * tests/test-wcsrtombs.c: New file.
86252         New module 'wcsrtombs'.
86253         * lib/wchar.in.h (wcsrtombs): New declaration.
86254         * lib/wcsrtombs.c: New file.
86255         * m4/wcsrtombs.m4: New file.
86256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
86257         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
86259         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86260         * modules/wcsrtombs: New file.
86261         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
86262         bugs.
86264 2008-12-21  Bruno Haible  <bruno@clisp.org>
86266         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
86267         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
86268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
86269         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
86270         if not correct.
86271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
86272         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
86273         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86274         m4/locale-zh.m4, m4/codeset.m4.
86275         * doc/posix-functions/wcrtomb.texi: Document the bug.
86277 2008-12-21  Bruno Haible  <bruno@clisp.org>
86279         Work around a btowc() bug on IRIX 6.5.
86280         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
86281         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
86282         REPLACE_WTOBC if not.
86283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
86284         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
86285         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
86287 2008-12-21  Bruno Haible  <bruno@clisp.org>
86289         * modules/wcrtomb-tests: New file.
86290         * tests/test-wcrtomb.sh: New file.
86291         * tests/test-wcrtomb.c: New file.
86293         New module 'wcrtomb'.
86294         * lib/wchar.in.h (wcrtomb): New declaration.
86295         * lib/wcrtomb.c: New file.
86296         * m4/wcrtomb.m4: New file.
86297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
86298         HAVE_WCRTOMB.
86299         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
86300         HAVE_WCRTOMB.
86301         * modules/wcrtomb: New file.
86302         * doc/posix-functions/wcrtomb.texi: Mention the new module.
86304 2008-12-21  Bruno Haible  <bruno@clisp.org>
86306         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
86307         * modules/mbsrtowcs (Files): Likewise.
86308         * modules/wctob (Files): Likewise.
86309         * modules/c-strcase-tests (Files): Likewise.
86310         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
86311         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
86312         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
86313         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
86314         * modules/vasnprintf-posix-tests (Files): Likewise.
86316 2008-12-21  William Pursell  <bill.pursell@gmail.com>
86318         gitlog-to-changelog: pass all command-line arguments to git-log
86319         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
86320         it is sometimes convenient to filter the commits in various ways.
86321         gitlog-to-changelog only allows --since to specify a start date,
86322         but git-log itself supports many other filtering mechanisms.
86323         At the moment, I want to filter by branch name.  Rather than
86324         adding a --branch option to gitlog-to-changelog, it seems more
86325         flexible to simply pass all options directly to git-log and let
86326         git do the work.  Notice that this effectively makes --since a
86327         redundant option for gitlog-to-changelog, but removing it would
86328         require current usage to change since calls would then require
86329         an additional '--'.
86331 2008-12-21  Bruno Haible  <bruno@clisp.org>
86333         * modules/mbsnrtowcs-tests: New file.
86334         * tests/test-mbsnrtowcs1.sh: New file.
86335         * tests/test-mbsnrtowcs2.sh: New file.
86336         * tests/test-mbsnrtowcs3.sh: New file.
86337         * tests/test-mbsnrtowcs4.sh: New file.
86338         * tests/test-mbsnrtowcs.c: New file.
86340         New module 'mbsnrtowcs'.
86341         * lib/wchar.in.h (mbsnrtowcs): New declaration.
86342         * lib/mbsnrtowcs.c: New file.
86343         * lib/mbsrtowcs-state.c: New file.
86344         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
86345         (internal_state): Remove variable.
86346         * m4/mbsnrtowcs.m4: New file.
86347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
86348         compilation units.
86349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
86350         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
86351         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
86352         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
86353         * modules/mbsnrtowcs: New file.
86354         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
86355         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
86356         portability problem.
86358 2008-12-21  Bruno Haible  <bruno@clisp.org>
86360         Work around mbsrtowcs bug.
86361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
86362         (gl_FUNC_MBSRTOWCS): Invoke it.
86363         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86364         m4/locale-zh.m4.
86365         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
86367 2008-12-21  Bruno Haible  <bruno@clisp.org>
86369         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
86371 2008-12-21  Bruno Haible  <bruno@clisp.org>
86373         Update doc for AIX.
86374         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
86375         16-bit wchar_t type.
86376         * doc/posix-functions/btowc.texi: Likewise.
86377         * doc/posix-functions/fgetwc.texi: Likewise.
86378         * doc/posix-functions/fgetws.texi: Likewise.
86379         * doc/posix-functions/fputwc.texi: Likewise.
86380         * doc/posix-functions/fputws.texi: Likewise.
86381         * doc/posix-functions/fwide.texi: Likewise.
86382         * doc/posix-functions/fwprintf.texi: Likewise.
86383         * doc/posix-functions/fwscanf.texi: Likewise.
86384         * doc/posix-functions/getwchar.texi: Likewise.
86385         * doc/posix-functions/getwc.texi: Likewise.
86386         * doc/posix-functions/iswalnum.texi: Likewise.
86387         * doc/posix-functions/iswalpha.texi: Likewise.
86388         * doc/posix-functions/iswblank.texi: Likewise.
86389         * doc/posix-functions/iswcntrl.texi: Likewise.
86390         * doc/posix-functions/iswctype.texi: Likewise.
86391         * doc/posix-functions/iswdigit.texi: Likewise.
86392         * doc/posix-functions/iswgraph.texi: Likewise.
86393         * doc/posix-functions/iswlower.texi: Likewise.
86394         * doc/posix-functions/iswprint.texi: Likewise.
86395         * doc/posix-functions/iswpunct.texi: Likewise.
86396         * doc/posix-functions/iswspace.texi: Likewise.
86397         * doc/posix-functions/iswupper.texi: Likewise.
86398         * doc/posix-functions/iswxdigit.texi: Likewise.
86399         * doc/posix-functions/mbrtowc.texi: Likewise.
86400         * doc/posix-functions/mbsrtowcs.texi: Likewise.
86401         * doc/posix-functions/mbstowcs.texi: Likewise.
86402         * doc/posix-functions/mbtowc.texi: Likewise.
86403         * doc/posix-functions/putwchar.texi: Likewise.
86404         * doc/posix-functions/putwc.texi: Likewise.
86405         * doc/posix-functions/swprintf.texi: Likewise.
86406         * doc/posix-functions/tolower.texi: Likewise.
86407         * doc/posix-functions/toupper.texi: Likewise.
86408         * doc/posix-functions/towctrans.texi: Likewise.
86409         * doc/posix-functions/ungetwc.texi: Likewise.
86410         * doc/posix-functions/vswprintf.texi: Likewise.
86411         * doc/posix-functions/wcrtomb.texi: Likewise.
86412         * doc/posix-functions/wcscat.texi: Likewise.
86413         * doc/posix-functions/wcschr.texi: Likewise.
86414         * doc/posix-functions/wcscmp.texi: Likewise.
86415         * doc/posix-functions/wcscoll.texi: Likewise.
86416         * doc/posix-functions/wcscpy.texi: Likewise.
86417         * doc/posix-functions/wcscspn.texi: Likewise.
86418         * doc/posix-functions/wcsftime.texi: Likewise.
86419         * doc/posix-functions/wcslen.texi: Likewise.
86420         * doc/posix-functions/wcsncat.texi: Likewise.
86421         * doc/posix-functions/wcsncmp.texi: Likewise.
86422         * doc/posix-functions/wcsncpy.texi: Likewise.
86423         * doc/posix-functions/wcspbrk.texi: Likewise.
86424         * doc/posix-functions/wcsrchr.texi: Likewise.
86425         * doc/posix-functions/wcsrtombs.texi: Likewise.
86426         * doc/posix-functions/wcsspn.texi: Likewise.
86427         * doc/posix-functions/wcsstr.texi: Likewise.
86428         * doc/posix-functions/wcstod.texi: Likewise.
86429         * doc/posix-functions/wcstof.texi: Likewise.
86430         * doc/posix-functions/wcstoimax.texi: Likewise.
86431         * doc/posix-functions/wcstok.texi: Likewise.
86432         * doc/posix-functions/wcstold.texi: Likewise.
86433         * doc/posix-functions/wcstoll.texi: Likewise.
86434         * doc/posix-functions/wcstol.texi: Likewise.
86435         * doc/posix-functions/wcstombs.texi: Likewise.
86436         * doc/posix-functions/wcstoull.texi: Likewise.
86437         * doc/posix-functions/wcstoul.texi: Likewise.
86438         * doc/posix-functions/wcstoumax.texi: Likewise.
86439         * doc/posix-functions/wcswidth.texi: Likewise.
86440         * doc/posix-functions/wcsxfrm.texi: Likewise.
86441         * doc/posix-functions/wctob.texi: Likewise.
86442         * doc/posix-functions/wctomb.texi: Likewise.
86443         * doc/posix-functions/wctrans.texi: Likewise.
86444         * doc/posix-functions/wctype.texi: Likewise.
86445         * doc/posix-functions/wcwidth.texi: Likewise.
86446         * doc/posix-functions/wmemchr.texi: Likewise.
86447         * doc/posix-functions/wmemcmp.texi: Likewise.
86448         * doc/posix-functions/wmemcpy.texi: Likewise.
86449         * doc/posix-functions/wmemmove.texi: Likewise.
86450         * doc/posix-functions/wmemset.texi: Likewise.
86451         * doc/posix-functions/wprintf.texi: Likewise.
86452         * doc/posix-functions/wscanf.texi: Likewise.
86454 2008-12-21  Bruno Haible  <bruno@clisp.org>
86456         Update doc for HP-UX 11.11.
86457         * doc/posix-functions/btowc.texi: Clarify that the function is missing
86458         in HP-UX version 11.00, not in all versions of HP-UX 11.
86459         * doc/posix-functions/fwide.texi: Likewise.
86460         * doc/posix-functions/fwprintf.texi: Likewise.
86461         * doc/posix-functions/fwscanf.texi: Likewise.
86462         * doc/posix-functions/inet_ntop.texi: Likewise.
86463         * doc/posix-functions/inet_pton.texi: Likewise.
86464         * doc/posix-functions/mbrlen.texi: Likewise.
86465         * doc/posix-functions/mbrtowc.texi: Likewise.
86466         * doc/posix-functions/mbsinit.texi: Likewise.
86467         * doc/posix-functions/mbsrtowcs.texi: Likewise.
86468         * doc/posix-functions/swprintf.texi: Likewise.
86469         * doc/posix-functions/swscanf.texi: Likewise.
86470         * doc/posix-functions/towctrans.texi: Likewise.
86471         * doc/posix-functions/vfwprintf.texi: Likewise.
86472         * doc/posix-functions/vswprintf.texi: Likewise.
86473         * doc/posix-functions/vwprintf.texi: Likewise.
86474         * doc/posix-functions/wcrtomb.texi: Likewise.
86475         * doc/posix-functions/wcsrtombs.texi: Likewise.
86476         * doc/posix-functions/wcsstr.texi: Likewise.
86477         * doc/posix-functions/wctob.texi: Likewise.
86478         * doc/posix-functions/wctrans.texi: Likewise.
86479         * doc/posix-functions/wmemchr.texi: Likewise.
86480         * doc/posix-functions/wmemcmp.texi: Likewise.
86481         * doc/posix-functions/wmemcpy.texi: Likewise.
86482         * doc/posix-functions/wmemmove.texi: Likewise.
86483         * doc/posix-functions/wmemset.texi: Likewise.
86484         * doc/posix-functions/wprintf.texi: Likewise.
86485         * doc/posix-functions/wscanf.texi: Likewise.
86487 2008-12-21  Bruno Haible  <bruno@clisp.org>
86489         Work around a portability problem.
86490         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
86491         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
86493 2008-12-20  Bruno Haible  <bruno@clisp.org>
86495         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
86496         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
86497         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
86498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
86499         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
86501         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
86502         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
86503         set.
86504         (GNULIB_defined_mbstate_t): New macro.
86505         (mbsinit): Redefine if REPLACE_MBSINIT is set.
86506         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
86507         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
86508         reuses the system's mbrtowc function but works around the bugs.
86509         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
86510         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
86511         macros.
86512         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
86513         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
86514         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
86515         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
86516         REPLACE_MBSINIT if mbsinit needs to be overridden.
86517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
86518         REPLACE_MBSINIT, REPLACE_MBRTOWC.
86519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
86520         REPLACE_MBSINIT, REPLACE_MBRTOWC.
86521         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86522         m4/locale-zh.m4.
86523         (Depends): Add mbsinit.
86524         * modules/mbsinit (Depends): Add mbrtowc.
86525         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
86527 2008-12-20  Bruno Haible  <bruno@clisp.org>
86529         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
86530         so that there are no conversion errors on AIX.
86531         * tests/test-mbsrtowcs.c (main): LIkewise.
86533 2008-12-20  Bruno Haible  <bruno@clisp.org>
86535         Work around wctob bug on Solaris <= 9.
86536         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
86537         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
86538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
86539         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
86540         * modules/wctob (Files): Add m4/locale-fr.m4.
86541         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
86543 2008-12-20  Bruno Haible  <bruno@clisp.org>
86545         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
86546         /dev/null.
86547         * tests/test-select-in.sh: Likewise.
86548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86550 2008-12-20  Bruno Haible  <bruno@clisp.org>
86552         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
86553         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
86554         Cygwin 1.5.x.
86556 2008-12-20  Bruno Haible  <bruno@clisp.org>
86558         Ensure mbstate_t is defined on HP-UX 11.11.
86559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
86560         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
86561         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
86562         AC_USE_SYSTEM_EXTENSIONS.
86563         * modules/fnmatch (Depends-on): Add extensions.
86564         * modules/mbrlen (Depends-on): Likewise.
86565         * modules/mbrtowc (Depends-on): Likewise.
86566         * modules/mbsinit (Depends-on): Likewise.
86567         * modules/mbsrtowcs (Depends-on): Likewise.
86568         * modules/mbswidth (Depends-on): Likewise.
86569         * modules/quotearg (Depends-on): Likewise.
86570         * modules/strftime (Depends-on): Likewise.
86572 2008-12-20  Bruno Haible  <bruno@clisp.org>
86574         Ensure wctob is declared on IRIX 6.5.
86575         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
86576         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
86577         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
86578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
86579         of HAVE_WCTOB.
86580         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
86581         HAVE_WCTOB.
86582         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
86584 2008-12-19  Bruno Haible  <bruno@clisp.org>
86586         * modules/mbsrtowcs-tests: New file.
86587         * tests/test-mbsrtowcs1.sh: New file.
86588         * tests/test-mbsrtowcs2.sh: New file.
86589         * tests/test-mbsrtowcs3.sh: New file.
86590         * tests/test-mbsrtowcs4.sh: New file.
86591         * tests/test-mbsrtowcs.c: New file.
86593         New module 'mbsrtowcs'.
86594         * lib/wchar.in.h (mbsrtowcs): New declaration.
86595         * lib/mbsrtowcs.c: New file.
86596         * m4/mbsrtowcs.m4: New file.
86597         * modules/mbsrtowcs: New file.
86598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
86599         HAVE_MBSRTOWCS.
86600         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
86601         HAVE_MBSRTOWCS.
86602         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
86604 2008-12-19  Bruno Haible  <bruno@clisp.org>
86606         New module 'mbrlen'.
86607         * lib/wchar.in.h (mbrlen): New declaration.
86608         * lib/mbrlen.c: New file.
86609         * m4/mbrlen.m4: New file.
86610         * modules/mbrlen: New file.
86611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
86612         HAVE_MBRLEN.
86613         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
86614         HAVE_MBRLEN.
86615         * doc/posix-functions/mbrlen.texi: Document the new module.
86617 2008-12-19  Bruno Haible  <bruno@clisp.org>
86619         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
86620         * modules/mbrtowc (Depends-on): Add verify.
86621         Suggested by Paul Eggert.
86623 2008-12-18  Bruno Haible  <bruno@clisp.org>
86625         * modules/mbsinit-tests: New file.
86626         * tests/test-mbsinit.sh: New file.
86627         * tests/test-mbsinit.c: New file.
86629 2008-12-18  Bruno Haible  <bruno@clisp.org>
86631         * modules/mbrtowc-tests: New file.
86632         * tests/test-mbrtowc1.sh: New file.
86633         * tests/test-mbrtowc2.sh: New file.
86634         * tests/test-mbrtowc3.sh: New file.
86635         * tests/test-mbrtowc4.sh: New file.
86636         * tests/test-mbrtowc.c: New file.
86638         New module 'mbrtowc'.
86639         * lib/wchar.in.h (mbstate_t): Override when the system does not have
86640         mbsinit and mbrtowc.
86641         (mbrtowc): New declaration.
86642         * lib/mbrtowc.c: New file.
86643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
86644         * modules/mbrtowc: New file.
86645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
86646         HAVE_MBRTOWC.
86647         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
86648         HAVE_MBRTOWC.
86649         * doc/posix-functions/mbrtowc.texi: Document the new module.
86651 2008-12-18  Bruno Haible  <bruno@clisp.org>
86653         New module 'wctob'.
86654         * lib/wchar.in.h (wctob): New declaration.
86655         * lib/wctob.c: New file.
86656         * m4/wctob.m4: New file.
86657         * modules/wctob: New file.
86658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
86659         HAVE_WCTOB.
86660         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
86661         * doc/posix-functions/wctob.texi: Document the new module.
86663 2008-12-18  Bruno Haible  <bruno@clisp.org>
86665         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
86666         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
86668 2008-12-18  Simon Josefsson  <simon@josefsson.org>
86670         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
86671         G. Christensen" <tgc@jupiterrise.com>.
86673         * lib/flock.c: Need to include errno.h.  Reported by "Tom
86674         G. Christensen" <tgc@jupiterrise.com>.
86676         * lib/flock.c: Need to include string.h.  Reported by "Tom
86677         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
86678         <ebb9@byu.net>.
86680 2008-12-18  Bruno Haible  <bruno@clisp.org>
86682         * m4/locale-ja.m4: New file, from GNU gettext.
86684 2008-12-17  Bruno Haible  <bruno@clisp.org>
86686         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
86687         Suggested by Eric Blake.
86689 2008-12-17  Bruno Haible  <bruno@clisp.org>
86691         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
86693 2008-12-17  Bruno Haible  <bruno@clisp.org>
86695         * lib/mbsinit.c: Include verify.h. Verify an assumption.
86696         * modules/mbsinit (Depends-on): Add verify.
86697         Suggested by Paul Eggert.
86699 2008-12-17  Bruno Haible  <bruno@clisp.org>
86701         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
86702         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
86703         gl_FUNC_MBRTOWC.
86704         * m4/mbiter.m4 (gl_MBITER): LIkewise.
86705         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
86706         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
86707         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
86708         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
86709         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
86710         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
86711         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
86712         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
86713         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
86714         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
86715         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
86716         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
86717         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
86718         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
86719         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
86720         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
86721         * modules/trim (configure.ac): Likewise.
86723 2008-12-17  Bruno Haible  <bruno@clisp.org>
86725         * modules/btowc-tests: New file.
86726         * tests/test-btowc1.sh: New file.
86727         * tests/test-btowc2.sh: New file.
86728         * tests/test-btowc.c: New file.
86730         New module 'btowc'.
86731         * lib/wchar.in.h (btowc): New declaration.
86732         * lib/btowc.c: New file.
86733         * m4/btowc.m4: New file.
86734         * modules/btowc: New file.
86735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
86736         HAVE_BTOWC.
86737         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
86738         * doc/posix-functions/btowc.texi: Document the new module.
86740 2008-12-17  Bruno Haible  <bruno@clisp.org>
86742         New module 'mbsinit'.
86743         * lib/wchar.in.h (mbsinit): New declaration.
86744         * lib/mbsinit.c: New file.
86745         * m4/mbsinit.m4: New file.
86746         * modules/mbsinit: New file.
86747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
86748         HAVE_MBSINIT.
86749         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
86750         HAVE_MBSINIT.
86751         * doc/posix-functions/mbsinit.texi: Document the new module.
86753 2008-12-16  Bruno Haible  <bruno@clisp.org>
86755         * lib/unistd.in.h: Add comment.
86756         * tests/test-environ.c: Don't include <stdlib.h>.
86758 2008-12-16  Bruno Haible  <bruno@clisp.org>
86760         * lib/parse-duration.h (parse_duration): Document return value
86761         convention.
86762         * lib/parse-duration.c: Include specification header first. Add
86763         comments.
86764         (_): Remove macro.
86765         (parse_year_month_day, parse_hour_minute_second): Move side effects
86766         outside of strchr call.
86767         (parse_non_iso8601): Move side effects outside of isspace call.
86768         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
86769         call.
86771 2008-12-16  Bruno Haible  <bruno@clisp.org>
86773         * tests/test-parse-duration.sh: Produce no output when the test
86774         succeeds.
86776 2008-12-16  Bruno Haible  <bruno@clisp.org>
86778         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
86779         expressions.
86781 2008-12-15  Bruno Haible  <bruno@clisp.org>
86783         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
86784         * doc/glibc-functions/flistxattr.texi: Likewise.
86785         * doc/glibc-functions/fopencookie.texi: Likewise.
86786         * doc/glibc-functions/fremovexattr.texi: Likewise.
86787         * doc/glibc-functions/fsetxattr.texi: Likewise.
86788         * doc/glibc-functions/getxattr.texi: Likewise.
86789         * doc/glibc-functions/lgetxattr.texi: Likewise.
86790         * doc/glibc-functions/listxattr.texi: Likewise.
86791         * doc/glibc-functions/llistxattr.texi: Likewise.
86792         * doc/glibc-functions/lremovexattr.texi: Likewise.
86793         * doc/glibc-functions/lsetxattr.texi: Likewise.
86794         * doc/glibc-functions/removexattr.texi: Likewise.
86795         * doc/glibc-functions/setxattr.texi: Likewise.
86796         * doc/posix-functions/open_memstream.texi: Likewise.
86798 2008-12-15  Eric Blake  <ebb9@byu.net>
86800         Update doc for cygwin 1.7.
86801         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
86802         functions.
86803         * doc/posix-functions/fchmodat.texi: Likewise.
86804         * doc/posix-functions/fchownat.texi: Likewise.
86805         * doc/posix-functions/fdopendir.texi: Likewise.
86806         * doc/posix-functions/fmemopen.texi: Likewise.
86807         * doc/posix-functions/freeaddrinfo.texi: Likewise.
86808         * doc/posix-functions/fstatat.texi: Likewise.
86809         * doc/posix-functions/futimens.texi: Likewise.
86810         * doc/posix-functions/gai_strerror.texi: Likewise.
86811         * doc/posix-functions/getaddrinfo.texi: Likewise.
86812         * doc/posix-functions/getnameinfo.texi: Likewise.
86813         * doc/posix-functions/if_freenameindex.texi: Likewise.
86814         * doc/posix-functions/if_indextoname.texi: Likewise.
86815         * doc/posix-functions/if_nameindex.texi: Likewise.
86816         * doc/posix-functions/if_nametoindex.texi: Likewise.
86817         * doc/posix-functions/insque.texi: Likewise.
86818         * doc/posix-functions/linkat.texi: Likewise.
86819         * doc/posix-functions/llrint.texi: Likewise.
86820         * doc/posix-functions/llrintf.texi: Likewise.
86821         * doc/posix-functions/llrintl.texi: Likewise.
86822         * doc/posix-functions/lockf.texi: Likewise.
86823         * doc/posix-functions/lrintl.texi: Likewise.
86824         * doc/posix-functions/mkdirat.texi: Likewise.
86825         * doc/posix-functions/mkfifoat.texi: Likewise.
86826         * doc/posix-functions/mknodat.texi: Likewise.
86827         * doc/posix-functions/mq_close.texi: Likewise.
86828         * doc/posix-functions/mq_getattr.texi: Likewise.
86829         * doc/posix-functions/mq_notify.texi: Likewise.
86830         * doc/posix-functions/mq_open.texi: Likewise.
86831         * doc/posix-functions/mq_receive.texi: Likewise.
86832         * doc/posix-functions/mq_send.texi: Likewise.
86833         * doc/posix-functions/mq_setattr.texi: Likewise.
86834         * doc/posix-functions/mq_timedreceive.texi: Likewise.
86835         * doc/posix-functions/mq_timedsend.texi: Likewise.
86836         * doc/posix-functions/mq_unlink.texi: Likewise.
86837         * doc/posix-functions/open_memstream.texi: Likewise.
86838         * doc/posix-functions/openat.texi: Likewise.
86839         * doc/posix-functions/posix_fadvise.texi: Likewise.
86840         * doc/posix-functions/posix_fallocate.texi: Likewise.
86841         * doc/posix-functions/posix_madvise.texi: Likewise.
86842         * doc/posix-functions/posix_memalign.texi: Likewise.
86843         * doc/posix-functions/posix_openpt.texi: Likewise.
86844         * doc/posix-functions/readlinkat.texi: Likewise.
86845         * doc/posix-functions/remque.texi: Likewise.
86846         * doc/posix-functions/renameat.texi: Likewise.
86847         * doc/posix-functions/rintl.texi: Likewise.
86848         * doc/posix-functions/sem_unlink.texi: Likewise.
86849         * doc/posix-functions/shm_open.texi: Likewise.
86850         * doc/posix-functions/shm_unlink.texi: Likewise.
86851         * doc/posix-functions/signgam.texi: Likewise.
86852         * doc/posix-functions/sigset.texi: Likewise.
86853         * doc/posix-functions/stpcpy.texi: Likewise.
86854         * doc/posix-functions/stpncpy.texi: Likewise.
86855         * doc/posix-functions/strerror.texi: Likewise.
86856         * doc/posix-functions/strtod.texi: Likewise.
86857         * doc/posix-functions/symlinkat.texi: Likewise.
86858         * doc/posix-functions/unlinkat.texi: Likewise.
86859         * doc/posix-functions/utimensat.texi: Likewise.
86860         * doc/glibc-functions/bindresvport.texi: Likewise.
86861         * doc/glibc-functions/dn_expand.texi: Likewise.
86862         * doc/glibc-functions/exp10.texi: Likewise.
86863         * doc/glibc-functions/exp10f.texi: Likewise.
86864         * doc/glibc-functions/fgetxattr.texi: Likewise.
86865         * doc/glibc-functions/flistxattr.texi: Likewise.
86866         * doc/glibc-functions/fopencookie.texi: Likewise.
86867         * doc/glibc-functions/freeifaddrs.texi: Likewise.
86868         * doc/glibc-functions/fremovexattr.texi: Likewise.
86869         * doc/glibc-functions/fsetxattr.texi: Likewise.
86870         * doc/glibc-functions/getifaddrs.texi: Likewise.
86871         * doc/glibc-functions/getxattr.texi: Likewise.
86872         * doc/glibc-functions/lgetxattr.texi: Likewise.
86873         * doc/glibc-functions/listxattr.texi: Likewise.
86874         * doc/glibc-functions/llistxattr.texi: Likewise.
86875         * doc/glibc-functions/lremovexattr.texi: Likewise.
86876         * doc/glibc-functions/lsetxattr.texi: Likewise.
86877         * doc/glibc-functions/pow10.texi: Likewise.
86878         * doc/glibc-functions/pow10f.texi: Likewise.
86879         * doc/glibc-functions/rcmd_af.texi: Likewise.
86880         * doc/glibc-functions/removexattr.texi: Likewise.
86881         * doc/glibc-functions/res_init.texi: Likewise.
86882         * doc/glibc-functions/res_mkquery.texi: Likewise.
86883         * doc/glibc-functions/res_query.texi: Likewise.
86884         * doc/glibc-functions/res_querydomain.texi: Likewise.
86885         * doc/glibc-functions/res_send.texi: Likewise.
86886         * doc/glibc-functions/rresvport_af.texi: Likewise.
86887         * doc/glibc-functions/setxattr.texi: Likewise.
86888         * doc/glibc-functions/strcasestr.texi: Likewise.
86890 2008-12-15  Bruno Haible  <bruno@clisp.org>
86892         Fix compilation error on OSF/1 4.0.
86893         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
86894         <sys/time.h>, simply delegate to the system header.
86895         Reported by Daniel Richard G. <oss@teragram.com>.
86897 2008-12-15  Bruno Haible  <bruno@clisp.org>
86899         * doc/posix-functions/openat.texi: Mention the 'openat' module.
86900         * doc/posix-functions/fchmodat.texi: Likewise.
86901         * doc/posix-functions/fchownat.texi: Likewise.
86902         * doc/posix-functions/fdopendir.texi: Likewise.
86903         * doc/posix-functions/fstatat.texi: Likewise.
86904         * doc/posix-functions/mkdirat.texi: Likewise.
86905         * doc/posix-functions/unlinkat.texi: Likewise.
86907 2008-12-14  Bruno Haible  <bruno@clisp.org>
86909         Update doc for POSIX:2008.
86910         * doc/posix-functions/faccessat.texi: New file.
86911         * doc/posix-functions/fchmodat.texi: New file.
86912         * doc/posix-functions/fchownat.texi: New file.
86913         * doc/posix-functions/fdopendir.texi: New file.
86914         * doc/posix-functions/fstatat.texi: New file.
86915         * doc/posix-functions/futimens.texi: New file.
86916         * doc/posix-functions/linkat.texi: New file.
86917         * doc/posix-functions/mkdirat.texi: New file.
86918         * doc/posix-functions/mkfifoat.texi: New file.
86919         * doc/posix-functions/mknodat.texi: New file.
86920         * doc/posix-functions/open_wmemstream.texi: New file.
86921         * doc/posix-functions/openat.texi: New file.
86922         * doc/posix-functions/psiginfo.texi: New file.
86923         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
86924         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
86925         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
86926         * doc/posix-functions/readlinkat.texi: New file.
86927         * doc/posix-functions/renameat.texi: New file.
86928         * doc/posix-functions/strerror_l.texi: New file.
86929         * doc/posix-functions/symlinkat.texi: New file.
86930         * doc/posix-functions/unlinkat.texi: New file.
86931         * doc/posix-functions/utimensat.texi: New file.
86932         * doc/gnulib.texi (Function Substitutes): Add these subsections.
86934 2008-12-14  Bruno Haible  <bruno@clisp.org>
86936         Update doc for POSIX:2008.
86937         * doc/posix-functions/alphasort.texi: Renamed from
86938         doc/glibc-functions/alphasort.texi.
86939         * doc/posix-functions/dirfd.texi: Renamed from
86940         doc/glibc-functions/dirfd.texi.
86941         * doc/posix-functions/dprintf.texi: Renamed from
86942         doc/glibc-functions/dprintf.texi.
86943         * doc/posix-functions/duplocale.texi: Renamed from
86944         doc/glibc-functions/duplocale.texi.
86945         * doc/posix-functions/fexecve.texi: Renamed from
86946         doc/glibc-functions/fexecve.texi.
86947         * doc/posix-functions/fmemopen.texi: Renamed from
86948         doc/glibc-functions/fmemopen.texi.
86949         * doc/posix-functions/freelocale.texi: Renamed from
86950         doc/glibc-functions/freelocale.texi.
86951         * doc/posix-functions/getdate_err.texi: Renamed from
86952         doc/glibc-functions/getdate_err.texi.
86953         * doc/posix-functions/isalnum_l.texi: Renamed from
86954         doc/glibc-functions/isalnum_l.texi.
86955         * doc/posix-functions/isalpha_l.texi: Renamed from
86956         doc/glibc-functions/isalpha_l.texi.
86957         * doc/posix-functions/isblank_l.texi: Renamed from
86958         doc/glibc-functions/isblank_l.texi.
86959         * doc/posix-functions/iscntrl_l.texi: Renamed from
86960         doc/glibc-functions/iscntrl_l.texi.
86961         * doc/posix-functions/isdigit_l.texi: Renamed from
86962         doc/glibc-functions/isdigit_l.texi.
86963         * doc/posix-functions/isgraph_l.texi: Renamed from
86964         doc/glibc-functions/isgraph_l.texi.
86965         * doc/posix-functions/islower_l.texi: Renamed from
86966         doc/glibc-functions/islower_l.texi.
86967         * doc/posix-functions/isprint_l.texi: Renamed from
86968         doc/glibc-functions/isprint_l.texi.
86969         * doc/posix-functions/ispunct_l.texi: Renamed from
86970         doc/glibc-functions/ispunct_l.texi.
86971         * doc/posix-functions/isspace_l.texi: Renamed from
86972         doc/glibc-functions/isspace_l.texi.
86973         * doc/posix-functions/isupper_l.texi: Renamed from
86974         doc/glibc-functions/isupper_l.texi.
86975         * doc/posix-functions/iswalnum_l.texi: Renamed from
86976         doc/glibc-functions/iswalnum_l.texi.
86977         * doc/posix-functions/iswalpha_l.texi: Renamed from
86978         doc/glibc-functions/iswalpha_l.texi.
86979         * doc/posix-functions/iswblank_l.texi: Renamed from
86980         doc/glibc-functions/iswblank_l.texi.
86981         * doc/posix-functions/iswcntrl_l.texi: Renamed from
86982         doc/glibc-functions/iswcntrl_l.texi.
86983         * doc/posix-functions/iswctype_l.texi: Renamed from
86984         doc/glibc-functions/iswctype_l.texi.
86985         * doc/posix-functions/iswdigit_l.texi: Renamed from
86986         doc/glibc-functions/iswdigit_l.texi.
86987         * doc/posix-functions/iswgraph_l.texi: Renamed from
86988         doc/glibc-functions/iswgraph_l.texi.
86989         * doc/posix-functions/iswlower_l.texi: Renamed from
86990         doc/glibc-functions/iswlower_l.texi.
86991         * doc/posix-functions/iswprint_l.texi: Renamed from
86992         doc/glibc-functions/iswprint_l.texi.
86993         * doc/posix-functions/iswpunct_l.texi: Renamed from
86994         doc/glibc-functions/iswpunct_l.texi.
86995         * doc/posix-functions/iswspace_l.texi: Renamed from
86996         doc/glibc-functions/iswspace_l.texi.
86997         * doc/posix-functions/iswupper_l.texi: Renamed from
86998         doc/glibc-functions/iswupper_l.texi.
86999         * doc/posix-functions/iswxdigit_l.texi: Renamed from
87000         doc/glibc-functions/iswxdigit_l.texi.
87001         * doc/posix-functions/isxdigit_l.texi: Renamed from
87002         doc/glibc-functions/isxdigit_l.texi.
87003         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
87004         doc/glibc-functions/mbsnrtowcs.texi.
87005         * doc/posix-functions/mkdtemp.texi: Renamed from
87006         doc/glibc-functions/mkdtemp.texi.
87007         * doc/posix-functions/newlocale.texi: Renamed from
87008         doc/glibc-functions/newlocale.texi.
87009         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
87010         doc/glibc-functions/nl_langinfo_l.texi.
87011         * doc/posix-functions/open_memstream.texi: Renamed from
87012         doc/glibc-functions/open_memstream.texi.
87013         * doc/posix-functions/opterr.texi: Renamed from
87014         doc/glibc-functions/opterr.texi.
87015         * doc/posix-functions/optind.texi: Renamed from
87016         doc/glibc-functions/optind.texi.
87017         * doc/posix-functions/optopt.texi: Renamed from
87018         doc/glibc-functions/optopt.texi.
87019         * doc/posix-functions/psignal.texi: Renamed from
87020         doc/glibc-functions/psignal.texi.
87021         * doc/posix-functions/scandir.texi: Renamed from
87022         doc/glibc-functions/scandir.texi.
87023         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
87024         doc/glibc-functions/sched_get_priority_min.texi.
87025         * doc/posix-functions/signgam.texi: Renamed from
87026         doc/glibc-functions/signgam.texi.
87027         * doc/posix-functions/stpcpy.texi: Renamed from
87028         doc/glibc-functions/stpcpy.texi.
87029         * doc/posix-functions/stpncpy.texi: Renamed from
87030         doc/glibc-functions/stpncpy.texi.
87031         * doc/posix-functions/strcasecmp_l.texi: Renamed from
87032         doc/glibc-functions/strcasecmp_l.texi.
87033         * doc/posix-functions/strcoll_l.texi: Renamed from
87034         doc/glibc-functions/strcoll_l.texi.
87035         * doc/posix-functions/strfmon_l.texi: Renamed from
87036         doc/glibc-functions/strfmon_l.texi.
87037         * doc/posix-functions/strftime_l.texi: Renamed from
87038         doc/glibc-functions/strftime_l.texi.
87039         * doc/posix-functions/strncasecmp_l.texi: Renamed from
87040         doc/glibc-functions/strncasecmp_l.texi.
87041         * doc/posix-functions/strndup.texi: Renamed from
87042         doc/glibc-functions/strndup.texi.
87043         * doc/posix-functions/strnlen.texi: Renamed from
87044         doc/glibc-functions/strnlen.texi.
87045         * doc/posix-functions/strsignal.texi: Renamed from
87046         doc/glibc-functions/strsignal.texi.
87047         * doc/posix-functions/strxfrm_l.texi: Renamed from
87048         doc/glibc-functions/strxfrm_l.texi.
87049         * doc/posix-functions/timer_gettime.texi: Renamed from
87050         doc/glibc-functions/timer_gettime.texi.
87051         * doc/posix-functions/tolower_l.texi: Renamed from
87052         doc/glibc-functions/tolower_l.texi.
87053         * doc/posix-functions/toupper_l.texi: Renamed from
87054         doc/glibc-functions/toupper_l.texi.
87055         * doc/posix-functions/towctrans_l.texi: Renamed from
87056         doc/glibc-functions/towctrans_l.texi.
87057         * doc/posix-functions/towlower_l.texi: Renamed from
87058         doc/glibc-functions/towlower_l.texi.
87059         * doc/posix-functions/towupper_l.texi: Renamed from
87060         doc/glibc-functions/towupper_l.texi.
87061         * doc/posix-functions/uselocale.texi: Renamed from
87062         doc/glibc-functions/uselocale.texi.
87063         * doc/posix-functions/vdprintf.texi: Renamed from
87064         doc/glibc-functions/vdprintf.texi.
87065         * doc/posix-functions/wcpcpy.texi:
87066         Renamed from doc/glibc-functions/wcpcpy.texi.
87067         * doc/posix-functions/wcpncpy.texi: Renamed from
87068         doc/glibc-functions/wcpncpy.texi.
87069         * doc/posix-functions/wcscasecmp.texi: Renamed from
87070         doc/glibc-functions/wcscasecmp.texi.
87071         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
87072         doc/glibc-functions/wcscasecmp_l.texi.
87073         * doc/posix-functions/wcscoll_l.texi: Renamed from
87074         doc/glibc-functions/wcscoll_l.texi.
87075         * doc/posix-functions/wcsdup.texi: Renamed from
87076         doc/glibc-functions/wcsdup.texi.
87077         * doc/posix-functions/wcsncasecmp.texi: Renamed from
87078         doc/glibc-functions/wcsncasecmp.texi.
87079         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
87080         doc/glibc-functions/wcsncasecmp_l.texi.
87081         * doc/posix-functions/wcsnlen.texi: Renamed from
87082         doc/glibc-functions/wcsnlen.texi.
87083         * doc/posix-functions/wcsnrtombs.texi: Renamed from
87084         doc/glibc-functions/wcsnrtombs.texi.
87085         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
87086         doc/glibc-functions/wcsxfrm_l.texi.
87087         * doc/posix-functions/wctrans_l.texi: Renamed from
87088         doc/glibc-functions/wctrans_l.texi.
87089         * doc/posix-functions/wctype_l.texi: Renamed from
87090         doc/glibc-functions/wctype_l.texi.
87091         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87092         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
87093         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
87094         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
87095         these subsections.
87096         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
87097         Remove sections.
87099 2008-12-14  Bruno Haible  <bruno@clisp.org>
87101         Update doc for POSIX:2008.
87102         * doc/posix-functions/*.texi: Update URL of POSIX specification.
87104 2008-12-14  Bruno Haible  <bruno@clisp.org>
87106         Update doc for POSIX:2008.
87107         * doc/pastposix-functions/bcmp.texi: Renamed from
87108         doc/posix-functions/bcmp.texi.
87109         * doc/pastposix-functions/bcopy.texi: Renamed from
87110         doc/posix-functions/bcopy.texi.
87111         * doc/pastposix-functions/bsd_signal.texi: Renamed from
87112         doc/posix-functions/bsd_signal.texi.
87113         * doc/pastposix-functions/bzero.texi: Renamed from
87114         doc/posix-functions/bzero.texi.
87115         * doc/pastposix-functions/ecvt.texi: Renamed from
87116         doc/posix-functions/ecvt.texi.
87117         * doc/pastposix-functions/fcvt.texi: Renamed from
87118         doc/posix-functions/fcvt.texi.
87119         * doc/pastposix-functions/ftime.texi: Renamed from
87120         doc/posix-functions/ftime.texi.
87121         * doc/pastposix-functions/gcvt.texi: Renamed from
87122         doc/posix-functions/gcvt.texi.
87123         * doc/pastposix-functions/getcontext.texi: Renamed from
87124         doc/posix-functions/getcontext.texi.
87125         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
87126         doc/posix-functions/gethostbyaddr.texi.
87127         * doc/pastposix-functions/gethostbyname.texi: Renamed from
87128         doc/posix-functions/gethostbyname.texi.
87129         * doc/pastposix-functions/getwd.texi: Renamed from
87130         doc/posix-functions/getwd.texi.
87131         * doc/pastposix-functions/h_errno.texi: Renamed from
87132         doc/posix-functions/h_errno.texi.
87133         * doc/pastposix-functions/index.texi: Renamed from
87134         doc/posix-functions/index.texi.
87135         * doc/pastposix-functions/makecontext.texi: Renamed from
87136         doc/posix-functions/makecontext.texi.
87137         * doc/pastposix-functions/mktemp.texi: Renamed from
87138         doc/posix-functions/mktemp.texi.
87139         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
87140         doc/posix-functions/pthread_attr_getstackaddr.texi.
87141         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
87142         doc/posix-functions/pthread_attr_setstackaddr.texi.
87143         * doc/pastposix-functions/rindex.texi: Renamed from
87144         doc/posix-functions/rindex.texi.
87145         * doc/pastposix-functions/scalb.texi: Renamed from
87146         doc/posix-functions/scalb.texi.
87147         * doc/pastposix-functions/setcontext.texi: Renamed from
87148         doc/posix-functions/setcontext.texi.
87149         * doc/pastposix-functions/swapcontext.texi: Renamed from
87150         doc/posix-functions/swapcontext.texi.
87151         * doc/pastposix-functions/ualarm.texi: Renamed from
87152         doc/posix-functions/ualarm.texi.
87153         * doc/pastposix-functions/usleep.texi: Renamed from
87154         doc/posix-functions/usleep.texi.
87155         * doc/pastposix-functions/vfork.texi: Renamed from
87156         doc/posix-functions/vfork.texi.
87157         * doc/pastposix-functions/wcswcs.texi: Renamed from
87158         doc/posix-functions/wcswcs.texi.
87159         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
87160         (Function Substitutes): Update.
87162 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87164         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
87165         m4/strerror.m4.
87167 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87168             Bruno Haible  <bruno@clisp.org>
87170         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
87172 2008-12-13  Bruno Haible  <bruno@clisp.org>
87174         * modules/strtoull (Depends-on): Remove unistd.
87176 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87178         * modules/strtoull (Depends-on): Add stdlib.
87180 2008-12-11  Simon Josefsson  <simon@josefsson.org>
87182         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
87184 2008-12-10  Jim Meyering  <meyering@redhat.com>
87186         gl_ASSERT: don't say assertions are disabled when they're not
87187         * m4/assert.m4 (gl_ASSERT): Do not make configure report
87188         "checking whether to enable assertions... no", when they are in
87189         fact enabled.  This is solely a bug in the output of configure.
87190         In spite of saying "no", NDEBUG was not defined in that case.
87191         Also, as noted by Eric Blake, leave assertions enabled upon
87192         --enable-assert=INVALID.
87194 2008-12-10  Bruno Haible  <bruno@clisp.org>
87196         Change MODULES.html to refer to POSIX:2008 where possible.
87197         * MODULES.html.sh (POSIX2008_URL): New variable.
87198         (posix_headers): Remove sys/timeb, ucontext.
87199         (posix2001_headers): New variable.
87200         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
87201         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
87202         index, makecontext, mktemp, pthread_attr_getstackaddr,
87203         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
87204         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
87205         (posix2001_functions): New variable.
87206         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
87207         otherwise.
87209 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87211         add missing include to parse-duration.c
87212         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
87213         * modules/parse-duration (Depends-on): Add xalloc.
87215         fix sed script reading maint.mk
87216         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
87217         (syntax-check-rules): Use it.
87219 2008-12-09  Bruno Haible  <bruno@clisp.org>
87221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
87222         MacOS X 10.4/PowerPC.
87223         Reported by Simon Josefsson.
87225 2008-12-08  Jim Meyering  <meyering@redhat.com>
87227         work around mingw's lack of some S_IF definitions
87228         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
87229         Reported by Simon Josefsson.
87231 2008-12-08  Bruno Haible  <bruno@clisp.org>
87233         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
87234         applied to variables. Needed on MacOS X 10.4/PowerPC.
87235         Reported by Simon Josefsson.
87237 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
87238         and Eric Blake  <ebb9@byu.net>
87240         assert: honor --enable-assert
87241         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
87242         order to honor --enable-assert, rather than treating it as a
87243         synonym for --disable-assert.
87245 2008-12-08  Jim Meyering  <meyering@redhat.com>
87247         * lib/posixtm.c: Remove now-useless declaration of mktime.
87249         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
87251 2008-12-07  Bruno Haible  <bruno@clisp.org>
87253         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
87254         test_once): Mark functions as static.
87255         * tests/test-tls.c (test_tls): Likewise.
87257 2008-12-07  Bruno Haible  <bruno@clisp.org>
87259         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
87260         iconv_register_autodetect.
87262 2008-12-07  Jim Meyering  <meyering@redhat.com>
87264         posixtm.c: avoid a warning
87265         * lib/posixtm.c (posixtime): Don't initialize tm0.
87266         It's no longer needed to placate gcc4's -Wuninitialized,
87267         and the attempt to placate would elicit a new warning.
87269         unicodeio.c: mark unused parameters
87270         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
87271         (fallback_failure_callback): Likewise.
87273 2008-12-07  Bruno Haible  <bruno@clisp.org>
87275         * gnulib-tool (func_create_testdir): When building the tests
87276         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
87277         Reported by Simon Josefsson.
87279 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87281         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
87283 2008-12-06  Bruno Haible  <bruno@clisp.org>
87285         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
87286         Suggested by Eric Blake.
87288 2008-12-06  Bruno Haible  <bruno@clisp.org>
87290         Fix a c-stack test failure on MacOS X.
87291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
87292         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
87293         handler for SIGBUS as well.
87294         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
87295         install a signal handler for SIGBUS as well.
87296         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
87298 2008-12-06  Bruno Haible  <bruno@clisp.org>
87300         Advocacy documentation.
87301         * doc/gnulib-intro.texi (Benefits): New section.
87302         * doc/gnulib.texi: Update.
87304 2008-12-06  Bruno Haible  <bruno@clisp.org>
87306         Document the 'manywarnings' module.
87307         * doc/manywarnings.texi: New file.
87308         * doc/gnulib.texi: Include it.
87310 2008-12-05  Eric Blake  <ebb9@byu.net>
87312         tests: silence some gcc warnings
87313         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
87314         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
87315         type mismatches.
87317 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87318             Bruno Haible  <bruno@clisp.org>
87320         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
87322 2008-11-29  Jim Meyering  <meyering@redhat.com>
87324         unicodeio.c: mark unused parameters
87325         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
87326         (fallback_failure_callback): Likewise.
87328         fts: fix a thinko
87329         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
87330         (set_stat_type): Return S_IF*-valued "type" directly.
87331         Prompted by James Youngman's spotting a related bug.
87332         Confirmed by further testing through find.
87334         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
87335         * lib/fts.c (D_TYPE): Define.
87336         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
87337         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
87338         (s_ifmt_shift_bits): New function.
87339         (set_stat_type): New function.
87340         (fts_build): When not calling fts_stat, call set_stat_type
87341         to propagate dirent.d_type info to fts_read caller.
87342         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
87343         fts_statp->st_mode type information may be valid.
87345 2008-11-28  Simon Josefsson  <simon@josefsson.org>
87347         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
87348         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
87349         <sds@gnu.org>.
87351 2008-11-20  Bruno Haible  <bruno@clisp.org>
87353         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
87354         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
87355         INCLUDE_NEXT.
87356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
87357         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
87358         * modules/math (Makefile.am): Substitute
87359         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
87360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87362 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
87363             Bruno Haible  <bruno@clisp.org>
87365         * lib/stdint.in.h: Define all type macros so that their expansion is
87366         a single typedef'ed token. Fixes a compilation failure in Boost which
87367         does "using ::int8_t;".
87369 2008-11-18  Simon Josefsson  <simon@josefsson.org>
87371         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
87372         gl_MANYWARN_ALL_GCC.
87373         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
87374         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
87375         * modules/manywarnings: New file.
87376         * MODULES.html.sh: Mention manywarnings module.
87378 2008-11-18  Bruno Haible  <bruno@clisp.org>
87380         * doc/gnulib-tool.texi (Unit tests): New section.
87382 2008-11-18  Simon Josefsson  <simon@josefsson.org>
87384         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
87385         paths like 'lib/po/foo.po'.
87387 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87389         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
87390         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
87392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87394         * m4/warnings.m4: Use CPPFLAGS to really check whether the
87395         parameter works.
87397 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87399         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
87401 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87403         * modules/parse-duration-tests: New file.
87404         * tests/test-parse-duration.sh: New file.
87405         * tests/test-parse-duration.c: New file.
87407         New module 'parse-duration'.
87408         * lib/parse-duration.h: New file.
87409         * lib/parse-duration.c: New file.
87410         * modules/parse-duration: New file.
87412 2008-11-17  Bruno Haible  <bruno@clisp.org>
87414         * tests/test-select-out.sh: Comment out the first pipe test.
87415         Reported by Simon Josefsson.
87417 2008-11-17  Bruno Haible  <bruno@clisp.org>
87419         * modules/getaddrinfo (Depends-on): Add servent, hostent.
87420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
87421         gl_HOSTENT.
87423 2008-11-17  Bruno Haible  <bruno@clisp.org>
87425         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
87426         -lnetwork and -lnet. Needed for Haiku and BeOS.
87428 2008-11-16  Bruno Haible  <bruno@clisp.org>
87430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
87432 2008-11-16  Bruno Haible  <bruno@clisp.org>
87434         Avoid test failure on Haiku.
87435         * tests/test-fsync.c: Include <errno.h>.
87436         (main): Don't require that fsync (0) fails.
87438 2008-11-15  Bruno Haible  <bruno@clisp.org>
87440         New module 'hostent'.
87441         * modules/hostent: New file.
87442         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
87444 2008-11-15  Bruno Haible  <bruno@clisp.org>
87446         New module 'servent'.
87447         * modules/servent: New file.
87448         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
87450 2008-11-15  Bruno Haible  <bruno@clisp.org>
87452         Avoid generating same test program with two different rules.
87453         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
87454         test-frexp to test-frexp-nolibm.
87455         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
87456         test-frexpl to test-frexpl-nolibm.
87458 2008-11-15  Bruno Haible  <bruno@clisp.org>
87460         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
87461         $(FREXPL_LIBM).
87463 2008-11-15  Bruno Haible  <bruno@clisp.org>
87465         * lib/netdb.in.h: Activate the definitions also when the system's
87466         <netdb.h> has 'struct addrinfo'.
87467         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
87468         EAI_OVERFLOW or AI_NUMERICSERV.
87469         * doc/posix-headers/netdb.texi: Document the problem.
87471 2008-11-15  Bruno Haible  <bruno@clisp.org>
87473         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
87475         Make the 'sched' module work on platforms where <sched.h> exists but
87476         is incomplete (such as Haiku).
87477         * lib/sched.in.h; Include the system's <sched.h> if it exists.
87478         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
87479         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
87480         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
87481         HAVE_STRUCT_SCHED_PARAM.
87482         * modules/sched (Depends-on): Add include_next.
87483         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
87484         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
87485         * doc/posix-headers/sched.texi: Document the issue.
87487 2008-11-13  Jim Meyering  <meyering@redhat.com>
87489         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
87490         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
87491         test would fail due to the difference in the Report bugs to ...
87492         line.  The expected address is empty, "<>", while the actual
87493         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
87495 2008-11-12  Bruno Haible  <bruno@clisp.org>
87497         lstat: don't compile lstat.c on systems lacking lstat
87498         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
87499         which don't have lstat; this is handled by lib/sys_stat.in.h already.
87500         Reported by Daniel P. Berrange via Jim Meyering.
87502 2008-11-12  Jim Meyering  <meyering@redhat.com>
87504         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
87506 2008-11-12  Simon Josefsson  <simon@josefsson.org>
87508         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
87509         instead.
87511 2008-11-12  Bruno Haible  <bruno@clisp.org>
87513         * lib/unicodeio.c: Include unistr.h.
87514         (utf8_wctomb): Remove function.
87515         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
87517 2008-11-12  Simon Josefsson  <simon@josefsson.org>
87519         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
87520         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
87521         <bruno@clisp.org>.
87522         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
87524 2008-11-12  Simon Josefsson  <simon@josefsson.org>
87526         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
87527         * doc/gnulib.texi: Add section for warnings.
87529 2008-11-11  Bruno Haible  <bruno@clisp.org>
87531         * lib/sockets.h: Add a comment.
87533 2008-11-11  Karl Berry  <karl@gnu.org>
87535         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
87537 2008-11-11  Eric Blake  <ebb9@byu.net>
87539         fdl.texi: avoid git symlinks
87540         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
87542 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87544         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
87546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87548         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
87549         (gl_WARN_ADD): Substitute $2 if literal.
87551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87553         * m4/warning.m4: Remove.
87555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87557         * m4/warnings.m4: Almost complete rewrite. :-)
87559 2008-11-10  Simon Josefsson  <simon@josefsson.org>
87561         * modules/warnings: New module.
87562         * m4/warnings.m4: New file.
87563         * MODULES.html.sh: Mention warnings module.
87564         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
87565         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87567 2008-11-10  Eric Blake  <ebb9@byu.net>
87569         fdl.texi: make a symlink to the latest version
87570         * doc/standards.texi: Revert today's earlier change.
87571         * doc/fdl-1.2.texi: Rename from old fdl.texi...
87572         * doc/fdl.texi: ...and replace this with a symlink to the newer
87573         fdl-1.3.texi.
87575 2008-11-10  Bruno Haible  <bruno@clisp.org>
87577         * tests/test-select-fd.c (main): Accept the result file name as fourth
87578         argument.
87579         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
87580         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
87582 2008-11-10  Bruno Haible  <bruno@clisp.org>
87584         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
87585         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
87586         as autoconf-substituted macros.
87587         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
87588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
87589         gl_NETDB_H_DEFAULTS. Set these variables.
87590         * modules/netdb (Makefile.am): Substitute these variables.
87592 2008-11-10  Eric Blake  <ebb9@byu.net>
87594         standards.texi: include correct file for FDL 1.3
87595         * doc/standards.texi (GNU Free Documentation License): Change
87596         include file to pull in FDL 1.3, not 1.2.
87598         fdl.texi: revert accidental change to license
87599         * doc/fdl.texi: This is FDL 1.2, not 1.3.
87601 2008-11-10  Bruno Haible  <bruno@clisp.org>
87603         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
87604         cross-compiling guesses also when the native compile gives no result.
87606 2008-11-10  Bruno Haible  <bruno@clisp.org>
87608         * lib/spawni.c (__spawni): Force variable into the stack.
87610 2008-11-10  Bruno Haible  <bruno@clisp.org>
87612         Add support for Haiku.
87613         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
87614         glibc and BeOS, but also on Haiku.
87615         * lib/fpurge.c (fpurge): Likewise.
87616         * lib/freadable.c (freadable): Likewise.
87617         * lib/freadahead.c (freadahead): Likewise.
87618         * lib/freading.c (freading): Likewise.
87619         * lib/freadptr.c (freadptr): Likewise.
87620         * lib/freadseek.c (freadptrinc): Likewise.
87621         * lib/fseeko.c (rpl_fseeko): Likewise.
87622         * lib/fseterr.c (fseterr): Likewise.
87623         * lib/fwritable.c (fwritable): Likewise.
87624         * lib/fwriting.c (fwriting): Likewise.
87625         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
87627 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
87629         * lib/config.charset: Treat Haiku like BeOS.
87631 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
87633         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
87634         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
87636 2008-11-08  Bruno Haible  <bruno@clisp.org>
87638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
87639         AC_CACHE_CHECK.
87641 2008-11-08  Bruno Haible  <bruno@clisp.org>
87643         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
87645 2008-11-08  Bruno Haible  <bruno@clisp.org>
87647         * tests/test-select-fd.c: New file.
87648         * tests/test-select-in.sh: New file.
87649         * tests/test-select-out.sh: New file.
87650         * tests/test-select-stdin.c: New file.
87651         * modules/select-tests (Files): Add the new files.
87652         (Depends-on): Add gettimeofday.
87653         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
87654         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
87655         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
87657 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
87658             Bruno Haible  <bruno@clisp.org>
87660         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
87662 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
87664         * build-aux/pmccabe2html: Added support for C++ source files.
87666 2008-11-05  Ben Pfaff  <blp@gnu.org>
87668         Fix lib/close.c build on Windows.
87669         * modules/close (Files): Add lib/w32sock.h.
87671 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
87673         Accept Bison's NEWS format.
87674         * build-aux/announce-gen (print_news_deltas): Tweak
87675         $re_prefix.
87677 2008-11-04  Bruno Haible  <bruno@clisp.org>
87679         * modules/random_r (Maintainer): Add glibc.
87681 2008-11-04  Simon Josefsson  <simon@josefsson.org>
87683         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
87684         by karl@freefriends.org (Karl Berry).
87685         * doc/alloca.texi: Likewise.
87686         * doc/c-ctype.texi: Likewise.
87687         * doc/c-strcase.texi: Likewise.
87688         * doc/c-strcaseeq.texi: Likewise.
87689         * doc/c-strcasestr.texi: Likewise.
87690         * doc/c-strstr.texi: Likewise.
87691         * doc/c-strtod.texi: Likewise.
87692         * doc/c-strtold.texi: Likewise.
87693         * doc/ctime.texi: Likewise.
87694         * doc/error.texi: Likewise.
87695         * doc/fdl.texi: Likewise.
87696         * doc/gcd.texi: Likewise.
87697         * doc/getdate.texi: Likewise.
87698         * doc/gnulib-intro.texi: Likewise.
87699         * doc/gnulib-tool.texi: Likewise.
87700         * doc/gnulib.texi: Likewise.
87701         * doc/inet_ntoa.texi: Likewise.
87702         * doc/maintain.texi: Likewise.
87703         * doc/make-stds.texi: Likewise.
87704         * doc/quote.texi: Likewise.
87705         * doc/regexprops-generic.texi: Likewise.
87706         * doc/standards.texi: Likewise.
87707         * doc/verify.texi: Likewise.
87708         * doc/visibility.texi: Likewise.
87709         * doc/gnulib.texi (GNU Free Documentation License): Include
87710         fdl-1.3.texi instead of fdl.texi.
87712 2008-11-04  Simon Josefsson  <simon@josefsson.org>
87714         * doc/fdl-1.3.texi: New file, from
87715         <http://www.gnu.org/licenses/fdl-1.3.texi>.
87716         * modules/fdl-1.3: Add.
87717         * MODULES.html.sh: Add fdl-1.3.
87719 2008-11-03  Bruno Haible  <bruno@clisp.org>
87721         Make determination of absolute name of header file work with AIX xlc.
87722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
87723         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
87724         preprocessing.
87725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
87726         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
87728 2008-11-03  Simon Josefsson  <simon@josefsson.org>
87730         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
87731         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
87732         <ludo@gnu.org>.
87734 2008-11-02  Bruno Haible  <bruno@clisp.org>
87736         Mark 'strpbrk' obsolete.
87737         * modules/strpbrk (Status, Notice): New sections.
87738         * modules/strtok_r (Depends-on): Add strpbrk.
87740 2008-11-02  Bruno Haible  <bruno@clisp.org>
87742         Mark 'strdup' obsolete.
87743         * modules/strdup (Status, Notice): New sections.
87744         * modules/findprog (Depends-on): Add strdup.
87745         * modules/getaddrinfo (Depends-on): Likewise.
87746         * modules/localename (Depends-on): Likewise.
87747         * modules/relocatable-lib (Depends-on): Likewise.
87748         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
87749         * modules/relocatable-prog (Depends-on): Likewise.
87750         * modules/trim (Depends-on): Likewise.
87751         * modules/unictype/gen-ctype (Depends-on): Likewise.
87752         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
87754 2008-11-02  Bruno Haible  <bruno@clisp.org>
87756         Mark 'strcspn' obsolete.
87757         * modules/strcspn (Status, Notice): New sections.
87759 2008-11-02  Bruno Haible  <bruno@clisp.org>
87761         Mark 'rmdir' obsolete.
87762         * modules/rmdir (Status, Notice): New sections.
87763         * modules/clean-temp (Depends-on): Add rmdir.
87764         * modules/openat (Depends-on): Likewise.
87766 2008-11-02  Bruno Haible  <bruno@clisp.org>
87768         Mark 'raise' obsolete.
87769         * modules/raise (Status, Notice): New sections.
87770         (Include): Specify <signal.h>.
87771         * modules/stdio (Depends-on): Add raise.
87772         * modules/write (Depends-on): Likewise.
87774 2008-11-02  Bruno Haible  <bruno@clisp.org>
87776         Mark 'memset' obsolete.
87777         * modules/memset (Status, Notice): New sections.
87779 2008-11-02  Bruno Haible  <bruno@clisp.org>
87781         Mark 'memmove' obsolete.
87782         * modules/memmove (Status, Notice): New sections.
87783         * modules/argp (Depends-on): Add memmove.
87784         * modules/argz (Depends-on): Likewise.
87785         * modules/canonicalize (Depends-on): Likewise.
87786         * modules/canonicalize-lgpl (Depends-on): Likewise.
87787         * modules/fts (Depends-on): Likewise.
87788         * modules/getcwd (Depends-on): Likewise.
87789         * modules/human (Depends-on): Likewise.
87790         * modules/regex (Depends-on): Likewise.
87791         * modules/striconveh (Depends-on): Likewise.
87792         * modules/trim (Depends-on): Likewise.
87793         * modules/unistr/u8-move (Depends-on): Likewise.
87794         * modules/unistr/u16-move (Depends-on): Likewise.
87795         * modules/unistr/u32-move (Depends-on): Likewise.
87797 2008-11-02  Bruno Haible  <bruno@clisp.org>
87799         Mark 'memcpy' obsolete.
87800         * modules/memcpy (Status, Notice): New sections.
87802 2008-11-02  Bruno Haible  <bruno@clisp.org>
87804         Mark 'memcmp' obsolete.
87805         * modules/memcmp (Status, Notice): New sections.
87806         * modules/argmatch (Depends-on): Add memchr.
87807         * modules/backupfile (Depends-on): Likewise.
87808         * modules/c-strcasestr (Depends-on): Likewise.
87809         * modules/crypto/des (Depends-on): Likewise.
87810         * modules/csharpcomp (Depends-on): Likewise.
87811         * modules/fnmatch (Depends-on): Likewise.
87812         * modules/git-merge-changelog (Depends-on): Likewise.
87813         * modules/isnand (Depends-on): Likewise.
87814         * modules/isnand-nolibm (Depends-on): Likewise.
87815         * modules/isnanf (Depends-on): Likewise.
87816         * modules/isnanf-nolibm (Depends-on): Likewise.
87817         * modules/isnanl (Depends-on): Likewise.
87818         * modules/isnanl-nolibm (Depends-on): Likewise.
87819         * modules/mbchar (Depends-on): Likewise.
87820         * modules/memcoll (Depends-on): Likewise.
87821         * modules/quotearg (Depends-on): Likewise.
87822         * modules/regex (Depends-on): Likewise.
87823         * modules/relocatable-prog (Depends-on): Likewise.
87824         * modules/same (Depends-on): Likewise.
87825         * modules/signbit (Depends-on): Likewise.
87826         * modules/strcasestr-simple (Depends-on): Likewise.
87827         * modules/unictype/gen-ctype (Depends-on): Likewise.
87828         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
87829         * modules/uniname/uniname (Depends-on): Likewise.
87830         * modules/unistr/u8-cmp (Depends-on): Likewise.
87832 2008-11-02  Bruno Haible  <bruno@clisp.org>
87834         Mark 'memchr' obsolete.
87835         * modules/memchr (Status, Notice): New sections.
87836         * modules/argp (Depends-on): Add memchr.
87837         * modules/base64 (Depends-on): Likewise.
87838         * modules/c-strcasestr (Depends-on): Likewise.
87839         * modules/chdir-long (Depends-on): Likewise.
87840         * modules/fnmatch (Depends-on): Likewise.
87841         * modules/getsubopt (Depends-on): Likewise.
87842         * modules/git-merge-changelog (Depends-on): Likewise.
87843         * modules/glob (Depends-on): Likewise.
87844         * modules/strcasestr-simple (Depends-on): Likewise.
87845         * modules/strnlen (Depends-on): Likewise.
87847 2008-11-02  Bruno Haible  <bruno@clisp.org>
87849         Mark 'atexit' obsolete.
87850         * modules/atexit (Status, Notice): New sections.
87851         * modules/chdir-long (Depends-on): Add atexit.
87852         * modules/wait-process (Depends-on): Likewise.
87854 2008-11-02  Bruno Haible  <bruno@clisp.org>
87856         * gnulib-tool: New option --with-obsolete.
87857         (func_usage): Document it.
87858         (func_modules_transitive_closure): Drop obsolete dependencies if
87859         incobsolete is not true.
87860         (func_import): Read and save the incobsolete variable to the cache.
87862 2008-11-02  Bruno Haible  <bruno@clisp.org>
87864         * modules/TEMPLATE-EXTENDED: New field 'Status'.
87865         * gnulib-tool: New option --extract-status.
87866         (func_usage): Document it.
87867         (sed_extract_prog): Recognize it.
87868         (func_get_status): New function.
87870 2008-10-30  Simon Josefsson  <simon@josefsson.org>
87872         * modules/sockets (License): Change from LGPL to LGPLv2+.
87874 2008-10-28  Simon Josefsson  <simon@josefsson.org>
87876         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
87878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
87880         * MODULES.html.sh (Support for systems lacking POSIX:2001):
87881         Mention times and sys_times.
87882         * modules/sys_times, modules/sys_times-tests: New modules.
87883         * modules/times, modules/times-tests: Likewise
87884         * m4/sys_times_h.m4: New file.
87885         * lib/sys_times.in.h: Likewise
87886         * lib/times.c: Likewise.
87887         * tests/test-sys_times.c: Likewise.
87888         * tests/test-times.c: Likewise.
87889         * doc/posix-headers/sys_times.texi: Update.
87890         * doc/posix-functions/times.texi: Update.
87892 2008-10-28  Jim Meyering  <meyering@redhat.com>
87894         * modules/tempname (Depends-on): Add lstat.
87896         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
87898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
87900         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
87901         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
87902         using idiom used elsewhere in gnulib.
87904 2008-10-27  Jim Meyering  <meyering@redhat.com>
87906         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
87908 2008-10-27  Simon Josefsson  <simon@josefsson.org>
87910         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
87911         TESTS_ENVIRONMENT, for shell scripts that needs to call built
87912         programs.
87913         * tests/test-argp-2.sh: Use $EXEEXT when needed.
87915 2008-10-27  Simon Josefsson  <simon@josefsson.org>
87917         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
87919 2008-10-27  Bruno Haible  <bruno@clisp.org>
87921         * tests/test-lstat.c: Include <stdio.h>.
87923 2008-10-27  Simon Josefsson  <simon@josefsson.org>
87925         * modules/lstat-tests: New module.
87926         * tests/test-lstat.c: New file.
87928 2008-10-26  Jim Meyering  <meyering@redhat.com>
87930         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
87932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87933             Bruno Haible  <bruno@clisp.org>
87935         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
87936         * modules/configmake (Include): Add a note that the include must come
87937         after all system headers.
87938         * lib/javaversion.c: Include configmake.h after all other includes.
87940 2008-10-26  Bruno Haible  <bruno@clisp.org>
87942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
87943         HAVE_STRUCT_RANDOM_DATA to 1.
87944         (gl_STDLIB_H): Simplify.
87946 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87948         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
87949         substitute HAVE_STRUCT_RANDOM_DATA.
87950         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
87951         random_data.
87952         * modules/stdlib (Makefile.am): Substitute
87953         HAVE_STRUCT_RANDOM_DATA.
87955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87957         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
87958         * doc/gnulib-intro.texi (Copyright): Likewise.
87960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87962         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
87963         findings.
87965 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
87966             Bruno Haible  <bruno@clisp.org>
87968         * lib/unistd.in.h: Include <winsock2.h>.
87969         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
87970         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
87971         Provide dummy declarations.
87972         (gethostname): Override.
87973         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
87974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
87975         gl_PREREQ_SYS_H_WINSOCK2.
87976         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
87977         * doc/posix-functions/gethostname.texi: More details.
87979 2008-10-25  Bruno Haible  <bruno@clisp.org>
87981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87982         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
87983         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
87985         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
87986         here ...
87987         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
87988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
87989         gl_UNISTD_H_DEFAULTS.
87991 2008-10-25  Eric Blake  <ebb9@byu.net>
87993         signbit: avoid spurious compiler failure
87994         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
87995         declarations inside function.
87997 2008-10-24  Simon Josefsson  <simon@josefsson.org>
87998             Bruno Haible  <bruno@clisp.org>
88000         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
88001         * modules/random_r (Depends-on): Add stdint.
88003 2008-10-24  Bruno Haible  <bruno@clisp.org>
88005         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
88006         Eggert.
88007         * modules/strerror (License): Likewise.
88009 2008-10-24  Jim Meyering  <meyering@redhat.com>
88011         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
88012         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
88014 2008-10-24  Eric Blake  <ebb9@byu.net>
88016         getgroups: fix compilation when getgroups is available
88017         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
88018         but with <config.h> override of getgroups disabled.
88020 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88022         * doc/gnulib.texi (Header files): Add note about C++ problems.
88023         Explained by Bruno Haible <bruno@clisp.org>.
88025 2008-10-23  Bruno Haible  <bruno@clisp.org>
88027         Define a dummy SA_NODEFER macro on Interix.
88028         * lib/signal.in.h (SA_NODEFER): Define fallback.
88029         Reported by Aleksey Cheusov <cheusov@tut.by> via
88030         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
88032 2008-10-23  Bruno Haible  <bruno@clisp.org>
88034         * modules/freadahead (License): Change to LGPLv2+.
88035         Suggested by Simon Josefsson.
88037 2008-10-23  Jim Meyering  <meyering@redhat.com>
88039         random_r: new module
88040         * modules/random_r: New file.
88041         * m4/random_r.m4: New file.
88042         * lib/random_r.c: New file, from glibc.
88043         * modules/random_r-tests: New file.
88044         * tests/test-random_r.c: New file.
88045         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
88046          Declare.
88047         (RAND_MAX): Define.
88048         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
88049         * modules/stdlib: Substitute them, too.
88050         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
88051         * doc/glibc-functions/initstate_r.texi: Mention the new module.
88052         * doc/glibc-functions/random_r.texi: Likewise.
88053         * doc/glibc-functions/setstate_r.texi: Likewise.
88054         * doc/glibc-functions/srandom_r.texi: Likewise.
88055         * config/srclist.txt: Mention it.
88057 2008-10-23  David Lutterkort  <lutter@redhat.com>
88059         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
88060         link requirement
88062 2008-10-23  Jim Meyering  <meyering@redhat.com>
88064         selinux-h: mark parameters of stub functions as intentionally unused
88065         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
88066         * lib/se-context.in.h: Likewise.
88068 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88070         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
88072 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88074         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
88076 2008-10-22  Eric Blake  <ebb9@byu.net>
88078         glthread/thread: avoid compiler warning
88079         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
88080         Add unreachable abort to silence compiler.
88082 2008-10-22  Eric Blake  <ebb9@byu.net>
88084         netdb: also supply struct addrinfo for cygwin 1.5.x
88085         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
88086         older cygwin.
88087         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
88088         cygwin.
88089         * doc/posix-headers/netdb.texi (netdb.h): Document this.
88091 2008-10-22  Bruno Haible  <bruno@clisp.org>
88093         * users.txt: Update entry about pspp.
88095 2008-10-21  Bruno Haible  <bruno@clisp.org>
88097         Simplification.
88098         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
88099         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
88101         Simplification.
88102         * lib/ioctl.c (ioctl): Don't undefine.
88103         * lib/socket.c (socket): Don't undefine.
88105         Remove unused module indicator macros.
88106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
88107         GNULIB_$1 as a C macro.
88109         * doc/posix-functions/close.texi: Undo last change.
88110         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
88111         Windows platforms.
88113 2008-10-21  Bruno Haible  <bruno@clisp.org>
88115         Add gethostname() declaration to <unistd.h>.
88116         * lib/unistd.in.h (gethostname): New declaration.
88117         * lib/gethostname.c: Include <unistd.h>.
88118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
88119         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
88120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
88121         and HAVE_GETHOSTNAME.
88122         * modules/gethostname (Depends-on): Add unistd.
88123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88124         (Include): Specify <unistd.h>.
88125         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
88126         HAVE_GETHOSTNAME.
88127         * tests/test-gethostname.c: Include <unistd.h> first.
88129 2008-10-21  Bruno Haible  <bruno@clisp.org>
88131         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
88132         * modules/select-tests (Depends-on): Likewise.
88133         Reported by Simon Josefsson.
88135 2008-10-21  Simon Josefsson  <simon@josefsson.org>
88137         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
88138         * lib/accept.c: New file, based on winsock.c.
88139         * lib/bind.c: New file, based on winsock.c.
88140         * lib/connect.c: New file, based on winsock.c.
88141         * lib/getpeername.c: New file, based on winsock.c.
88142         * lib/getsockname.c: New file, based on winsock.c.
88143         * lib/getsockopt.c: New file, based on winsock.c.
88144         * lib/ioctl.c: New file, based on winsock.c.
88145         * lib/listen.c: New file, based on winsock.c.
88146         * lib/recv.c: New file, based on winsock.c.
88147         * lib/recvfrom.c: New file, based on winsock.c.
88148         * lib/send.c: New file, based on winsock.c.
88149         * lib/sendto.c: New file, based on winsock.c.
88150         * lib/setsockopt.c: New file, based on winsock.c.
88151         * lib/shutdown.c: New file, based on winsock.c.
88152         * lib/socket.c: New file, based on winsock.c.
88153         * lib/w32sock.h: New file, based on winsock.c.
88154         * lib/winsock.c: Remove file.
88155         * modules/accept: Likewise.
88156         * modules/bind: Likewise.
88157         * modules/connect: Likewise.
88158         * modules/getpeername: Likewise.
88159         * modules/getsockname: Likewise.
88160         * modules/getsockopt: Likewise.
88161         * modules/ioctl: Likewise.
88162         * modules/listen: Likewise.
88163         * modules/recv: Likewise.
88164         * modules/recvfrom: Likewise.
88165         * modules/send: Likewise.
88166         * modules/sendto: Likewise.
88167         * modules/setsockopt: Likewise.
88168         * modules/shutdown: Likewise.
88169         * modules/socket: Use socket.c instead of winsock.c.
88170         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
88171         * doc/posix-functions/accept.texi: Doc fix.
88172         * doc/posix-functions/bind.texi: Doc fix.
88173         * doc/posix-functions/close.texi: Doc fix.
88174         * doc/posix-functions/connect.texi: Doc fix.
88175         * doc/posix-functions/getpeername.texi: Doc fix.
88176         * doc/posix-functions/getsockname.texi: Doc fix.
88177         * doc/posix-functions/getsockopt.texi: Doc fix.
88178         * doc/posix-functions/ioctl.texi: Doc fix.
88179         * doc/posix-functions/listen.texi: Doc fix.
88180         * doc/posix-functions/recv.texi: Doc fix.
88181         * doc/posix-functions/recvfrom.texi: Doc fix.
88182         * doc/posix-functions/send.texi: Doc fix.
88183         * doc/posix-functions/sendto.texi: Doc fix.
88184         * doc/posix-functions/setsockopt.texi: Doc fix.
88185         * doc/posix-functions/shutdown.texi: Doc fix.
88186         * doc/posix-functions/socket.texi: Doc fix.
88188 2008-10-20  Bruno Haible  <bruno@clisp.org>
88190         Take into account the role of SIGABRT_COMPAT on Windows 2008.
88191         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
88192         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
88193         as an alias for SIGABRT.
88194         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
88195         (sigaction): Map it to SIGABRT.
88196         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
88198 2008-10-20  Bruno Haible  <bruno@clisp.org>
88200         * lib/fts.c: Don't include lstat.h.
88201         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
88203         Move the lstat() declaration to <sys/stat.h>.
88204         * lib/lstat.h: Remove file.
88205         * lib/sys_stat.in.h: Add special invocation convention.
88206         (lstat): New declaration.
88207         * lib/lstat.c (orig_lstat): New function.
88208         (rpl_lstat): Use orig_lstat instead of lstat.
88209         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
88210         AC_C_INLINE. Set REPLACE_LSTAT.
88211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
88212         and REPLACE_LSTAT.
88213         * modules/lstat (Files): Remove lib/lstat.h.
88214         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
88215         (Include): Specify <sys/stat.h> instead of lstat.h.
88216         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
88217         REPLACE_LSTAT.
88218         * NEWS: Mention the change.
88220 2008-10-20  Bruno Haible  <bruno@clisp.org>
88222         * modules/posix_spawn-tests: New file.
88223         * tests/test-posix_spawn3.c: New file.
88225 2008-10-20  Bruno Haible  <bruno@clisp.org>
88227         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
88228         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88229         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
88230         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88231         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
88233 2008-10-20  Bruno Haible  <bruno@clisp.org>
88235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
88236         of posix_spawn on AIX 5.3.
88238 2008-10-20  Bruno Haible  <bruno@clisp.org>
88240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
88242 2008-10-20  Bruno Haible  <bruno@clisp.org>
88244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
88245         of AC_LANG_PROGRAM.
88247 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88249         * lib/netdb.in.h: Don't define GNU specific constants until they
88250         are supported or needed.  Reported by Bruno Haible
88251         <bruno@clisp.org>.
88253 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88255         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
88257 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88259         * lib/getaddrinfo.h: Remove file.
88260         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
88261         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
88262         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
88263         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
88264         * modules/netdb: Substitute GNULIB_GETADDRINFO.
88265         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
88266         * tests/test-getaddrinfo.c: Likewise.
88267         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
88268         * NEWS: Mention change.
88270 2008-10-19  Bruno Haible  <bruno@clisp.org>
88272         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
88274 2008-10-19  Bruno Haible  <bruno@clisp.org>
88276         * lib/wait-process.c: Include simply <sys/wait.h>.
88277         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
88278         WIFSTOPPED): Remove fallback definitions.
88279         * modules/wait-process (Depends-on): Add sys_wait.
88281         New module 'sys_wait'.
88282         * modules/sys_wait: New file.
88283         * lib/sys_wait.in.h: New file, partially copied from
88284         lib/wait-process.c.
88285         * m4/sys_wait_h.m4: New file.
88286         * doc/posix-headers/sys_wait.texi: Mention the new module.
88288 2008-10-19  Bruno Haible  <bruno@clisp.org>
88290         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
88292 2008-10-19  Bruno Haible  <bruno@clisp.org>
88294         Assume that waitpid() fills an 'int' status, not a 'union wait'.
88295         * lib/wait-process.c (WAIT_T): Remove type.
88296         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
88297         (wait_subprocess): Update.
88299 2008-10-19  Bruno Haible  <bruno@clisp.org>
88301         New module 'atoll'.
88302         * modules/atoll: New file.
88303         * lib/stdlib.in.h (atoll): New declaration.
88304         * lib/atoll.c: New file, from glibc with modifications.
88305         * m4/atoll.m4: New file.
88306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
88307         HAVE_ATOLL.
88308         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
88309         * doc/posix-functions/atoll.texi: Mention the new module.
88311 2008-10-19  Bruno Haible  <bruno@clisp.org>
88313         Add strtoull() declaration to <stdlib.h>.
88314         * lib/stdlib.in.h (strtoull): New declaration.
88315         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
88316         Set HAVE_STRTOULL.
88317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
88318         HAVE_STRTOULL.
88319         * modules/strtoull (Depends-on): Add stdlib.
88320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88321         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
88322         HAVE_STRTOULL.
88324 2008-10-19  Bruno Haible  <bruno@clisp.org>
88326         Add strtoll() declaration to <stdlib.h>.
88327         * lib/stdlib.in.h (strtoll): New declaration.
88328         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
88329         Set HAVE_STRTOLL.
88330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
88331         HAVE_STRTOLL.
88332         * modules/strtoll (Depends-on): Add stdlib.
88333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88334         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
88336 2008-10-19  Bruno Haible  <bruno@clisp.org>
88338         * modules/bcopy (Depends-on): Add strings.
88339         (Include): Specify <strings.h>.
88341 2008-10-19  Bruno Haible  <bruno@clisp.org>
88343         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
88345 2008-10-19  Bruno Haible  <bruno@clisp.org>
88347         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
88348         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
88349         mingw.
88351 2008-10-19  Bruno Haible  <bruno@clisp.org>
88353         * lib/atanl.c: Don't include isnanl.h.
88354         * lib/cosl.c: Likewise.
88355         * lib/ldexpl.c: Likewise.
88356         * lib/logl.c: Likewise.
88357         * lib/sinl.c: Likewise.
88358         * lib/sqrtl.c: Likewise.
88359         * lib/tanl.c: Likewise.
88361         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
88362         * lib/isnanf.h: Remove file.
88363         * lib/isnand.h: Remove file.
88364         * lib/isnanl.h: Remove file.
88365         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
88366         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
88367         macros.
88368         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
88369         HAVE_ISNANF, don't define it as a C macro.
88370         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
88371         HAVE_ISNAND, don't define it as a C macro.
88372         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
88373         HAVE_ISNANL, don't define it as a C macro.
88374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
88375         HAVE_ISNAN[FDL].
88376         * modules/isnanf (Files): Remove lib/isnanf.h.
88377         (Depends-on): Add math.
88378         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88379         (Include): Specify <math.h> instead of isnanf.h.
88380         * modules/isnand (Files): Remove lib/isnand.h.
88381         (Depends-on): Add math.
88382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88383         (Include): Specify <math.h> instead of isnand.h.
88384         * modules/isnanl (Files): Remove lib/isnanl.h.
88385         (Depends-on): Add math.
88386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88387         (Include): Specify <math.h> instead of isnanl.h.
88388         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
88389         HAVE_ISNAN[FDL].
88390         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
88391         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
88392         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
88393         * NEWS: Mention the change.
88395 2008-10-18  Bruno Haible  <bruno@clisp.org>
88397         Add getusershell(), setusershell(), endusershell() declarations to
88398         <unistd.h>.
88399         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
88400         declarations.
88401         * lib/getusershell.c: Include unistd.h.
88402         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
88403         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
88404         HAVE_GETUSERSHELL.
88405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
88406         and HAVE_GETUSERSHELL.
88407         * modules/getusershell (Depends-on): Add unistd, extensions.
88408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88409         (Include): Specify <unistd.h>.
88410         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
88411         HAVE_GETUSERSHELL.
88413 2008-10-18  Bruno Haible  <bruno@clisp.org>
88415         Add a getloadavg() declaration to <stdlib.h>.
88416         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
88417         getloadavg declaration.
88418         (getloadavg): New declaration.
88419         * lib/getloadavg.c: Include <stdlib.h> first.
88420         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
88421         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
88422         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
88423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
88424         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
88425         * modules/getloadavg (Depends-on): Add stdlib, extensions.
88426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88427         (Include): Specify <stdlib.h>.
88428         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
88429         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
88431 2008-10-18  Bruno Haible  <bruno@clisp.org>
88433         * lib/dirchownmod.c: Don't include lchmod.h.
88435         Move the lchmod() declaration to <sys/stat.h>.
88436         * lib/lchmod.h: Remove file.
88437         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
88438         (lchmod): New declaration, moved here from lib/lchown.h.
88439         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
88440         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
88441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
88442         and HAVE_LCHMOD.
88443         * modules/lchmod (Files): Remove lib/lchmod.h.
88444         (Depends-on): Add sys_stat, extensions.
88445         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
88446         (Include): Specify <sys/stat.h> instead of lchmod.h.
88447         * modules/sys_stat (Depends-on): Add link-warning.
88448         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
88449         definition of GL_LINK_WARNING.
88450         * NEWS: Mention the change.
88452 2008-10-18  Bruno Haible  <bruno@clisp.org>
88454         * lib/fchdir.c: Don't include dirfd.h.
88455         * lib/fts.c: Likewise.
88456         * lib/getcwd.c: Likewise.
88457         * lib/glob.c: Likewise.
88459         Move the dirfd() declaration to <dirent.h>.
88460         * lib/dirfd.h: Remove file.
88461         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
88462         (dirfd): New declaration.
88463         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
88464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
88465         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
88466         HAVE_DECL_DIRFD.
88467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
88468         HAVE_DECL_DIRFD.
88469         * modules/dirfd (Files): Remove lib/dirfd.h.
88470         (Depends-on): Add dirent, extensions.
88471         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
88472         (Include): Specify <dirent.h> instead of dirfd.h.
88473         * modules/dirent (Depends-on): Add link-warning.
88474         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
88475         definition of GL_LINK_WARNING.
88476         * NEWS: Mention the change.
88478 2008-10-18  Bruno Haible  <bruno@clisp.org>
88480         Move the euidaccess() declaration to <unistd.h>.
88481         * lib/euidaccess.h: Remove file.
88482         * lib/unistd.in.h (euidaccess): New declaration.
88483         * lib/euidaccess.c: Don't include euidaccess.h.
88484         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
88485         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
88486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
88487         and HAVE_EUIDACCESS.
88488         * modules/euidaccess (Files): Remove lib/euidaccess.h.
88489         (Depends-on): Add unistd.
88490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88491         (Include): Specify <unistd.h> instead of euidaccess.h.
88492         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
88493         HAVE_EUIDACCESS.
88494         * NEWS: Mention the change.
88496 2008-10-18  Bruno Haible  <bruno@clisp.org>
88498         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
88500         Move the getdomainname() declaration to <unistd.h>.
88501         * lib/getdomainname.h: Remove file.
88502         * lib/unistd.in.h (getdomainname): New declaration.
88503         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
88504         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
88505         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
88506         HAVE_GETDOMAINNAME.
88507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88508         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
88509         * modules/getdomainname (Files): Remove lib/getdomainname.h.
88510         (Depends-on): Add unistd, extensions.
88511         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88512         (Includes): Specify <unistd.h> instead of getdomainname.h.
88513         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
88514         HAVE_GETDOMAINNAME.
88515         * NEWS: Mention the change.
88517 2008-10-18  Bruno Haible  <bruno@clisp.org>
88519         * modules/dirent: New file.
88520         * m4/dirent_h.m4: New file.
88521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
88522         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
88523         * modules/fchdir (Files): Remove lib/dirent.in.h.
88524         (Depends-on): Add dirent.
88525         (Makefile.am): Move rules to modules/dirent.
88526         * doc/posix-headers/dirent.texi: Mention the new module.
88528 2008-10-18  Bruno Haible  <bruno@clisp.org>
88530         Avoid -Wunused-parameter warnings in public gnulib header files.
88531         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
88532         macro.
88533         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
88535 2008-10-18  Bruno Haible  <bruno@clisp.org>
88537         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
88538         * doc/glibc-functions/error.texi: Mention the module 'error'.
88539         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
88540         * doc/glibc-functions/getdomainname.texi: Mention the module
88541         'getdomainname'.
88542         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
88543         * doc/glibc-functions/getpagesize.texi: Mention the module
88544         'getpagesize'.
88545         * doc/glibc-functions/getusershell.texi: Mention the module
88546         'getusershell'.
88547         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
88548         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
88549         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
88550         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
88551         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
88552         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
88553         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
88554         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
88555         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
88556         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
88557         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
88558         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
88559         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
88560         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
88562 2008-10-17  Bruno Haible  <bruno@clisp.org>
88564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
88565         HP-UX and IRIX, use -0.0L.
88566         * tests/test-ceill.c (minus_zero): Likewise.
88567         * tests/test-floorl.c (minus_zero): Likewise.
88568         * tests/test-frexpl.c (minus_zero): Likewise.
88569         * tests/test-isnan.c (minus_zerol): Likewise.
88570         * tests/test-isnanl.h (minus_zero): Likewise.
88571         * tests/test-ldexpl.c (minus_zero): Likewise.
88572         * tests/test-roundl.c (minus_zero): Likewise.
88573         * tests/test-signbit.c (minus_zerol): Likewise.
88574         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
88575         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
88576         * tests/test-truncl.c (minus_zero): Likewise.
88577         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
88578         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
88579         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
88580         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88582 2008-10-17  Bruno Haible  <bruno@clisp.org>
88584         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
88585         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
88586         that it gets activated only for gcc >= 3.0.
88587         * lib/dirent.in.h: Likewise.
88588         * lib/errno.in.h: Likewise.
88589         * lib/fcntl.in.h: Likewise.
88590         * lib/float.in.h: Likewise.
88591         * lib/iconv.in.h: Likewise.
88592         * lib/inttypes.in.h: Likewise.
88593         * lib/locale.in.h: Likewise.
88594         * lib/math.in.h: Likewise.
88595         * lib/netdb.in.h: Likewise.
88596         * lib/netinet_in.in.h: Likewise.
88597         * lib/search.in.h: Likewise.
88598         * lib/signal.in.h: Likewise.
88599         * lib/spawn.in.h: Likewise.
88600         * lib/stdarg.in.h: Likewise.
88601         * lib/stdint.in.h: Likewise.
88602         * lib/stdio.in.h: Likewise.
88603         * lib/stdlib.in.h: Likewise.
88604         * lib/string.in.h: Likewise.
88605         * lib/strings.in.h: Likewise.
88606         * lib/sys_file.in.h: Likewise.
88607         * lib/sys_ioctl.in.h: Likewise.
88608         * lib/sys_select.in.h: Likewise.
88609         * lib/sys_socket.in.h: Likewise.
88610         * lib/sys_stat.in.h: Likewise.
88611         * lib/sys_time.in.h: Likewise.
88612         * lib/sysexits.in.h: Likewise.
88613         * lib/time.in.h: Likewise.
88614         * lib/unistd.in.h: Likewise.
88615         * lib/wchar.in.h: Likewise.
88616         * lib/wctype.in.h: Likewise.
88617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88619 2008-10-17  Jim Meyering  <meyering@redhat.com>
88621         ignore-value: don't depend on inline module
88622         * modules/ignore-value (Depends-on): Remove 'inline'.
88623         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
88624         Suggestion from Bruno Haible.
88626 2008-10-17  Bruno Haible  <bruno@clisp.org>
88628         New implementation of condition variables for Win32.
88629         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
88630         (gl_linked_waitqueue_t): New type.
88631         (gl_cond_t): Use it.
88632         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
88633         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
88634         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
88635         (glthread_cond_init_func, glthread_cond_wait_func,
88636         glthread_cond_timedwait_func, glthread_cond_signal_func,
88637         glthread_cond_broadcast_func, glthread_cond_destroy_func):
88638         Reimplemented on the basis of gl_linked_waitqueue_t.
88639         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
88640         gl_waitqueue_t.
88641         (gl_rwlock_t): Update.
88642         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
88644 2008-10-17  Simon Josefsson  <simon@josefsson.org>
88646         * modules/recvfrom (Depends-on): Add dependency on getpeername.
88647         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88649 2008-10-17  Jim Meyering  <meyering@redhat.com>
88651         ignore-value: new module
88652         * modules/ignore-value: New file.
88653         * lib/ignore-value.h: New file.
88654         * MODULES.html.sh (Compiler warning management): New section,
88655         just for this module.  More to come.
88657 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
88659         open-safer.c: avoid 'signed and unsigned in conditional...' warning
88660         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
88661         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
88663 2008-10-16  Jim Meyering  <meyering@redhat.com>
88665         openat-die.c: avoid 'no previous prototype' warning
88666         * lib/openat-die.c: Include "openat.h".
88667         Reported by Reuben Thomas <rrt@sc3d.org>.
88669 2008-10-16  Simon Josefsson  <simon@josefsson.org>
88671         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
88672         * lib/netdb.in.h: Fix typo.
88673         Reported by Bruno Haible  <bruno@clisp.org>
88675         * lib/netdb.in.h: Include sys/socket.h for platforms without
88676         netdb.h, to get structures like hostent on MinGW.
88677         * modules/netdb (Depends-on): Add sys_socket.
88679 2008-10-15  Simon Josefsson  <simon@josefsson.org>
88681         * modules/netdb, modules/netdb-tests: New file.
88682         * m4/netdb_h.m4: New file.
88683         * lib/netdb.in.h: Add, currently just an empty file pending
88684         definitions.
88685         * tests/test-netdb.c: New file.
88686         * doc/posix-headers/netdb.texi: Mention that we replace it if
88687         needed.
88688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88689         netdb.
88691 2008-10-15  Simon Josefsson  <simon@josefsson.org>
88693         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
88694         with code.
88696 2008-10-13  Bruno Haible  <bruno@clisp.org>
88698         * lib/glthread/cond.c (glthread_cond_wait_func,
88699         glthread_cond_timedwait_func): Add a comment.
88701 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88703         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
88704         * tests/test-select.c: Likewise,
88706 2008-10-13  Bruno Haible  <bruno@clisp.org>
88708         * lib/glthread/cond.c (glthread_cond_wait_func,
88709         glthread_cond_timedwait_func): Fix variable name.
88710         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88712 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
88714         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
88715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
88716         struct sockaddr.sa_len.
88717         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
88719 2008-10-13  Simon Josefsson  <simon@josefsson.org>
88721         * build-aux/pmccabe2html: Add css and css_url parameters.
88723 2008-10-12  Bruno Haible  <bruno@clisp.org>
88725         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
88726         calling aclx_get.
88727         Reported by Rainer Tammer <tammer@tammer.net>.
88729 2008-10-12  Bruno Haible  <bruno@clisp.org>
88731         Use msvcrt aware primitives for creation/termination of Win32 threads.
88732         * lib/glthread/thread.c: Include <process.h>.
88733         (glthread_create_func): Use _beginthreadex instead of CreateThread.
88734         (wrapper_func): Update signature.
88735         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
88737 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88738             Bruno Haible  <bruno@clisp.org>
88740         Provide a Win32 implementation of the 'cond' module.
88741         * lib/glthread/cond.h [USE_WIN32]: New implementation.
88742         * lib/glthread/cond.c (glthread_cond_init_func,
88743         glthread_cond_wait_func, glthread_cond_timedwait_func,
88744         glthread_cond_signal_func, glthread_cond_broadcast_func,
88745         glthread_cond_destroy_func) [USE_WIN32]: New functions.
88746         * modules/cond (Dependencies): Add gettimeofday.
88748 2008-10-11  Bruno Haible  <bruno@clisp.org>
88750         Make sleep work on older versions of mingw.
88751         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
88752         only whether it exists.
88753         * doc/posix-functions/sleep.texi: Mention the problem with older
88754         versions of mingw.
88756 2008-10-11  Bruno Haible  <bruno@clisp.org>
88758         New module 'shutdown'.
88759         * modules/shutdown: New file.
88760         * lib/sys_socket.in.h (shutdown): New declaration.
88761         * lib/winsock.c (shutdown): New function.
88762         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
88763         GNULIB_SHUTDOWN.
88764         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
88765         * doc/posix-functions/shutdown.texi: Document the new module.
88767 2008-10-11  Jim Meyering  <meyering@redhat.com>
88769         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
88771 2008-10-11  Bruno Haible  <bruno@clisp.org>
88773         New module 'fclose'.
88774         * modules/fclose: New file.
88775         * lib/stdio.in.h (fclose): New declaration.
88776         * lib/fclose.c: New file.
88777         * m4/fclose.m4: New file.
88778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
88779         REPLACE_FCLOSE.
88780         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
88781         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
88782         REPLACE_FCLOSE.
88783         * modules/close (Depends-on): fclose.
88784         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
88786 2008-10-11  Bruno Haible  <bruno@clisp.org>
88788         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
88789         set errno and don't call _close.
88791 2008-10-10  Bruno Haible  <bruno@clisp.org>
88793         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
88794         ACL, not afterwards. Fixes test failure on Cygwin.
88796 2008-10-09  Ben Pfaff  <blp@gnu.org>
88798         * build-aux/announce-gen: Fix gnulib version related part of usage
88799         message.  Die with a useful error message if no tarballs are
88800         found.
88802 2008-10-10  Jim Meyering  <meyering@redhat.com>
88804         bootstrap: use git's --depth=N option only if it's supported
88805         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
88806         recognize the --depth option.  Reported by Pádraig Brady.
88808 2008-10-09  Bruno Haible  <bruno@clisp.org>
88810         New module 'ioctl'.
88811         * modules/ioctl: New file.
88812         * lib/sys_socket.in.h (ioctl): Remove declaration.
88813         * lib/winsock.c: Include <sys/ioctl.h>.
88814         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
88815         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
88816         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
88817         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
88818         * doc/posix-functions/ioctl.texi: Mention the new module.
88820 2008-10-09  Bruno Haible  <bruno@clisp.org>
88822         New module 'sys_ioctl'.
88823         * lib/sys_ioctl.in.h: New file.
88824         * m4/sys_ioctl_h.m4: New file.
88825         * modules/sys_ioctl: New file.
88826         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
88828 2008-10-09  Bruno Haible  <bruno@clisp.org>
88830         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
88831         * lib/winsock.c: Include <stdarg.h>.
88832         (rpl_ioctl): Change to second argument 'int' and then varargs.
88834 2008-10-09  Bruno Haible  <bruno@clisp.org>
88836         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
88837         when the sys_socket module is present and the system has <winsock2.h>.
88839 2008-10-09  Bruno Haible  <bruno@clisp.org>
88841         * doc/posix-functions/close.texi: Mention module 'close' instead of
88842         module 'sys_socket'.
88844 2008-10-09  Bruno Haible  <bruno@clisp.org>
88846         * doc/glibc-headers/sys_ioctl.texi: New file.
88847         * doc/gnulib.texi: Include it.
88849 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88850             Bruno Haible  <bruno@clisp.org>
88852         Combine the two replacements of 'close'.
88853         * lib/sys_socket.in.h (close): Define to a reminder to include
88854         <unistd.h>.
88855         (_gl_close_fd_maybe_socket): New declaration.
88856         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
88857         * lib/winsock.c (close): Remove undefinition.
88858         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
88859         needed for the gnulib module 'close'.
88860         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
88861         define to an error symbol or to a warning, if suitable.
88862         * lib/close.c: Include <sys/socket.h>.
88863         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
88864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
88865         UNISTD_H_HAVE_WINSOCK2_H.
88866         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
88867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88868         UNISTD_H_HAVE_WINSOCK2_H.
88869         * modules/sys_socket (Files): Add m4/unistd_h.m4.
88870         (configure.ac): Set a module indicator.
88871         (Makefile.am): Substitute GNULIB_CLOSE.
88872         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
88873         * modules/poll-tests (Depends-on): Add close.
88874         * modules/select-tests (Depends-on): Likewise.
88876 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88877             Bruno Haible  <bruno@clisp.org>
88879         New module 'close'.
88880         * modules/close: New file.
88881         * lib/unistd.in.h (close): Move declaration out of the
88882         FCHDIR_REPLACEMENT scope.
88883         (_gl_unregister_fd): New declaration.
88884         * lib/close.c: New file.
88885         * lib/fchdir.c (rpl_close): Remove function.
88886         * m4/close.m4: New file.
88887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
88888         close.
88889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
88890         REPLACE_CLOSE.
88891         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
88892         REPLACE_CLOSE.
88893         * modules/fchdir (Depends-on): Add close.
88895 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88896             Bruno Haible  <bruno@clisp.org>
88898         * lib/fcntl.in.h (open): Simplify conditionals.
88899         (_gl_register_fd): New declaration.
88900         * lib/fchdir.c (rpl_open): Remove function.
88901         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
88902         also.
88903         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
88904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
88905         open.
88907 2008-10-09  Jim Meyering  <meyering@redhat.com>
88909         GNUmakefile: use the more name-space-friendly "_version"
88910         * top/GNUmakefile (_dummy): Update.
88911         (_version): Rename from "version".
88913 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88914             Bruno Haible  <bruno@clisp.org>
88916         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
88917         rpl_close.
88918         (_gl_register_fd): New function, extracted from rpl_open.
88919         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
88920         (rpl_open, rpl_opendir): Use _gl_register_fd.
88922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88924         Fix organization of 'open' replacement.
88925         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
88926         (gl_FUNC_OPEN): Use it.
88927         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
88929 2008-10-08  Bruno Haible  <bruno@clisp.org>
88931         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
88933 2008-10-08  Simon Josefsson  <simon@josefsson.org>
88935         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
88936         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
88937         listen).
88939 2008-10-08  Eric Blake  <ebb9@byu.net>
88941         GNUmakefile: add 'make version' target
88942         * top/GNUmakefile (_curr-ver): Split version update rules...
88943         (version): ...into a target.
88945 2008-10-07  Bruno Haible  <bruno@clisp.org>
88947         Use a more portable replacement expression for -0.0L.
88948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
88949         instead of -0.0L. Fix m4 quotation.
88951         * tests/test-signbit.c: Include <float.h>.
88952         (minus_zero): New variable.
88953         (test_signbitl): Use minus_zero instead of -zero.
88954         * modules/signbit-tests (Depends-on): Add float.
88956         * tests/test-ceill.c: Include <float.h>.
88957         (zero): Remove variable.
88958         (minus_zero): New variable.
88959         (main): Use minus_zero instead of -zero.
88960         * modules/ceill-tests (Depends-on): Add float.
88962         * tests/test-floorl.c: Include <float.h>.
88963         (zero): Remove variable.
88964         (minus_zero): New variable.
88965         (main): Use minus_zero instead of -zero.
88966         * modules/floorl-tests (Depends-on): Add float.
88968         * tests/test-roundl.c: Include <float.h>.
88969         (zero): Remove variable.
88970         (minus_zero): New variable.
88971         (main): Use minus_zero instead of -zero.
88972         * modules/roundl-tests (Depends-on): Add float.
88974         * tests/test-truncl.c: Include <float.h>.
88975         (zero): Remove variable.
88976         (minus_zero): New variable.
88977         (main): Use minus_zero instead of -zero.
88978         * modules/truncl-tests (Depends-on): Add float.
88980         * tests/test-frexpl.c (zero): Remove variable.
88981         (minus_zero): New variable.
88982         (main): Use minus_zero instead of -zero.
88983         * modules/frexpl-tests (Depends-on): Add float.
88985         * tests/test-isnan.c (zerol): Remove variable.
88986         (minus_zerol): New variable.
88987         (test_long_double): Use minus_zerol instead of -zerol.
88988         * modules/isnan-tests (Depends-on): Add float.
88990         * tests/test-isnanl.h (zero): Remove variable.
88991         (minus_zero): New variable.
88992         (main): Use minus_zero instead of -zero.
88993         * modules/isnanl-nolibm-tests (Depends-on): Add float.
88994         * modules/isnanl-tests (Depends-on): Add float.
88996         * tests/test-ldexpl.c (zero): Remove variable.
88997         (minus_zero): New variable.
88998         (main): Use minus_zero instead of -zero.
88999         * modules/ldexpl-tests (Depends-on): Add float.
89001         * tests/test-snprintf-posix.h (zerol): Remove variable.
89002         (minus_zerol): New variable.
89003         (test_function): Use minus_zerol instead of -zerol.
89004         * modules/snprintf-posix-tests (Depends-on): Add float.
89005         * modules/vsnprintf-posix-tests (Depends-on): Add float.
89007         * tests/test-sprintf-posix.h (zerol): Remove variable.
89008         (minus_zerol): New variable.
89009         (test_function): Use minus_zerol instead of -zerol.
89010         * modules/sprintf-posix-tests (Depends-on): Add float.
89011         * modules/vsprintf-posix-tests (Depends-on): Add float.
89013         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
89014         (minus_zerol): New variable.
89015         (test_function): Use minus_zerol instead of -zerol.
89016         * modules/vasnprintf-posix-tests (Depends-on): Add float.
89018         * tests/test-vasprintf-posix.c (zerol): Remove variable.
89019         (minus_zerol): New variable.
89020         (test_function): Use minus_zerol instead of -zerol.
89021         * modules/vasprintf-posix-tests (Depends-on): Add float.
89023 2008-10-07  Simon Josefsson  <simon@josefsson.org>
89025         * MODULES.html.sh (Support for building documentation): Mention
89026         pmccabe2html.  Sort entries.
89028         Add pmccabe2html module, from gnupdf.
89029         * build-aux/pmccabe.css: New file.
89030         * build-aux/pmccabe2html: New file.
89031         * m4/pmccabe2html.m4: New file.
89032         * modules/pmccabe2html: New file.
89034 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
89036         flock: new module
89037         * MODULES.html.sh: Add to list of modules.
89038         * lib/flock.c: flock implementation for Windows and Unix systems
89039         which have fcntl.
89040         * doc/glibc-functions/flock.texi: Update documentation.
89041         * lib/sys_file.in.h: <sys/file.h> header file.
89042         * m4/flock.m4: M4 macros.
89043         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
89044         * modules/flock: flock module.
89045         * modules/flock-tests: flock tests module.
89046         * modules/sys_file: sys/file.h module.
89047         * tests/test-flock.c: test suite for flock.
89049 2008-10-06  Jim Meyering  <meyering@redhat.com>
89051         bootstrap: check for LT_INIT more portably still ;-)
89052         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
89053         Spotted by Bruno Haible.
89055 2008-10-06  Eric Blake  <ebb9@byu.net>
89057         test-signbit: avoid tripping Irix cc bug on -0.0L
89058         * tests/test-signbit.c (minus_zerol): Delete, and replace with
89059         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
89060         entire testsuite consistent and avoids an Irix 6.2 bug.
89062 2008-10-05  Bruno Haible  <bruno@clisp.org>
89063             Jim Meyering  <jim@meyering.net>
89065         Add an option for ignoring EPIPE during close_stdout.
89066         * lib/closeout.h: Include <stdbool.h>.
89067         (close_stdout_set_ignore_EPIPE): New declaration.
89068         * lib/closeout.c: Include <stdbool.h>.
89069         (ignore_EPIPE): New variable.
89070         (close_stdout_set_ignore_EPIPE): New function.
89071         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
89072         * lib/close-stream.c (close_stream): Mention the possible EPIPE
89073         failure.
89074         * modules/closeout (Depends-on): Add stdbool.
89076 2008-10-05  Bruno Haible  <bruno@clisp.org>
89078         * modules/accept: New file.
89079         * modules/bind: New file.
89080         * modules/connect: New file.
89081         * modules/getpeername: New file.
89082         * modules/getsockname: New file.
89083         * modules/getsockopt: New file.
89084         * modules/listen: New file.
89085         * modules/recv: New file.
89086         * modules/recvfrom: New file.
89087         * modules/send: New file.
89088         * modules/sendto: New file.
89089         * modules/setsockopt: New file.
89090         * modules/socket: New file.
89091         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
89092         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
89093         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
89094         the particular module is requested. Add a link warning when the
89095         particular module is not requested.
89096         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
89097         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
89098         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
89099         the particular module is requested.
89100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
89101         gl_SYS_SOCKET_H_DEFAULTS): New macros.
89102         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
89103         * modules/sys_socket (Depends-on): Add link-warning.
89104         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
89105         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
89106         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
89107         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
89108         GL_LINK_WARNING.
89109         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
89110         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
89111         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
89112         * doc/posix-functions/getpeername.texi: Mention the new module
89113         'getpeername'.
89114         * doc/posix-functions/getsockname.texi: Mention the new module
89115         'getsockname'.
89116         * doc/posix-functions/getsockopt.texi: Mention the new module
89117         'getsockopt'.
89118         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
89119         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
89120         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
89121         * doc/posix-functions/send.texi: Mention the new module 'send'.
89122         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
89123         * doc/posix-functions/setsockopt.texi: Mention the new module
89124         'setsockopt'.
89125         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
89126         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
89127         listen, connect, accept.
89128         * modules/select-tests (Depends-on): Likewise.
89130 2008-10-05  Bruno Haible  <bruno@clisp.org>
89132         * lib/winsock.c (strerror): Remove unused #undef.
89133         (rpl_close): Remove unused local variable.
89135         * modules/sys_socket (Depends-on); Add errno.
89137 2008-10-05  Bruno Haible  <bruno@clisp.org>
89139         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
89140         (select): Add a link warning when the 'select' module is not used.
89141         * modules/sys_select (Depends-on): Add link-warning.
89142         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
89143         Suggested by Paolo Bonzini.
89145 2008-10-05  Jim Meyering  <meyering@redhat.com>
89147         bootstrap: check for LT_INIT more portably
89148         * build-aux/bootstrap: Avoid using grep -E, since it's not
89149         portable enough.  Suggestion from Bruno Haible.
89151 2008-10-05  Bruno Haible  <bruno@clisp.org>
89153         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
89154         as being fixed by gnulib.
89156 2008-10-05  Bruno Haible  <bruno@clisp.org>
89158         * modules/select-tests: New file, mostly copied from
89159         modules/sys_select-tests.
89160         * tests/test-select.c: New file, mostly copied from
89161         tests/test-sys_select.c.
89162         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
89163         * modules/sys_select-tests (Depends-on): Remove all dependencies.
89164         (Makefile.am): Remove test_sys_select_LDADD.
89166         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
89167         to an undefined symbol, for an error message.
89168         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
89169         (gl_SYS_SELECT_H_DEFAULTS): New macro.
89170         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
89171         winsock-select.c here.
89172         * modules/sys_select (Files): Remove lib/winsock-select.c.
89173         (Depends-on): Remove alloca.
89174         (Makefile.am): Substitute GNULIB_SELECT.
89175         * modules/select: New file.
89176         * doc/posix-functions/select.texi: Update.
89178 2008-10-05  Bruno Haible  <bruno@clisp.org>
89180         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
89181         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
89182         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
89183         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
89184         getdtablesize.
89185         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
89186         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
89188 2008-10-05  Bruno Haible  <bruno@clisp.org>
89190         * modules/getdtablesize-tests: New file.
89191         * tests/test-getdtablesize.c: New file.
89193         New module 'getdtablesize'.
89194         * lib/unistd.in.h (getdtablesize): New declaration.
89195         * lib/getdtablesize.c: New file.
89196         * m4/getdtablesize.m4: New file.
89197         * modules/getdtablesize: New file.
89198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89199         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
89200         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
89201         HAVE_GETDTABLESIZE.
89202         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
89204 2008-10-05  Bruno Haible  <bruno@clisp.org>
89206         * modules/sched (Makefile.am): Fix typo.
89207         Reported by Simon Josefsson.
89209 2008-10-05  Jim Meyering  <meyering@redhat.com>
89211         bootstrap: check for LT_INIT, too
89212         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
89213         are deprecated.  Suggestion from Ralf Wildenhues.
89215 2008-10-05  Bruno Haible  <bruno@clisp.org>
89217         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
89218         overriding them by ours.
89219         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
89221 2008-10-05  Jim Meyering  <meyering@redhat.com>
89223         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
89224         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
89225         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
89227 2008-10-04  Bruno Haible  <bruno@clisp.org>
89229         * modules/dup2 (License): Change to LGPLv2+.
89230         * modules/sleep (License): Likewise.
89231         * modules/perror (License): Likewise.
89232         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
89233         Blake.
89234         * modules/signal (License): Likewise.
89235         * modules/sigprocmask (License): Likewise.
89236         * modules/raise (License): Change to LGPLv2+, with approval by Jim
89237         Meyering.
89239 2008-10-04  Bruno Haible  <bruno@clisp.org>
89241         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
89242         Reported by Rainer Tammer <tammer@tammer.net>.
89244 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
89245             Bruno Haible  <bruno@clisp.org>
89247         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
89248         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
89249         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
89251 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
89253         filevercmp: new module
89254         * lib/filevercmp.h: New function filevercmp comparing version strings.
89255         * lib/filevercmp.c: Implementation of filevercmp function.
89256         * modules/filevercmp: Module metadata.
89257         * tests/test-filevercmp.c: Unit test for new module.
89258         * modules/filevercmp-tests: Unit test metadata.
89259         * MODULES.html.sh: Add filevercmp module.
89261 2008-10-03  Bruno Haible  <bruno@clisp.org>
89263         * lib/c-ctype.h: Add comment.
89264         Reported by Jim Meyering.
89266 2008-10-02  Bruno Haible  <bruno@clisp.org>
89268         * modules/posix_spawn-internal (Depends-on): Add 'open'.
89270 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89272         * build-aux/bootstrap: Allow renaming bootstrap, and change the
89273         name of bootstrap.conf accordingly.
89275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89277         * build-aux/bootstrap: Install git-merge-changelog configuration
89278         items into .gitconfig if needed.
89280 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89282         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
89283         git repository, and initialize/update it accordingly.
89285 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
89287         * modules/fsync-tests: New file.
89288         * tests/test-fsync.c: New file.
89290         New module 'fsync'.
89291         * lib/fsync.c: New file.
89292         * m4/fsync.m4: New file.
89293         * modules/fsync: New file.
89294         * lib/unistd.in.h (fsync): New declaration.
89295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
89296         GNULIB_FSYNC and HAVE_FSYNC.
89297         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
89298         * MODULES.html.sh (posix_functions): Add fsync.
89299         * doc/posix-functions/fsync.texi: Mention the new module.
89301 2008-10-02  Jim Meyering  <meyering@redhat.com>
89303         fts.c: sync with similar code from coreutils' remove.c
89304         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
89305         Guard also with "#if defined __linux__", since for now at least,
89306         this code is Linux-kernel-specific.
89308 2008-10-02  Jim Meyering  <meyering@redhat.com>
89310         fts: bug fixes
89311         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
89312         Include <sys/vfs.h>, not <sys/statfs.h>.
89314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
89315         Include <sys/vfs.h>, not <sys/statfs.h>.
89317 2008-10-01  Bruno Haible  <bruno@clisp.org>
89319         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
89320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
89321         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
89322         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
89323         * doc/posix-functions/posix_spawnp.texi: Likewise.
89324         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
89325         whether posix_spawn actually works.
89326         * m4/pipe.m4 (gl_PIPE): Likewise.
89327         * modules/execute (Files): Add m4/posix_spawn.m4.
89328         * modules/pipe (Files): Add m4/posix_spawn.m4.
89329         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
89331 2008-10-01  Jim Meyering  <meyering@redhat.com>
89333         remove trailing spaces
89334         * NEWS: Likewise.
89335         * lib/poll.c (poll): Likewise.
89336         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
89337         * lib/winsock.c (rpl_close): Likewise.
89338         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
89339         * modules/yield: Likewise.
89340         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
89341         * tests/test-sys_select.c (connect_to_socket): Likewise.
89343         fts.c: adjust a new interface to be more generally useful
89344         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
89345         (fts_build): Adjust caller.
89347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89349         * modules/cond-tests: New file.
89350         * tests/test-cond.c: New file.
89352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89353             Bruno Haible  <bruno@clisp.org>
89355         * modules/cond (Dependencies): Add errno, time.
89356         * lib/glthread/cond.h: Include <time.h>.
89357         (gl_cond_define, gl_cond_define_initialized): Use the same definition
89358         across platforms.
89360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89361             Bruno Haible  <bruno@clisp.org>
89363         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
89365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89366             Bruno Haible  <bruno@clisp.org>
89368         * modules/tls-tests (Depends-on): Add thread, yield.
89369         (configure.ac): Remove all checks.
89370         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
89371         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
89372         gl_thread_self): Remove definitions. Include glthread/thread.h and
89373         glthread/yield.h instead.
89374         (test_tls): Pass an additional NULL argument to gl_thread_join.
89376 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89377             Bruno Haible  <bruno@clisp.org>
89379         * modules/lock-tests (Depends-on): Add thread, yield.
89380         (configure.ac): Remove all checks.
89381         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
89382         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
89383         gl_thread_self): Remove definitions. Include glthread/thread.h and
89384         glthread/yield.h instead.
89385         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
89386         additional NULL argument to gl_thread_join.
89388 2008-09-30  Bruno Haible  <bruno@clisp.org>
89390         Fix the Win32 implementation of the 'thread' module.
89391         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
89392         pointer type.
89393         (gl_thread_self): Invoke gl_thread_self_func.
89394         (gl_thread_self_func): New declaration.
89395         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
89396         (do_init_self_key, init_self_key): New functions.
89397         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
89398         Remove some fields.
89399         (running_threads, running_lock): Remove variables.
89400         (get_current_thread_handle): New function.
89401         (gl_thread_self_func, wrapper_func, glthread_create_func,
89402         glthread_join_func, gl_thread_exit_func): Largely rewritten and
89403         simplified.
89405 2008-09-30  Bruno Haible  <bruno@clisp.org>
89407         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
89408         files.
89410 2008-09-30  Jim Meyering  <meyering@redhat.com>
89412         fts.m4: correct the test for statfs.f_type
89413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
89414         when checking for statfs.f_type.
89416 2008-09-15  Simon Josefsson  <simon@josefsson.org>
89418         tests: avoid some compiler warnings
89419         * tests/test-memchr.c (main): Pass NULL indirectly.
89420         * tests/test-getdate.c (main): Remove unused variable 'ret'.
89422 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
89424         getdate.y: disallow countable dayshifts like "4 yesterday ago"
89425         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
89426         exactly specified dayshifts.
89427         (dayshift): New rule.
89428         (rel): Add dayshift.
89429         (relative_time_table) [tomorrow, yesterday, today, now]:
89430         Use tDAY_SHIFT in place of tDAY_UNIT.
89431         * tests/test-getdate.c: Add tests for now-disallowed countable
89432         dayshifts, e.g., "4 yesterday ago".
89434 2008-09-29  Bruno Haible  <bruno@clisp.org>
89436         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
89437         * tests/test-posix_spawn1.in.sh: Renamed from
89438         tests/test-posix_spawn.in.sh.
89439         * tests/test-posix_spawn2.c: New file.
89440         * tests/test-posix_spawn2.in.sh: New file.
89441         * modules/posix_spawnp-tests (Files): Update.
89442         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
89444 2008-09-29  Bruno Haible  <bruno@clisp.org>
89446         Propagate effects of putenv/setenv/unsetenv to child processes.
89447         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
89448         * lib/pipe.c (create_pipe): Likewise.
89450 2008-09-29  Bruno Haible  <bruno@clisp.org>
89452         Enable use of shell scripts as executables in mingw.
89453         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
89454         run the program as a shell script.
89455         * lib/pipe.c (create_pipe): Likewise.
89456         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
89457         resulting array.
89459 2008-09-29  Eric Blake  <ebb9@byu.net>
89461         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
89463 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
89465         * doc/posix-functions/accept.texi: Update mingw problems.
89466         * doc/posix-functions/bind.texi: Update mingw problems.
89467         * doc/posix-functions/close.texi: Update mingw problems.
89468         * doc/posix-functions/connect.texi: Update mingw problems.
89469         * doc/posix-functions/getpeername.texi: Update mingw problems.
89470         * doc/posix-functions/getsockname.texi: Update mingw problems.
89471         * doc/posix-functions/getsockopt.texi: Update mingw problems.
89472         * doc/posix-functions/ioctl.texi: Update mingw problems.
89473         * doc/posix-functions/listen.texi: Update mingw problems.
89474         * doc/posix-functions/recv.texi: Update mingw problems.
89475         * doc/posix-functions/recvfrom.texi: Update mingw problems.
89476         * doc/posix-functions/select.texi: Update mingw problems.
89477         * doc/posix-functions/send.texi: Update mingw problems.
89478         * doc/posix-functions/sendto.texi: Update mingw problems.
89479         * doc/posix-functions/setsockopt.texi: Update mingw problems.
89480         * doc/posix-functions/socket.texi: Update mingw problems.
89482 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
89483             Bruno Haible  <bruno@clisp.org>
89485         * lib/sys_select.in.h: Include sys/time.h.
89486         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
89487         * modules/sys_select: Depend on sys_time.
89488         * tests/test-sys_select.c: Test that sys/select.h defines struct
89489         timeval fully.
89491 2008-09-29  Bruno Haible  <bruno@clisp.org>
89493         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
89494         * lib/sys_select.in.h: Likewise.
89496 2008-09-29  Bruno Haible  <bruno@clisp.org>
89498         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
89500 2008-09-29  Bruno Haible  <bruno@clisp.org>
89502         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
89503         Set LIBSOCKET instead of augmenting LIBS.
89504         * modules/sockets (Link): New section.
89505         * modules/sockets-tests (test_sockets_LDADD): New variable.
89506         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
89507         * modules/poll-tests (test_poll_LDADD): New variable.
89508         * NEWS: Document the change.
89510 2008-09-29  Bruno Haible  <bruno@clisp.org>
89512         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
89513         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
89514         ARPA_INET_H directly.
89515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
89517 2008-09-28  Bruno Haible  <bruno@clisp.org>
89519         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
89520         from gl_HEADER_SYS_SOCKET.
89521         (gl_HEADER_SYS_SOCKET): Invoke it.
89522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
89524 2008-09-28  Bruno Haible  <bruno@clisp.org>
89526         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
89527         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
89528         Needed on OSF/1 4.0.
89530 2008-09-28  Bruno Haible  <bruno@clisp.org>
89532         Override open more carefully.
89533         * lib/open.c (orig_open): New function.
89534         (rpl_open): Use orig_open instead of open.
89535         * lib/fcntl.in.h: Add special invocation convention.
89536         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
89537         (gl_FUNC_OPEN): Invoke it.
89539         Override freopen more carefully.
89540         * lib/freopen.c (orig_freopen): New function.
89541         (rpl_freopen): Use orig_freopen instead of freopen.
89542         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
89543         (gl_FUNC_FREOPEN): Invoke it.
89545         Override fopen more carefully.
89546         * lib/fopen.c (orig_fopen): New function.
89547         (rpl_fopen): Use orig_fopen instead of fopen.
89548         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
89549         (gl_FUNC_FOPEN): Invoke it.
89550         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
89552 2008-09-28  Bruno Haible  <bruno@clisp.org>
89554         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
89555         SIGPIPE.
89557 2008-09-28  Bruno Haible  <bruno@clisp.org>
89559         * tests/test-sigaction.c (handler, main): Disable the check whether
89560         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
89561         glibc systems with LinuxThreads.
89563 2008-09-28  Bruno Haible  <bruno@clisp.org>
89565         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
89567         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
89568         with AIX xlc.
89569         * lib/fcntl.in.h (open): Likewise.
89570         Reported by Rainer Tammer <tammer@tammer.net>.
89572 2008-09-28  Bruno Haible  <bruno@clisp.org>
89574         * modules/posix_spawnp-tests: New file.
89575         * tests/test-posix_spawn.c: New file.
89576         * tests/test-posix_spawn.in.sh: New file.
89578         New module 'posix_spawnp'.
89579         * modules/posix_spawnp: New file.
89580         * lib/spawnp.c: New file, from GNU libc with modifications.
89581         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
89583         New module 'posix_spawn'.
89584         * modules/posix_spawn: New file.
89585         * lib/spawn.c: New file, from GNU libc with modifications.
89586         * doc/posix-functions/posix_spawn.texi: Mention the new module.
89588         New module 'posix_spawnattr_destroy'.
89589         * modules/posix_spawnattr_destroy: New file.
89590         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
89591         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
89592         module.
89594         New module 'posix_spawnattr_setsigmask'.
89595         * modules/posix_spawnattr_setsigmask: New file.
89596         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
89597         modifications.
89598         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
89599         new module.
89601         New module 'posix_spawnattr_getsigmask'.
89602         * modules/posix_spawnattr_getsigmask: New file.
89603         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
89604         modifications.
89605         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
89606         new module.
89608         New module 'posix_spawnattr_setsigdefault'.
89609         * modules/posix_spawnattr_setsigdefault: New file.
89610         * lib/spawnattr_setdefault.c: New file, from GNU libc with
89611         modifications.
89612         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
89613         new module.
89615         New module 'posix_spawnattr_getsigdefault'.
89616         * modules/posix_spawnattr_getsigdefault: New file.
89617         * lib/spawnattr_getdefault.c: New file, from GNU libc with
89618         modifications.
89619         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
89620         new module.
89622         New module 'posix_spawnattr_setschedpolicy'.
89623         * modules/posix_spawnattr_setschedpolicy: New file.
89624         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
89625         modifications.
89626         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
89627         new module.
89629         New module 'posix_spawnattr_getschedpolicy'.
89630         * modules/posix_spawnattr_getschedpolicy: New file.
89631         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
89632         modifications.
89633         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
89634         new module.
89636         New module 'posix_spawnattr_setschedparam'.
89637         * modules/posix_spawnattr_setschedparam: New file.
89638         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
89639         modifications.
89640         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
89641         new module.
89643         New module 'posix_spawnattr_getschedparam'.
89644         * modules/posix_spawnattr_getschedparam: New file.
89645         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
89646         modifications.
89647         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
89648         new module.
89650         New module 'posix_spawnattr_setpgroup'.
89651         * modules/posix_spawnattr_setpgroup: New file.
89652         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
89653         modifications.
89654         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
89655         module.
89657         New module 'posix_spawnattr_getpgroup'.
89658         * modules/posix_spawnattr_getpgroup: New file.
89659         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
89660         modifications.
89661         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
89662         module.
89664         New module 'posix_spawnattr_setflags'.
89665         * modules/posix_spawnattr_setflags: New file.
89666         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
89667         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
89668         module.
89670         New module 'posix_spawnattr_getflags'.
89671         * modules/posix_spawnattr_getflags: New file.
89672         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
89673         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
89674         module.
89676         New module 'posix_spawnattr_init'.
89677         * modules/posix_spawnattr_init: New file.
89678         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
89679         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
89680         module.
89682         New module 'posix_spawn_file_actions_destroy'.
89683         * modules/posix_spawn_file_actions_destroy: New file.
89684         * lib/spawn_faction_destroy.c: New file, from GNU libc with
89685         modifications.
89686         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
89687         the new module.
89689         New module 'posix_spawn_file_actions_addopen'.
89690         * modules/posix_spawn_file_actions_addopen: New file.
89691         * lib/spawn_faction_addopen.c: New file, from GNU libc with
89692         modifications.
89693         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
89694         the new module.
89696         New module 'posix_spawn_file_actions_adddup2'.
89697         * modules/posix_spawn_file_actions_adddup2: New file.
89698         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
89699         modifications.
89700         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
89701         the new module.
89703         New module 'posix_spawn_file_actions_addclose'.
89704         * modules/posix_spawn_file_actions_addclose: New file.
89705         * lib/spawn_faction_addclose.c: New file, from GNU libc with
89706         modifications.
89707         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
89708         the new module.
89710         New module 'posix_spawn_file_actions_init'.
89711         * modules/posix_spawn_file_actions_init: New file.
89712         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
89713         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
89714         new module.
89716         New module 'posix_spawn-internal'.
89717         * modules/posix_spawn-internal: New file.
89718         * lib/spawn_int.h: New file, from GNU libc with modifications.
89719         * lib/spawni.c: New file, from GNU libc with modifications.
89720         * m4/posix_spawn.m4: New file.
89722         New module 'spawn'.
89723         * modules/spawn: New file.
89724         * lib/spawn.in.h: New file, from GNU libc with modifications.
89725         * m4/spawn_h.m4: New file.
89726         * doc/posix-headers/spawn.texi: Mention the new module.
89728 2008-09-28  Bruno Haible  <bruno@clisp.org>
89730         * modules/sched-tests: New file.
89731         * tests/test-sched.c: New file.
89733         New module 'sched'.
89734         * modules/sched: New file.
89735         * lib/sched.in.h: New file.
89736         * m4/sched_h.m4: New file.
89737         * doc/posix-headers/sched.texi: Mention the new module.
89739 2008-09-27  Eric Blake  <ebb9@byu.net>
89741         Fix previous patch, and tweak references to $0.
89742         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
89743         (func_version, func_gnulib_dir): Don't call this program
89744         gnulib-tool.
89745         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
89746         with using $0 in function.
89747         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
89748         (func_fatal_error): Reuse the name the user invoked us with.
89750 2008-09-27  Bruno Haible  <bruno@clisp.org>
89752         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
89753         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
89754         (gl_ICONV_H): Not here.
89755         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
89756         instead of assigning ICONV_H directly.
89758         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
89759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
89760         WCHAR_H directly.
89762 2008-09-27  Bruno Haible  <bruno@clisp.org>
89764         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
89765         * modules/arpa_inet (Depends-on): Add link-warning.
89766         (Makefile.am): Insert the definition of GL_LINK-WARNING.
89767         * modules/unistd (Makefile.am): Likewise.
89769 2008-09-26  Bruno Haible  <bruno@clisp.org>
89771         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
89772         variables.
89773         (func_version): Essentially copied from gnulib-tool.
89774         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
89775         func_readlink): Copied from gnulib-tool.
89777 2008-09-26  Bruno Haible  <bruno@clisp.org>
89779         * gnulib-tool (func_version): Change directory to $gnulib_dir before
89780         invoking git-version-gen.
89782 2008-09-26  Bruno Haible  <bruno@clisp.org>
89784         * posix-modules: Update to directory names changed on 2008-01-19.
89785         Remove commas in output before splitting into words. No more need to
89786         avoid 'ftruncate' since 2007-02-19.
89788 2008-09-26  Bruno Haible  <bruno@clisp.org>
89790         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
89792 2008-09-26  Bruno Haible  <bruno@clisp.org>
89794         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
89795         * modules/fwriteerror (Depends-on): Add errno.
89797 2008-09-26  Bruno Haible  <bruno@clisp.org>
89799         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
89800         * tests/test-vc-list-files-cvs.sh: Likewise.
89802 2008-09-26  Bruno Haible  <bruno@clisp.org>
89804         * doc/posix-headers/sys_resource.texi: Reorder items.
89806 2008-09-26  Jim Meyering  <meyering@redhat.com>
89808         fts: tweak inode comparison function
89809         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
89810         inode numbers, as documented.
89812         fts: sort dirent entries on inode number before traversing
89813         This avoids a quadratic, seek-related performance penalty when
89814         operating on a directory containing many entries (measurable at 10k;
89815         3.5 hours at 2 million entries with a cold cache) on certain types
89816         of file systems, including ext3 and ext4, but not tmpfs.
89817         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
89818         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
89819         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
89820         (fs_handles_readdir_ordered_dirents_efficiently): New function.
89821         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
89822         (fts_build): Set the stat.st_ino member from D_INO.
89823         If it is likely to be useful, sort dirent entries on inode number.
89825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
89826         and the struct statfs.f_type member.
89827         * modules/fts (Depends-on): Add d-ino.
89829 2008-09-26  Bruno Haible  <bruno@clisp.org>
89831         * modules/sigpipe-die (Depends-on): Add sigpipe.
89833         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
89834         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
89835         and GNULIB_STDIO_H_SIGPIPE are set.
89836         * lib/stdio-write.c: New file.
89837         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
89838         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
89839         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
89840         REPLACE_STDIO_WRITE_FUNCS.
89841         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
89842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
89843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
89844         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
89845         * modules/stdio (Files): Add lib/stdio-write.c.
89846         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
89847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
89848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
89849         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
89850         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
89851         REPLACE_FPRINTF_POSIX.
89852         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
89853         REPLACE_PRINTF_POSIX.
89854         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
89855         REPLACE_VFPRINTF_POSIX.
89856         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
89857         REPLACE_VPRINTF_POSIX.
89858         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
89859         SIGPIPE issue.
89860         * doc/posix-functions/fputc.texi: Likewise.
89861         * doc/posix-functions/fputs.texi: Likewise.
89862         * doc/posix-functions/fwrite.texi: Likewise.
89863         * doc/posix-functions/printf.texi: Likewise.
89864         * doc/posix-functions/putc.texi: Likewise.
89865         * doc/posix-functions/putchar.texi: Likewise.
89866         * doc/posix-functions/puts.texi: Likewise.
89867         * doc/posix-functions/vfprintf.texi: Likewise.
89868         * doc/posix-functions/vprintf.texi: Likewise.
89870         * modules/safe-write (Depends-on): Add write.
89872         * modules/sigpipe-tests: New file.
89873         * tests/test-sigpipe.c: New file.
89874         * tests/test-sigpipe.sh: New file.
89876         * modules/write: New file.
89877         * lib/unistd.in.h: Include <sys/types.h>.
89878         (write): New declaration.
89879         * lib/write.c: New file.
89880         * m4/write.m4: New file.
89881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89882         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
89883         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
89884         GNULIB_WRITE, REPLACE_WRITE.
89885         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
89886         and the SIGPIPE issue.
89888         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
89889         (raise): New declaration.
89890         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
89891         (ext_signal): New function.
89892         (rpl_raise): New function.
89893         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
89894         GNULIB_SIGNAL_H_SIGPIPE.
89895         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
89896         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
89898         * modules/sigpipe: New file.
89899         * m4/sigpipe.m4: New file.
89901 2008-09-25  Derek Price  <derek@ximbiot.com>
89902             Bruno Haible  <bruno@clisp.org>
89904         * gnulib-tool (func_import): Report all license incompatibilities, not
89905         just the first one.
89907 2008-09-25  Bruno Haible  <bruno@clisp.org>
89909         * gnulib-tool (func_import): When computing the edits, consider not
89910         only the Makefile.ams that exist but also those that will be generated.
89912 2008-09-25  Simon Josefsson  <simon@josefsson.org>
89914         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
89915         fixes gnulib-tool --test warning about duplicate dependency.
89917 2008-09-25  Bruno Haible  <bruno@clisp.org>
89919         * gnulib-tool: Don't ask the user to perform edits in the generated
89920         Makefile.ams.
89921         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
89922         apply to the Makefile.am being generated.
89923         (func_emit_tests_Makefile_am): Execute edits that apply to the
89924         Makefile.am being generated.
89925         (func_import): Setup list of Makefile.am edits before emitting the
89926         Makefile.ams, not at the end.
89927         (func_create_testdir): Update.
89928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89930 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89932         * gnulib-tool (func_import): Store the --tests-base option in the
89933         comment in gnulib-cache.m4.
89935 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
89937         * NEWS: Document increased portability that sys_select now provides.
89939         * lib/sys_select.in.h: Install select wrapper.
89940         * lib/sys_socket.in.h: Use more descriptive name when there is no
89941         select wrapper.
89942         * lib/winsock-select.c: New.
89943         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
89944         Require gl_HEADER_SYS_SOCKET.
89945         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
89946         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
89947         * tests/test-sys_select.c: Add functional tests.
89949 2008-09-24  Eric Blake  <ebb9@byu.net>
89951         open, fopen: close fd leak in last patch
89952         * lib/open.c (rpl_open): Close fd before returning error.
89953         * lib/fopen.c (rpl_fopen): Close fd before returning error.
89954         * doc/posix-functions/open.texi (open): Document that Irix also
89955         has the bug.
89956         * doc/posix-functions/fopen.texi (fopen): Likewise.
89957         Reported by Paolo Bonzini.
89959 2008-09-24  Bruno Haible  <bruno@clisp.org>
89961         Ensure that a filename ending in a slash cannot be used to access a
89962         non-directory.
89963         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
89964         to check whether it's really a directory.
89965         * lib/fopen.c: Include fcntl.h, unistd.h.
89966         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
89967         and fdopen().
89968         * modules/fopen (Depends-on): Add unistd.
89969         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
89970         * tests/test-fopen.c (main): Likewise.
89971         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
89972         * doc/posix-functions/fopen.texi: Likewise.
89973         Reported by Eric Blake.
89975 2008-09-23  Eric Blake  <ebb9@byu.net>
89977         c-stack: avoid compiler optimizations when provoking overflow
89978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
89979         recursion harder to optimize, to ensure a stack overflow occurs.
89980         * tests/test-c-stack.c (recurse): Likewise.
89981         Borrowed from libsigsegv.
89983         c-stack: work around Irix sigaltstack bug
89984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
89985         whether sigaltstack uses wrong end of stack_t (copied in part from
89986         libsigsegv).
89987         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
89988         Irix bug, without requiring an over-allocation.
89989         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
89990         bug.
89992         fopen: document mingw bug on directories
89993         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
89994         not allowing a stream visiting a directory, even though reading
89995         from such a stream is not portable.
89997 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
89999         * lib/poll.c: Rewrite.
90000         * modules/poll: Depend on alloca.
90002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90004         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
90005         instead define prototypes for a full set of wrappers.  Ensure
90006         that Cygwin does not use the compatibility code, which is only
90007         for MinGW.
90008         * lib/winsock.c: New.
90009         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
90010         * modules/sys_socket: Add lib/winsock.c.
90012         * modules/poll-tests: Add errno and perror.
90013         * tests/test-poll.c: Use ioctl, not ioctlsocket.
90015 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90017         * tests/test-poll.c: Downgrade minimum needed Winsock version.
90019 2008-09-23  Bruno Haible  <bruno@clisp.org>
90021         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
90022         * doc/glibc-functions/*: Likewise.
90024 2008-09-23  Simon Josefsson  <simon@josefsson.org>
90026         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
90027         success.
90029 2008-09-22  Eric Blake  <ebb9@byu.net>
90030             Bruno Haible  <bruno@clisp.org>
90032         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
90033         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
90034         supply %A but mishandle pseudo-NaN.
90035         Reported by Simon Josefsson.
90037 2008-09-21  Bruno Haible  <bruno@clisp.org>
90039         * tests/test-lock.c (main): Tweak skip message.
90040         * tests/test-tls.c (main): Likewise.
90042 2008-09-21  Bruno Haible  <bruno@clisp.org>
90044         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
90045         whether 'struct sigaction' has sa_sigaction here...
90046         (gl_PREREQ_SIG_HANDLER_H): ... not here.
90047         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
90049 2008-09-21  Bruno Haible  <bruno@clisp.org>
90051         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
90052         section.
90053         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
90054         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
90055         the new section.
90056         (Support for obsolete systems lacking POSIX:2001): New section.
90057         (String handling <string.h>): Move strdup to the new section.
90058         Suggested by Simon Josefsson and Paolo Bonzini.
90060 2008-09-21  Bruno Haible  <bruno@clisp.org>
90062         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
90063         exponents in %e and %g results on 'long double'. Needed for mingw's
90064         improved *printf functions.
90065         * tests/test-vasprintf-posix.c (test_function): Likewise.
90066         * tests/test-snprintf-posix.h (test_function): Likewise.
90067         * tests/test-sprintf-posix.h (test_function): Likewise.
90068         Reported by Eric Blake.
90070 2008-09-21  Bruno Haible  <bruno@clisp.org>
90072         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
90073         * tests/test-sprintf-posix.h (test_function): Likewise.
90075 2008-09-21  Bruno Haible  <bruno@clisp.org>
90077         * modules/getpass (Depends-on): Add strdup-posix.
90079         New module 'strdup-posix'.
90080         * modules/strdup-posix: New file.
90081         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
90082         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
90083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90084         REPLACE_STRDUP.
90085         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
90086         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
90087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90088         strdup-posix.
90090         * modules/strdup (Depends-on): Remove malloc-posix.
90092 2008-09-20  Bruno Haible  <bruno@clisp.org>
90094         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
90095         Wildenhues.
90097 2008-09-20  Bruno Haible  <bruno@clisp.org>
90099         Ensure that wint_t gets defined on IRIX 5.3.
90100         * lib/wchar.in.h (wint_t): Define if not defined by the system.
90101         * lib/wctype.in.h (wint_t): Likewise.
90102         (__wctype_wint_t): Remove type.
90103         (isw*): Use wint_t instead of __wctype_wint_t.
90104         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
90105         * modules/wchar (Files): Add m4/wint_t.m4.
90106         (Makefile.am): Substitute HAVE_WINT_T.
90107         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
90108         * tests/test-wctype.c: Check that wint_t is defined.
90109         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
90110         * doc/posix-headers/wctype.texi: Likewise.
90111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
90113 2008-09-18  Bruno Haible  <bruno@clisp.org>
90115         * gnulib-tool (func_exit): Update comment.
90117 2008-09-18  Simon Josefsson  <simon@josefsson.org>
90119         * modules/getaddrinfo (Depends-on): Remove strdup, this module
90120         assumes strdup exists and does not depend on strdup to return
90121         ENOMEM on out of memory conditions.
90123 2008-09-18  Bruno Haible  <bruno@clisp.org>
90125         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
90126         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
90127         digits for the exponent.
90129 2008-09-18  Jim Meyering  <meyering@redhat.com>
90130             Bruno Haible  <bruno@clisp.org>
90132         * lib/vasnprintf.c (decimal_point_char): Define also if
90133         NEED_PRINTF_INFINITE_LONG_DOUBLE.
90135 2008-09-16  Bruno Haible  <bruno@clisp.org>
90136         and Eric Blake  <ebb9@byu.net>
90138         vasnprintf: support Irix 5.3
90139         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
90140         that mishandle long double infinity.
90141         Reported by Tom G. Christensen.
90143 2008-09-16  Bruno Haible  <bruno@clisp.org>
90145         * doc/glibc-functions/scandir.texi: Mention the function is missing on
90146         Solaris 9.
90147         * doc/glibc-functions/alphasort.texi: Likewise.
90148         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
90150 2008-09-16  Jim Meyering  <meyering@redhat.com>
90152         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
90153         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
90154         a umask modification leak out of a subshell.  Otherwise, the
90155         opensolaris /bin/sh would be accepted and thus cause unwarranted
90156         failures in the coreutils test suite.
90158 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
90160         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
90161         to succeed.
90163 2008-09-16  Jim Meyering  <meyering@redhat.com>
90165         avoid spurious test failure when library is built without ACL support
90166         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
90167         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
90168         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
90169         * tests/test-copy-acl.sh: Likewise.
90171 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90173         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
90174         based on character occurrence counts.
90176 2008-09-15  Eric Blake  <ebb9@byu.net>
90178         tests: avoid some compiler warnings
90179         * tests/test-memchr.c (main): Pass NULL indirectly.
90180         * tests/test-closein.c (main): Avoid unused variable.
90182 2008-09-15  Bruno Haible  <bruno@clisp.org>
90184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
90185         are missing on OpenBSD 4.0 individually.
90186         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90188 2008-09-15  Bruno Haible  <bruno@clisp.org>
90190         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
90191         * doc/posix-functions/strerror.texi: Mention also Cygwin.
90192         * doc/posix-functions/perror.texi: Likewise.
90193         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
90194         is missing.
90195         Reported by Eric Blake.
90197         * lib/errno.in.h: Use replacement values >= 2000.
90198         Reported by Eric Blake.
90200 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90202         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
90203         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
90204         limit.
90205         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
90206         compareseq was aborted.
90208 2008-09-14  Bruno Haible  <bruno@clisp.org>
90210         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
90211         yvec_edit_count.
90212         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
90213         (fstrcmp_bounded): Simplify result computation accordingly.
90215 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90217         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
90218         (fstrcmp): Define in terms of fstrcmp_bounded.
90219         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
90220         lower_bound argument.
90221         Return quickly if the result is certainly < lower_bound.
90222         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
90224 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90226         * lib/diffseq.h (EARLY_ABORT): New macro.
90227         (compareseq): Change return type to bool. Return true when EARLY_ABORT
90228         evaluates to true.
90230 2008-09-14  Bruno Haible  <bruno@clisp.org>
90232         * modules/perror-tests: New file.
90233         * tests/test-perror.sh: New file.
90234         * tests/test-perror.c: New file.
90236         New module 'perror'.
90237         * lib/stdio.in.h (perror): New declaration.
90238         * lib/perror.c: New file.
90239         * m4/perror.m4: New file.
90240         * modules/perror: New file.
90241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
90242         * doc/posix-functions/perror.texi: Mention the perror module.
90243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
90244         REPLACE_PERROR.
90245         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
90246         REPLACE_PERROR.
90248 2008-09-14  Bruno Haible  <bruno@clisp.org>
90250         * modules/stdio (Makefile.am): Reorder to match the order in
90251         lib/stdio.in.h.
90252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90254 2008-09-13  Bruno Haible  <bruno@clisp.org>
90256         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
90258 2008-09-13  Bruno Haible  <bruno@clisp.org>
90260         Extend strerror to cover the added errno values.
90261         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
90262         (rpl_strerror): Provide error messages for the added errno values and
90263         for the WSA* values.
90264         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
90265         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
90266         strerror.
90267         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
90268         * modules/strerror (Depends-on): Add errno.
90269         * doc/posix-functions/strerror.texi: Document the change.
90270         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
90271         and EOVERFLOW.
90273 2008-09-13  Bruno Haible  <bruno@clisp.org>
90275         * modules/EOVERFLOW: Remove file.
90276         * m4/eoverflow.m4: Remove file.
90277         * modules/EOVERFLOW-tests: Remove file.
90278         * tests/test-EOVERFLOW.c: Remove file.
90279         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
90280         * modules/ftell (Depends-on): Likewise.
90281         * modules/getdelim (Depends-on): Likewise.
90282         * modules/getugroups (Depends-on): Likewise.
90283         * modules/poll (Depends-on): Likewise.
90284         * modules/snprintf (Depends-on): Likewise.
90285         * modules/sprintf-posix (Depends-on): Likewise.
90286         * modules/vasnprintf (Depends-on): Likewise.
90287         * modules/vasprintf (Depends-on): Likewise.
90288         * modules/vfprintf-posix (Depends-on): Likewise.
90289         * modules/vsnprintf (Depends-on): Likewise.
90290         * modules/vsprintf-posix (Depends-on): Likewise.
90291         * modules/xvasprintf (Depends-on): Likewise.
90292         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
90293         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
90294         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
90295         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
90296         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
90297         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
90298         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
90299         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
90300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
90301         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
90302         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
90303         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
90304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
90305         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
90306         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
90307         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
90308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
90309         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
90310         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
90311         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
90312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
90313         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
90314         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
90315         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
90316         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
90317         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
90318         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
90319         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
90320         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
90321         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
90322         * MODULES.html.sh: Remove EOVERFLOW.
90323         * NEWS: Mention the change.
90325 2008-09-13  Bruno Haible  <bruno@clisp.org>
90327         * modules/errno-tests: New file.
90328         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
90330         * lib/errno.in.h: New file.
90331         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
90332         * modules/errno: New file.
90333         * doc/posix-headers/errno.texi: Update documentation.
90334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
90336 2008-09-13  Bruno Haible  <bruno@clisp.org>
90338         * tests/test-poll.c: Use #if for native Windows, rather than testing
90339         __MSVCRT__.
90341 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90342             Bruno Haible  <bruno@clisp.org>
90344         * lib/glob.c: Don't include <pwd.h> on native Windows.
90345         (WINDOWS32): New macro.
90346         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
90348 2008-09-13  Bruno Haible  <bruno@clisp.org>
90350         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
90351         (ETIMEDOUT): Remove macro.
90352         (glthread_cond_timedwait_multithreaded): New declaration.
90353         (glthread_cond_timedwait): Use it.
90354         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
90355         (glthread_cond_timedwait_multithreaded): New function.
90357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90359         * modules/poll-tests: Do not check for io.h.
90360         * tests/test-poll.c: Check for __MSVCRT__ instead.
90362 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90364         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
90365         * modules/poll-tests: Add inet_pton, stdbool, sockets.
90366         * tests/test-poll.c: Use them.  Use _pipe on Windows.
90368 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90370         * modules/poll-tests: New.
90371         * tests/test-poll.c: New.
90373 2008-09-12  Eric Blake  <ebb9@byu.net>
90375         frexp: test for NetBSD failure on -0.0
90376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
90377         not all, bugs from NetBSD 3.0 have been fixed.
90378         * doc/posix-functions/frexp.texi (frexp): Document bug.
90379         Reported by Thomas Klausner.
90381         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
90382         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
90383         literal -0.0.
90384         Reported by Jonathan C. Patschke <jp@centtech.com>.
90386 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90388         * lib/glthread/cond.h: Use dummy implementation also if
90389         USE_WIN32_THREADS.
90391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90393         * modules/fnmatch-posix (License): Change to LGPLv2+.
90394         * modules/fnmatch-gnu (License): Likewise.
90396 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90398         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
90400 2008-09-11  Jim Meyering  <meyering@redhat.com>
90402         * users.txt: Add gtk-vnc.
90404 2008-09-08  Simon Josefsson  <simon@josefsson.org>
90406         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
90407         rotate amounts.
90409         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
90410         required for 16-bit and 8-bit rotates.
90411         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
90412         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
90413         UINT8_MAX instead of hard-coded constants.
90414         Suggested by Paul Eggert.
90416 2008-09-07  Bruno Haible  <bruno@clisp.org>
90418         * tests/test-striconveh.c (main): Check behaviour when converting from
90419         UTF-7.
90421         Make striconveh work better with stateful encodings.
90422         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
90423         that iconv does not increment the inptr when returning -1/EINVAL.
90425 2008-09-07  Bruno Haible  <bruno@clisp.org>
90427         * build-aux/config.rpath: Update according to libtool-2.2.6.
90428         * build-aux/config.libpath: Likewise.
90430 2008-09-06  Bruno Haible  <bruno@clisp.org>
90432         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
90433         * lib/freadptr.c (freadptr): Likewise.
90434         * lib/freadseek.c (freadptrinc): Likewise.
90435         Reported by Simon Josefsson.
90437 2008-09-06  Bruno Haible  <bruno@clisp.org>
90439         * modules/freadptr (License): Change to LGPLv2+.
90440         * modules/freadseek (License): Likewise.
90441         Suggested by Eric Blake.
90443         * modules/memchr2 (License): Change to LGPLv2+.
90444         Approved by Eric Blake.
90446 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90447             Bruno Haible  <bruno@clisp.org>
90449         Make gnulib-tool work with native 'sed' on AIX.
90450         * gnulib-tool (sed_noop): New variable.
90451         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
90452         func_add_or_update, func_create_testdir): Use it to initialize sed
90453         script variables.
90454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90456 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
90457             Bruno Haible  <bruno@clisp.org>
90459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
90460         also works after #include directives.
90462 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
90464         getdate.y: reject an out-of-range timezone value
90465         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
90466         the range [-24...+24].  When specified with only one or two digits,
90467         * tests/test-getdate.c: Tests for the fix.
90468         * doc/getdate.texi: Document this change.
90470 2008-09-03  Bruno Haible  <bruno@clisp.org>
90472         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
90474 2008-09-02  Simon Josefsson  <simon@josefsson.org>
90476         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
90477         <bruce.korb@gmail.com> with ideas from Ben Pfaff
90478         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
90479         Blake <ebb9@byu.net>.
90481         * tests/test-bitrotate.c: Add more test vectors.
90483 2008-09-02  Eric Blake  <ebb9@byu.net>
90485         vasnprintf-posix: handle large precision via %.*d
90486         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
90487         when handling it ourselves.
90488         * tests/test-vasnprintf-posix.c (test_function): Add test.
90489         * tests/test-snprintf-posix.h (test_function): Likewise.
90490         * tests/test-sprintf-posix.h (test_function): Likewise.
90491         * tests/test-vasprintf-posix.c (test_function): Likewise.
90492         Reported by Alain Guibert.
90494 2008-09-01  Eric Blake  <ebb9@byu.net>
90496         c-stack: make configure-time check more robust
90497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
90498         successful sigaction call.
90499         Reported by Tom G. Christensen.
90501 2008-09-01  Bruno Haible  <bruno@clisp.org>
90503         New module 'findprog-lgpl'.
90504         * modules/findprog-lgpl: New file.
90505         * lib/findprog-lgpl.c: New file.
90506         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
90507         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
90508         to decide whether to use strdup or xstrdup, concatenated_filename or
90509         xconcatenated_filename.
90511 2008-09-01  Bruno Haible  <bruno@clisp.org>
90513         Split module 'concat-filename' into 'concat-filename' (LGPL) and
90514         'xconcat-filename' (GPL).
90515         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
90516         (License): Change to LGPLv2+.
90517         * modules/xconcat-filename: New file.
90518         * lib/concat-filename.h (concatenated_filename): Change specification.
90519         (xconcatenated_filename): New declaration.
90520         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
90521         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
90522         memory situations.
90523         * lib/xconcat-filename.c: New file.
90524         * NEWS: Mention the change.
90525         * lib/findprog.c: Include concat-filename.h, not filename.h.
90526         (find_in_path): Use xconcatenated_filename instead of
90527         concatenated_filename.
90528         * lib/javacomp.c: Include concat-filename.h, not filename.h.
90529         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
90530         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
90531         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
90532         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
90533         instead of concatenated_filename.
90534         * lib/javaexec.c: Include concat-filename.h, not filename.h.
90535         (execute_java_class): Use xconcatenated_filename instead of
90536         concatenated_filename.
90537         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
90538         * modules/javacomp (Depends-on): Likewise.
90539         * modules/javaexec (Depends-on): Likewise.
90541 2008-09-01  Bruno Haible  <bruno@clisp.org>
90543         Split module 'filename' into 'filename' and 'concat-filename'.
90544         * modules/filename: Keep only lib/filename.h.
90545         (License): Change to LGPLv2+.
90546         * modules/concat-filename: New file, extracted from modules/filename.
90547         * lib/filename.h (concatenated_filename): Remove declaration.
90548         * lib/concat-filename.h: New file, extracted from lib/filename.h.
90549         * lib/concat-filename.c: Include concat-filename.h.
90550         * NEWS: Mention the change.
90552 2008-09-01  Simon Josefsson  <simon@josefsson.org>
90554         * lib/bitrotate.h (rotl8, rotr8): Add.
90556         * modules/bitrotate (configure.ac): Need
90557         AC_REQUIRE([AC_C_INLINE]).
90558         (Description): Mention stdint.h.  Reported by Bruno Haible
90559         <bruno@clisp.org>.
90561         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
90562         Paolo Bonzini <bonzini@gnu.org>.
90564 2008-08-31  Bruno Haible  <bruno@clisp.org>
90566         Assume Solaris specific bi-arch conventions on Solaris systems.
90567         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
90568         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
90569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
90570         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
90571         like acl_libdirstem.
90572         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
90573         acl_libdirstem.
90574         * NEWS: Mention the change.
90575         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
90577 2008-08-31  Jim Meyering  <meyering@redhat.com>
90579         * lib/strftime.h: Add comments describing the two added arguments.
90581         remove duplicate #include directives
90582         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
90583         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
90585 2008-08-31  Bruno Haible  <bruno@clisp.org>
90587         New module 'sigpipe-die'.
90588         * modules/sigpipe-die: New file.
90589         * lib/sigpipe-die.h: New file.
90590         * lib/sigpipe-die.c: New file.
90591         * MODULES.html.sh (Signal handling): Add sigpipe-die.
90593 2008-08-31  Bruno Haible  <bruno@clisp.org>
90595         Don't override previously installed signal handlers.
90596         * lib/fatal-signal.c (saved_sigactions): New variable.
90597         (uninstall_handlers): Reset the signal to the saved handler, not
90598         to SIG_DFL (except when ignored).
90599         (install_handlers): Save the previous handlers.
90601 2008-08-30  Bruno Haible  <bruno@clisp.org>
90603         * gnulib-tool (func_reset_sigpipe): New function.
90604         (func_get_automake_snippet, func_modules_transitive_closure,
90605         func_import): Invoke it before a join command that reads from stdin,
90606         to avoid "echo: write error: Broken pipe" error messages on stderr.
90607         Reported by Sam Steingold <sds@gnu.org>.
90609 2008-08-30  Bruno Haible  <bruno@clisp.org>
90611         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
90612         Code copied from m4/open.m4.
90613         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
90614         access and the filename ends in a slash. Code copied from lib/open.c.
90615         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
90616         * tests/test-fopen.c (main): Check against bug with trailing slash.
90618 2008-08-29  Bruno Haible  <bruno@clisp.org>
90620         Avoid some "gcc -pedantic" warnings.
90621         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
90622         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
90623         * lib/dirent.in.h: Likewise.
90624         * lib/fcntl.in.h: Likewise.
90625         * lib/float.in.h: Likewise.
90626         * lib/iconv.in.h: Likewise.
90627         * lib/inttypes.in.h: Likewise.
90628         * lib/locale.in.h: Likewise.
90629         * lib/math.in.h: Likewise.
90630         * lib/netinet_in.in.h: Likewise.
90631         * lib/search.in.h: Likewise.
90632         * lib/signal.in.h: Likewise.
90633         * lib/stdarg.in.h: Likewise.
90634         * lib/stdint.in.h: Likewise.
90635         * lib/stdio.in.h: Likewise.
90636         * lib/stdlib.in.h: Likewise.
90637         * lib/string.in.h: Likewise.
90638         * lib/strings.in.h: Likewise.
90639         * lib/sys_select.in.h: Likewise.
90640         * lib/sys_socket.in.h: Likewise.
90641         * lib/sys_stat.in.h: Likewise.
90642         * lib/sys_time.in.h: Likewise.
90643         * lib/sysexits.in.h: Likewise.
90644         * lib/time.in.h: Likewise.
90645         * lib/unistd.in.h: Likewise.
90646         * lib/wchar.in.h: Likewise.
90647         * lib/wctype.in.h: Likewise.
90648         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
90649         * modules/fchdir (Makefile.am): Likewise.
90650         * modules/fcntl (Makefile.am): Likewise.
90651         * modules/float (Makefile.am): Likewise.
90652         * modules/iconv_open (Makefile.am): Likewise.
90653         * modules/inttypes (Makefile.am): Likewise.
90654         * modules/locale (Makefile.am): Likewise.
90655         * modules/math (Makefile.am): Likewise.
90656         * modules/netinet_in (Makefile.am): Likewise.
90657         * modules/search (Makefile.am): Likewise.
90658         * modules/signal (Makefile.am): Likewise.
90659         * modules/stdarg (Makefile.am): Likewise.
90660         * modules/stdint (Makefile.am): Likewise.
90661         * modules/stdio (Makefile.am): Likewise.
90662         * modules/stdlib (Makefile.am): Likewise.
90663         * modules/string (Makefile.am): Likewise.
90664         * modules/strings (Makefile.am): Likewise.
90665         * modules/sys_select (Makefile.am): Likewise.
90666         * modules/sys_socket (Makefile.am): Likewise.
90667         * modules/sys_stat (Makefile.am): Likewise.
90668         * modules/sys_time (Makefile.am): Likewise.
90669         * modules/sysexits (Makefile.am): Likewise.
90670         * modules/time (Makefile.am): Likewise.
90671         * modules/unistd (Makefile.am): Likewise.
90672         * modules/wchar (Makefile.am): Likewise.
90673         * modules/wctype (Makefile.am): Likewise.
90674         Reported by Reuben Thomas <rrt@sc3d.org>.
90676 2008-08-29  Bruno Haible  <bruno@clisp.org>
90678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
90679         any more.
90681 2008-08-29  Simon Josefsson  <simon@josefsson.org>
90683         * MODULES.html.sh (Misc): Add bitrotate.
90685         * modules/bitrotate: New file.
90687         * lib/bitrotate.h: New file.
90689         * modules/bitrotate-tests: New file.
90691         * tests/test-bitrotate.c: New file.
90693         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
90694         on the bitrotate module.
90696         * lib/arctwo.c: Use new bitrotate module.
90698 2008-08-29  Jim Meyering  <meyering@redhat.com>
90700         bootstrap: merge changes from coreutils
90701         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
90702         of copied files.  Remove a kludge, now that this is fixed.
90703         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
90704         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
90705         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
90707 2008-08-29  Bruno Haible  <bruno@clisp.org>
90709         * MODULES.html.sh: Remove --cvs-urls option.
90711 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
90713         maint.mk: adjust to file name change
90714         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
90716 2008-08-28  Jim Meyering  <meyering@redhat.com>
90718         * modules/getndelim2 (License): Relicense to LGPLv2+.
90719         Approved by Richard Stallman for the version of 1995, and by
90720         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
90722 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
90724         * lib/getdelim.c (flockfile, funlockfile): Make all of them
90725         dummy if one is not available.  Do not touch them if
90726         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
90727         (getc_maybe_unlocked): New.
90728         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
90730 2008-08-26  Eric Blake  <ebb9@byu.net>
90732         doc/INSTALL: resync from autoconf
90733         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
90734         (INSTALL_PRELUDE): Delete; this is done more efficiently by
90735         moving...
90736         * install.texi [!autoconf]: ...here.  Resync from autoconf.
90737         * INSTALL: Regenerate.
90738         * INSTALL.ISO: New file.
90739         * INSTALL.UTF-8: Likewise.
90741 2008-08-26  Jim Meyering  <meyering@redhat.com>
90743         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
90744         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
90745         these definitions conditional, so that they may be overridden, too.
90747 2008-08-26  Bruno Haible  <bruno@clisp.org>
90749         Generate INSTALL file variants with prettier quotes.
90750         * doc/Makefile (INSTALL_PRELUDE): New macro.
90751         (INSTALL): Use it.
90752         (INSTALL.ISO, INSTALL.UTF-8): New rules.
90754 2008-08-26  Bruno Haible  <bruno@clisp.org>
90756         Run makeinfo in an English locale.
90757         * doc/Makefile (MAKEINFO): New variable.
90759 2008-08-26  Bruno Haible  <bruno@clisp.org>
90761         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
90762         Suggested by Eric Blake.
90764 2008-08-25  Bruno Haible  <bruno@clisp.org>
90766         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
90768 2008-08-25  Eric Blake  <ebb9@byu.net>
90770         c-stack: test that stack overflow can be caught
90771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
90772         that platform allows handling stack overflow; at least OS/2 EMX
90773         has sigaltstack, but crashes before transferring control to
90774         handler on stack overflow.
90775         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
90776         check for HAVE_STACK_OVERFLOW_HANDLING.
90777         Reported by Elbert Pol.
90779 2008-08-25  Bruno Haible  <bruno@clisp.org>
90781         * doc/posix-functions/strftime.texi: Fix description of strftime
90782         module.
90784 2008-08-24  Bruno Haible  <bruno@clisp.org>
90786         * tests/uniwidth/test-uc_width2.c: New file.
90787         * tests/uniwidth/test-uc_width2.sh: New file.
90788         * modules/uniwidth/width-tests (Files): Add the new files.
90789         (TESTS): Add uniwidth/test-uc_width2.sh.
90790         (TESTS_ENVIRONMENT): New variable.
90791         (check_PROGRAMS): Add test-uc_width2.
90792         (test_uc_width2_SOURCES): New variable.
90794         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
90795         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
90796         not 0x00AB.
90797         Reported by Alexander V. Lukyanov <lav@netis.ru>.
90799 2008-08-22  Eric Blake  <ebb9@byu.net>
90801         test-lock, test-tls: mention why a test is skipped
90802         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
90803         skipped.
90804         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
90806         count-one-bits: relax license
90807         * modules/count-one-bits (License): Relicense to LGPLv2+.
90808         Suggested by Ludovic Courtès, approved by Ben Pfaff.
90810 2008-08-22  Andreas Schwab  <schwab@suse.de>
90812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
90813         Remove spurious space in assignment.
90815 2008-08-21  Simon Josefsson  <simon@josefsson.org>
90817         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
90818         Paul Eggert <eggert@CS.UCLA.EDU>.
90820 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
90822         * modules/gettext: Add m4/threadlib.m4.
90824 2008-08-19  Eric Blake  <ebb9@byu.net>
90826         test-c-stack: fix compilation failure on FreeBSD 5.0
90827         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
90828         headers before <sys/resource.h>.
90829         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
90830         the bug.
90831         Reported by Nelson H. F. Beebe.
90833         strverscmp: migrate from "strverscmp.h" to <string.h>
90834         * modules/string (Makefile.am): Add new hooks.
90835         * modules/strverscmp (Files): Remove strverscmp.h.
90836         (Depends-on): Add string.
90837         (configure.ac): Add indicator.
90838         (Include): Mention new header.
90839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
90840         defaults.
90841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
90842         results.
90843         * lib/strverscmp.h: Delete.
90844         * lib/string.in.h (strverscmp): Provide declaration, when needed.
90845         * tests/test-strverscmp.c (includes): Adjust client.
90846         * lib/check-version.c (includes): Likewise.
90847         * NEWS: Document the change.
90849         strverscmp: add unit test
90850         * modules/strverscmp-tests: New file.
90851         * tests/test-strverscmp.c: Likewise.
90853 2008-08-19  Simon Josefsson  <simon@josefsson.org>
90855         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
90856         regarding Windows crypto stuff, from Mono.
90858 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
90860         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
90861         if present, for intel RND.  Return error on failures.
90863 2008-08-18  Ben Pfaff  <blp@gnu.org>
90865         gitlog-to-changelog: give better diagnostic for failed pipe-open
90866         * build-aux/gitlog-to-changelog: Improve error message: suggest
90867         that the version of Git may be too old.
90869 2008-08-18  Simon Josefsson  <simon@josefsson.org>
90871         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
90872         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
90874 2008-08-18  Bruno Haible  <bruno@clisp.org>
90876         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
90877         pthread_in_use().
90879 2008-08-18  Bruno Haible  <bruno@clisp.org>
90881         * lib/glthread/threadlib.c: Include <pthread.h>.
90883 2008-08-18  Bruno Haible  <bruno@clisp.org>
90885         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
90886         glthread_recursive_lock_* macros.
90887         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
90888         Fix syntax error.
90890 2008-08-18  Bruno Haible  <bruno@clisp.org>
90892         * lib/glthread/thread.c: Avoid forcing a context switch right after
90893         thread creation.
90895 2008-08-17  Bruno Haible  <bruno@clisp.org>
90897         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
90898         * lib/glthread/thread.h: Provide Win32 specific implementation.
90899         * modules/thread (Files): Add lib/glthread/thread.c.
90900         (Depends-on): Add lock.
90901         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
90903 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90905         New module 'yield'.
90906         * modules/yield: New file.
90907         * lib/glthread/yield.h: New file.
90908         * m4/yield.m4: New file.
90909         * MODULES.html.sh (Multithreading): Add yield.
90911 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90913         New module 'thread'.
90914         * modules/thread: New file.
90915         * lib/glthread/thread.h: New file.
90916         * m4/thread.m4: New file.
90917         * MODULES.html.sh (Multithreading): Add thread.
90919 2008-08-17  Bruno Haible  <bruno@clisp.org>
90921         * lib/glthread/lock.h: Include <stdlib.h> always.
90922         * lib/glthread/tls.h: Likewise.
90923         * lib/glthread/cond.h: Likewise.
90925 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90927         New module 'cond'.
90928         * modules/cond: New file.
90929         * lib/glthread/cond.h: New file.
90930         * lib/glthread/cond.c: New file.
90931         * m4/cond.m4: New file.
90932         * MODULES.html.sh (Multithreading): Add cond.
90934 2008-08-16  Eric Blake  <ebb9@byu.net>
90936         c-stack: fix regression on Irix 5.3 from 2008-06-21
90937         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
90938         sa_sigaction...
90939         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
90940         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
90941         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
90942         * modules/signal (Makefile.am): Use the value.
90943         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
90944         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
90945         * doc/posix-headers/signal.texi (signal.h): Document this
90946         portability issue.
90947         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
90948         Reported by Tom G. Christensen.
90950 2008-08-17  Bruno Haible  <bruno@clisp.org>
90952         New module 'threadlib'.
90953         * modules/threadlib: New file.
90954         * lib/glthread/threadlib.c: New file, extracted from
90955         lib/glthread/lock.c.
90956         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
90957         functions.
90958         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
90959         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
90960         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
90961         macros.
90962         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
90963         (gl_DISABLE_THREADS): Remove macro.
90964         * modules/lock (Files): Remove build-aux/config.rpath.
90965         (Depends-on): Remove havelib. Add threadlib.
90966         (configure.ac-early): Remove section.
90967         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
90968         * modules/tls (Depends-on): Remove lock. Add threadlib.
90969         (Link): New section, copied from threadlib.
90970         * MODULES.html.sh (Multithreading): Add threadlib.
90972 2008-08-14  Bruno Haible  <bruno@clisp.org>
90974         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
90975         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
90976         glthread_rwlock_unlock, glthread_rwlock_destroy,
90977         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
90978         glthread_recursive_lock_destroy): Define as macros always.
90979         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
90980         glthread_lock_lock.
90981         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
90982         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
90983         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
90984         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
90985         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
90986         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
90987         (glthread_recursive_lock_lock_func): Renamed from
90988         glthread_recursive_lock_lock.
90989         (glthread_recursive_lock_unlock_func): Renamed from
90990         glthread_recursive_lock_unlock.
90991         (glthread_recursive_lock_destroy_func): Renamed from
90992         glthread_recursive_lock_destroy.
90994 2008-08-14  Bruno Haible  <bruno@clisp.org>
90996         * lib/glthread/lock.h: Renamed from lib/lock.h.
90997         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
90998         * lib/glthread/tls.h: Renamed from lib/tls.h.
90999         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
91000         * lib/fstrcmp.c: Update includes.
91001         * lib/strsignal.c: Update includes.
91002         * modules/lock (Files, Makefile.am): Update.
91003         (Include): Change to "glthread/lock.h".
91004         * modules/tls (Files, Makefile.am): Update.
91005         (Include): Change to "glthread/tls.h".
91006         * tests/test-lock.c: Update includes.
91007         * tests/test-tls.c: Update includes.
91008         * NEWS: Mention the renamed header files.
91010 2008-08-11  Jim Meyering  <meyering@redhat.com>
91012         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
91014 2008-08-11  Eric Blake  <ebb9@byu.net>
91016         test-c-stack: avoid C99-ism
91017         * tests/test-c-stack.c (main): Fix whitespace, move declaration
91018         before statement.
91019         Reported by Alain Guibert.
91021 2008-08-10  Jim Meyering  <meyering@redhat.com>
91023         ensure that return value of uinttostr et al are not ignored
91024         * lib/inttostr.h (__GNUC_PREREQ): Define.
91025         (__attribute_warn_unused_result__): Define.
91026         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
91028 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
91030         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
91031         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
91033 2008-08-07  Jim Meyering  <meyering@redhat.com>
91035         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
91037         * modules/mkstemp (License): Relicense under LGPLv2+.
91038         * modules/tempname (License): Likewise.
91040 2008-08-06  Bruno Haible  <bruno@clisp.org>
91042         * lib/poll.c (poll): Further micro-optimization.
91044 2008-08-06  Jim Meyering  <meyering@redhat.com>
91046         inet_pton.c: use locale-independent tolower
91047         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
91048         (inet_pton6): Use c_tolower rather than tolower.
91049         * modules/inet_pton (Depends-on): Add c-ctype.
91051 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
91053         * lib/poll.c (poll): Avoid division when timeout is 0, cache
91054         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
91056 2008-08-06  Jim Meyering  <meyering@redhat.com>
91058         * modules/inet_pton (License): Relicense under LGPLv2+.
91060 2008-08-03  Bruno Haible  <bruno@clisp.org>
91062         Additional non-aborting API for lock and tls.
91063         * lib/lock.h: Include <errno.h>.
91064         (glthread_lock_init): New macro/function.
91065         (gl_lock_init): Define as wrapper around glthread_lock_init.
91066         (glthread_lock_lock): New macro/function.
91067         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
91068         (glthread_lock_unlock): New macro/function.
91069         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
91070         (glthread_lock_destroy): New macro/function.
91071         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
91072         (glthread_rwlock_init): New macro/function.
91073         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
91074         (glthread_rwlock_rdlock): New macro/function.
91075         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
91076         (glthread_rwlock_wrlock): New macro/function.
91077         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
91078         (glthread_rwlock_unlock): New macro/function.
91079         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
91080         (glthread_rwlock_destroy): New macro/function.
91081         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
91082         (glthread_recursive_lock_init): New macro/function.
91083         (gl_recursive_lock_init): Define as wrapper around
91084         glthread_recursive_lock_init.
91085         (glthread_recursive_lock_lock): New macro/function.
91086         (gl_recursive_lock_lock): Define as wrapper around
91087         glthread_recursive_lock_lock.
91088         (glthread_recursive_lock_unlock): New macro/function.
91089         (gl_recursive_lock_unlock): Define as wrapper around
91090         glthread_recursive_lock_unlock.
91091         (glthread_recursive_lock_destroy): New macro/function.
91092         (gl_recursive_lock_destroy): Define as wrapper around
91093         glthread_recursive_lock_destroy.
91094         (glthread_once): New macro/function.
91095         (gl_once): Define as wrapper around glthread_once.
91096         Update function declarations.
91097         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
91098         glthread_rwlock_init. Return error code.
91099         (glthread_rwlock_rdlock_multithreaded): Renamed from
91100         glthread_rwlock_rdlock. Return error code.
91101         (glthread_rwlock_wrlock_multithreaded): Renamed from
91102         glthread_rwlock_wrlock. Return error code.
91103         (glthread_rwlock_unlock_multithreaded): Renamed from
91104         glthread_rwlock_unlock. Return error code.
91105         (glthread_rwlock_destroy_multithreaded): Renamed from
91106         glthread_rwlock_destroy. Return error code.
91107         (glthread_recursive_lock_init_multithreaded): Renamed from
91108         glthread_recursive_lock_init. Return error code.
91109         (glthread_recursive_lock_lock_multithreaded): Renamed from
91110         glthread_recursive_lock_lock. Return error code.
91111         (glthread_recursive_lock_unlock_multithreaded): Renamed from
91112         glthread_recursive_lock_unlock. Return error code.
91113         (glthread_recursive_lock_destroy_multithreaded): Renamed from
91114         glthread_recursive_lock_destroy. Return error code.
91115         (glthread_once_call): Make static.
91116         (glthread_once_multithreaded): Renamed from glthread_once.
91117         * lib/tls.h: Include <errno.h>.
91118         (glthread_tls_key_init): New macro/function.
91119         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
91120         (glthread_tls_set): New macro/function.
91121         (gl_tls_set): Define as wrapper around glthread_tls_set.
91122         (glthread_tls_key_destroy): New macro/function.
91123         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
91124         Update function declarations.
91125         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
91126         glthread_tls_get.
91127         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91129 2008-08-04  Eric Blake  <ebb9@byu.net>
91131         gnumakefile: use space, not TAB, outside of targets
91132         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
91134 2008-08-02  Jim Meyering  <meyering@redhat.com>
91136         getdate.y: avoid locale-dependent date parsing failure
91137         In Turkish locales, getdate would fail to recognize keywords
91138         containing a lowercase "i".  The solution is not to rely on
91139         locale-sensitive case-conversion.
91140         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
91141         (lookup_word): Use c_toupper in place of toupper.
91142         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
91143         Reported by Vefa Bicakci <bicave@superonline.com> in
91144         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
91145         * modules/getdate (Depends-on): Add c-ctype.
91147 2008-08-02  Bruno Haible  <bruno@clisp.org>
91149         * gnulib-tool (func_import): When updating or creating a .gitignore
91150         file, prepend each added line with a slash, and ignore leading slashes
91151         from the existing lines.
91152         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
91154 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91156         Portability fix for GNU make 3.79.1.
91157         * top/GNUmakefile: Avoid 'else COND', which older GNU make
91158         versions do not understand.
91160 2008-08-01  Bruno Haible  <bruno@clisp.org>
91162         Work around bug of HP-UX 10.20 cc with -0.0 literal.
91163         * tests/test-isnanf.h (zero): New variable.
91164         (main): Avoid literal -0.0f.
91165         * tests/test-isnand.h (zero): New variable.
91166         (main): Avoid literal -0.0.
91167         * tests/test-isnanl.h (zero): New variable.
91168         (main): Avoid literal -0.0L.
91169         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
91170         (test_float, test_double, test_long_double): Avoid literals -0.0f,
91171         -0.0, -0.0L.
91172         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
91173         (test_signbitd): Avoid literal -0.0.
91174         (test_signbitl): Avoid literal -0.0L.
91175         * tests/test-ceilf1.c (zero): New variable.
91176         (main): Avoid literal -0.0f.
91177         * tests/test-ceill.c (zero): New variable.
91178         (main): Avoid literal -0.0L.
91179         * tests/test-floorf1.c (zero): New variable.
91180         (main): Avoid literal -0.0f.
91181         * tests/test-floorl.c (zero): New variable.
91182         (main): Avoid literal -0.0L.
91183         * tests/test-roundf1.c (zero): New variable.
91184         (main): Avoid literal -0.0f.
91185         * tests/test-round1.c (zero): New variable.
91186         (main): Avoid literal -0.0.
91187         * tests/test-roundl.c (zero): New variable.
91188         (main): Avoid literal -0.0L.
91189         * tests/test-truncf1.c (zero): New variable.
91190         (main): Avoid literal -0.0f.
91191         * tests/test-trunc1.c (zero): New variable.
91192         (main): Avoid literal -0.0.
91193         * tests/test-truncl.c (zero): New variable.
91194         (main): Avoid literal -0.0L.
91195         * tests/test-frexp.c (zero): New variable.
91196         (main): Avoid literal -0.0.
91197         * tests/test-frexpl.c (zero): New variable.
91198         (main): Avoid literal -0.0L.
91199         * tests/test-ldexpl.c (zero): New variable.
91200         (main): Avoid literal -0.0L.
91201         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91202         (zerod, zerol): New variables.
91203         (test_function): Avoid literals -0.0, -0.0L.
91204         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91205         (zerod, zerol): New variables.
91206         (test_function): Avoid literals -0.0, -0.0L.
91207         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91208         (zerod, zerol): New variables.
91209         (test_function): Avoid literals -0.0, -0.0L.
91210         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91211         (zerod, zerol): New variables.
91212         (test_function): Avoid literals -0.0, -0.0L.
91213         * tests/test-strtod.c (zero): New variable.
91214         (main): Avoid literal -0.0.
91215         Reported by Jonathan C. Patschke <jp@centtech.com>.
91217 2008-07-31  Jim Meyering  <meyering@redhat.com>
91219         sha256.h: correct definition of SHA224_DIGEST_SIZE
91220         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
91221         Reported by Paulie Pena IV <paulie4@gmail.com>.
91222         Define as 224 / 8, rather than as a literal.
91223         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
91224         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
91225         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
91227 2008-07-31  Bruno Haible  <bruno@clisp.org>
91229         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
91230         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
91231         Reported by Jonathan Patschke <jp@centtech.com>.
91233 2008-07-31  Bruno Haible  <bruno@clisp.org>
91235         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
91236         Reported by Paolo Bonzini <bonzini@gnu.org>.
91238 2008-07-30  Eric Blake  <ebb9@byu.net>
91240         test-strtod: allow compilation without -lm
91241         * tests/test-strtod.c (main): Avoid link dependence on fabs.
91242         Reported by Dennis Clarke <blastwave@gmail.com>.
91244 2008-07-28  Jim Meyering  <meyering@redhat.com>
91246         bootstrap: work also when there are no .po files in po/
91247         * build-aux/bootstrap (update_po_files): Complete the change
91248         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
91250 2008-07-27  Jim Meyering  <meyering@redhat.com>
91252         * users.txt: Add zile.
91254 2008-07-26  Ben Pfaff  <blp@gnu.org>
91256         Add missing dependencies on new m4/exponent[fdl].m4 files.
91257         * modules/isnanf-nolibm: Add m4/exponentf.m4.
91258         * modules/isnand-nolibm: Add m4/exponentd.m4.
91259         * modules/isnanl-nolibm: Add m4/exponentl.m4.
91260         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
91261         m4/isnan[fdl].m4, because the macros actually used moved.
91262         Reported by Jim Meyering.
91264 2008-07-14  Ben Pfaff  <blp@gnu.org>
91266         Add isinf module.
91267         * lib/isinf.c: New file.
91268         * lib/math.in.h: Define isinf macro if we have decided to replace
91269         it.
91270         * m4/isinf.m4: New file.
91271         * m4/math_h.m4: Initialize and substitute variables for isinf
91272         module.
91273         * modules/isinf: New file.
91274         * modules/isinf-tests: New file.
91275         * modules/math: Add substitutions for new module.
91276         * tests/test-isinf.c: New file.
91277         * doc/posix-functions/isinf.texi: Mention new module.
91278         * MODULES.html.sh: Mention new module.
91280 2008-07-14  Ben Pfaff  <blp@gnu.org>
91282         Factor out some macros for use by additional modules.
91283         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
91284         exponentf.m4.
91285         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
91286         exponentd.m4.
91287         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
91288         file exponentl.m4.
91289         * m4/exponentf.m4: New file.
91290         * m4/exponentd.m4: New file.
91291         * m4/exponentl.m4: New file.
91292         * modules/isnanf: Use new file m4/exponentf.m4.
91293         * modules/isnand: Use new file m4/exponentd.m4.
91294         * modules/isnanl: Use new file m4/exponentl.m4.
91296 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
91298         mktime.c: normalize tp->tm_isdst value to -1/0/1.
91299         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
91300         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
91301         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
91303         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
91304         readlink on platforms without PATH_MAX.
91306 2008-07-21  Eric Blake  <ebb9@byu.net>
91308         Warn, not fail, on stale version.
91309         * top/GNUmakefile (_curr-ver): Tone down previous patch.
91311         Don't allow installation with stale devel version number.
91312         * top/GNUmakefile (_is-install-target): New macro.
91313         (_curr-ver): Forbid installation with stale version number.
91315 2008-07-20  Bruno Haible  <bruno@clisp.org>
91317         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
91318         TESTS_ENVIRONMENT.
91319         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
91321 2008-07-20  Bruno Haible  <bruno@clisp.org>
91323         * lib/c-stack.h (c_stack_action): Add documentation.
91324         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
91326 2008-07-20  Bruno Haible  <bruno@clisp.org>
91328         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
91329         * modules/readlink (License): Likewise.
91331 2008-07-17  Eric Blake  <ebb9@byu.net>
91333         * modules/c-stack (Link): Fix typo.
91335         Make c-stack use libsigsegv, when available.
91336         * modules/c-stack (Depends-on): Add libsigsegv.
91337         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
91338         needed.
91339         * lib/c-stack.c (SIGSTKSZ): Define fallback.
91340         (segv_handler, overflow_handler, c_stack_action)
91341         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
91342         implementation when libsigsegv is available, but only when using
91343         the library is necessary.
91344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
91345         comment, explaining why XSI check fails on Linux.
91346         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
91347         * tests/test-c-stack2.sh: Tweak skip message.
91348         * NEWS: Document new link-time requirements.
91350 2008-07-16  Eric Blake  <ebb9@byu.net>
91352         c-stack: Expose false positives when not using libsigsegv.
91353         * modules/c-stack-tests (Files): Expand test.
91354         * tests/test-c-stack.c (main): Add means to conditionally trigger
91355         non-overflow SIGSEGV.
91356         * tests/test-c-stack2.sh: New file.
91358 2008-07-14  Bruno Haible  <bruno@clisp.org>
91360         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
91361         Reported by Eric Blake.
91363 2008-07-14  Sam Steingold  <sds@gnu.org>
91364             Bruno Haible  <bruno@clisp.org>
91366         New module libsigsegv.
91367         * modules/libsigsegv: New file.
91368         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
91369         modifications.
91370         * MODULES.html.sh (Signal handling): New section.
91372 2008-07-14  Bruno Haible  <bruno@clisp.org>
91374         * modules/unictype/ctype-* (Description): Add the word "function".
91375         Improves the resulting doc in MODULES.html.
91377 2008-07-12  Ben Pfaff  <blp@gnu.org>
91379         Add longlong module.
91380         * modules/longlong: New file.
91382 2008-07-12  Bruno Haible  <bruno@clisp.org>
91384         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
91385         to empty.
91387 2008-07-10  Ben Pfaff  <blp@gnu.org>
91389         Add isnan module.
91390         * doc/posix-functions/isnan.texi: Mention new module.
91391         * lib/math.in.h: Define isnan macro if we have decided to replace
91392         it.
91393         * m4/isnan.m4: New file.
91394         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
91395         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
91396         also.
91397         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
91398         redundancy.
91399         * m4/math_h.m4: Initialize and substitute variables for isnan
91400         module.
91401         * modules/isnan: New file.
91402         * modules/isnan-tests: New file.
91403         * modules/math: Add substitutions for new module.
91404         * tests/test-isnan.c: New file.
91405         * MODULES.html.sh: Mention new module.
91407 2008-07-10  Ben Pfaff  <blp@gnu.org>
91409         Add isnanf module.
91410         * lib/isnanf.m4: New file.
91411         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
91412         (gl_HAVE_ISNANF_IN_LIBM): New macro.
91413         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
91414         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
91415         * modules/isnanf: New file.
91416         * modules/isnanf-tests: New file.
91417         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
91418         files.
91419         * tests/test-isnanf-nolibm.c: factored most of its contents into
91420         new file tests/test-isnanf.h.
91421         * tests/test-isnanf.h: New file.
91422         * tests/test-isnanf.c: New file.
91423         * MODULES.html.sh: Mention new module.
91424         * doc/glibc-functions/isnanf.texi: Mention new module.
91426 2008-07-10  Ben Pfaff  <blp@gnu.org>
91428         Add isnand module.
91429         * lib/isnand.h: New file.
91430         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
91431         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
91432         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
91433         functionality also.
91434         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
91435         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
91436         (gl_HAVE_ISNAND_IN_LIBM): New macro.
91437         * modules/isnand: New file.
91438         * modules/isnand-tests: New file.
91439         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
91440         files.
91441         * tests/test-isnand-nolibm.c: factored most of its contents into
91442         new file tests/test-isnand.h.
91443         * tests/test-isnand.h: New file.
91444         * tests/test-isnand.c: New file.
91445         * MODULES.html.sh: Mention new module.
91447 2008-07-10  Ben Pfaff  <blp@gnu.org>
91449         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
91450         * lib/isnand.h: Rename lib/isnand-nolibm.h.
91451         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
91452         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
91453         * modules/isnanf-nolibm: Update references to renamed files.
91454         * modules/isnand-nolibm: Likewise.
91455         * modules/isnanf-nolibm-tests: Likewise.
91456         * modules/isnand-nolibm-tests: Likewise.
91457         * lib/frexp.c: Likewise.
91458         * lib/isfinite.c: Likewise.
91459         * lib/signbitd.c: Likewise.
91460         * lib/signbitf.c: Likewise.
91461         * lib/vasnprintf.c: Likewise.
91462         * tests/test-ceilf1.c: Likewise.
91463         * tests/test-ceilf2.c: Likewise.
91464         * tests/test-floorf1.c: Likewise.
91465         * tests/test-floorf2.c: Likewise.
91466         * tests/test-frexp.c: Likewise.
91467         * tests/test-round1.c: Likewise.
91468         * tests/test-round2.c: Likewise.
91469         * tests/test-roundf1.c: Likewise.
91470         * tests/test-strtod.c: Likewise.
91471         * tests/test-trunc1.c: Likewise.
91472         * tests/test-trunc2.c: Likewise.
91473         * tests/test-truncf1.c: Likewise.
91474         * tests/test-truncf2.c: Likewise.
91475         * NEWS: Mention the renamed header files.
91477 2008-07-11  Jim Meyering  <meyering@redhat.com>
91479         vc-list-files: make the last-resort awk code more portable
91480         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
91481         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
91482         does not support it.
91484 2008-07-10  Eric Blake  <ebb9@byu.net>
91486         Work with tar's bootstrap.
91487         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
91488         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
91489         an m4 comment.
91491 2008-07-09  Jim Meyering  <meyering@redhat.com>
91493         posix-shell.m4: fix typo that made this test malfunction
91494         * m4/posix-shell.m4: Remove capitalization in variable name.
91496 2008-07-08  Bruno Haible  <bruno@clisp.org>
91498         * m4/onceonly.m4: Update comments.
91499         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91501 2008-07-04  Jim Meyering  <meyering@redhat.com>
91503         * users.txt: Add vc-dwim.
91504         (bison, coreutils): Use the gitweb URL.
91506 2008-07-03  Jim Meyering  <meyering@redhat.com>
91508         * users.txt: Add libffcall.  From Sam Steingold.
91510 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
91512         getdate.y: do not ignore TZ with relative day, month or year offset
91513         * lib/getdate.y (get_date): Move the tz-handling block to follow the
91514         relative-date-handling, since otherwise, the latter would clobber the
91515         sole output (an updated Start value) of the tz-handling block.
91516         * tests/test-getdate.c: Tests for the fix
91518 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91520         Recognize 'foo_LIBRARIES += libgnu.a'.
91521         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
91522         makefile snippet has already specified an installation location,
91523         also using '+='.
91525 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
91527         getdate.y: factor out common actions
91528         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
91529         Use them in place of open-coded actions.
91531 2008-07-01  Simon Josefsson  <simon@josefsson.org>
91533         Add self-test for getdate module.
91534         * modules/getdate-tests: New file.
91535         * tests/test-getdate.c: New file.
91537 2008-06-29  Bruno Haible  <bruno@clisp.org>
91539         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
91540         .gitignore.
91541         Reported by Sylvain Beucler <beuc@beuc.net>.
91543 2008-06-29  Bruno Haible  <bruno@clisp.org>
91545         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
91546         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
91548 2008-06-29  Bruno Haible  <bruno@clisp.org>
91550         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
91551         EXTRA_DIST.
91552         Reported by Sylvain Beucler <beuc@beuc.net>.
91554 2008-06-26  Jim Meyering  <meyering@redhat.com>
91556         make several modules depend on the "open" module
91557         This provides slightly increased consistency when opening-for-write
91558         the name of a non-directory spelled with a trailing slash.
91559         * modules/chdir-safer: Likewise.
91560         * modules/chown: Likewise.
91561         * modules/clean-temp: Likewise.
91562         * modules/copy-file: Likewise.
91563         * modules/fchdir: Likewise.
91564         * modules/fcntl-safer: Likewise.
91565         * modules/pipe: Likewise.
91566         * modules/utime: Likewise.
91567         Prompted by Eric Blake and Bruno Haible.
91569 2008-06-24  Andreas Schwab  <schwab@suse.de>
91571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
91572         literals can be used as initializers for global variables.
91574 2008-06-23  Eric Blake  <ebb9@byu.net>
91576         Make gnulib-cache.m4 easier to diff.
91577         * gnulib-tool (func_import): Allow newlines when reading cached
91578         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
91580 2008-06-23  Bruno Haible  <bruno@clisp.org>
91582         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
91583         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
91584         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
91585         m4/signalblocking.m4.
91586         (gl_PREREQ_SIGACTION): Don't invoke it.
91587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
91588         gl_PREREQ_SIG_HANDLER_H.
91589         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
91590         Don't check for sigaction here.
91592 2008-06-23  Bruno Haible  <bruno@clisp.org>
91594         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
91595         (install_handlers): Don't set the SA_RESETHAND flag.
91597 2008-06-23  Bruno Haible  <bruno@clisp.org>
91599         * m4/sigaction.m4: Comment fixes.
91600         * lib/signal.in.h: Likewise.
91602 2008-06-23  Eric Blake  <ebb9@byu.net>
91604         Fix typo.
91605         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
91607         Avoid SA_ namespace.
91608         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
91609         Reported by Ralf Wildenhues.
91611         Avoid test failure due to SA_RESTORER.
91612         * tests/test-sigaction.c (SA_MASK): New macro.
91613         (main): Avoid failing due to extension flags being set.
91614         Reported by Jim Meyering.
91616         Revert use of sig-handler.h in sigprocmask.c.
91617         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
91618         it requires the existence of struct sigaction.
91619         * lib/sigprocmask.c (handler_t): Restore typedef.
91620         (rpl_signal, old_handlers): Use local type.
91622 2008-06-22  Bruno Haible  <bruno@clisp.org>
91624         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
91625         conditionally.
91626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91628 2008-06-22  Bruno Haible  <bruno@clisp.org>
91630         * doc/posix-functions/siginterrupt.texi: Move note.
91632         * lib/signal.in.h (SA_RESTART): New macro.
91633         * lib/sigaction.c: Update comment.
91635         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
91637         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
91638         (gl_PREREQ_SIGPROCMASK): Invoke it.
91639         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
91641         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
91643         * lib/sigprocmask.c: Update a comment.
91645 2008-06-21  Eric Blake  <ebb9@byu.net>
91647         Use sigaction module rather than signal().
91648         * modules/c-stack (Depends-on): Add sigaction.
91649         * modules/fatal-signal (Depends-on): Likewise.
91650         * modules/nanosleep (Depends-on): Likewise.
91651         * modules/sigprocmask (Files): Add sig-handler.h.
91652         * modules/sigaction (Files): Likewise.
91653         * lib/sig-handler.h (get_handler): New file, suggested by Paul
91654         Eggert.
91655         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
91656         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
91657         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
91658         (init_fatal_signals): Likewise.
91659         * lib/nanosleep.c (rpl_nanosleep): Likewise.
91660         (siginterrupt): Delete fallback.
91661         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
91662         instead.
91663         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
91664         siginterrupt.
91666         New module sigaction, for mingw.
91667         * modules/sigaction: New module...
91668         * modules/sigaction-tests: ...and its test.
91669         * m4/sigaction.m4: New file.
91670         * lib/sigaction.c: Likewise.
91671         * tests/test-sigaction.c: Likewise.
91672         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
91673         * modules/signal (Makefile.am): Likewise.
91674         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
91675         needed.
91676         * doc/posix-headers/signal.texi (signal.h): Mention provided
91677         types.
91678         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
91679         that sigaction is preferable.
91680         * doc/posix-functions/sigaction.texi (sigaction): Mention new
91681         module.
91682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91683         sigaction.
91685         Improve robustness of sigprocmask by overriding signal.
91686         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
91687         is in use.
91688         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
91689         (SIGKILL, SIGSTOP): Provide fallbacks.
91690         (rpl_signal): Implement.
91691         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
91692         signal can be called inside handlers.
91694         Fix nanosleep module on mingw.
91695         * modules/nanosleep (Depends-on): Add sys_select.
91696         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
91698         Fix licensing of sigprocmask.
91699         * modules/raise (License): Relicense as LGPL.
91701 2008-06-21  Bruno Haible  <bruno@clisp.org>
91703         * lib/propername.c (proper_name_utf8): Don't use the transliterated
91704         result if it contains question marks.
91705         Reported by Michael Geng <linux@michaelgeng.de>.
91707 2008-06-19  Bruno Haible  <bruno@clisp.org>
91709         Fix CVS-ism.
91710         * doc/gnulib.texi: Include updated-stamp.texi.
91711         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
91712         (updated-stamp.texi): New rule.
91713         (gnulib.info): Depend on it.
91714         * doc/.gitignore: Add updated-stamp.texi.
91715         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
91717 2008-06-19  Bruno Haible  <bruno@clisp.org>
91719         * doc/Makefile (gnulib.info): Update and simplify dependencies.
91720         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
91722 2008-06-19  Eric Blake  <ebb9@byu.net>
91724         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
91725         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
91726         Reported by Stepan Kasal.
91728 2008-06-18  Bruno Haible  <bruno@clisp.org>
91730         * lib/fatal-signal.c (init_fatal_signals): Add comment.
91731         Reported by Eric Blake.
91733 2008-06-18  Eric Blake  <ebb9@byu.net>
91735         Work around cygwin 1.5.25 strsignal bug.
91736         * tests/test-strsignal.c: Allow for const char *.
91737         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
91739 2008-06-18  Simon Josefsson  <simon@josefsson.org>
91741         * users.txt: Update URL to article and add author/date
91742         information.
91744 2008-06-17  Bruno Haible  <bruno@clisp.org>
91746         New macro gl_DISABLE_THREADS.
91747         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
91748         if the user did not pass --enable-threads or --disable-threads option.
91749         (gl_DISABLE_THREADS): New macro.
91750         Reported by Eric Blake <ebb9@byu.net>.
91752 2008-06-17  Bruno Haible  <bruno@clisp.org>
91754         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
91755         when the macro ignores it.
91756         Based on a patch by Eric Blake <ebb9@byu.net>.
91758 2008-06-17  Bruno Haible  <bruno@clisp.org>
91760         * modules/tls (License): Change to LGPLv2+.
91761         Reported by Eric Blake.
91763 2008-06-17  Eric Blake  <ebb9@byu.net>
91765         Simplify c-stack prerequisites.
91766         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
91767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
91768         no longer requires <ucontext.h> to exist.  Optimize setrlimit
91769         check.
91770         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
91771         <sys/resource.h>.
91773         Move c-stack test into testsuite.
91774         * modules/c-stack-tests: New file.
91775         * lib/c-stack.c [DEBUG]: Move test program...
91776         * tests/test-c-stack.c: ...into this new file.  Skip rather than
91777         fail test if sigaltstack is lacking.
91778         * tests/test-c-stack.sh: New driver file.
91780 2008-06-16  Eric Blake  <ebb9@byu.net>
91782         Use raise module consistently.
91783         * modules/fatal-signal (Depends-on): Add raise.
91784         * modules/sigprocmask (Depends-on): Likewise.
91785         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
91786         * lib/sigprocmask.c (sigprocmask): Likewise.
91787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
91788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
91790         Fix compliance bug in sigpending.
91791         * lib/sigprocmask.c (sigpending): Return pending array via
91792         parameter, not return value.
91794 2008-06-14  Eric Blake  <ebb9@byu.net>
91796         Improve obstack-printf test code.
91797         * tests/test-obstack-printf.c (test_function): Fix comment, and
91798         simplify usage of obstack_* in macros.  Add a test for coverage.
91799         Reported by Bruno Haible.
91801 2008-06-14  Bruno Haible  <bruno@clisp.org>
91803         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
91804         array size as a constant, not as a const variable.
91805         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
91806         AC_USE_SYSTEM_EXTENSIONS.
91807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
91808         Test whether the obstack_printf function actually exists.
91809         * modules/obstack-printf (Depends-on): Add extensions.
91810         (Include): Remove obstack.h.
91811         * modules/obstack-printf-posix (Depends-on): Add extensions.
91812         (Include): Remove obstack.h.
91814 2008-06-13  Eric Blake  <ebb9@byu.net>
91816         Add obstack-printf and obstack-printf-posix modules.
91817         * modules/obstack-printf: New file.
91818         * modules/obstack-printf-posix: Likewise.
91819         * MODULES.html.sh (Misc): Mention them.
91820         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
91821         Likewise.
91822         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
91823         Likewise.
91824         * modules/stdio (Makefile.am): Accomodate new modules.
91825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91826         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
91827         Declare.
91828         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
91829         functions.
91830         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
91831         (gl_REPLACE_OBSTACK_PRINTF): New macros
91832         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
91833         * tests/test-obstack-printf.c: New file.
91834         * modules/obstack-printf-tests: Likewise.
91835         * modules/obstack-printf-posix-tests: Likewise.
91837 2008-06-11  Bruno Haible  <bruno@clisp.org>
91839         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
91840         * lib/open.c: Include errno.h.
91841         (open): Fail when attempting to write to a file that has a trailing
91842         slash.
91843         * tests/test-open.c (main): Test against trailing slash bug.
91844         * doc/posix-functions/open.texi: Mention the trailing slash bug.
91846 2008-06-10  Bruno Haible  <bruno@clisp.org>
91848         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
91849         for $? to work inside the trap command, with various /bin/sh-s.
91850         * tests/test-vc-list-files-cvs.sh: Likewise.
91852 2008-06-10  Bruno Haible  <bruno@clisp.org>
91854         * lib/acl-internal.h: Don't include gettext.h here.
91855         * lib/set-mode-acl.c: Include gettext.h here.
91856         * lib/copy-acl.c: Likewise.
91858 2008-06-10  Bruno Haible  <bruno@clisp.org>
91860         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
91861         * lib/wait-process.c (wait_subprocess): Likewise.
91862         * lib/execute.h (execute): Add termsigp argument.
91863         * lib/execute.c (execute): Likewise.
91864         * lib/csharpcomp.c (compile_csharp_using_pnet,
91865         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
91866         * lib/csharpexec.c (execute_csharp_using_pnet,
91867         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
91868         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
91869         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
91870         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
91871         is_jikes_present): Update.
91872         * lib/javaexec.c (execute_java_class): Update.
91873         * lib/javaversion.c (execute_and_read_line): Update.
91874         * NEWS: Document the changes.
91875         Reported by Eric Blake.
91877 2008-06-10  Eric Blake  <ebb9@byu.net>
91879         Add missing include.
91880         * tests/test-strstr.c (includes): Add <signal.h>.
91881         * tests/test-strcasestr.c (includes): Likewise.
91882         * tests/test-memmem.c (includes): Likewise.
91884 2008-06-10  Bruno Haible  <bruno@clisp.org>
91886         * lib/wait-process.c (wait_subprocess): Add an assertion.
91888 2008-06-10  Bruno Haible  <bruno@clisp.org>
91890         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
91892 2008-06-10  Bruno Haible  <bruno@clisp.org>
91894         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
91895         using alarm().
91896         * tests/test-strcasestr.c (main): Likewise.
91897         * tests/test-strstr.c (main): Likewise.
91899 2008-06-09  Bruno Haible  <bruno@clisp.org>
91901         Work around the Solaris 10 ACE ACLs ABI change.
91902         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
91903         declare if ACL_NO_TRIVIAL is present.
91904         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
91905         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
91906         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
91907         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
91908         define if ACL_NO_TRIVIAL is present.
91909         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
91910         and use the current ABI.
91911         (file_has_acl): Use same #if condition as elsewhere.
91912         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
91913         in use, and use the current ABI.
91914         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
91915         Reported by Jim Meyering.
91917 2008-06-09  Eric Blake  <ebb9@byu.net>
91919         Work around environments that (stupidly) ignore SIGALRM.
91920         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
91921         before using alarm().
91922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91924         Reported by Ian Beckwith <ianb@erislabs.net>.
91926         Produce autobuild blurb earlier in log.
91927         * modules/autobuild (configure.ac-early): Move AB_INIT here.
91929 2008-06-09  Jim Meyering  <meyering@redhat.com>
91930         and Ondřej Vašík  <ovasik@redhat.com>
91932         utimens.c: correct kernel bug work-around
91933         Ondřej Vašík found that the invalid return value of 280 indicates
91934         failure, not success, and the kernel bug we're trying to work
91935         around affects not just the utimensat call, but also the fallback
91936         futimens call.
91937         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
91938         not success.
91939         [HAVE_FUTIMENS]: Use the same work-around, here.
91941 2008-06-09  Jim Meyering  <meyering@redhat.com>
91943         add more guards around definition of ACE_-related code
91944         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
91945         ALLOW and ACE_OWNER are also defined.
91947 2008-06-08  Bruno Haible  <bruno@clisp.org>
91949         * lib/acl-internal.h: Add me as co-author.
91950         * lib/file-has-acl.c: Likewise.
91951         * lib/set-mode-acl.c: Likewise.
91952         * lib/copy-acl.c: Likewise.
91954 2008-06-08  Bruno Haible  <bruno@clisp.org>
91956         Add support for AIX ACLs.
91957         * lib/acl-internal.h (acl_nontrivial): New declaration.
91958         * lib/file-has-acl.c (acl_nontrivial): New function.
91959         (file_has_acl): Add implementation using AIX 4 ACL API.
91960         * lib/set-mode-acl.c (qset_acl): Likewise.
91961         * lib/copy-acl.c (qcopy_acl): Likewise.
91963 2008-06-08  Bruno Haible  <bruno@clisp.org>
91965         Add support for HP-UX ACLs.
91966         * lib/acl-internal.h (acl_nontrivial): New declaration.
91967         * lib/file-has-acl.c (acl_nontrivial): New function.
91968         (file_has_acl): Add implementation using HP-UX 11 ACL API.
91969         * lib/set-mode-acl.c (qset_acl): Likewise.
91970         * lib/copy-acl.c (qcopy_acl): Likewise.
91972 2008-06-08  Bruno Haible  <bruno@clisp.org>
91974         Add support for Cygwin ACLs.
91975         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
91976         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
91977         the chmod_or_fchmod call.
91978         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
91980 2008-06-08  Bruno Haible  <bruno@clisp.org>
91982         Fix bug with setuid modes in Solaris 10+ code.
91983         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
91984         succeeded, when the mode contains some special bits.
91986 2008-06-08  Bruno Haible  <bruno@clisp.org>
91988         Add support for Solaris 7..10 ACLs.
91989         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
91990         declarations.
91991         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
91992         functions.
91993         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
91994         * lib/set-mode-acl.c (qset_acl): Likewise.
91995         * lib/copy-acl.c (qcopy_acl): Likewise.
91997 2008-06-08  Bruno Haible  <bruno@clisp.org>
91999         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
92000         declaration.
92001         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
92002         (acl_access_nontrivial): Remove MacOS X case.
92003         (file_has_acl): Use acl_extended_nontrivial.
92004         * lib/copy-acl.c (qcopy_acl): Likewise.
92006 2008-06-08  Bruno Haible  <bruno@clisp.org>
92008         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
92010 2008-06-08  Jim Meyering  <meyering@redhat.com>
92012         * modules/acl (Maintainer): Add Bruno Haible.
92014 2008-06-07  Bruno Haible  <bruno@clisp.org>
92016         Improve support for Tru64 ACLs.
92017         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
92018         ACL on OSF/1.
92020 2008-06-07  Bruno Haible  <bruno@clisp.org>
92022         Add support for MacOS X ACLs.
92023         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
92024         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
92025         * lib/set-mode-acl.c (qset_acl): Likewise.
92026         * lib/copy-acl.c (qcopy_acl): Likewise.
92028 2008-06-07  Bruno Haible  <bruno@clisp.org>
92030         Fix memory leak introduced on 2008-05-22.
92031         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
92032         use.
92034 2008-06-07  Bruno Haible  <bruno@clisp.org>
92036         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
92037         to construct an empty ACL.
92039 2008-06-07  Bruno Haible  <bruno@clisp.org>
92041         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
92042         precisely.
92043         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
92045 2008-06-07  Bruno Haible  <bruno@clisp.org>
92047         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
92048         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
92050 2008-06-07  Bruno Haible  <bruno@clisp.org>
92052         * doc/posix-functions/_setjmp.texi: Explain the use of this function
92053         regardless of POSIX.
92054         * doc/posix-functions/_longjmp.texi: Likewise.
92055         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
92056         SystemV platform in this case.
92058 2008-06-06  Eric Blake  <ebb9@byu.net>
92060         Document abort() bugs.
92061         * doc/posix-functions/abort.texi (abort): Mention anomalies.
92063         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
92064         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
92065         sigsetjmp.
92066         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
92067         siglongjmp, but only as a macro.
92068         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
92069         is obsolete.
92070         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
92072         Tweak documentation to cover cygwin argz bugs.
92073         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
92074         argz bug fix; no code change needed since no cygwin releases
92075         occurred between the last fix and the bug being tested.
92076         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
92077         module and recently fixed cygwin bugs.
92078         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
92079         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
92080         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
92081         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
92082         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
92083         Likewise.
92084         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
92085         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
92086         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
92087         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
92088         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
92089         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
92090         Likewise.
92092         Avoid gcc warning on cygwin.
92093         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
92094         !ACL_NO_TRIVIAL]: Avoid unused variable.
92096 2008-06-05  Eric Blake  <ebb9@byu.net>
92098         Be tolerant of UNKNOWN version in gnulib-tool test dir.
92099         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
92100         git-version-gen fails to come up with a version.
92101         Reported by Simon Josefsson.
92103 2008-06-05  Jim Meyering  <meyering@redhat.com>
92104             Paul Eggert  <eggert@cs.ucla.edu>
92106         utimens.c: work around a probable Linux kernel bug
92107         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
92108         appears to be a kernel bug that causes utimensat to return 280
92109         instead of 0, indicating success.
92111 2008-06-04  Bruno Haible  <bruno@clisp.org>
92113         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
92114         2008-06-01 commit.
92116 2008-06-04  Bruno Haible  <bruno@clisp.org>
92118         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
92119         * lib/file-has-acl.c (acl_access_nontrivial): New function.
92120         (file_has_acl): Use it. Save errno afterwards.
92121         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
92123 2008-06-03  Bruno Haible  <bruno@clisp.org>
92125         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
92126         draft code. Simplify #ifs.
92127         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
92128         Put Solaris code after POSIX-draft code. Fix comments regarding
92129         Solaris 10, HP-UX. Mention Cygwin.
92130         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
92132 2008-06-03  Eric Blake  <ebb9@byu.net>
92134         Provide fallback for older kernels.
92135         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
92136         Provide runtime fallback if kernel lacks support.
92137         Reported by Mike Frysinger.
92139 2008-06-02  Bruno Haible  <bruno@clisp.org>
92141         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
92142         it exists.
92144 2008-06-02  Bruno Haible  <bruno@clisp.org>
92146         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
92147         * lib/copy-acl.c (qcopy_acl): Update comment.
92149 2008-06-02  Bruno Haible  <bruno@clisp.org>
92151         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
92152         like ACL APIs.
92154 2008-06-02  Bruno Haible  <bruno@clisp.org>
92156         * tests/test-file-has-acl.sh: Use different code for Cygwin.
92157         * tests/test-set-mode-acl.sh: Likewise.
92158         * tests/test-copy-acl.sh: Likewise.
92159         * tests/test-copy-file.sh: Likewise.
92161 2008-06-02  Bruno Haible  <bruno@clisp.org>
92163         * tests/test-file-has-acl.sh: Remove unused code.
92165 2008-06-01  Bruno Haible  <bruno@clisp.org>
92167         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
92168         (copy_acl): Just a wrapper around qcopy_acl that emits the error
92169         messages.
92170         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
92172 2008-06-01  Bruno Haible  <bruno@clisp.org>
92174         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
92175         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
92176         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
92177         APIs.
92178         * modules/acl-tests (configure.ac): Remove tests now contained in
92179         m4/acl.m4.
92181 2008-06-02  Jim Meyering  <meyering@redhat.com>
92183         announce-gen: use a better key-server host name
92184         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
92185         it may be more consistently reliable.  Suggested by Werner Koch
92186         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
92188 2008-06-01  Bruno Haible  <bruno@clisp.org>
92190         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
92191         Reported by Voroskoi Andras <voroskoi@gmail.com>.
92193 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
92195         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
92197 2008-06-01  Bruno Haible  <bruno@clisp.org>
92199         New ACL tests.
92200         * tests/test-file-has-acl.sh: New file.
92201         * tests/test-file-has-acl.c: New file.
92202         * tests/test-set-mode-acl.sh: New file.
92203         * tests/test-set-mode-acl.c: New file.
92204         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
92205         * tests/test-copy-acl.c: New file.
92206         * modules/acl-tests: New file, based on modules/copy-file-tests.
92207         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
92208         (Depends-on): Add acl-tests.
92209         (configure.ac): Remove checks.
92210         (Makefile.am): Don't create test-sameacls program here any more.
92212 2008-06-01  Bruno Haible  <bruno@clisp.org>
92214         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
92215         * tests/test-sameacls.c: Include progname.h.
92216         (main): Invoke set_program_name. Portability fixes for MacOS X,
92217         Solaris, HP-UX.
92219 2008-06-01  Bruno Haible  <bruno@clisp.org>
92221         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
92222         function.
92223         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
92225 2008-06-01  Bruno Haible  <bruno@clisp.org>
92227         * modules/rpmatch (Depends-on): Add strdup.
92229 2008-06-01  Bruno Haible  <bruno@clisp.org>
92231         * lib/pipe.c: Include unistd-safer.h.
92232         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
92233         * modules/pipe (Depends-on): Add unistd-safer.
92235 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92237         * modules/autobuild (configure.ac): Call AB_INIT.
92239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92241         * tests/test-getaddrinfo.c: Don't print debug messages by default.
92242         Suggested by Bruno Haible <bruno@clisp.org>.
92244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92246         * tests/test-base64.c: Cast size_t to unsigned long when invoking
92247         printf.  Use %lu instead of %d.  Reported by Bruno Haible
92248         <bruno@clisp.org>.
92250 2008-05-29  Eric Blake  <ebb9@byu.net>
92252         Prefer new POSIX 200x interfaces over futimesat.
92253         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
92254         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
92255         when available.
92256         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
92258 2008-05-28  Bruno Haible  <bruno@clisp.org>
92260         * modules/stpcpy (License): Change to LGPLv2+.
92261         Requested by David Lutterkort <dlutter@redhat.com>.
92263 2008-05-27  Bruno Haible  <bruno@clisp.org>
92265         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
92266         current mingw.
92267         Reported by Jose E. Marchesi <jemarch@gnu.org>.
92269 2008-05-27  Bruno Haible  <bruno@clisp.org>
92271         * modules/iconv_open (Link): New section, from module 'iconv'.
92272         * modules/striconv (Link): Likewise.
92273         * modules/striconveh (Link): Likewise.
92274         * modules/xstriconv (Link): Likewise.
92275         * modules/unicodeio (Link): Likewise.
92276         * modules/propername (Link): Likewise.
92277         Reported by Jim Meyering.
92279 2008-05-26  Jim Meyering  <meyering@redhat.com>
92281         sha256: do not artificially restrict buffer length to be < 2^32
92282         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
92283         uint32_t to size_t.
92284         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
92285         to match.
92287         avoid unaligned access errors, e.g., on sparc
92288         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
92289         direct access through a possibly-unaligned uint64* pointer.
92290         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
92291         direct access through a possibly-unaligned uint32* pointer.
92292         Prompted by this patch from Tom "spot" Callaway:
92293         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
92295         sha512.c: fix typo in comment
92296         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
92298 2008-05-25  Bruno Haible  <bruno@clisp.org>
92300         * lib/set-mode-acl.c: Renamed from lib/acl.c.
92301         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
92302         (Makefile.am): Update lib_SOURCES.
92304 2008-05-25  Bruno Haible  <bruno@clisp.org>
92306         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
92308 2008-05-25  Jim Meyering  <meyering@redhat.com>
92310         useless-if-before-free: freed expr may have white-space differences
92311         * build-aux/useless-if-before-free: Recognize cases in which the
92312         freed expression differs from the tested one in embedded white
92313         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
92314         $1 was used, so we can't make any regexp shy.  Improved tests now
92315         detect this.
92317         useless-if-before-free: accept white space in the expression.
92318         * build-aux/useless-if-before-free: For now, any white space
92319         in the expression must be identical in the free argument.
92321         useless-if-before-free: efficiency tweak
92322         * build-aux/useless-if-before-free: Make the expression-matching
92323         regexp "shy".
92324         Make the *outer* regexp shy, not the expr-matching one.
92326         update code-in-comment to accept cast of free arg
92327         * build-aux/useless-if-before-free: Update regexp.
92329 2008-05-25  Bruno Haible  <bruno@clisp.org>
92331         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
92332         * modules/copy-file-tests (Files, Makefile.am): Update.
92333         * tests/test-copy-file.c (func_test_copy): Update.
92335 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
92337         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
92339 2008-05-23  Bruno Haible  <bruno@clisp.org>
92341         Improve support for ACLs on OSF/1.
92342         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
92343         Remove fallback for unknown flavors of ACLs.
92345 2008-05-22  Bruno Haible  <bruno@clisp.org>
92347         Add support for ACLs on OSF/1.
92348         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
92349         replacements.
92350         (acl_free_text): New macro fallback.
92351         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
92352         acl_free.
92353         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
92354         acl_free_text function. Require AC_C_INLINE.
92356 2008-05-22  Bruno Haible  <bruno@clisp.org>
92358         Make copy_acl work on MacOS X 10.5.
92359         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
92360         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
92361         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
92362         If MODE_INSIDE_ACL, don't assume that every system has the same text
92363         representation for ACLs as FreeBSD.
92364         * lib/copy-acl.c (copy_acl): Add support for platforms with
92365         !MODE_INSIDE_ACL.
92366         * lib/file-has-acl.c (file_has_acl): Likewise.
92367         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
92368         FreeBSD, MacOS X, or IRIX, respectively.
92370 2008-05-22  Bruno Haible  <bruno@clisp.org>
92372         * lib/acl.h: Don't include <sys/acl.h>.
92373         (GETACLCNT): Move fallback to lib/acl-internal.h.
92374         * lib/acl-internal.h: Include <sys/acl.h> here.
92375         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
92377 2008-05-22  Bruno Haible  <bruno@clisp.org>
92379         Split off copy_acl function to separate file.
92380         * lib/copy-acl.c: New file, extracted from lib/acl.c.
92381         * lib/acl.c (copy_acl): Moved function to separate file.
92382         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
92383         * modules/acl (Files): Add lib/copy-acl.c.
92384         (Makefiles.am): Augment lib_SOURCES.
92386 2008-05-22  Bruno Haible  <bruno@clisp.org>
92388         * modules/copy-file-tests: New file.
92389         * tests/test-copy-file.sh: New file.
92390         * tests/test-copy-file.c: New file.
92391         * tests/test-copy-file-sameacls.c: New file.
92393 2008-05-22  Eric Blake  <ebb9@byu.net>
92395         Avoid gcc warning.
92396         * tests/test-memcmp.c (main): Pass NULL indirectly.
92398 2008-05-21  Bruno Haible  <bruno@clisp.org>
92400         Add reference doc about ACLs.
92401         * doc/acl-resources.txt: New file.
92402         * doc/acl-cygwin.txt: New file.
92404 2008-05-21  Bruno Haible  <bruno@clisp.org>
92406         Avoid one more warning from gcc.
92407         * lib/vasnprintf.c (IF_LINT): Update comments.
92408         (VASNPRINTF): Use it also for the 'prefix' array initializer.
92410 2008-05-21  Jim Meyering  <meyering@redhat.com>
92412         avoid a warning from gcc
92413         * lib/vasnprintf.c (IF_LINT): Define.
92414         (scale10_round_decimal_long_double):
92415         Use it to avoid a "may be used uninitialized" warning.
92416         (scale10_round_decimal_double): Likewise.
92418 2008-05-21  Simon Josefsson  <simon@josefsson.org>
92420         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
92421         declared.
92423 2008-05-20  Bruno Haible  <bruno@clisp.org>
92425         * tests/test-memcmp.c (main): Test also the sign of the result. Test
92426         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
92428 2008-05-20  Simon Josefsson  <simon@josefsson.org>
92430         * modules/memcmp-tests: New file.
92431         * tests/test-memcmp.c: New file.
92433 2008-05-19  Bruno Haible  <bruno@clisp.org>
92435         * modules/propername (Notice, configure.ac): Put quoted "..." into
92436         --keyword option.
92437         * lib/propername.h: Update comments accordingly.
92438         Reported by Eric Blake.
92440 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
92442         * modules/getpass-gnu (Depends-on): Add fseeko.
92444 2008-05-19  Simon Josefsson  <simon@josefsson.org>
92446         * modules/base64-tests: New file.
92448 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
92450         * lib/base64.c (base64_decode_ctx): If a decode context structure
92451         was passed in use it to ignore newlines.  If a context structure
92452         was _not_ passed in, continue to treat newlines as garbage (this
92453         is the historical behavior).  Formerly base64_decode.
92454         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
92455         takes a decode context structure.
92456         * lib/base64.h (base64_decode): Macro for four-argument calls.
92457         (base64_decode_alloc): Likewise.
92458         * lib/base64.c (base64_decode_ctx): If a decode context structure
92459         was passed in use it to ignore newlines.  If a context structure
92460         was _not_ passed in, continue to treat newlines as garbage (this
92461         is the historical behavior).  Formerly base64_decode.
92462         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
92463         takes a decode context structure.
92464         * lib/base64.h (base64_decode): Macro for four-argument calls.
92465         (base64_decode_alloc): Likewise.
92467 2008-05-19  Jim Meyering  <meyering@redhat.com>
92469         avoid a warning from gcc
92470         * lib/trim.c (IF_LINT): Define.
92471         (trim2): Use it to avoid a "may be used uninitialized" warning.
92473         Fix doc typo.
92474         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
92476 2008-05-19  Bruno Haible  <bruno@clisp.org>
92478         * doc/glibc-functions/getpass.texi: Document limits of other
92479         implementations.
92481 2008-05-19  Simon Josefsson  <simon@josefsson.org>
92482             Bruno Haible <bruno@clisp.org>
92484         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
92486 2008-05-18  Bruno Haible  <bruno@clisp.org>
92488         * modules/propername: New file, from GNU gettext.
92489         * lib/propername.h: New file, from GNU gettext.
92490         * lib/propername.c: New file, from GNU gettext.
92491         * MODULES.html.sh (Internationalization functions): Add propername.
92493 2008-05-16  Jim Meyering  <meyering@redhat.com>
92494             Bruno Haible  <bruno@clisp.org>
92496         Avoid some warnings from "gcc -Wshadow".
92497         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
92499 2008-05-15  Eric Blake  <ebb9@byu.net>
92501         Extend previous patch to cygwin 1.7.0.
92502         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
92503         fast implementation in cygwin >= 1.7.0.
92504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92507 2008-05-15  Bruno Haible  <bruno@clisp.org>
92509         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
92510         implementation in glibc >= 2.9.
92511         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92514 2008-05-15  Bruno Haible  <bruno@clisp.org>
92516         * MODULES.html.sh (Internationalization functions): Remove linebreak.
92517         (Unicode string functions): Add unilbrk/*.
92518         Reported by Karl Berry.
92520 2008-05-15  Eric Blake  <ebb9@byu.net>
92522         Fix violation of <stdbool.h> replacement in regex.
92523         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
92524         * lib/regexec.c (re_search_internal): Likewise.
92525         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
92527 2008-05-15  Jim Meyering  <meyering@redhat.com>
92529         avoid distracting test output when git or cvs is not found
92530         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
92531         * tests/test-vc-list-files-git.sh: Likewise.
92533 2008-05-15  Eric Blake  <ebb9@byu.net>
92535         Glibc finally accepted the memmem speedup code, bugzilla #5514.
92536         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
92537         glibc version.
92538         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
92539         * doc/posix-functions/strstr.texi (strstr): Likewise.
92540         * lib/str-two-way.h (MAX): Sychronize with glibc.
92542 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
92544         * lib/regcomp.c (optimize_utf8): Add a note on why we test
92545         opr.ctx_type.
92546         (calc_first): Initialize constraint field.
92547         (duplicate_node_closure): Use it instead of special casing ANCHORS.
92548         Fix grammar.
92549         (duplicate_node): Merge constraint field for all node types.
92550         (calc_eclosure_iter): Look at constraint field for all node types.
92551         * lib/regex_internal.c (create_cd_newstate): Don't look at
92552         opr.ctx_type.
92554 2008-05-14  Bruno Haible  <bruno@clisp.org>
92556         Help GCC to do better code generation.
92557         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
92558         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
92559         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
92560         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
92561         Declare with attribute 'malloc' if supported.
92563 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
92565         use "echo STR|wc -c" rather than unportable "expr length STR"
92566         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
92567         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
92569 2008-05-14  Jim Meyering  <meyering@redhat.com>
92571         use dd ibs=$n count=1 ... rather than less-portable head -c$n
92572         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
92573         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
92574         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
92575         via Collin Lasse.
92577 2008-05-14  Eric Blake  <ebb9@byu.net>
92579         Avoid quadratic growth in gl_LIBSOURCES.
92580         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
92581         Suggested by Bruno Haible.
92583         Test xmemdup0.
92584         * modules/xmemdup0-tests: New file.
92585         * tests/test-xmemdup0.c: Likewise.
92587 2008-05-13  Eric Blake  <ebb9@byu.net>
92589         Split xmemdup0 into its own module.
92590         * modules/xmemdup0: New file.
92591         * lib/xmemdup0.h: Likewise.
92592         * lib/xmemdup0.c: Likewise.
92593         * MODULES.html.sh (Memory management functions): Add xmemdup0.
92594         * lib/xalloc.h (xmemdup0): Remove.
92595         * lib/xmalloc.c (xmemdup0): Likewise.
92597 2008-05-13  Eric Blake  <ebb9@byu.net>
92598             Bruno Haible  <bruno@clisp.org>
92600         Reduce number of forks required during autoconf.
92601         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
92602         and gl_LIBSOURCES_DIR.
92603         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
92604         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
92605         m4_syscmd per file.
92606         <m4_foreach_w>: Move...
92607         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
92609 2008-05-13  Eric Blake  <ebb9@byu.net>
92611         * gnulib-tool: Fix various comment typos.
92613 2008-05-12  Bruno Haible  <bruno@clisp.org>
92615         Tailor the linebreaking algorithm.
92616         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
92618 2008-05-12  Bruno Haible  <bruno@clisp.org>
92620         Update to Unicode 5.0.0.
92621         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
92622         LBP_JV, LBP_JT. Redistribute values.
92623         (unilbrk_table): Change size.
92624         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
92625         Unicode TR#14 rev. 22.
92626         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
92627         LBP_JV, LBP_JT. Redistribute values.
92628         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
92629         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
92630         Update.
92631         * lib/unilbrk/lbrkprop1.h: Regenerated.
92632         * lib/unilbrk/lbrkprop2.h: Regenerated.
92633         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
92634         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
92635         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
92636         Likewise.
92637         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
92638         Likewise.
92639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
92640         result.
92641         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
92642         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
92643         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
92644         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
92645         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
92646         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
92648 2008-05-11  Bruno Haible  <bruno@clisp.org>
92650         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
92652 2008-05-11  Bruno Haible  <bruno@clisp.org>
92654         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
92655         * modules/unilbrk/gen-lbrk: New file.
92657 2008-05-11  Bruno Haible  <bruno@clisp.org>
92659         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
92660         * m4/sha512.m4 (gl_SHA512): Likewise.
92662 2008-05-11  Jim Meyering  <meyering@redhat.com>
92664         New modules: crypto/sha256, crypto/sha512 (from coreutils)
92665         * modules/crypto/sha256: New file.
92666         * modules/crypto/sha512: Likewise.
92667         * lib/sha256.c: Likewise.
92668         * lib/sha256.h: Likewise.
92669         * lib/sha512.c: Likewise.
92670         * lib/sha512.h: Likewise.
92671         * lib/u64.h: Likewise.
92672         * m4/sha256.m4: Likewise.
92673         * m4/sha512.m4: Likewise.
92674         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
92676 2008-05-10  Bruno Haible  <bruno@clisp.org>
92678         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
92679         (Input/Output <stdio.h>): Add xprintf.
92680         (Signal handling <signal.h>): Add strsignal.
92681         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
92682         (Core language properties): Add func.
92683         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
92684         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
92685         strings.
92686         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
92687         (Input/output): New section.
92688         (File system functions): Add openat-die, stat-macros.
92689         (Networking functions): Add sockets.
92690         (Unicode string functions): Add unictype/*.
92691         (Support for building libraries and executables): Add gperf.
92692         (Support for building documentation): Add agpl-3.0.
92693         (Misc): Add nocrash.
92695 2008-05-10  Bruno Haible  <bruno@clisp.org>
92697         * modules/unictype/gen-ctype: New file.
92699 2008-05-10  Jim Meyering  <meyering@redhat.com>
92701         Make chdir-safer.c more efficient on a system with no symlinks.
92702         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
92703         also if ELOOP is zero.  Suggested by Bruno Haible.
92705         Make chdir-safer.c slightly safer.
92706         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
92707         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
92709         Avoid compile failure on systems without ELOOP (like mingw).
92710         * lib/chdir-safer.c (ELOOP): Define if not already defined.
92711         Reported by Bruno Haible.
92713 2008-05-10  Bruno Haible  <bruno@clisp.org>
92715         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
92716         (is_utf8_encoding): Use a case-insensitive comparison.
92717         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
92718         streq.
92720 2008-05-10  Bruno Haible  <bruno@clisp.org>
92722         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
92723         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
92724         * lib/unilbrk/ulc-common.h (iconv_string_length,
92725         iconv_string_keeping_offsets): Remove declarations.
92726         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
92727         Don't include <iconv.h>, streq.h, xsize.h.
92728         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
92729         conversion.
92730         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
92731         <iconv.h>, streq.h, xsize.h.
92732         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
92733         conversion.
92734         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
92735         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
92736         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
92737         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
92739 2008-05-10  Bruno Haible  <bruno@clisp.org>
92741         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
92742         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
92744         * modules/unilbrk/u32-width-linebreaks-tests: New file.
92745         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
92747         * modules/unilbrk/u16-width-linebreaks-tests: New file.
92748         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
92750         * modules/unilbrk/u8-width-linebreaks-tests: New file.
92751         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
92753         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
92754         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
92756         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
92757         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
92759         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
92760         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
92762         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
92763         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
92765 2008-05-10  Bruno Haible  <bruno@clisp.org>
92767         Split up 'linebreak' module.
92768         * lib/unilbrk.h: New file, based on lib/linebreak.h.
92769         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
92770         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
92771         modifications.
92772         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
92773         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
92774         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
92775         lib/linebreak.c.
92776         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
92777         lib/linebreak.c.
92778         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
92779         lib/linebreak.c.
92780         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
92781         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
92782         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
92783         lib/linebreak.c.
92784         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
92785         lib/linebreak.c.
92786         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
92787         lib/linebreak.c.
92788         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
92789         lib/linebreak.c.
92790         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
92791         lib/linebreak.c.
92792         * modules/unilbrk/base: New file.
92793         * modules/unilbrk/tables: New file.
92794         * modules/unilbrk/u8-possible-linebreaks: New file.
92795         * modules/unilbrk/u16-possible-linebreaks: New file.
92796         * modules/unilbrk/u32-possible-linebreaks: New file.
92797         * modules/unilbrk/ulc-common: New file.
92798         * modules/unilbrk/ulc-possible-linebreaks: New file.
92799         * modules/unilbrk/u8-width-linebreaks: New file.
92800         * modules/unilbrk/u16-width-linebreaks: New file.
92801         * modules/unilbrk/u32-width-linebreaks: New file.
92802         * modules/unilbrk/ulc-width-linebreaks: New file.
92803         * lib/linebreak.h: Remove file.
92804         * lib/linebreak.c: Remove file.
92805         * m4/linebreak.m4: Remove file.
92806         * modules/linebreak: Remove file.
92807         * NEWS: Mention the changes.
92809 2008-05-09  Eric Blake  <ebb9@byu.net>
92811         Add xmemdup0.
92812         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
92813         implementation.
92814         * lib/xmalloc.c (xmemdup0): New C implementation.
92816 2008-05-08  Bruno Haible  <bruno@clisp.org>
92818         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
92820 2008-05-07  Eric Blake  <ebb9@byu.net>
92822         Support cross-compilation of <wctype.h>.
92823         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
92824         AC_CACHE_CHECK.
92826 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
92828         * build-aux/vc-list-files: Add support for bzr.
92830 2008-05-03  Jim Meyering  <meyering@redhat.com>
92832         avoid failed assertion with tight malloc
92833         * tests/test-getndelim2.c: Correct an off-by-one assertion.
92835 2008-05-03  Simon Josefsson  <simon@josefsson.org>
92837         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
92838         are needed from arpa/inet.h.
92839         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
92840         Reported by Bruno Haible.
92842 2008-05-02  Jim Meyering  <meyering@redhat.com>
92844         avoid compilation error on FreeBSD 6
92845         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
92847 2008-05-01  Jim Meyering  <meyering@redhat.com>
92849         useless-if-before-free: correct --help's exit status description
92850         * build-aux/useless-if-before-free (usage): Like grep, exit 0
92851         for one or more matches, etc.  Reported by Bruno Haible.
92853         vc-list-files: make the stand-alone gnulib test work
92854         * modules/vc-list-files-tests (configure.ac):
92855         Define and AC_SUBST abs_aux_dir.
92856         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
92857         $(abs_top_srcdir) to each script and having each of them
92858         duplicate the work of setting PATH, set PATH here, using
92859         the new variable, abs_aux_dir instead.
92860         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
92861         * tests/test-vc-list-files-git.sh: Likewise.
92862         Reported by Bruno Haible.
92864 2008-05-01  Bruno Haible  <bruno@clisp.org>
92866         * lib/getndelim2.c (getndelim2): Fix newsize computation during
92867         reallocation. Rename 'done' to 'found_delimiter'.
92869 2008-05-01  Jim Meyering  <meyering@redhat.com>
92871         vc-list-files: accommodate /bin/sh like the one from Solaris 10
92872         * build-aux/vc-list-files: Use `...`, not $(...).
92874 2008-04-30  Jim Meyering  <meyering@redhat.com>
92876         add tests for vc-list-files
92877         * modules/vc-list-files-tests: New module.
92878         * tests/test-vc-list-files-cvs.sh: New file.
92879         * tests/test-vc-list-files-git.sh: New file.
92881         avoid a warning from gcc
92882         * lib/getndelim2.c (IF_LINT): Define.
92883         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
92885         vc-list-files: work properly with build-aux/cvsu, too
92886         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
92887         to all cvs-based clauses.
92889         vc-list-files: work properly in the CVS+awk case, too
92890         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
92892         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
92893         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
92894         take more than one file argument, so .  Add quotes, just in case $dir
92895         ever contains a shell meta-character.  Prompted by Soren Hansen in
92896         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
92898 2008-04-29  Eric Blake  <ebb9@byu.net>
92900         Optimize getndelim2 to use block operations when possible.
92901         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
92902         freadseek, and memchr2.
92903         * lib/getndelim2.c (getndelim2): Use them for block reads.
92905 2008-04-29  Bruno Haible  <bruno@clisp.org>
92907         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
92908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92909         * modules/inet_ntop (Depends-on): Add extensions.
92910         * modules/inet_pton (Depends-on): Likewise.
92911         Reported by Simon Josefsson.
92913 2008-04-29  Jim Meyering  <meyering@redhat.com>
92915         When the is more than one match in a block, match all of them.
92916         * build-aux/useless-if-before-free: Iterate through each block
92917         until there are no more matches.
92919         Fix broken useless-if-before-free script.
92920         * build-aux/useless-if-before-free: Fix typo: missing "?" after
92921         the expression to match cast of argument to free-like function.
92923 2008-04-29  Eric Blake  <ebb9@byu.net>
92925         Use new header.
92926         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
92928 2008-04-29  Jim Meyering  <meyering@redhat.com>
92930         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
92931         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
92932         by gnulib to exist and to declare e.g., inet_ntop.
92933         Don't include "inet_ntop.h", now removed.
92935         * m4/arpa_inet_h.m4: Remove trailing blanks.
92937 2008-04-29  Eric Blake  <ebb9@byu.net>
92939         Silence valgrind on safe reads beyond potential array bounds.
92940         * lib/rawmemchr.valgrind: New file.
92941         * lib/strchrnul.valgrind: Likewise.
92942         * modules/rawmemchr (Files): Distribute new file.
92943         * modules/strchrnul (Files): Likewise.
92944         Suggested by Bruno Haible.
92946 2008-04-29  Bruno Haible  <bruno@clisp.org>
92948         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
92949         (inet_ntop, inet_pton): Change portability warning's wording.
92950         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
92951         Invoke gl_CHECK_NEXT_HEADERS.
92952         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
92953         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
92954         set ARPA_INET_H.
92955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92956         * modules/arpa_inet (Description): No longer only for systems that
92957         lack it.
92958         (Depends-on): Add include_next.
92959         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
92960         HAVE_ARPA_INET_H.
92962 2008-04-29  Jim Meyering  <meyering@redhat.com>
92964         * modules/mkdir (License): Re-license as LGPLv2+.
92966 2008-04-29  Bruno Haible  <bruno@clisp.org>
92968         * modules/rawmemchr (Maintainer): Set to Eric.
92969         * modules/strchrnul (Maintainer): Likewise.
92971 2008-04-29  Simon Josefsson  <simon@josefsson.org>
92973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
92974         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
92976         * modules/arpa_inet (arpa/inet.h): Use them.
92978 2008-04-28  Eric Blake  <ebb9@byu.net>
92980         Test getndelim2.
92981         * modules/getndelim2-tests: New file.
92982         * tests/test-getndelim2.c: Likewise.
92983         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
92984         stream.
92985         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
92987         * MODULES.html.sh: Document new module.
92989 2008-04-20  Bruno Haible  <bruno@clisp.org>
92991         * lib/c-stack.c (die): Use raise.
92992         * modules/c-stack (Depends-on): Add raise.
92994 2008-04-28  Bruno Haible  <bruno@clisp.org>
92996         Expect rpmatch to be declared.
92997         * lib/yesno.c (rpmatch): Remove declaration.
92999         Declare rpmatch.
93000         * lib/stdlib.in.h (rpmatch): New declaration.
93001         * lib/rpmatch.c: Include <stdlib.h> first.
93002         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
93003         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
93004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
93005         HAVE_RPMATCH.
93006         * modules/rpmatch (Depends-on): Add stdlib, extensions.
93007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93008         (Include): Set to <stdlib.h>.
93009         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
93010         HAVE_RPMATCH.
93011         * NEWS: Document the change.
93013 2008-04-28  Bruno Haible  <bruno@clisp.org>
93015         Change rpmatch to use nl_langinfo when appropriate.
93016         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
93017         (N_): New macro.
93018         (localized_pattern): New function/macro.
93019         (try): Remove match, nomatch arguments. Copy the pattern into safe
93020         memory before caching it.
93021         (rpmatch): Use localized_pattern. Add translator comments.
93022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
93023         Suggested by Eric Blake.
93024         * modules/rpmatch (Depends-on): Add stdbool.
93026 2008-04-28  Eric Blake  <ebb9@byu.net>
93028         Add rawmemchr module, matching glibc.
93029         * modules/string (Makefile.am): New indicator.
93030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
93031         * lib/string.in.h (rawmemchr): Declare when appropriate.
93032         * modules/rawmemchr: New file.
93033         * m4/rawmemchr.m4: Likewise.
93034         * lib/rawmemchr.c: Likewise.
93035         * modules/rawmemchr-tests: Likewise.
93036         * tests/test-rawmemchr.c: Likewise.
93037         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
93038         module.
93039         * modules/strchrnul (Depends-on): Add rawmemchr.
93040         * lib/strchrnul.c (strchrnul): Optimize a corner case.
93042         Whitespace cleanup.
93043         * tests/test-strchrnul.c: Reindent.
93044         * lib/strchrnul.c: Likewise.
93046         Optimize and test strchrnul.
93047         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
93048         * modules/strchrnul-tests: New file.
93049         * tests/test-strchrnul.c: Likewise.
93051         Remove intprops dependency.
93052         * modules/memchr (Depends-on): Remove intprops.
93053         * modules/memrchr (Depends-on): Likewise.
93054         * modules/memchr2 (Depends-on): Likewise.
93055         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
93056         * lib/memrchr.c (__memrchr): Likewise.
93057         * lib/memrchr2.c (memchr2): Likewise.
93058         Reported by Simon Josefsson.
93060 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93062         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
93063         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93067         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
93069         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
93071         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
93073         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
93074         declarations.
93075         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
93077         * m4/inet_pton.m4: Don't check for header files.
93079         * m4/inet_ntop.m4: Don't check for header files.
93081 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93083         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
93084         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
93085         trigger for cygwin).
93086         Reported by Bruno Haible  <bruno@clisp.org>.
93088 2008-04-28  Bruno Haible  <bruno@clisp.org>
93090         * doc/posix-functions/strdup.texi: Mention mingw problem.
93092 2008-04-27  Bruno Haible  <bruno@clisp.org>
93094         * modules/stat-time-tests (Depends-on): Add sleep.
93095         * tests/test-stat-time.c (force_unlink): New function.
93096         (cleanup): Use it.
93097         (test_mtime): Remove the ctime related tests.
93098         (test_ctime): New function, containing the ctime related tests.
93099         (main): Call test_ctime, except on native Windows platforms.
93101 2008-04-27  Bruno Haible  <bruno@clisp.org>
93103         * lib/rpmatch.c (rpmatch): Add some comments.
93104         Reported by James Youngman <jay@gnu.org>.
93106 2008-04-27  Bruno Haible  <bruno@clisp.org>
93108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
93109         quiet NaNs.
93111 2008-04-27  Bruno Haible  <bruno@clisp.org>
93113         Make test-yesno.sh work on mingw.
93114         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
93115         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
93116         (main): Set stdin to binary mode.
93117         * modules/yesno-tests (Depends-on): Add binary-io.
93119 2008-04-27  Bruno Haible  <bruno@clisp.org>
93121         Fix 'isfinite' on x86, x86_64, ia64 platforms.
93122         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
93123         argument that lie outside the IEEE 854 domain.
93124         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
93125         (gl_ISFINITE): Use it.
93126         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
93128 2008-04-27  Bruno Haible  <bruno@clisp.org>
93130         Allow local renaming in config.h.
93131         * lib/memrchr.c (memrchr): Don't undefine outside libc.
93133 2008-04-27  Bruno Haible  <bruno@clisp.org>
93135         * lib/memchr.c (__memchr): Change type of 'i'.
93136         * lib/memchr2.c (memchr2): Likewise.
93138 2008-04-26  Eric Blake  <ebb9@byu.net>
93139         and Bruno Haible  <bruno@clisp.org>
93141         Optimize and test memrchr.
93142         * modules/memrchr (Depends-on): Add intprops.
93143         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
93144         * modules/memrchr-tests: New file.
93145         * tests/test-memrchr.c: New file.
93147 2008-04-26  Bruno Haible  <bruno@clisp.org>
93149         Add tentative support for DragonFly BSD.
93150         * lib/stdio-impl.h: Add macros for DragonFly BSD.
93151         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
93152         fp.
93153         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93154         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
93155         * lib/fpurge.c (fpurge): Likewise.
93156         * lib/freadable.c (freaadable): Likewise.
93157         * lib/freadahead.c (freadahead): Likewise.
93158         * lib/freading.c (freading): Likewise.
93159         * lib/freadptr.c (freadptr): Likewise.
93160         * lib/freadseek.c (freadptrinc): Likewise.
93161         * lib/fseeko.c (fseeko): Likewise.
93162         * lib/fseterr.c (fseterr): Likewise.
93163         * lib/fwritable.c (fwritable): Likewise.
93164         * lib/fwriting.c (fwriting): Likewise.
93166 2008-04-26  Bruno Haible  <bruno@clisp.org>
93168         * lib/stdio-impl.h: New file.
93169         * lib/fbufmode.c: Include stdio-impl.h.
93170         (fbufmode): Use fp_, remove redundant #defines.
93171         * lib/fflush.c: Include stdio-impl.h.
93172         (clear_ungetc_buffer): Remove redundant #defines.
93173         * lib/fpurge.c: Include stdio-impl.h.
93174         (fpurge): Remove redundant #defines.
93175         * lib/freadable.c: Include stdio-impl.h.
93176         (freadable): Remove redundant #defines.
93177         * lib/freadahead.c: Include stdio-impl.h.
93178         (freadahead): Remove redundant #defines.
93179         * lib/freading.c: Include stdio-impl.h.
93180         (freading): Remove redundant #defines.
93181         * lib/freadptr.c: Include stdio-impl.h.
93182         (freadptr): Remove redundant #defines.
93183         * lib/freadseek.c: Include stdio-impl.h.
93184         (freadptrinc): Remove redundant #defines.
93185         * lib/fseeko.c: Include stdio-impl.h.
93186         (rpl_fseeko): Remove redundant #defines.
93187         * lib/fseterr.c: Include stdio-impl.h.
93188         (fseterr): Remove redundant #defines.
93189         * lib/fwritable.c: Include stdio-impl.h.
93190         (fwritable: Remove redundant #defines.
93191         * lib/fwriting.c: Include stdio-impl.h.
93192         (fwriting): Remove redundant #defines.
93193         * modules/fbufmode (Files): Add lib/stdio-impl.h.
93194         * modules/fflush (Files): Likewise.
93195         * modules/fpurge (Files): Likewise.
93196         * modules/freadable (Files): Likewise.
93197         * modules/freadahead (Files): Likewise.
93198         * modules/freading (Files): Likewise.
93199         * modules/freadptr (Files): Likewise.
93200         * modules/freadseek (Files): Likewise.
93201         * modules/fseeko (Files): Likewise.
93202         * modules/fseterr (Files): Likewise.
93203         * modules/fwritable (Files): Likewise.
93204         * modules/fwriting (Files): Likewise.
93206 2008-04-26  Bruno Haible  <bruno@clisp.org>
93208         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93209         restore_seek_optimization, update_fpos_cache): New functions, extracted
93210         from rpl_fflush.
93211         (rpl_fflush): Use them.
93212         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
93213         (gl_REPLACE_FFLUSH): Use it.
93215 2008-04-26  Bruno Haible  <bruno@clisp.org>
93217         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
93218         on Solaris.
93219         * tests/test-xstrtoimax.sh: Likewise.
93220         * tests/test-xstrtoumax.sh: Likewise.
93221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93223 2008-04-26  Bruno Haible  <bruno@clisp.org>
93225         * modules/memchr-tests: New file.
93226         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
93228 2008-04-26  Eric Blake  <ebb9@byu.net>
93229             Bruno Haible  <bruno@clisp.org>
93231         * lib/memchr.c: Include intprops.h.
93232         (__memchr): Optimize parallel detection of matching bytes. Rename local
93233         variables. Add explanatory comments.
93235 2008-04-26  Bruno Haible  <bruno@clisp.org>
93237         Fix module 'memchr', broken since 2000-10-28.
93238         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
93240 2008-04-26  Bruno Haible  <bruno@clisp.org>
93242         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
93243         comments.
93245 2008-04-25  Eric Blake  <ebb9@byu.net>
93247         Use native fstatat on cygwin 1.7.0.
93248         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
93249         first.
93251 2008-04-23  Eric Blake  <ebb9@byu.net>
93253         Improve memchr2 performance.
93254         * lib/memchr2.c (memchr2): Further optimize parallel detection of
93255         NUL bytes.
93256         * modules/memchr2 (Depends-on): Use intprops.h.
93258 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93260         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
93261         an inline function instead of a CPP macro.  Patch by Ben Pfaff
93262         <blp@cs.stanford.edu>.
93264 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93266         * lib/arpa_inet.in.h: New file.
93268         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
93269         (Makefile.am): Sed in substitute header file.
93271         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
93272         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
93274         * modules/inet_ntop (configure.ac): Use
93275         gl_ARPA_INET_MODULE_INDICATOR.
93277         * modules/inet_pton (configure.ac): Use
93278         gl_ARPA_INET_MODULE_INDICATOR.
93280 2008-04-22  Jim Meyering  <meyering@redhat.com>
93282         * modules/verify (License): Re-license as LGPLv2+.
93284 2008-04-22  Simon Josefsson  <simon@josefsson.org>
93286         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
93287         parameter to void* as per POSIX standard (MinGW uses char*).
93289 2008-04-21  Bruno Haible  <bruno@clisp.org>
93291         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
93292         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
93293         Define to replacements if REPLACE_ISWCNTRL is 1.
93294         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
93295         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
93296         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
93297         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
93298         what it fixes.
93299         * doc/posix-functions/iswalpha.texi: Likewise.
93300         * doc/posix-functions/iswblank.texi: Likewise.
93301         * doc/posix-functions/iswcntrl.texi: Likewise.
93302         * doc/posix-functions/iswdigit.texi: Likewise.
93303         * doc/posix-functions/iswgraph.texi: Likewise.
93304         * doc/posix-functions/iswlower.texi: Likewise.
93305         * doc/posix-functions/iswprint.texi: Likewise.
93306         * doc/posix-functions/iswpunct.texi: Likewise.
93307         * doc/posix-functions/iswspace.texi: Likewise.
93308         * doc/posix-functions/iswupper.texi: Likewise.
93309         * doc/posix-functions/iswxdigit.texi: Likewise.
93310         Reported by Alain Guibert.
93312 2008-04-21  Bruno Haible  <bruno@clisp.org>
93314         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
93315         Patch by Alain Guibert.
93317 2008-04-21  Bruno Haible  <bruno@clisp.org>
93319         Fix test failures on mingw.
93320         * tests/test-xstrtol.c (print_no_progname): New function.
93321         (main): Install it in error_print_progname hook.
93322         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
93323         * tests/test-xstrtoimax.sh: Likewise.
93324         * tests/test-xstrtoumax.sh: Likewise.
93326 2008-04-21  Bruno Haible  <bruno@clisp.org>
93328         Fix test failure on mingw.
93329         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
93331 2008-04-21  Bruno Haible  <bruno@clisp.org>
93333         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
93334         Actually assign a value.
93336 2008-04-20  Bruno Haible  <bruno@clisp.org>
93338         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
93339         take 2.
93340         * lib/canonicalize.c (canonicalize_file_name): Elide if the
93341         'canonicalize-lgpl' module is also used.
93342         * lib/canonicalize-lgpl.c: Undo last change.
93343         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
93345 2008-04-20  Bruno Haible  <bruno@clisp.org>
93347         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
93348         config.h. Provide _mkdir based fallback for mingw.
93349         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
93350         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
93351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
93352         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
93353         rather than defining mkdir in config.h.
93354         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
93355         (gl_SYS_STAT_H_DEFAULTS): New macro.
93356         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
93357         HAVE_IO_H any more.
93358         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
93359         HAVE_DECL_MKDIR and HAVE_IO_H.
93361 2008-04-20  Bruno Haible  <bruno@clisp.org>
93363         * lib/isapipe.c: Port to native Windows platforms.
93365 2008-04-20  Bruno Haible  <bruno@clisp.org>
93367         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
93369 2008-04-21  Eric Blake  <ebb9@byu.net>
93371         Work around preprocessors that don't handle UINTMAX_MAX.
93372         * lib/memchr2.c (memchr2): Avoid embedded #if.
93373         Reported by Alain Guibert, fix suggested by Bruno Haible.
93375 2008-04-21  Simon Josefsson  <simon@josefsson.org>
93377         * doc/posix-functions/strftime.texi (strftime): Explain better
93378         Windows incompatibility.  Suggested by Micah Cowan
93379         <micah@cowan.name>.
93381 2008-04-20  Bruno Haible  <bruno@clisp.org>
93383         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
93384         unistr/u8-mblen.
93386 2008-04-20  Bruno Haible  <bruno@clisp.org>
93388         Fix test failure on platforms with non-GNU iconv.
93389         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
93390         (U_TO_U8): Use it, rather than u16_to_u8.
93391         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
93392         units at the end of the input string.
93393         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
93395 2008-04-20  Bruno Haible  <bruno@clisp.org>
93397         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
93398         when the resulting length is 0.
93399         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
93401 2008-04-20  Bruno Haible  <bruno@clisp.org>
93403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
93404         works.
93405         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
93407 2008-04-20  Bruno Haible  <bruno@clisp.org>
93409         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
93410         * modules/tsearch-tests (configure.ac): Test for initstate function.
93412 2008-04-20  Bruno Haible  <bruno@clisp.org>
93414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
93415         for nlink_t if missing.
93416         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
93418 2008-04-19  Bruno Haible  <bruno@clisp.org>
93420         Work around snprintf bug on Linux libc5.
93421         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
93422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93423         gl_SNPRINTF_SIZE1.
93424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93425         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
93426         that test failed.
93427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
93428         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
93429         * modules/snprintf (Files): Add m4/printf.m4.
93430         * modules/vsnprintf (Files): Likewise.
93431         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
93432         * doc/posix-functions/vsnprintf.texi: Likewise.
93434 2008-04-19  Bruno Haible  <bruno@clisp.org>
93436         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
93437         from 0.0058 to less than 10^-7.
93439 2008-04-19  Bruno Haible  <bruno@clisp.org>
93441         Fix rounding when a precision is given.
93442         * lib/vasnprintf.c (is_borderline): New function.
93443         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
93444         9...9x.
93445         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
93446         %e, %g.
93447         * tests/test-vasprintf-posix.c (test_function): Likewise.
93448         * tests/test-snprintf-posix.h (test_function): Likewise.
93449         * tests/test-sprintf-posix.h (test_function): Likewise.
93450         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
93451         * tests/test-printf-posix.h (test_function): Likewise.
93452         * tests/test-printf-posix.output: Update.
93453         Reported by John Darrington <john@darrington.wattle.id.au> via
93454         Ben Pfaff <blp@cs.stanford.edu>.
93456 2008-04-18  Simon Josefsson  <simon@josefsson.org>
93458         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
93459         Suggested by Bruno Haible <bruno@clisp.org>.
93461 2008-04-17  Bruno Haible  <bruno@clisp.org>
93463         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
93464         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
93465         implementation.
93466         Patch by Bruce Merry <bmerry@gmail.com>.
93468 2008-04-17  Simon Josefsson  <simon@josefsson.org>
93470         * doc/posix-functions/strftime.texi (strftime): Mention that %e
93471         doesn't work under Windows.
93473 2008-04-16  Bruno Haible  <bruno@clisp.org>
93475         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
93476         New macros.
93477         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
93478         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
93479         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
93480         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
93481         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
93482         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
93483         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
93484         macros.
93485         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
93486         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
93487         Northern Sotho, Uighur.
93489 2008-04-16  Bruno Haible  <bruno@clisp.org>
93491         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
93492         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
93493         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
93494         Reported by Daniel Bergström <daniel@octocode.com>.
93496 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
93497             Bruno Haible  <bruno@clisp.org>
93499         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
93500         function.
93501         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
93502         New functions, mostly extracted from gl_locale_name_default.
93503         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
93505 2008-04-16  Eric Blake  <ebb9@byu.net>
93507         Adjust strtod detection to catch glibc 2.7 bug.
93508         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
93509         Reported by John Gatewood Ham.
93511 2008-04-16  Bruno Haible  <bruno@clisp.org>
93513         Add tentative support for Linux libc5.
93514         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
93515         * lib/fpurge.c (fpurge): Likewise.
93516         * lib/freadable.c (freadable): Likewise.
93517         * lib/freadahead.c (freadahead): Likewise.
93518         * lib/freading.c (freading): Likewise.
93519         * lib/freadptr.c (freadptr): Likewise.
93520         * lib/freadseek.c (freadptrinc): Likewise.
93521         * lib/fseeko.c (rpl_fseeko): Likewise.
93522         * lib/fseterr.c (fseterr): Likewise.
93523         * lib/fwritable.c (fwritable): Likewise.
93524         * lib/fwriting.c (fwriting): Likewise.
93525         Reported by Alain Guibert <alguibert+bts@free.fr>.
93527 2008-04-15  Bruno Haible  <bruno@clisp.org>
93529         * modules/mathl (configure.ac): Define module indicator.
93531 2008-04-15  Bruno Haible  <bruno@clisp.org>
93533         * lib/logl.c (logl): Remove unused variables.
93535 2008-04-15  Bruno Haible  <bruno@clisp.org>
93537         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
93538         fails.
93540 2008-04-15  Bruno Haible  <bruno@clisp.org>
93542         * lib/trim.c (trim2): Fix argument of isspace() macro.
93544 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
93546         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
93547         to 0.
93548         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
93550 2008-04-14  Bruno Haible  <bruno@clisp.org>
93552         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
93553         AC_LANG_PROGRAM argument.
93554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
93555         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
93556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
93557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
93558         * m4/math_h.m4 (gl_MATH_H): Likewise.
93559         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
93560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93561         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
93562         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
93563         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
93564         * m4/regex.m4 (gl_REGEX): Likewise.
93565         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
93566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
93567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93568         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
93569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93570         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
93572         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
93574 2008-04-14  Jim Meyering  <meyering@redhat.com>
93576         test-strtod: fix typos: s/abs/fabs/
93577         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
93579 2008-04-13  Bruno Haible  <bruno@clisp.org>
93581         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
93582         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
93583         module is also used and while not building the reloc-wrapper.
93585 2008-04-13  Bruno Haible  <bruno@clisp.org>
93587         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
93589 2008-04-13  Bruno Haible  <bruno@clisp.org>
93591         Fix AIX compilation failure introduced on 2008-04-02.
93592         * tests/test-frexp.c (exp): Undefine before redefining.
93593         * tests/test-frexpl.c (exp): Likewise.
93595 2008-04-13  Bruno Haible  <bruno@clisp.org>
93597         Work around a HP-UX stdio bug.
93598         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
93599         * tests/test-ftello.c (main): Likewise.
93600         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
93601         * doc/posix-functions/ftello.texi: Likewise.
93603 2008-04-13  Bruno Haible  <bruno@clisp.org>
93605         Make test-signbit pass on HP-UX/hppa.
93606         * tests/test-signbit.c (minus_zerol): New variable.
93607         (test_signbitl): Use it.
93609 2008-04-13  Bruno Haible  <bruno@clisp.org>
93611         Make truncl work on OSF/1 4.0.
93612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
93613         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
93614         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
93615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
93616         HAVE_DECL_TRUNCL.
93617         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
93618         HAVE_DECL_TRUNCL.
93619         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
93621 2008-04-13  Bruno Haible  <bruno@clisp.org>
93623         * lib/unictype.h: Remove trailing comma from enumeration definitions.
93625 2008-04-13  Bruno Haible  <bruno@clisp.org>
93627         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
93628         expression, so as to avoid HP-UX 11 cc compiler bug.
93630 2008-04-13  Bruno Haible  <bruno@clisp.org>
93632         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
93634 2008-04-13  Bruno Haible  <bruno@clisp.org>
93636         * lib/git-merge-changelog.c: Remove empty declaration outside of
93637         functions.
93639 2008-04-13  Bruno Haible  <bruno@clisp.org>
93641         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
93643 2008-04-13  Bruno Haible  <bruno@clisp.org>
93645         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
93646         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
93647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
93648         also if it exists but lacks definitions of the SHUT_* macros.
93649         * modules/sys_socket (Description): Update.
93650         Reported by Elbert Pol <e.pol@chello.nl>.
93652 2008-04-13  Bruno Haible  <bruno@clisp.org>
93654         * lib/localcharset.c (OS2): Don't redefine if already defined.
93655         Reported by Elbert Pol <e.pol@chello.nl>.
93657 2008-04-13  Bruno Haible  <bruno@clisp.org>
93659         * lib/binary-io.h [__EMX__]: Include <io.h>.
93660         Reported by Elbert Pol <e.pol@chello.nl>.
93662 2008-04-12  Bruno Haible  <bruno@clisp.org>
93664         * lib/fpucw.h: Enable the definitions also for x86_64.
93665         Needed for NetBSD/x86_64.
93666         Reported by Thomas Klausner <tk@giga.or.at>.
93668 2008-04-12  Bruno Haible  <bruno@clisp.org>
93670         * tests/test-strtod.c: Include isnand.h.
93671         (main): Use isnand instead of isnan.
93672         Reported by Jim Meyering.
93674 2008-04-12  Bruno Haible  <bruno@clisp.org>
93676         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
93677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
93679 2008-04-12  Jim Meyering  <meyering@redhat.com>
93681         * m4/math_h.m4 (gl_MATH_H): Fix typos.
93683 2008-04-12  Bruno Haible  <bruno@clisp.org>
93685         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
93686         Reported by Elbert Pol <e.pol@chello.nl>.
93688 2008-04-12  Eric Blake  <ebb9@byu.net>
93690         Work around Solaris 10 math.h bug.
93691         * m4/math_h.m4 (gl_MATH_H): Check for bug.
93692         (gl_MATH_H_DEFAULTS): Set up default.
93693         * modules/math (Makefile.am): Replace new indicators.
93694         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
93695         * tests/test-math.c (main): Test this.
93696         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
93697         * doc/posix-headers/math.texi (math.h): Mention bug.
93698         Reported by Nelson H. F. Beebe and Jim Meyering.
93700 2008-04-11  Bruno Haible  <bruno@clisp.org>
93702         Adapt to future versions of Apple GCC.
93703         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
93704         Reported by Peter O'Gorman <peter@pogma.com>.
93706 2008-04-11  Bruno Haible  <bruno@clisp.org>
93708         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
93710 2008-04-11  Bruno Haible  <bruno@clisp.org>
93712         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
93714         * modules/getaddrinfo-tests (Makefile.am): Define
93715         test_getaddrinfo_LDADD.
93717 2008-04-11  Bruno Haible  <bruno@clisp.org>
93719         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
93720         (init): Fix syntax error.
93721         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
93722         is declared.
93724 2008-04-11  Bruno Haible  <bruno@clisp.org>
93726         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
93727         * modules/glob (Depends-on): Add stdbool.
93729 2008-04-11  Bruno Haible  <bruno@clisp.org>
93731         * lib/trim.c: Include <string.h>.
93733 2008-04-11  Eric Blake  <ebb9@byu.net>
93735         Avoid compile failure on OS/2.
93736         * lib/regex_internal.h (internal_function): Disable optimization
93737         on OS/2 (__EMX__), where it caused compiler error.
93738         Reported by Elbert Pol.
93740 2008-04-11  Bruno Haible  <bruno@clisp.org>
93742         Flush the standard error stream before aborting. Needed on mingw.
93743         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
93744         * tests/test-array_list.c (ASSERT): Likewise.
93745         * tests/test-array_oset.c (ASSERT): Likewise.
93746         * tests/test-avltree_list.c (ASSERT): Likewise.
93747         * tests/test-avltree_oset.c (ASSERT): Likewise.
93748         * tests/test-avltreehash_list.c (ASSERT): Likewise.
93749         * tests/test-binary-io.c (ASSERT): Likewise.
93750         * tests/test-byteswap.c (ASSERT): Likewise.
93751         * tests/test-c-ctype.c (ASSERT): Likewise.
93752         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
93753         * tests/test-c-strcasestr.c (ASSERT): Likewise.
93754         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
93755         * tests/test-c-strstr.c (ASSERT): Likewise.
93756         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
93757         * tests/test-canonicalize.c (ASSERT): Likewise.
93758         * tests/test-carray_list.c (ASSERT): Likewise.
93759         * tests/test-ceilf1.c (ASSERT): Likewise.
93760         * tests/test-ceilf2.c (ASSERT): Likewise.
93761         * tests/test-ceill.c (ASSERT): Likewise.
93762         * tests/test-count-one-bits.c (ASSERT): Likewise.
93763         * tests/test-fbufmode.c (ASSERT): Likewise.
93764         * tests/test-fflush2.c (ASSERT): Likewise.
93765         * tests/test-floorf1.c (ASSERT): Likewise.
93766         * tests/test-floorf2.c (ASSERT): Likewise.
93767         * tests/test-floorl.c (ASSERT): Likewise.
93768         * tests/test-fopen.c (ASSERT): Likewise.
93769         * tests/test-fpending.c (ASSERT): Likewise.
93770         * tests/test-fprintf-posix.c (ASSERT): Likewise.
93771         * tests/test-fpurge.c (ASSERT): Likewise.
93772         * tests/test-freadable.c (ASSERT): Likewise.
93773         * tests/test-freadahead.c (ASSERT): Likewise.
93774         * tests/test-freading.c (ASSERT): Likewise.
93775         * tests/test-freadptr.c (ASSERT): Likewise.
93776         * tests/test-freadptr2.c (ASSERT): Likewise.
93777         * tests/test-freadseek.c (ASSERT): Likewise.
93778         * tests/test-freopen.c (ASSERT): Likewise.
93779         * tests/test-frexp.c (ASSERT): Likewise.
93780         * tests/test-frexpl.c (ASSERT): Likewise.
93781         * tests/test-fseek.c (ASSERT): Likewise.
93782         * tests/test-fseeko.c (ASSERT): Likewise.
93783         * tests/test-fstrcmp.c (ASSERT): Likewise.
93784         * tests/test-ftell.c (ASSERT): Likewise.
93785         * tests/test-ftello.c (ASSERT): Likewise.
93786         * tests/test-func.c (ASSERT): Likewise.
93787         * tests/test-fwritable.c (ASSERT): Likewise.
93788         * tests/test-fwriting.c (ASSERT): Likewise.
93789         * tests/test-getdelim.c (ASSERT): Likewise.
93790         * tests/test-getline.c (ASSERT): Likewise.
93791         * tests/test-i-ring.c (ASSERT): Likewise.
93792         * tests/test-iconv-utf.c (ASSERT): Likewise.
93793         * tests/test-iconv.c (ASSERT): Likewise.
93794         * tests/test-isfinite.c (ASSERT): Likewise.
93795         * tests/test-isnand.c (ASSERT): Likewise.
93796         * tests/test-isnanf.c (ASSERT): Likewise.
93797         * tests/test-isnanl.h (ASSERT): Likewise.
93798         * tests/test-ldexpl.c (ASSERT): Likewise.
93799         * tests/test-linked_list.c (ASSERT): Likewise.
93800         * tests/test-linkedhash_list.c (ASSERT): Likewise.
93801         * tests/test-localename.c (ASSERT): Likewise.
93802         * tests/test-lseek.c (ASSERT): Likewise.
93803         * tests/test-mbscasecmp.c (ASSERT): Likewise.
93804         * tests/test-mbscasestr1.c (ASSERT): Likewise.
93805         * tests/test-mbscasestr2.c (ASSERT): Likewise.
93806         * tests/test-mbscasestr3.c (ASSERT): Likewise.
93807         * tests/test-mbscasestr4.c (ASSERT): Likewise.
93808         * tests/test-mbschr.c (ASSERT): Likewise.
93809         * tests/test-mbscspn.c (ASSERT): Likewise.
93810         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
93811         * tests/test-mbspbrk.c (ASSERT): Likewise.
93812         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
93813         * tests/test-mbsrchr.c (ASSERT): Likewise.
93814         * tests/test-mbsspn.c (ASSERT): Likewise.
93815         * tests/test-mbsstr1.c (ASSERT): Likewise.
93816         * tests/test-mbsstr2.c (ASSERT): Likewise.
93817         * tests/test-mbsstr3.c (ASSERT): Likewise.
93818         * tests/test-memchr2.c (ASSERT): Likewise.
93819         * tests/test-memmem.c (ASSERT): Likewise.
93820         * tests/test-open.c (ASSERT): Likewise.
93821         * tests/test-printf-frexp.c (ASSERT): Likewise.
93822         * tests/test-printf-frexpl.c (ASSERT): Likewise.
93823         * tests/test-printf-posix.c (ASSERT): Likewise.
93824         * tests/test-quotearg.c (ASSERT): Likewise.
93825         * tests/test-rbtree_list.c (ASSERT): Likewise.
93826         * tests/test-rbtree_oset.c (ASSERT): Likewise.
93827         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
93828         * tests/test-round1.c (ASSERT): Likewise.
93829         * tests/test-roundf1.c (ASSERT): Likewise.
93830         * tests/test-roundl.c (ASSERT): Likewise.
93831         * tests/test-signbit.c (ASSERT): Likewise.
93832         * tests/test-sleep.c (ASSERT): Likewise.
93833         * tests/test-snprintf-posix.c (ASSERT): Likewise.
93834         * tests/test-snprintf.c (ASSERT): Likewise.
93835         * tests/test-sprintf-posix.c (ASSERT): Likewise.
93836         * tests/test-stat-time.c (ASSERT): Likewise.
93837         * tests/test-strcasestr.c (ASSERT): Likewise.
93838         * tests/test-strerror.c (ASSERT): Likewise.
93839         * tests/test-striconv.c (ASSERT): Likewise.
93840         * tests/test-striconveh.c (ASSERT): Likewise.
93841         * tests/test-striconveha.c (ASSERT): Likewise.
93842         * tests/test-strsignal.c (ASSERT): Likewise.
93843         * tests/test-strstr.c (ASSERT): Likewise.
93844         * tests/test-strtod.c (ASSERT): Likewise.
93845         * tests/test-trunc1.c (ASSERT): Likewise.
93846         * tests/test-trunc2.c (ASSERT): Likewise.
93847         * tests/test-truncf1.c (ASSERT): Likewise.
93848         * tests/test-truncf2.c (ASSERT): Likewise.
93849         * tests/test-truncl.c (ASSERT): Likewise.
93850         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
93851         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
93852         * tests/test-vasnprintf.c (ASSERT): Likewise.
93853         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
93854         * tests/test-vasprintf.c (ASSERT): Likewise.
93855         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
93856         * tests/test-vprintf-posix.c (ASSERT): Likewise.
93857         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
93858         * tests/test-vsnprintf.c (ASSERT): Likewise.
93859         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
93860         * tests/test-wcwidth.c (ASSERT): Likewise.
93861         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
93862         * tests/test-xprintf-posix.c (ASSERT): Likewise.
93863         * tests/test-xvasprintf.c (ASSERT): Likewise.
93864         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
93865         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
93866         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
93867         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
93868         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
93869         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
93870         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
93871         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
93872         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
93873         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
93874         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
93875         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
93876         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
93877         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
93878         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
93879         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
93880         * tests/unictype/test-block_list.c (ASSERT): Likewise.
93881         * tests/unictype/test-block_of.c (ASSERT): Likewise.
93882         * tests/unictype/test-block_test.c (ASSERT): Likewise.
93883         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
93884         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
93885         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
93886         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
93887         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
93888         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
93889         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
93890         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
93891         * tests/unictype/test-combining.c (ASSERT): Likewise.
93892         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
93893         * tests/unictype/test-digit.c (ASSERT): Likewise.
93894         * tests/unictype/test-mirror.c (ASSERT): Likewise.
93895         * tests/unictype/test-numeric.c (ASSERT): Likewise.
93896         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
93897         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
93898         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
93899         * tests/unictype/test-scripts.c (ASSERT): Likewise.
93900         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
93901         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
93902         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
93903         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
93904         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
93905         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
93906         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
93907         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
93908         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
93909         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
93910         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
93911         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
93912         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
93913         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
93914         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
93915         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
93916         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
93917         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
93918         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
93919         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
93920         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
93921         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
93922         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
93923         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
93924         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
93925         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
93926         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
93927         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
93928         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
93929         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
93930         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
93931         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
93932         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
93933         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
93934         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
93935         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
93936         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
93937         Reported by Eric Blake.
93939 2008-04-11  Bruno Haible  <bruno@clisp.org>
93941         * lib/wchar.in.h: Tweak comment.
93943 2008-04-11  Bruno Haible  <bruno@clisp.org>
93945         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
93946         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
93947         gl_COMMON.
93948         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
93950 2008-04-11  Bruno Haible  <bruno@clisp.org>
93952         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
93954 2008-04-11  Simon Josefsson  <simon@josefsson.org>
93956         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
93957         of attempting to use non-existing /dev/*random.  Based on patch
93958         from Adam Strzelecki <ono@java.pl> in
93959         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
93961 2008-04-08  Bruno Haible  <bruno@clisp.org>
93963         Add tentative support for emx+gcc.
93964         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
93965         * lib/fpurge.c (fpurge): Likewise.
93966         * lib/freadable.c (freadable): Likewise.
93967         * lib/freadahead.c (freadahead): Likewise.
93968         * lib/freading.c (freading): Likewise.
93969         * lib/freadptr.c (freadptr): Likewise.
93970         * lib/freadseek.c (freadptrinc): Likewise.
93971         * lib/fseeko.c (rpl_fseeko): Likewise.
93972         * lib/fseterr.c (fseterr): Likewise.
93973         * lib/fwritable.c (fwritable): Likewise.
93974         * lib/fwriting.c (fwriting): Likewise.
93975         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
93977 2008-04-09  Eric Blake  <ebb9@byu.net>
93979         Avoid some autoconf warnings.
93980         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
93981         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
93982         * m4/afs.m4 (gl_AFS): Likewise.
93983         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
93984         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
93985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93986         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
93987         (gl_INTEGER_TYPE_SUFFIX): Likewise.
93988         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
93989         (AC_CHECK_DECLS_ONCE): Likewise.
93990         Rename file...
93991         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
93992         gnulib-tool requires autoconf 2.59 or better.
93993         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
93995 2008-04-08  Eric Blake  <ebb9@byu.net>
93997         Use 'git describe --match' if present (added in git 1.5.5).
93998         * build-aux/git-version-gen: Limit result to tags that match 'v*'
93999         if possible.
94001 2008-04-08  Bruno Haible  <bruno@clisp.org>
94003         Add tentative support for OpenServer.
94004         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
94005         _ptr, _cnt.
94006         * lib/fpurge.c (fpurge): Likewise.
94007         * lib/freadable.c (freadable): Likewise.
94008         * lib/freadahead.c (freadahead): Likewise.
94009         * lib/freading.c (freading): Likewise.
94010         * lib/freadptr.c (freadptr): Likewise.
94011         * lib/freadseek.c (freadptrinc): Likewise.
94012         * lib/fseeko.c (rpl_fseeko): Likewise.
94013         * lib/fseterr.c (fseterr): Likewise.
94014         * lib/fwritable.c (fwritable): Likewise.
94015         * lib/fwriting.c (fwriting): Likewise.
94016         Reported by Roger Cornelius <rac@tenzing.org> and
94017         Brian K. White <brian@aljex.com>.
94019 2008-04-06  Jim Meyering  <meyering@redhat.com>
94021         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
94023 2008-04-06  Bruno Haible  <bruno@clisp.org>
94025         Avoid possible error with non-ASCII bytes in UTF-8 locales.
94026         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
94027         * tests/test-printf-posix.sh: Likewise.
94028         * tests/test-vfprintf-posix.sh: Likewise.
94029         * tests/test-vprintf-posix.sh: Likewise.
94030         * tests/test-xprintf-posix.sh: Likewise.
94032 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94034         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
94035         hide error from 'ls', needed on OS/2.
94036         Report by Elbert Pol <elbert.pol@gmail.com>.
94038 2008-04-04  Eric Blake  <ebb9@byu.net>
94040         Make test-fseeko.c failures meaningful.
94041         * tests/test-fseeko.c: Print line number on failure.
94042         * tests/test-fseek.c: Likewise.
94043         Reported by Nelson H. F. Beebe.
94045         Improve strtod bug detection check.
94046         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
94047         required for Solaris 10.
94048         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
94050 2008-04-04  Bruno Haible  <bruno@clisp.org>
94052         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
94053         by m4/setenv.m4.
94055 2008-04-03  Eric Blake  <ebb9@byu.net>
94057         Ensure sane .version contents.
94058         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
94059         version string.
94060         * build-aux/git-version-gen: Improve documentation.
94062         Make GNU make output nicer.
94063         * top/GNUmakefile [!_have-Makefile]: Add dependency on
94064         MAKECMDGOALS to enforce message for all command line targets.  Set
94065         srcdir for use in maint.mk.
94067         Another maintainer tweak.
94068         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
94069         a target that regenerates version.
94071 2008-04-03  Jim Meyering  <meyering@redhat.com>
94073         vc-list-files: don't cause coreutils "make po-check" failure
94074         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
94076 2008-04-03  Eric Blake  <ebb9@byu.net>
94078         Allow VPATH usage of vc-list-files.
94079         * build-aux/vc-list-files (scriptversion): Add timestamp.
94080         (options): Add --help, --version, -C.
94081         (CVS): Support installed cvsu.
94083 2008-04-02  Bruno Haible  <bruno@clisp.org>
94085         Avoid some "statement with no effect" warnings from gcc.
94086         * tests/test-wctype.c (main): Explicitly ignore unused values.
94087         Reported by Jim Meyering.
94089 2008-04-02  Jim Meyering  <meyering@redhat.com>
94091         Avoid some warnings from "gcc -Wshadow".
94092         * tests/test-frexp.c (exp): Define to a different identifier.
94093         * tests/test-frexpl.c (exp): Likewise.
94095 2008-04-03  Jim Meyering  <meyering@redhat.com>
94097         bootstrap: remove dangling *.[ch] symlinks from lib
94098         * build-aux/bootstrap [dangling symlink removal]: Move find's
94099         -depth option to precede all others, to avoid a warning.
94100         Remove *.[ch] files too, and from "$source_base" (usually lib/).
94102 2008-04-02  Bruno Haible  <bruno@clisp.org>
94104         Avoid some warnings from "gcc -Wshadow".
94105         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
94106         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
94107         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
94108         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
94109         Reported by Jim Meyering.
94111 2008-04-01  Bruno Haible  <bruno@clisp.org>
94113         Fix test to work on IRIX 6.5 with cc.
94114         * tests/test-math.c (numeric_equal): New function.
94115         (main): Use it.
94117 2008-04-01  Bruno Haible  <bruno@clisp.org>
94119         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
94121 2008-04-01  Bruno Haible  <bruno@clisp.org>
94123         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
94124         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94125         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
94126         (Depends-on): Remove math.
94128         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
94129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94130         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
94131         (Depends-on): Remove math.
94133         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
94134         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94135         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
94136         (Depends-on): Remove math.
94137         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
94138         (Depends-on): Remove math.
94140         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
94141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94142         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
94143         (Depends-on): Remove math.
94144         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
94145         (Depends-on): Remove math.
94147         * tests/test-round1.c: Include nan.h.
94148         (main): Use NaNd instead of NAN.
94149         * modules/round-tests (Files): Add tests/nan.h.
94151         * tests/test-trunc1.c: Include nan.h.
94152         (main): Use NaNd instead of NAN.
94153         * modules/trunc-tests (Files): Add tests/nan.h.
94155         * tests/test-roundf1.c: Include nan.h.
94156         (main): Use NaNf instead of NAN.
94157         * modules/roundf-tests (Files): Add tests/nan.h.
94159         * tests/test-truncf1.c: Include nan.h.
94160         (main): Use NaNf instead of NAN.
94161         * modules/truncf-tests (Files): Add tests/nan.h.
94163         * tests/test-ceilf1.c: Include nan.h.
94164         (main): Use NaNf instead of NAN.
94165         * modules/ceilf-tests (Files): Add tests/nan.h.
94167         * tests/test-floorf1.c: Include nan.h.
94168         (main): Use NaNf instead of NAN.
94169         * modules/floorf-tests (Files): Add tests/nan.h.
94171         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
94172         (main): Use NaNf instead of NAN.
94173         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
94175         * tests/test-isnand.c: Include nan.h instead of <math.h>.
94176         (main): Use NaNd instead of NAN.
94177         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
94179         * tests/test-frexp.c: Include nan.h.
94180         (main): Use NaNd instead of NAN.
94181         * modules/frexp-tests (Files): Add tests/nan.h.
94183         * lib/isnan.c: Don't include <math.h>.
94184         (FUNC): Don't use NAN macro.
94185         * modules/isnand-nolibm (Depends-on): Remove math.
94186         * modules/isnanf-nolibm (Depends-on): Remove math.
94187         * modules/isnanl (Depends-on): Remove math.
94188         * modules/isnanl-nolibm (Depends-on): Remove math.
94190         * tests/nan.h: New file.
94192 2008-04-01  Eric Blake  <ebb9@byu.net>
94194         Fix typos.
94195         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
94196         values to be the right type.
94198         For now, cater to gnulib strtod inaccuracies.
94199         * tests/test-strtod.c (main): Allow 1-ulp error on expected
94200         fractional results.  While not as nice from a QoI perspective, it
94201         is a quicker patch than correctly implementing decimal to binary
94202         rounding.
94204 2008-03-31  Eric Blake  <ebb9@byu.net>
94206         Guarantee a definition of NAN.
94207         * lib/math.in.h (NAN): Define if missing.
94208         * tests/test-math.c (main): Test it.
94209         * doc/posix-headers/math.texi (math.h): Document this.
94210         * lib/isnan.c (rpl_isnand): Use it.
94211         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
94212         * tests/test-floorf1.c (NaN): Likewise.
94213         * tests/test-frexp.c (NaN): Likewise.
94214         * tests/test-isnand.c (NaN): Likewise.
94215         * tests/test-isnanf.c (NaN): Likewise.
94216         * tests/test-round1.c (NaN): Likewise.
94217         * tests/test-roundf1.c (NaN): Likewise.
94218         * tests/test-snprintf-posix.h (NaN): Likewise.
94219         * tests/test-sprintf-posix.h (NaN): Likewise.
94220         * tests/test-trunc1.c (NaN): Likewise.
94221         * tests/test-truncf1.c (NaN): Likewise.
94222         * tests/test-vasnprintf-posix.c (NaN): Likewise.
94223         * tests/test-vasprintf-posix.c (NaN): Likewise.
94224         * modules/isnand-nolibm (Depends-on): Add math.
94225         * modules/isnanf-nolibm (Depends-on): Likewise.
94226         * modules/isnanl (Depends-on): Likewise.
94227         * modules/isnanl-nolibm (Depends-on): Likewise.
94228         * modules/snprintf-posix-tests (Depends-on): Likewise.
94229         * modules/sprintf-posix-tests (Depends-on): Likewise.
94230         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
94231         * modules/vsprintf-posix-tests (Depends-on): Likewise.
94232         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
94233         * modules/vasprintf-posix-tests (Depends-on): Likewise.
94235 2008-03-31  Bruno Haible  <bruno@clisp.org>
94237         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
94238         * doc/posix-functions/strtod.texi: Likewise.
94240 2008-03-31  Bruno Haible  <bruno@clisp.org>
94242         * tests/test-strtod.c (main): Don't use C99 syntax.
94244 2008-03-31  Bruno Haible  <bruno@clisp.org>
94246         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
94247         Reported by Eric Blake.
94249 2008-03-31  Jim Meyering  <meyering@redhat.com>
94251         Don't compare actual signbit return values.
94252         * tests/test-strtod.c (main): Rather, compare only their
94253         zero/non-zero nature.
94255 2008-03-31  Eric Blake  <ebb9@byu.net>
94257         More strtod documentation.
94258         * doc/posix-functions/strtod.texi (strtod): Interpret more test
94259         failures as distinct bugs.
94261 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
94263         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
94264         Problem reported by Erik Benada in
94265         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
94267 2008-03-30  Bruno Haible  <bruno@clisp.org>
94269         * tests/test-strtod.c: Add comments about which assertion fails on which
94270         platform.
94271         * doc/posix-functions/strtod.texi: Add info about many more platforms.
94273 2008-03-30  Eric Blake  <ebb9@byu.net>
94275         Test signbit behavior on zeros.
94276         * tests/test-signbit.c (test_signbitf): Add tests for zero.
94277         (test_signbitd, test_signbitl): Likewise.
94279         More strtod touchups.
94280         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
94281         sign of negative underflow, for now.  Use .5, not .1.
94282         * doc/posix-functions/strtod.texi (strtod): Mention these
94283         limitations.
94284         Reported by Jim Meyering.
94286 2008-03-30  Bruno Haible  <bruno@clisp.org>
94288         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
94289         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
94291 2008-03-30  Bruno Haible  <bruno@clisp.org>
94293         Avoid failure when attempting to return empty iconv results on some
94294         platforms.
94295         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
94296         allocation, don't report ENOMEM when the resulting string is empty.
94298 2008-03-30  Bruno Haible  <bruno@clisp.org>
94300         Fix buffer overrun.
94301         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
94302         Don't consider the width for tmp_length. Check count against tmp_length
94303         before doing the padding. Ensure enough allocation during padding.
94305 2008-03-30  Eric Blake  <ebb9@byu.net>
94307         strtod touchups.
94308         * lib/strtod.c (strtod): Avoid compiler warnings.
94309         Reported by Jim Meyering.
94311 2008-03-30  Bruno Haible  <bruno@clisp.org>
94313         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
94314         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
94315         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
94316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
94317         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
94318         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
94319         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
94320         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
94322         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
94323         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
94324         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
94325         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
94326         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
94327         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
94328         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
94329         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
94331         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
94332         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
94333         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
94334         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
94335         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
94336         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
94337         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
94338         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
94340         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
94341         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
94343         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
94344         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
94346         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
94347         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
94349         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
94350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
94351         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
94353         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
94354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
94355         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
94357         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
94358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
94359         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
94361         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
94362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
94363         * modules/vasprintf (Depends-on): Add EOVERFLOW.
94365         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
94366         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
94367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
94368         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
94369         (Depends-on): Add EOVERFLOW.
94370         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
94371         (Depends-on): Add EOVERFLOW.
94372         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
94373         (Depends-on): Add EOVERFLOW.
94374         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
94375         (Depends-on): Add EOVERFLOW.
94376         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94377         (Depends-on): Add EOVERFLOW.
94378         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94379         (Depends-on): Add EOVERFLOW.
94380         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
94381         (Depends-on): Add EOVERFLOW.
94382         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
94383         (Depends-on): Add EOVERFLOW.
94385         * lib/sprintf.c (EOVERFLOW): Remove fallback.
94386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
94387         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
94389         * lib/snprintf.c (EOVERFLOW): Remove fallback.
94390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
94391         * modules/snprintf (Depends-on): Add EOVERFLOW.
94393         * lib/poll.c (EOVERFLOW): Remove fallback.
94394         * modules/poll (Depends-on): Add EOVERFLOW.
94396         * lib/getugroups.c (EOVERFLOW): Remove fallback.
94397         * modules/getugroups (Depends-on): Add EOVERFLOW.
94399         * lib/getdelim.c (EOVERFLOW): Remove fallback.
94400         * modules/getdelim (Depends-on): Add EOVERFLOW.
94402         * lib/ftell.c (EOVERFLOW): Remove fallback.
94403         * modules/ftell (Depends-on): Add EOVERFLOW.
94405         * lib/fprintf.c (EOVERFLOW): Remove fallback.
94406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
94407         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
94409         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
94411         * modules/EOVERFLOW-tests: New file.
94412         * tests/test-EOVERFLOW.c: New file.
94414         * modules/EOVERFLOW: New file.
94415         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
94417 2008-03-30  Bruno Haible  <bruno@clisp.org>
94419         Fix bug introduced on 2007-06-10.
94420         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
94421         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
94423 2008-03-30  Bruno Haible  <bruno@clisp.org>
94425         Improve freadseek's efficiency after ungetc.
94426         * lib/freadseek.c: Include freadahead.h.
94427         (freadptrinc): New function, extracted from freadseek.
94428         (freadseek): Use it in a loop. Use freadahead to determine the number
94429         of loop iterations.
94430         * modules/freadseek (Depends-on): Add freadahead.
94431         (configure.ac): Require AC_C_INLINE.
94433 2008-03-30  Bruno Haible  <bruno@clisp.org>
94435         * lib/freadseek.c (freadseek): Don't ignore the return value of
94436         freadptr.
94438 2008-03-29  Eric Blake  <ebb9@byu.net>
94440         Add hex float support.
94441         * modules/strtod (Depends-on): Add c-ctype.
94442         (Link): Mention POW_LIB.
94443         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
94444         whitespace between 'e' and exponent.
94445         * tests/test-strtod.c (main): Enable hex float tests.
94446         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
94447         now provides.
94449         Document various strtod bugs, with some fixes.
94450         * doc/posix-functions/strtod.texi (strtod): Document bugs with
94451         "-0x", "inf", "nan", and hex constants.
94452         * doc/posix-functions/atof.texi (atof): Likewise.
94453         * modules/stdlib (Makefile.am): Support strtod.
94454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
94455         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
94456         detect additional strtod bugs.
94457         * lib/stdlib.in.h (rpl_strtod): Add declarations.
94458         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
94459         bool where appropriate.  Parse 'inf' and 'nan'.
94460         * tests/test-strtod.c: New file.
94461         * modules/strtod (Depends-on): Add stdbool, stdlib.
94462         (configure.ac): Turn on module indicator.
94463         * modules/strtod-tests: New module.
94465 2008-03-29  Eric Blake  <ebb9@byu.net>
94467         Fix ftell on mingw.
94468         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
94469         * modules/ftell-tests (Depends-on): Add binary-io.
94470         * modules/ftello-tests (Depends-on): Likewise.
94471         * tests/test-ftell.c (main): Enhance test to cover behavior after
94472         ungetc.  Enforce binary mode.
94473         * tests/test-ftello.c (main): Likewise.
94475         Pass test-freadseek on cygwin.
94476         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
94477         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
94478         ungetc buffer.
94480         * tests/test-fflush2.c (main): Fix typo.
94482 2008-03-29  Bruno Haible  <bruno@clisp.org>
94484         * tests/test-fflush2.c (main): Temporarily disable the contents of
94485         this test.
94486         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
94487         Reported by Eric Blake.
94489 2008-03-28  Simon Josefsson  <simon@josefsson.org>
94491         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
94492         (GC_SHA224_DIGEST_SIZE): Add.
94494         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
94495         (gc_hash_digest_length): Likewise.
94496         (gc_hash_buffer): Likewise.
94498 2008-03-25  Bruno Haible  <bruno@clisp.org>
94500         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
94501         detail which gettext release to use.
94502         Reported by Simon Josefsson.
94504 2008-03-26  Jim Meyering  <meyering@redhat.com>
94506         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
94507         * modules/gnumakefile (clean-GNUmakefile): Also, use
94508         test ... && ... || : syntax rather than if-then ... fi.
94510         gnumakefile: Don't double-quote-expand $(VPATH) value.
94511         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
94513 2008-03-24  Eric Blake  <ebb9@byu.net>
94515         Alter GNUmakefile to install into top directory.
94516         * modules/maintainer-makefile: Split, and add dependency...
94517         * modules/gnumakefile: to this new module.
94518         * build-aux/GNUmakefile: Move...
94519         * top/GNUmakefile: ...here.
94520         * build-aux/maint.mk: Move...
94521         * top/maint.mk: ...here.
94522         * MODULES.html.sh (Support for maintaining...): Document new
94523         module.
94525 2008-03-23  Bruno Haible  <bruno@clisp.org>
94527         * gnulib-tool: New options --vc-files, --no-vc-files.
94528         (func_usage): Document them.
94529         (vc_files): New variable.
94530         (func_import): Consider vc_files.
94531         (func_create_testdir): Set vc_files to empty.
94532         Suggested by Jim Meyering and Karl Berry.
94534 2008-03-23  Bruno Haible  <bruno@clisp.org>
94536         Fix regex compilation error on HP-UX 11.
94537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
94538         * modules/regex (Files): Add m4/mbstate_t.m4.
94539         Reported by Ton Voon <ton.voon@altinity.com>.
94541 2008-03-23  Bruno Haible  <bruno@clisp.org>
94543         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
94545 2008-03-23  Eric Blake  <ebb9@byu.net>
94546             Bruno Haible  <bruno@clisp.org>
94548         Install files from top/ in the destination directory.
94549         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
94550         augmentation also for the files from top/.
94551         (func_import, func_create_testdir): Rewrite file names:
94552         top/filename -> filename.
94554 2008-03-23  Bruno Haible  <bruno@clisp.org>
94556         Tweak "gnulib --version" output.
94557         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
94559 2008-03-23  Bruno Haible  <bruno@clisp.org>
94561         Tweak "gnulib --version" output.
94562         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
94563         rather than contents of ChangeLog, when possible.
94565 2008-03-21  Eric Blake  <ebb9@byu.net>
94567         More --version tweaks.
94568         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
94569         date of last ChangeLog entry.
94571 2008-03-21  Jim Meyering  <meyering@redhat.com>
94573         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
94575 2008-03-20  Eric Blake  <ebb9@byu.net>
94577         VPATH fix.
94578         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
94580 2008-03-20  Simon Josefsson  <simon@josefsson.org>
94582         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
94583         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
94585 2008-03-20  Eric Blake  <ebb9@byu.net>
94587         Sync GNUmakefile with coreutils.
94588         * build-aux/GNUmakefile (have-Makefile): Rename...
94589         (_have-Makefile): ...to this, for namespace consideration.
94590         (GNUmakefile.cfg): Include, if present.
94591         (_autoreconf): Define a default.
94592         (_is-dist-target): New rule for rebuilds to pick up intra-release
94593         version.
94594         (maint-cfg.mk): Rename...
94595         (cfg.mk): ...to this.
94597 2008-03-18  Jim Meyering  <meyering@redhat.com>
94599         New script and module: mktempd
94600         * MODULES.html.sh (maint+release support): Add mktempd.
94601         * build-aux/mktempd: New file.
94602         * modules/mktempd: New file.
94604 2008-03-15  Jim Meyering  <meyering@redhat.com>
94606         Undo last change.
94607         * lib/sha1.c, lib/md5.c: 63 != ~63.
94608         Reported by Andreas Schwab.
94610         sha1.c, md5.c: Hoist a redundant expression.
94611         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
94612         "ctx->buflen" only once, before calling *_process_block.
94613         * lib/md5.c (md5_process_bytes): Likewise.
94615 2008-03-14  Eric Blake  <ebb9@byu.net>
94617         Bump copyright year in files generated by gnulib-tool.
94618         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
94619         gnulib-tool, rather than hard-coding it.
94621         Fix 'gnulib-tool --version' output to work with git.
94622         * gnulib-tool (func_gnulib_dir): New function, extracted from...
94623         (startup): ...here.
94624         (func_version): Use it to invoke git-version-gen, rather than
94625         relying on CVS keyword expansion.  Modernize wording.
94626         (cvsdatestamp, last_checkin_date, version): Kill unused
94627         variables.
94629 2008-03-12  Jim Meyering  <meyering@redhat.com>
94631         Recognize optional cast of the argument to free.
94632         * build-aux/useless-if-before-free: Update regexps.
94634         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
94636 2008-03-11  Bruno Haible  <bruno@clisp.org>
94638         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
94639         by a single package.
94640         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
94641         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
94642         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
94643         Reported by Sam Steingold <sds@gnu.org>.
94645 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94647         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
94648         repositories.
94650 2008-03-11  Bruno Haible  <bruno@clisp.org>
94652         Avoid conflicts between local macro definitions.
94653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94654         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
94656 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
94657             Bruno Haible  <bruno@clisp.org>
94659         Make va_copy work with some version of xlc on AIX 5.1.
94660         * lib/stdarg.in.h: New file.
94661         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
94662         On AIX, use a <stdarg.h> file substitute.
94663         * modules/stdarg (Files): Add lib/stdarg.in.h.
94664         (Depends-on): Add include_next.
94665         (Makefile.am): Build a stdarg.h substitute if requested.
94666         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
94668 2008-03-10  Bruno Haible  <bruno@clisp.org>
94670         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
94671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
94672         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
94674 2008-03-10  Bruno Haible  <bruno@clisp.org>
94676         * modules/stdlib (Depends-on): Add include_next, remove
94677         absolute-header.
94679 2008-03-09  Bruno Haible  <bruno@clisp.org>
94681         * lib/freadahead.h (freadahead): Document more precisely.
94682         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
94683         the sum of both buffer sizes.
94684         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
94685         * NEWS: Document the change.
94687 2008-03-09  Bruno Haible  <bruno@clisp.org>
94689         Extend freadptr to return also the buffer size.
94690         * lib/freadptr.h (freadptr): Add sizep argument.
94691         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
94692         (freadptr): Add sizep argument. Determine buffer size like freadahead
94693         does.
94694         * tests/test-freadptr.c: Don't include freadahead.h.
94695         (main): Adapt for new calling convention of freadptr.
94696         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
94697         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
94698         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
94699         tests/test-freadptr2.sh.
94700         (Depends): Remove freadahead.
94701         (TESTS): Add test-freadptr2.sh.
94702         (check_PROGRAMS): Add test-freadptr2.
94704 2008-03-09  Bruno Haible  <bruno@clisp.org>
94706         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
94707         Report and solution by Simon Josefsson.
94709 2008-03-06  Bruno Haible  <bruno@clisp.org>
94711         Make fflush after ungetc work on BSD platforms.
94712         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
94713         * tests/test-fflush2.c: New file.
94714         * tests/test-fflush2.sh: New file.
94715         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
94716         tests/test-fflush2.c.
94717         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
94718         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
94720 2008-03-06  Eric Blake  <ebb9@byu.net>
94722         Likewise for ftello.
94723         * modules/ftello (Dependencies): Add extensions.
94724         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
94726 2008-03-06  Bruno Haible  <bruno@clisp.org>
94728         * modules/fseeko (Dependencies): Add extensions.
94729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
94730         Needed on glibc systems.
94732 2008-03-06  Bruno Haible  <bruno@clisp.org>
94734         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
94735         email address.
94736         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
94738 2008-03-06  Bruno Haible  <bruno@clisp.org>
94740         * users.txt: Add libgnupdf.
94742 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
94744         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
94745         (Header File Substitutes, Function Substitutes,
94746         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
94747         (Build robot for gnulib): Fix typo.
94749 2008-03-06  Bruno Haible  <bruno@clisp.org>
94751         * doc/gnulib-tool.texi (VCS Issues): Small updates.
94752         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
94754 2008-03-06  Bruno Haible  <bruno@clisp.org>
94756         * doc/func.texi: New file, extracted from doc/gnulib.texi.
94757         * doc/gnulib.texi: Include it.
94759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
94761         * modules/func (License): Change license to unlimited; there was
94762         no LGPL parts in the module anyway.
94764 2008-03-06  Simon Josefsson  <simon@josefsson.org>
94766         * modules/__func__: Renamed to modules/func.
94767         * modules/__func__-tests: Renamed to modules/func-tests.
94768         * tests/test-__func__.c: Renamed to tests/test-func.c.
94769         * m4/__func__.m4: Renamed to m4/func.m4.
94770         * doc/gnulib.texi (__func__): Section renamed to func.
94771         Suggested by Eric Blake <ebb9@byu.net>.
94773 2008-03-06  Simon Josefsson  <simon@josefsson.org>
94775         * doc/gnulib.texi (__func__): Use C99 terminology when talking
94776         about __func__.  Make example self-contained.  Suggested by Eric
94777         Blake <ebb9@byu.net>.
94779         * tests/test-__func__.c (main): Avoid extraneous () around __func.
94780         Suggested by Eric Blake <ebb9@byu.net>.
94782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
94784         * modules/__func__: New file.
94785         * modules/__func__-tests: New file.
94786         * tests/test-__func__.c: New file.
94787         * m4/__func__.m4: New file.
94788         * doc/gnulib.texi (__func__): Document __func__ module.
94790 2008-03-05  Simon Josefsson  <simon@josefsson.org>
94792         * modules/byteswap (License): Re-license as LGPLv2+.
94794 2008-03-05  Simon Josefsson  <simon@josefsson.org>
94796         * doc/Makefile: Add pdf target.
94798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
94800         * modules/inline (License): Use 'unlimited', since there are only
94801         *.m4 files in this module.
94803 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
94804             Bruno Haible  <bruno@clisp.org>
94806         Add support for HP C 7.1 on OpenVMS 8.3.
94807         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
94809 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
94811         Update VMS specifics.
94812         * lib/getopt.c [VMS]: Remove include of unixlib.h.
94814 2008-03-02  Jim Meyering  <meyering@redhat.com>
94816         Remove the last dependency on the "free" module.
94817         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
94818         Reported by Bob Proulx.
94820         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
94822         Remove useless "if" tests before free.  Deprecate "free" module.
94823         * doc/posix-functions/free.texi: Mention that this
94824         module is no longer useful.
94825         * modules/free (Notice): Say this module is obsolete.
94826         * modules/readutmp (Depends-on): Remove free.
94827         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
94828         * lib/putenv.c (putenv): Likewise.
94829         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
94830         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
94831         * tests/test-c-strcasestr.c (main): Likewise.
94832         * tests/test-c-strstr.c (main): Likewise.
94833         * tests/test-mbscasestr1.c (main): Likewise.
94834         * tests/test-mbscasestr2.c (main): Likewise.
94835         * tests/test-mbsstr1.c (main): Likewise.
94836         * tests/test-mbsstr2.c (main): Likewise.
94837         * tests/test-memmem.c (main): Likewise.
94838         * tests/test-strcasestr.c (main): Likewise.
94839         * tests/test-striconv.c (main): Likewise.
94840         * tests/test-striconveh.c (main): Likewise.
94841         * tests/test-striconveha.c (main): Likewise.
94842         * tests/test-strstr.c (main): Likewise.
94844         * build-aux/git-version-gen: Adjust a comment and the Usage string.
94846         bootstrap: sync from coreutils again
94847         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
94849 2008-03-01  Jim Meyering  <meyering@redhat.com>
94851         bootstrap: sync from coreutils
94852         * build-aux/bootstrap (update_po_files): Copy a .po file into place
94853         also when the target doesn't exist.
94855 2008-03-01  Eric Blake  <ebb9@byu.net>
94857         Fix bugs in last patch.
94858         * lib/memchr2.c (memchr2): Fix typo.
94859         * tests/test-memchr2.c: Test previous bug, and don't use GNU
94860         extension.
94861         Reported by Bruce Korb.
94863         New module 'memchr2'.
94864         * modules/memchr2: New file.
94865         * modules/memchr2-tests: Likewise.
94866         * lib/memchr2.h: Likewise.
94867         * lib/memchr2.c: Likewise, based on memchr.c.
94868         * tests/test-memchr2.c: New test.
94869         * MODULES.html.sh (String handling): Add memchr2.
94871 2008-02-29  Bruno Haible  <bruno@clisp.org>
94873         * modules/freadseek-tests: New file.
94874         * tests/test-freadseek.sh: New file.
94875         * tests/test-freadseek.c: New file.
94877         New module 'freadseek'.
94878         * modules/freadseek: New file.
94879         * lib/freadseek.h: New file.
94880         * lib/freadseek.c: New file.
94881         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
94883 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
94885         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
94886         wydawca.
94888         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
94889         program_invocation_name and program_invocation_short_name are
94890         present.
94892 2008-02-28  Bruno Haible  <bruno@clisp.org>
94894         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
94895         * tests/test-freadptr.sh: Also test non-seekable stdin.
94897 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
94899         * build-aux/bootstrap (source_base, m4_base)
94900         (doc_base, tests_base): New variables.
94901         (gnulib_tool_options): Do not hardcode base directories, use
94902         the above variables instead.
94904 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
94906         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
94908 2008-02-28  Bruno Haible  <bruno@clisp.org>
94910         * modules/freadptr-tests: New file.
94911         * tests/test-freadptr.sh: New file.
94912         * tests/test-freadptr.c: New file.
94914         New module 'freadptr'.
94915         * modules/freadptr: New file.
94916         * lib/freadptr.h: New file.
94917         * lib/freadptr.c: New file.
94918         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
94920 2008-02-26  Karl Berry  <karl@freefriends.org>
94922         Sync from Libtool:
94923         * libltdl/argz.c (argz_add, argz_count): New functions.
94924         * libltdl/argz.in.h: Declare them.
94925         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
94927 2008-02-22  Bruno Haible  <bruno@clisp.org>
94929         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
94930         is a pointer type.  Needed for HP-UX 10.
94931         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
94932         * doc/posix-functions/gmtime_r.texi: Likewise.
94933         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
94935 2008-02-24  Bruno Haible  <bruno@clisp.org>
94937         * modules/environ-tests: New file.
94938         * tests/test-environ.c: New file.
94940         New module 'environ'.
94941         * modules/environ: New file.
94942         * lib/unistd.in.h (environ): New declaration.
94943         * m4/environ.m4: New file.
94944         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
94945         after use.
94946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
94947         HAVE_DECL_ENVIRON.
94948         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
94949         HAVE_DECL_ENVIRON.
94950         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
94951         wrong claim that 'environ' is missing on some systems.
94952         * modules/execute (Depends-on): Add environ.
94953         * lib/execute.c (environ): Remove fallback declaration.
94954         * modules/pipe (Depends-on): Add environ.
94955         * lib/pipe.c (environ): Remove fallback declaration.
94956         * modules/setenv (Depends-on): Add environ.
94957         * lib/setenv.c (environ): Remove fallback declaration.
94958         * modules/unsetenv (Depends-on): Add environ.
94959         * lib/unsetenv.c (environ): Remove fallback declaration.
94960         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
94961         m4/environ.m4.
94962         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
94963         (gl_PREREQ_UNSETENV): Likewise.
94965 2008-02-24  Bruno Haible  <bruno@clisp.org>
94967         * doc/posix-functions/environ.texi: Document the MacOS X problem.
94969 2008-02-20  Bob Proulx  <bob@proulx.com>
94971         Enable use of older two part flavor 'git describe'.
94972         * build-aux/git-version-gen: If using the older two part flavor of
94973         git version then recreate the third part now present in the
94974         newer three part flavor of git describe.
94976 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
94978         * lib/fts.c (fts_build): Typo correction to comment.
94980 2008-02-17  Bruno Haible  <bruno@clisp.org>
94982         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
94983         generating no-op conflicts.
94985 2008-02-17  Bruno Haible  <bruno@clisp.org>
94987         Speed up by 10%.
94988         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
94989         result_entries, rather than an index-based loop.
94991 2008-02-17  Bruno Haible  <bruno@clisp.org>
94993         Speed up by 25%.
94994         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
94995         'hashcode_cached'.
94996         (entry_create): New function.
94997         (entry_hashcode): Use the cached hashcode if possible.
94998         (read_changelog_file, try_split_merged_entry): Use entry_create.
95000 2008-02-17  Bruno Haible  <bruno@clisp.org>
95002         Speed up from O(n^2) to O(n) for long ChangeLog files.
95003         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
95004         (read_changelog_file): Change implementation of entries_reversed list
95005         to rbtreehash.
95006         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
95008 2008-02-17  Bruno Haible  <bruno@clisp.org>
95010         New option --split-merged-entry.
95011         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
95012         (find_paragraph_end, try_split_merged_entry): New functions.
95013         (long_options): Add option --split-merged-entry.
95014         (usage): Document option --split-merged-entry.
95015         (main): Implement option --split-merged-entry.
95016         Reported by Eric Blake.
95018 2008-02-17  Bruno Haible  <bruno@clisp.org>
95020         * lib/git-merge-changelog.c: Include c-strstr.h.
95021         (main): Support the "git pull --rebase" situation.
95022         * modules/git-merge-changelog (Depends-on): Add c-strstr.
95023         Reported by Eric Blake.
95025 2008-02-16  Eric Blake  <ebb9@byu.net>
95027         Avoid doubling \ in common case of "c-maybe" quoting style.
95028         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
95029         eliding outer quotes.
95030         * lib/quotearg.h: Document this.
95031         * tests/test-quotearg.c (result_strings, inputs, results_g)
95032         (flag_results, locale_results): Test it by adding a new string to
95033         each test group.
95034         (compare_strings): Test new string.
95036 2008-02-13  Eric Blake  <ebb9@byu.net>
95038         Avoid trigraph quoting in default output.
95039         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
95040         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
95041         unless explicitly requested.
95042         * tests/test-quotearg.c (flag_results, main): Add additional tests.
95044 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
95046         Don't rely on signed integer overflowing to negative value.
95047         * lib/getugroups.c (getugroups): Include <limits.h>.
95048         Instead, compare against INT_MAX, and increment only if the test passes.
95050 2008-02-13  Jim Meyering  <meyering@redhat.com>
95051         and Eric Blake  <ebb9@byu.net>
95053         Avoid shadowing warning and compile errors on Linux.
95054         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
95055         forwarding macros on Linux.
95056         (dcgettext): Define a stub, for Linux.
95057         (results_g, main): Avoid warnings.
95059 2008-02-12  Eric Blake  <ebb9@byu.net>
95061         Silence warning in last patch.
95062         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
95064         Quotearg part 4: add tests, fix c-maybe colon quoting.
95065         * lib/quotearg.h: Improve documentation.
95066         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
95067         escapes when adding outer quotes.  When quoting trigraphs, use
95068         valid C notation.  When quoting NUL, omit extra characters if next
95069         character is not digit.  Alter prototype.
95070         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
95071         callers.
95072         * modules/quotearg-tests: New module.
95073         * tests/test-quotearg.c: New test.
95075 2008-02-07  Eric Blake  <ebb9@byu.net>
95077         Quotearg part 3: add flag to control outer quote elision.
95078         * lib/quotearg.h (c_maybe_quoting_style): New style.
95079         (enum quoting_flags): Better documentation of flags.
95080         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
95081         c-maybe style.
95082         (quotearg_buffer_restyled): Handle new flag to elide outer
95083         quotes.
95085         Quotearg part 2: add flag that can control NUL elision.
95086         * lib/quotearg.h (set_quoting_flags): New prototype.
95087         * lib/quotearg.c (struct quoting_options): Add flag field.
95088         (set_quoting_flags): New function.
95089         (quotearg_buffer_restyled): Add flags parameter.
95090         (quotearg_alloc_mem): Set the flag if length cannot be returned.
95091         (quotearg_n_options): Set the flag, since length cannot be
95092         returned.
95093         (quoting_options_from_style): Default flags correctly.
95095         Quotearg part 1: more wrappers, restore quotearg_char state.
95096         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
95097         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
95098         (quotearg_colon_mem): New wrappers.
95099         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
95100         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
95101         functions.
95102         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
95103         (quotearg_colon_mem): New functions.
95105 2008-02-11  Bruno Haible  <bruno@clisp.org>
95107         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
95108         library in the current directory: it does not work with parallel make.
95109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95111 2008-02-11  Bruno Haible  <bruno@clisp.org>
95113         * .gitattributes: New file.
95115 2008-02-11  Jim Meyering  <meyering@redhat.com>
95117         useless-if-before-free: Fix reversed exit values.
95118         * build-aux/useless-if-before-free: Use correct values
95119         for EXIT_MATCH and EXIT_NO_MATCH.
95121         * build-aux/useless-if-before-free: Close stdout carefully.
95123 2008-02-10  Bruno Haible  <bruno@clisp.org>
95125         New module 'git-merge-changelog'.
95126         * modules/git-merge-changelog: New file.
95127         * lib/git-merge-changelog.c: New file.
95129 2008-02-10  Jim Meyering  <meyering@redhat.com>
95131         useless-if-before-free: New option: --list (-l).
95133         useless-if-before-free: Don't exit immediately upon open failure.
95134         * build-aux/useless-if-before-free: Exit 2 for errors.
95135         Upon failure to open a file, don't exit immediately.
95136         Rather, just warn and continue with any remaining files.
95138 2008-02-10  Bruno Haible  <bruno@clisp.org>
95140         New abstract list operation 'node_set_value'.
95141         * lib/gl_list.h (gl_list_node_set_value): New function.
95142         (struct gl_list_implementation): New field node_set_value.
95143         * lib/gl_list.c (gl_list_node_set_value): New function.
95144         * lib/gl_array_list.c (gl_array_node_set_value): New function.
95145         (gl_array_list_implementation): Update.
95146         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
95147         (gl_carray_list_implementation): Update.
95148         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
95149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95151         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
95152         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95153         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95155         Update.
95156         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
95157         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
95158         (gl_sublist_list_implementation): Update.
95160 2008-02-10  Bruno Haible  <bruno@clisp.org>
95162         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
95163         Needed when ELEMENT is #defined to 'some_type *'.
95165 2008-02-10  Jim Meyering  <meyering@redhat.com>
95167         New script and module: useless-if-before-free
95168         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
95169         * build-aux/useless-if-before-free: New file.
95170         * modules/useless-if-before-free: New file.
95172         * build-aux/gitlog-to-changelog: Use committer date, not author date.
95174         xstrtol_error: Fix typo.
95175         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
95176         s/exit_failure/exit_status/.
95178 2008-02-09  Jim Meyering  <meyering@redhat.com>
95180         New script and module: gitlog-to-changelog
95181         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
95182         * modules/gitlog-to-changelog: New file.
95183         * build-aux/gitlog-to-changelog: New file.
95185 2008-02-08  Jim Meyering  <meyering@redhat.com>
95187         Avoid two "parameter unused" warnings.
95188         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
95189         Mark "st" as used.
95191         Use "git COMMAND", not "git-COMMAND".
95192         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
95193         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
95194         * build-aux/git-version-gen: Use "git status", not "git-status".
95196 2008-02-07  Bruno Haible  <bruno@clisp.org>
95198         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
95199         Avoids a crash on Windows Vista.
95200         Reported by Adam Strzelecki <ono@java.pl> via
95201         Simon Josefsson <simon@josefsson.org>.
95203 2008-02-06  Bruno Haible  <bruno@clisp.org>
95205         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
95206         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
95207         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
95208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
95209         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95211         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
95212         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
95213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95220         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
95221         left-adjust flag.
95222         * tests/test-snprintf-posix.h (test_function): Likewise.
95223         * tests/test-sprintf-posix.h (test_function): Likewise.
95224         * tests/test-vasprintf-posix.c (test_function): Likewise.
95225         * doc/posix-functions/fprintf.texi: Update.
95226         * doc/posix-functions/printf.texi: Update.
95227         * doc/posix-functions/snprintf.texi: Update.
95228         * doc/posix-functions/sprintf.texi: Update.
95229         * doc/posix-functions/vfprintf.texi: Update.
95230         * doc/posix-functions/vprintf.texi: Update.
95231         * doc/posix-functions/vsnprintf.texi: Update.
95232         * doc/posix-functions/vsprintf.texi: Update.
95233         Reported by Peter Fales <psfales@alcatel-lucent.com>.
95235 2008-02-06  Bruno Haible  <bruno@clisp.org>
95237         Fix bug introduced on 2008-01-26.
95238         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
95240 2008-02-06  Bruno Haible  <bruno@clisp.org>
95242         Fix bug introduced on 2007-06-10.
95243         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
95244         !NEED_PRINTF_FLAG_ZERO.
95246 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
95248         getloadavg: use libperfstat on AIX5
95249         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
95251 2008-02-03  Bruno Haible  <bruno@clisp.org>
95253         * lib/diffseq.h: Add comments about required #includes.
95254         Reported by Michael Biggs <gnulib@doubleplum.net>.
95256 2008-02-01  Bruno Haible  <bruno@clisp.org>
95258         * users.txt: Add gnuit.
95260 2008-01-31  Bruno Haible  <bruno@clisp.org>
95262         * lib/md4.c (set_uint32): Mark as inline.
95263         * lib/md5.c (set_uint32): Likewise.
95264         * lib/sha1.c (set_uint32): Likewise.
95265         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
95266         * m4/md5.m4 (gl_MD5): Likewise.
95267         * m4/sha1.m4 (gl_SHA1): Likewise.
95269 2008-01-31  Jim Meyering  <meyering@redhat.com>
95271         Use "sizeof VAR", rather than a literal "4".
95272         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
95273         * lib/md4.c (md4_read_ctx): Likewise.
95274         * lib/sha1.c (sha1_read_ctx): Likewise.
95276 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95278         * tests/test-sha1.c: New file, based on test-md5.c.
95280         * modules/crypto/sha1-tests: New file.
95282 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95284         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
95286 2008-01-31  Jim Meyering  <meyering@redhat.com>
95288         Prefer "sizeof v" over the equivalent "4".
95289         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
95290         * lib/md5.c (set_uint32): Likewise.
95291         * lib/sha1.c (set_uint32): Likewise.
95293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95295         * lib/sha1.c (set_uint32): Mark function as static.
95297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95299         md2: clarify comments to say that alignment is not required.
95300         * lib/md2.h: Remove warning about alignment in comment.
95301         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
95302         never been required.
95304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95306         md4: adapt alignment constraint fix from sha1.
95307         * lib/md4.c (set_uint32): New function, from sha1.c
95308         (md4_read_ctx): Use it.
95309         (md4_finish_ctx): Doc fix.
95310         * lib/md4.h: Doc fix.
95312 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95314         md5: adapt alignment constraint fix from sha1.
95315         * lib/md5.c (set_uint32): New function, from sha1.c
95316         (md5_read_ctx): Use it.
95317         (md5_finish_ctx): Doc fix.
95318         * lib/md5.h: Doc fix.
95320 2008-01-30  Peter Palfrader  <weasel@debian.org>
95322         sha1: remove the result buffer alignment constraint
95323         * lib/sha1.c (set_uint32): New function.
95324         (sha1_read_ctx): Rewrite to remove the result buffer alignment
95325         constraint.
95326         (sha1_finish_ctx): Remove comment warning about alignment constraint.
95327         * lib/sha1.h: Likewise.
95329 2008-01-30  Andreas Schwab  <schwab@suse.de>
95330             Bruno Haible  <bruno@clisp.org>
95332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
95333         correct definition of LDBL_MIN_EXP.
95335 2008-01-30  Karl Berry  <karl@gnu.org>
95337         * config/srclist-update: try to preserve x bit on updates.
95338         * config/srclistvars.sh: update for karl.
95340 2008-01-29  Jim Meyering  <meyering@redhat.com>
95342         vasnprintf.c: Avoid warning about unused label
95343         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
95344         "overflow" label definition and associated code with the
95345         same cpp condition that guards the sole use of that label.
95347 2008-01-26  Bruno Haible  <bruno@clisp.org>
95349         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
95350         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
95351         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
95352         * lib/isnanl-nolibm.h (isnanl): Likewise.
95353         Reported by Paul Eggert <eggert@cs.ucla.edu>.
95355 2008-01-26  Bruno Haible  <bruno@clisp.org>
95357         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
95358         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
95360 2008-01-26  Bruno Haible  <bruno@clisp.org>
95362         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
95363         GCC >= 4.0 built-in.
95364         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
95366 2008-01-26  Bruno Haible  <bruno@clisp.org>
95368         Rename isnan, applicable to 'double' only, to isnand.
95369         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
95370         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
95371         (configure.ac): Update.
95372         (Include): Replace "isnan.h" with "isnand.h".
95373         * m4/isnand.m4: Renamed from m4/isnan.m4.
95374         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
95375         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
95376         instead of isnan.c.
95377         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
95378         instead of HAVE_ISNAN_IN_LIBC.
95379         (isnand): Renamed from isnan.
95380         * lib/isnand.c: New file.
95381         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
95382         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
95383         (Makefile.am): Update.
95384         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
95385         Include isnand.h instead of isnan.h.
95386         (main): Test isnand instead of isnan.
95387         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
95388         isnan-nolibm.
95389         * modules/frexp (Depends-on): Likewise.
95390         * modules/frexp-tests (Depends-on): Likewise.
95391         * modules/frexp-nolibm (Depends-on): Likewise.
95392         * modules/frexp-nolibm-tests (Depends-on): Likewise.
95393         * modules/isfinite (Depends-on): Likewise.
95394         * modules/round-tests (Depends-on): Likewise.
95395         * modules/signbit (Depends-on): Likewise.
95396         * modules/signbit-tests (Depends-on): Likewise.
95397         * modules/snprintf-posix (Depends-on): Likewise.
95398         * modules/sprintf-posix (Depends-on): Likewise.
95399         * modules/trunc-tests (Depends-on): Likewise.
95400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95407         * modules/vasnprintf-posix (Depends-on): Likewise.
95408         * modules/vasprintf-posix (Depends-on): Likewise.
95409         * modules/vfprintf-posix (Depends-on): Likewise.
95410         * modules/vsnprintf-posix (Depends-on): Likewise.
95411         * modules/vsprintf-posix (Depends-on): Likewise.
95412         * lib/frexp.c: Include isnand.h instead of isnan.h.
95413         (ISNAN): Set to isnand instead of isnan.
95414         * lib/isfinite.c: Include isnand.h instead of isnan.h.
95415         (gl_isfinited): Use isnand instead of isnan.
95416         * lib/signbitd.c: Include isnand.h instead of isnan.h.
95417         (gl_signbitd): Use isnand instead of isnan.
95418         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
95419         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
95420         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
95421         (main): Use isnand instead of isnan.
95422         * tests/test-round1.c: Include isnand.h.
95423         (main): Use isnand instead of isnan.
95424         * tests/test-round2.c: Include isnand.h instead of isnan.h.
95425         (ISNAN): Set to isnand instead of isnan.
95426         * tests/test-trunc1.c: Include isnand.h.
95427         (main): Use isnand instead of isnan.
95428         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
95429         (equal): Use isnand instead of isnan.
95430         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
95431         isnand-nolibm.
95432         * NEWS: Mention the change.
95434 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
95435             Bruno Haible  <bruno@clisp.org>
95437         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
95438         the GCC builtins for signbits are present and set
95439         REPLACE_SIGNBIT_USING_GCC if so.
95440         * lib/math.in.h (signbit): Define using GCC builtins if
95441         REPLACE_SIGNBIT_USING_GCC is set.
95442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
95443         REPLACE_SIGNBIT_USING_GCC.
95444         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
95446 2008-01-25  Jim Meyering  <meyering@redhat.com>
95448         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
95449         * lib/poll.c: Include <config.h>, not "config.h".
95450         * tests/test-getaddrinfo.c: Likewise.
95452 2008-01-25  Simon Josefsson  <simon@josefsson.org>
95454         * modules/sockets-tests: New file.
95456 2008-01-24  Simon Josefsson  <simon@josefsson.org>
95458         * modules/sockets: New module, can be used to call WSA_Startup and
95459         WSA_Cleanup when needed.
95461         * lib/sockets.h, lib/sockets.c: New files.
95463         * m4/sockets.m4: New file.
95465         * tests/test-sockets.c: New file.
95467 2008-01-19  Bruno Haible  <bruno@clisp.org>
95469         * doc/posix-headers: Renamed from doc/headers.
95470         * doc/posix-functions: Renamed from doc/functions.
95471         * doc/gnulib.texi: Update.
95473 2008-01-19  Bruno Haible  <bruno@clisp.org>
95475         * doc/glibc-functions/strcasestr.texi: Include contents of
95476         doc/functions/strcasestr.texi, fixing the list of platforms.
95477         * doc/functions/strcasestr.texi: Remove file.
95479 2008-01-19  Bruno Haible  <bruno@clisp.org>
95481         * doc/glibc-functions/memmem.texi: Include contents of
95482         doc/functions/memmem.texi.
95483         * doc/functions/memmem.texi: Remove file.
95485 2008-01-18  Bruno Haible  <bruno@clisp.org>
95487         * doc/glibc-functions/*.texi: New files.
95488         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
95489         to use the new files.
95491 2008-01-17  Bruno Haible  <bruno@clisp.org>
95493         * tests/test-gethostname.c (main): Fix printf statement.
95495 2008-01-17  Simon Josefsson  <simon@josefsson.org>
95497         * modules/gethostname-tests: New file.
95499         * tests/test-gethostname.c: New file.
95501 2008-01-17  Simon Josefsson  <simon@josefsson.org>
95503         * lib/gethostname.c: Include string.h unconditionally, strncpy is
95504         used by the UNAME case.  Reported by Bruno Haible
95505         <bruno@clisp.org>.
95507 2008-01-17  Eric Blake  <ebb9@byu.net>
95509         Convert c-strcasestr to be more efficient.
95510         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
95511         (Depends-on): Add c-strcase, remove malloca, strnlen.
95512         * tests/test-c-strcasestr.c (main): Enhance test.
95513         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
95515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
95517         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
95518         Use it in creating po/Makevars.
95520 2008-01-15  Simon Josefsson  <simon@josefsson.org>
95522         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
95523         Applications that requires it should initialize libgcrypt
95524         manually.
95526 2008-01-16  Simon Josefsson  <simon@josefsson.org>
95528         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
95530 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
95532         Fix problem with getdate on mingw32 reported by Simon Josefsson
95533         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
95534         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
95535         tzname", when deciding whether to declare tzname.
95536         * lib/strftime.c (tzname): Likewise.
95538 2008-01-15  Bruno Haible  <bruno@clisp.org>
95540         Work around a MacOS X 10.5 bug in frexpl().
95541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
95542         * doc/functions/frexpl.texi: Document the bug.
95543         Reported by Elias Pipping <pipping@gentoo.org>.
95545 2008-01-14  Eric Blake  <ebb9@byu.net>
95547         Touch up previous patch.
95548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
95549         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
95551         Convert strcasestr module to use Two-Way algorithm.
95552         * modules/strcasestr-simple: New module, based on the old
95553         strcasestr, but with Two-Way rather than KMP.
95554         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
95555         * lib/string.in.h (rpl_strcasestr): Declare.
95556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
95557         performance.
95558         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
95559         * modules/string (Makefile.am): Support strcasestr.
95560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
95561         * modules/strcasestr-tests (Depends-on): Check for alarm.
95562         * tests/test-strcasestr.c: Augment test.
95563         * lib/str-two-way.h: Clean up stray macro.
95564         * NEWS: Document new module.
95565         * MODULES.html.sh (string handling): Likewise.
95566         * doc/functions/strcasestr.texi: New file.
95567         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
95568         here, since it is not a POSIX function.
95570 2008-01-14  Colin Watson  <cjwatson@debian.org>
95571             Bruno Haible  <bruno@clisp.org>
95573         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
95574         works fine; if not, set REPLACE_STRSIGNAL.
95575         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
95576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
95577         REPLACE_STRSIGNAL.
95578         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
95579         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
95580         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
95582 2008-01-14  Bruno Haible  <bruno@clisp.org>
95584         * modules/strsignal (Include): Change to <string.h>.
95586 2008-01-14  Colin Watson  <cjwatson@debian.org>
95588         * modules/argp (Notice): Add a notice recommending to change
95589         XGETTEXT_OPTIONS.
95590         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
95592 2008-01-13  Colin Watson  <cjwatson@debian.org>
95594         * modules/strsignal-tests: New file.
95595         * tests/test-strsignal.c: New file.
95597         * lib/strsignal.c: New file, from glibc with modifications.
95598         * lib/siglist.h: New file, from glibc with modifications.
95599         * lib/string.in.h (strsignal): New declaration.
95600         * m4/strsignal.m4: New file.
95601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
95602         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
95603         * modules/strsignal: New file.
95604         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
95605         HAVE_DECL_STRSIGNAL.
95607 2008-01-13  Bruno Haible  <bruno@clisp.org>
95609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
95610         locale encoding is not ASCII. Needed for OpenBSD 4.0.
95611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95612         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95614 2008-01-13  Bruno Haible  <bruno@clisp.org>
95616         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
95617         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
95618         * lib/argp.h (__attribute__): Likewise.
95619         * lib/c-stack.c (__attribute__): Likewise.
95620         * lib/error.h (__attribute__): Likewise.
95621         * lib/fts.c (__attribute__): Likewise.
95622         * lib/openat.h (__attribute__): Likewise.
95623         * lib/stdio.in.h (__attribute__): Likewise.
95624         * lib/string.in.h (__attribute__): Likewise.
95625         * lib/utimens.c (__attribute__): Likewise.
95626         * lib/vasnprintf.h (__attribute__): Likewise.
95627         * lib/xalloc.h (__attribute__): Likewise.
95628         * lib/xprintf.h (__attribute__): Likewise.
95629         * lib/xstrtol.h (__attribute__): Likewise.
95630         * lib/xvasprintf.h (__attribute__): Likewise.
95632 2008-01-12  Bruno Haible  <bruno@clisp.org>
95634         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
95635         * doc/glibc-headers/a.out.texi: New file.
95636         * doc/glibc-headers/aliases.texi: New file.
95637         * doc/glibc-headers/alloca.texi: New file.
95638         * doc/glibc-headers/ar.texi: New file.
95639         * doc/glibc-headers/argp.texi: New file.
95640         * doc/glibc-headers/argz.texi: New file.
95641         * doc/glibc-headers/byteswap.texi: New file.
95642         * doc/glibc-headers/crypt.texi: New file.
95643         * doc/glibc-headers/endian.texi: New file.
95644         * doc/glibc-headers/envz.texi: New file.
95645         * doc/glibc-headers/err.texi: New file.
95646         * doc/glibc-headers/error.texi: New file.
95647         * doc/glibc-headers/execinfo.texi: New file.
95648         * doc/glibc-headers/fpu_control.texi: New file.
95649         * doc/glibc-headers/fstab.texi: New file.
95650         * doc/glibc-headers/fts.texi: New file.
95651         * doc/glibc-headers/getopt.texi: New file.
95652         * doc/glibc-headers/ieee754.texi: New file.
95653         * doc/glibc-headers/ifaddrs.texi: New file.
95654         * doc/glibc-headers/libintl.texi: New file.
95655         * doc/glibc-headers/mcheck.texi: New file.
95656         * doc/glibc-headers/mntent.texi: New file.
95657         * doc/glibc-headers/obstack.texi: New file.
95658         * doc/glibc-headers/paths.texi: New file.
95659         * doc/glibc-headers/printf.texi: New file.
95660         * doc/glibc-headers/pty.texi: New file.
95661         * doc/glibc-headers/resolv.texi: New file.
95662         * doc/glibc-headers/shadow.texi: New file.
95663         * doc/glibc-headers/sysexits.texi: New file.
95664         * doc/glibc-headers/ttyent.texi: New file.
95666 2008-01-12  Jim Meyering  <meyering@redhat.com>
95668         announce-gen: emit Gnulib's git-based version string.
95669         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
95670         New option --gnulib-version=V, where V is expected to be
95671         the output of running git describe in the gnulib directory.
95672         (get_tool_versions): Request feedback on xdelta.  I suspect it's
95673         not useful, and plan to stop publishing an xdelta file with each
95674         coreutils release.
95676         * build-aux/announce-gen: Also check for lzma-compressed files.
95678 2008-01-11  Bruno Haible  <bruno@clisp.org>
95680         * tests/test-memmem.c (main): Increase maximum allowed time.
95681         * tests/test-strstr.c (main): Likewise.
95683 2008-01-11  Bruno Haible  <bruno@clisp.org>
95685         * doc/functions/memmem.texi: Add more precisions about platforms.
95686         * doc/functions/strstr.texi: Likewise.
95688 2008-01-10  Eric Blake  <ebb9@byu.net>
95690         * m4/strstr.m4: Delete cruft from copy-n-paste.
95691         Reported by Bruno Haible.
95693 2008-01-10  Bruno Haible  <bruno@clisp.org>
95695         Make c-strstr rely on strstr.
95696         * lib/c-strstr.c: Don't include str-kmp.h.
95697         (c_strstr): Define in terms of strstr.
95698         * modules/c-strstr (Files): Remove lib/str-kmp.h.
95699         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
95701 2008-01-10  Bruno Haible  <bruno@clisp.org>
95703         * doc/gnulib.texi (String Functions in C Locale): New section.
95704         * doc/c-ctype.texi: New file.
95705         * doc/c-strcase.texi: New file.
95706         * doc/c-strcaseeq.texi: New file.
95707         * doc/c-strcasestr.texi: New file.
95708         * doc/c-strstr.texi: New file.
95709         * doc/c-strtod.texi: New file.
95710         * doc/c-strtold.texi: New file.
95712 2008-01-10  Eric Blake  <ebb9@byu.net>
95714         * lib/relocatable.h: Fix a comment.
95716 2008-01-10  Eric Blake  <ebb9@byu.net>
95718         Share two-way algorithm.
95719         * lib/str-two-way.h: New file, merged from...
95720         * lib/memmem.c: ...here...
95721         * lib/strstr.c: ...and here.
95722         * modules/memmem (Files): Use it.
95723         * modules/strstr (Files): Likewise.
95725         Avoid quadratic strstr implementations.
95726         * lib/strstr.c: New file.
95727         * m4/strstr.m4: Likewise.
95728         * modules/strstr: Likewise.
95729         * modules/strstr-tests: Likewise.
95730         * tests/test-strstr.c: Likewise.
95731         * lib/string.in.h (rpl_strstr): Declare.
95732         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
95733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
95734         * modules/string (Makefile.am): Likewise.
95735         * MODULES.html.sh (string handling): Mention new module.
95736         * doc/functions/strstr.texi (strstr): Document the bug.
95738 2008-01-10  Bruno Haible  <bruno@clisp.org>
95740         * lib/relocatable.h (relocate): State whether result is freshly
95741         allocated or not.
95742         * lib/relocatable.c (relocate): Return a freshly allocated string
95743         instead of a pointer to a privately held string.
95744         Reported by Sylvain Beucler <beuc@gnu.org>.
95746 2008-01-10  Colin Watson  <cjwatson@debian.org>
95748         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
95749         s/S_ISNLK/S_ISLNK/.
95751 2008-01-09  Bruno Haible  <bruno@clisp.org>
95753         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
95754         and other files.
95755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
95756         if it's only a guess.
95757         * modules/memmem: Simplify by depending on memmem-simple.
95759 2008-01-09  Bruno Haible  <bruno@clisp.org>
95761         Work around OpenBSD 4.0 tdelete() bug.
95762         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
95763         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
95764         macros and don't redefine the enum values.
95765         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
95766         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
95767         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
95769 2008-01-09  Bruno Haible  <bruno@clisp.org>
95771         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
95772         (main): Don't perform the tests if setlocale did not install a UTF-8
95773         locale. Needed on OpenBSD 4.0.
95774         * modules/wcwidth-tests (Depends-on): Add localcharset.
95776 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95778         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
95779         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
95780         * NEWS: announce this.
95781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
95783 2008-01-09  Simon Josefsson  <simon@josefsson.org>
95784         and Eric Blake  <ebb9@byu.net>
95786         Add memmem-simple module.
95787         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
95788         (gl_FUNC_MEMMEM): Separate performance from presence checks.
95789         * modules/memmem-simple: New file.
95790         * modules/memmem (Description): Tweak.
95791         * MODULES.html.sh (string handling): Mention new module.
95792         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
95793         addressed by memmem-simple.
95794         * NEWS: Document the difference.
95796 2008-01-09  Eric Blake  <ebb9@byu.net>
95798         Give gcc some memmem optimization hints.
95799         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
95800         (strcasestr): Declare as pure.
95801         * modules/memmem (Maintainer): Claim my implementation.
95803 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95805         Support AIX 6.1 and higher.
95806         * build-aux/config.libpath: Likewise.
95807         * build-aux/config.rpath: Likewise.
95809 2008-01-08  Jim Meyering  <meyering@redhat.com>
95810             Bruno Haible  <bruno@clisp.org>
95812         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
95813         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
95814         Reported by Peter Fales in
95815         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
95817 2008-01-08  Bruno Haible  <bruno@clisp.org>
95819         * modules/unictype/category-of (Depends-on): Add
95820         unictype/category-none.
95821         * modules/unictype/category-and-tests (Depends-on): Add
95822         unictype/category-{L,N,Lu,Nd}.
95823         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
95824         * modules/unictype/category-or-tests (Depends-on): Add
95825         unictype/category-{L,N}.
95826         * modules/unictype/category-name-tests (Depends-on): Add
95827         unictype/category-{Z,Nl}.
95828         Reported by Simon Josefsson.
95830 2008-01-08  Bruno Haible  <bruno@clisp.org>
95832         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
95833         convention better.
95834         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
95835         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
95836         Reported by Peter Miller <millerp@canb.auug.org.au>.
95838 2008-01-08  Eric Blake  <ebb9@byu.net>
95840         Rewrite memmem to guarantee linear complexity without malloc.
95841         * lib/memmem.c (memmem): Use Two-Way rather than
95842         Knuth-Morris-Pratt, to allow O(1) space usage.
95843         (critical_factorization, two_way_short_needle)
95844         (two_way_long_needle): New functions.
95845         (knuth_morris_pratt): Delete.
95846         * modules/memmem (Depends-on): No longer need malloca or stdbool.
95847         Add stdint.
95848         * tests/test-memmem.c (main): Add tests for periodic needle and
95849         sublinear performance.
95850         * doc/functions/memmem.texi (memmem): Document other deficiencies
95851         in cygwin and older glibc.
95853 2008-01-08  Bruno Haible  <bruno@clisp.org>
95855         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
95856         augmentation.
95858 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
95860         Add a configure time option: --disable-acl.
95861         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
95862         AC_ARG_ENABLE(acl).
95864 2008-01-06  Simon Josefsson  <simon@josefsson.org>
95866         * tests/test-localename.c: Don't include obsolete "setenv.h".
95868         * modules/localename-tests (Depends-on): Need unsetenv.
95870 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95872         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
95874 2008-01-06  Colin Watson  <cjwatson@debian.org>
95876         * users.txt: Add man-db.
95878 2008-01-07  Bruno Haible  <bruno@clisp.org>
95880         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
95881         previous section name.
95883 2008-01-07  Bruno Haible  <bruno@clisp.org>
95885         * lib/progname.c (set_program_name): Don't strip off a leading
95886         "lt-" prefix outside a .libs directory.
95887         Suggested by Paul Eggert.
95889 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
95890             Bruno Haible  <bruno@clisp.org>
95892         Improve memory cleanup in 'relocatable' module.
95893         * lib/relocatable.h (compute_curr_prefix): Change return type to
95894         'char *'.
95895         * lib/relocatable.c (compute_curr_prefix): Change return type to
95896         'char *'. Free curr_installdir after use.
95897         (relocate): Free curr_prefix_better after use.
95898         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
95900 2008-01-01  Bruno Haible  <bruno@clisp.org>
95902         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
95903         failure on older glibc systems.
95904         Reported by Peter Fales <psfales@alcatel-lucent.com>.
95906 2008-01-05  Eric Blake  <ebb9@byu.net>
95908         Avoid quadratic system memmem.
95909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
95910         Reported by Ralf Wildenhues.
95912         Fix memmem test for mingw.
95913         * modules/memmem-tests (configure.ac): Check for alarm.
95914         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
95915         it.
95916         * doc/functions/memmem.texi: New file.
95917         * doc/gnulib.texi (Function Substitutes): Add memmem.
95918         Reported by Bruno Haible.
95920 2008-01-04  Bruno Haible  <bruno@clisp.org>
95922         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
95923         Require gl_HEADER_STRINGS_H_DEFAULTS, not
95924         gl_HEADER_STRING_H_DEFAULTS.
95926 2008-01-04  Eric Blake  <ebb9@byu.net>
95928         Shorten duration of memmem test.
95929         * tests/test-memmem.c (main): Use alarm to declare failure if test
95930         is taking too long.
95931         Reported by Ralf Wildenhues.
95933 2007-12-21  Simon Josefsson  <simon@josefsson.org>
95935         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
95936         string, needed by strerror.
95938 2008-01-03  Colin Watson  <cjwatson@debian.org>
95939             Bruno Haible  <bruno@clisp.org>
95941         * doc/gnulib-tool.texi (Localization): New section.
95943 2008-01-02  Bruno Haible  <bruno@clisp.org>
95945         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
95946         variables to 'unsigned char *' type.
95947         Reported by Paul Eggert.
95949 2008-01-02  Jim Meyering  <jim@meyering.net>
95951         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
95953 2007-12-31  Jim Meyering  <jim@meyering.net>
95955         Avoid use of private FTS type name.
95956         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
95958 2007-12-30  Karl Berry  <karl@gnu.org>
95960         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
95961         work around defect in Texinfo and/or the standalone Info browser.
95963 2007-12-30  Bruno Haible  <bruno@clisp.org>
95965         Unify 5 copies of the KMP code.
95966         * lib/str-kmp.h: New file.
95967         * lib/c-strcasestr.c: Include str-kmp.h.
95968         (knuth_morris_pratt): Remove function.
95969         (c_strcasestr): Update.
95970         * lib/c-strstr.c: Include str-kmp.h.
95971         (knuth_morris_pratt): Remove function.
95972         (c_strcasestr): Update.
95973         * lib/mbscasestr.c: Include str-kmp.h.
95974         (knuth_morris_pratt_unibyte): Remove function.
95975         * lib/mbsstr.c: Include str-kmp.h.
95976         (knuth_morris_pratt_unibyte): Remove function.
95977         * lib/strcasestr.c: Include str-kmp.h.
95978         (knuth_morris_pratt): Remove function.
95979         (strcasestr): Update.
95980         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
95981         * modules/c-strstr (Files): Likewise.
95982         * modules/mbscasestr (Files): Likewise.
95983         * modules/mbsstr (Files): Likewise.
95984         * modules/strcasestr (Files): Likewise.
95985         Suggested by Paul Eggert.
95987 2007-12-30  Bruno Haible  <bruno@clisp.org>
95989         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
95990         defined.
95992 2007-12-30  Bruno Haible  <bruno@clisp.org>
95994         * lib/xmalloca.h: Include xalloc.h.
95995         (xnmalloca): New macro.
95997 2007-12-30  Bruno Haible  <bruno@clisp.org>
95999         * lib/malloca.h (nmalloca): New macro.
96000         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
96001         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
96002         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
96003         knuth_morris_pratt_multibyte): Likewise.
96004         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
96005         knuth_morris_pratt_multibyte): Likewise.
96006         * lib/memmem.c (knuth_morris_pratt): Likewise.
96007         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
96009 2007-12-25  Bruno Haible  <bruno@clisp.org>
96011         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
96012         * lib/glob.c: Don't include openat.h.
96013         (link_exists2_p): Add back the code that deals with the
96014         !GLOB_ALTDIRFUNC case.
96015         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
96016         let it do the filename concatenation.
96017         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
96018         * modules/glob (Depends-on): Remove openat.
96020 2007-12-31  Bruno Haible  <bruno@clisp.org>
96022         * modules/dirfd (License): Change to LGPLv2+.
96023         Approved by Jim Meyering.
96025 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
96027         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
96028         when multiplying M by sizeof (size_t).
96030 2007-12-10  Martin Lambers  <marlam@marlam.de>
96032         Override getpagesize on mingw.
96033         * lib/getpagesize.c: New file.
96034         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
96035         * modules/getpagesize (Files): Add lib/getpagesize.c.
96036         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
96037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
96038         REPLACE_GETPAGESIZE.
96039         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
96041 2007-12-25  Bruno Haible  <bruno@clisp.org>
96043         * modules/localcharset (Notice): New field.
96044         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
96045         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
96047 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
96048             Bruno Haible  <bruno@clisp.org>
96050         Avoid using the syntax symbol() in formatted documentation.
96051         * MODULES.html.sh (func_module): When replacing symbol() with a
96052         hyperlink, remove the parentheses. Show an error if some remain.
96053         Recognize and render the '...' syntax.
96054         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
96055         Rework. Add paragraph about GCC's inlining.
96056         * doc/alloca.texi: Likewise.
96057         * doc/error.texi: Remove parentheses from symbol reference.
96058         * doc/gnulib-intro.texi: Likewise.
96059         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
96060         * modules/fnmatch (Description): Reword to say "the ... function".
96061         * modules/full-read (Description): Likewise.
96062         * modules/full-write (Description): Likewise.
96063         * modules/safe-read (Description): Likewise.
96064         * modules/safe-write (Description): Likewise.
96065         * modules/strchrnul (Description): Likewise.
96066         * modules/trim (Description): Likewise.
96067         * modules/error (Description): Remove parentheses from symbol
96068         references.
96069         * modules/verror (Description): Likewise.
96070         Reported by Karl Berry.
96072 2007-12-25  Bruno Haible  <bruno@clisp.org>
96074         Fixup after 2007-10-16 commit.
96075         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
96077 2007-12-24  Bruno Haible  <bruno@clisp.org>
96079         Make --enable-relocatable work with DESTDIR.
96080         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
96081         to compute installdir from destprog.
96082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
96083         also set the RELOC_DESTDIR variable.
96084         Reported by Левашев Иван <octagram@bluebottle.com>.
96086 2007-12-24  Bruno Haible  <bruno@clisp.org>
96088         Fix link error due to xalloc_die().
96089         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
96090         of xreadlink.
96091         * lib/relocwrapper.c: Update comments.
96092         * build-aux/install-reloc: Remove xreadlink.c from file list.
96093         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
96094         xreadlink.c.
96095         Reported by Левашев Иван <octagram@bluebottle.com>.
96097 2007-12-24  Bruno Haible  <bruno@clisp.org>
96099         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
96100         * lib/setenv.h: Remove file.
96101         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
96102         lib/setenv.h.
96103         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
96104         (Depends-on): Add stdlib.
96105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
96106         gl_FUNC_UNSETENV.
96107         (Include): Replace setenv.h with <stdlib.h>.
96108         * modules/unsetenv: New file.
96109         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
96110         * lib/unsetenv.c: Include <stdlib.h> first.
96111         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
96112         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
96113         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
96114         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
96115         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
96116         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
96118         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96119         * doc/functions/unsetenv.texi: Update.
96120         * modules/xsetenv (Depends-on): Add unsetenv.
96121         * modules/getdate (Depends-on): Likewise.
96122         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
96123         * lib/xsetenv.c: Don't include setenv.h.
96124         * lib/getdate.y: Likewise.
96125         * lib/relocwrapper.c: Likewise.
96126         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
96127         (Depends-on): Add stdlib.
96128         * NEWS: Mention the changes.
96129         Reported by Левашев Иван <octagram@bluebottle.com>.
96131 2007-12-23  Bruno Haible  <bruno@clisp.org>
96133         * lib/memmem.c (memmem): Use lowercase variable names. Tab
96134         indentation.
96136 2007-12-23  Bruno Haible  <bruno@clisp.org>
96138         * lib/c-strcasestr.c: Add more comments.
96139         * lib/c-strstr.c: Likewise.
96140         * lib/mbscasestr.c: Likewise.
96141         * lib/mbsstr.c: Likewise.
96142         * lib/strcasestr.c: Likewise.
96143         * lib/memmem.c: Likewise.
96145 2007-12-23  Bruno Haible  <bruno@clisp.org>
96147         * tests/test-memmem.c: Include <string.h> first.
96149 2007-12-22  Bruno Haible  <bruno@clisp.org>
96151         * gnulib-tool (func_create_testdir): Change $auxdir while generating
96152         the contents of $testsbase.
96153         Reported by Ralf Wildenhues.
96155 2007-12-22  Bruno Haible  <bruno@clisp.org>
96157         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
96158         two variables local_ldadd_before, local_ldadd_last.
96160 2007-12-20  Eric Blake  <ebb9@byu.net>
96162         Work around circular library issue when cross-compiling.
96163         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
96164         that progname.o does not need to pull in rpl_memcmp.
96166 2007-12-19  Eric Blake  <ebb9@byu.net>
96168         Fix memmem to avoid O(n^2) worst-case complexity.
96169         * lib/memmem.c (knuth_morris_pratt): New function.
96170         (memmem): Use it if first few naive iterations fail.
96171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
96172         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
96173         * modules/memchr (License): Likewise.
96174         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
96175         malloca.
96176         * tests/test-memmem.c: Rewrite, borrowing ideas from
96177         test-mbsstr1.c; the old version wouldn't even compile!
96178         * modules/memmem-tests: New file.
96179         * lib/string.in.h (rpl_memmem): Add declaration.
96180         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
96181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
96182         REPLACE_MEMMEM.
96184 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
96186         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
96187         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
96188         before any system include files, and undef after them all.  This
96189         should fix a problem on VMS reported by John E. Malmberg in
96190         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
96192 2007-12-17  Eric Blake  <ebb9@byu.net>
96194         Revert addition of verify, for BSD/OS.
96195         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
96196         can't handle large files, for the sake of obsolete platforms.
96197         * modules/fseeko (Depends-on): Remove verify.
96198         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
96199         * doc/functions/ftello.texi (ftello): Likewise.
96200         * doc/functions/fgetpos.texi (fgetpos): Likewise.
96201         Reported by Larry Jones.
96203 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
96205         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
96206         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
96208 2007-12-17  Jim Meyering  <meyering@redhat.com>
96210         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
96211         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
96212         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
96213         * modules/getcwd (Depends-on): Add openat.
96214         Reported by Petr Salinger.
96216 2007-12-17  Bruno Haible  <bruno@clisp.org>
96218         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
96219         avoid a segmentation fault of the configure test on x86_64 systems.
96221 2007-12-15  Jim Meyering  <meyering@redhat.com>
96223         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
96225 2007-12-13  Eric Blake  <ebb9@byu.net>
96227         Another fseek test.
96228         * tests/test-fseek.c (main): Also test ungetc handling.
96229         * tests/test-fseeko.c (main): Likewise.
96230         * modules/fseeko (Depends-on): Add verify.
96231         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
96232         large.
96233         Reported by Larry Jones.
96235         Fix fseeko on mingw.
96236         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
96237         seek.
96239         Beef up fseek tests.
96240         * tests/test-fseek.c (main): Also test eof handling.
96241         * tests/test-fseeko.c (main): Likewise.
96242         Reported by Larry Jones.
96244 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
96246         Fix fseeko on BSD-based platforms.
96247         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
96248         successful seek.
96250 2007-12-12  Eric Blake  <ebb9@byu.net>
96252         Allow circular dependency of separate libtests.a
96253         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
96254         when use_libtests.
96256 2007-12-11  Eric Blake  <ebb9@byu.net>
96258         Fix bug with -0.0L in previous patch.
96259         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
96260         * tests/test-isnan.c (main): Also test on zeroes.
96261         * tests/test-isnanf.c (main): Likewise.
96262         * tests/test-isnanl.h (main): Likewise.
96264         Detect pseudo-denormals on x86 even when cross-compiling.
96265         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
96266         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
96267         invalid bit patterns that happen to satisfy ==.
96269         Avoid link failures with separate libtests.a.
96270         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
96271         last, to satisfy circular dependencies.
96273 2007-12-11  Eric Blake  <ebb9@byu.net>
96274         and Bruno Haible  <bruno@clisp.org>
96276         Fix OpenBSD 4.0 <float.h> handling of long double.
96277         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
96278         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
96279         * doc/headers/float.texi (float.h): Document OpenBSD bug.
96281 2007-12-11  Jim Meyering  <meyering@redhat.com>
96283         * users.txt: Add libvirt.
96285         Support versions of autoconf prior to 2.59c.
96286         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
96287         if it is not already defined.
96289 2007-12-09  Bruno Haible  <bruno@clisp.org>
96291         Let 'gnulib-tool --import' collect sources needed for the tests in
96292         tests/ rather than in lib/.
96293         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
96294         argument. If true, add rules to generate libtests.a, and put libtests.a
96295         into $(LDADD). Consider source files in subdirectories and set
96296         uses_subdirs.
96297         (func_emit_initmacro_start, func_emit_initmacro_end,
96298         func_emit_initmacro_done): Pass all arguments explicitly.
96299         (func_import): Determine two module lists main_modules,
96300         testsrelated_modules. Determine use_libtests. Determine two variables
96301         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
96302         instead of just sed_transform_lib_file. Determine two variables
96303         main_files and testsrelated_files. Compute 'files' as the union of
96304         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
96305         func_add_or_update. In the generated gnulib-comp.m4, collect the
96306         object files for tests/ in different variables than those for lib/.
96307         Substitute LIBTESTS_LIBDEPS.
96308         (func_create_testdir): Combine the uses_subdirs results from
96309         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
96311 2007-12-09  Bruno Haible  <bruno@clisp.org>
96313         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
96314         the build-aux directory.
96316 2007-12-09  Bruno Haible  <bruno@clisp.org>
96318         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
96319         introduced on 2006-09-09.
96321 2007-12-07  Jim Meyering  <meyering@redhat.com>
96323         Let these macros work also with autoconf-2.59.
96324         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
96325         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
96326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
96328 2007-12-06  Jim Meyering  <meyering@redhat.com>
96330         Avoid a configure-time syntax error in gl_FUNC_ACL.
96331         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
96332         function in each branch, before testing the cache variable.
96334 2007-12-04  Eric Blake  <ebb9@byu.net>
96336         Make scripts executable.
96337         * build-aux/config.guess: Add execute permissions.
96338         * build-aux/config.sub: Likewise.
96339         * build-aux/gendocs.sh: Likewise.
96341         Fix frexp on mingw.
96342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
96343         cross-compiling.
96344         * doc/functions/frexp.texi (frexp): Document the bug.
96346         Make cygwin fseeko check more reliable.
96347         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
96348         version numbers, rather than unrelated feature check.
96349         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
96350         * doc/functions/ftello.texi (ftello): Likewise.
96351         Reported by Bruno Haible.
96353         * m4/strerror.m4: Bump version number.
96355 2007-12-03  Bruno Haible  <bruno@clisp.org>
96357         * doc/functions/mprotect.texi: Mention the mingw problem.
96359 2007-12-03  Eric Blake  <ebb9@byu.net>
96361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
96362         REPLACE_STRERROR is initialized before this macro.
96364 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
96366         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
96367         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
96368         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
96369         put -lsec in even for programs other than 'ls'.  This fixes a problem
96370         for gettext reported by Bruno Haible in
96371         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
96372         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
96373         Add support for Solaris 10.  This isn't efficient, but should get the
96374         job done for now.
96376 2007-12-03  James Youngman  <jay@gnu.org>
96378         * doc/regexprops-generic.texi: change "an close-group" to "a
96379         close-group" and "illegal" to "not allowed".
96381 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96383         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
96384         pr_byname.h. Needed for the rare case when the maintainer has done
96385         "make maintainer-clean" in the source directory and then attempts a
96386         build outside the source directory.
96387         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
96388         scripts_byname.h.
96390 2007-12-02  Martin Lambers  <marlam@marlam.de>
96391             Bruno Haible  <bruno@clisp.org>
96393         * lib/getpagesize.h: Remove file.
96394         * lib/unistd.in.h: Include declaration of getpagesize here.
96395         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
96396         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
96397         HAVE_SYS_PARAM_H.
96398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
96399         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
96400         * modules/getpagesize (Files): Remove lib/getpagesize.h.
96401         (Depends-on): Add unistd.
96402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96403         (Include): Use <unistd.h> instead of getpagesize.h.
96404         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
96405         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
96406         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
96407         gl_GETPAGESIZE invocation, already handled by module dependency.
96408         * lib/pagealign_alloc.c: Don't include getpagesize.h.
96410 2007-12-02  Bruno Haible  <bruno@clisp.org>
96412         * modules/strings-tests: New file.
96413         * tests/test-strings.c: New file.
96415         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
96416         * lib/strings.in.h: New file.
96417         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
96418         * m4/strings_h.m4: New file.
96419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
96420         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
96421         * modules/strings: New file.
96422         * modules/string (Makefile.am): Update.
96423         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
96424         Reported by Karl Berry.
96426 2007-12-01  Eric Blake  <ebb9@byu.net>
96428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
96429         accommodate fix in cygwin 1.5.25.
96431 2007-12-01  Jim Meyering  <meyering@redhat.com>
96433         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
96434         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
96435         that would inhibit utf8-optimization of a regexp containing line-
96436         or buffer-anchors, e.g., `^', `$'.
96438 2007-11-30  Bruno Haible  <bruno@clisp.org>
96440         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
96441         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
96442         glthread_recursive_lock_init.
96443         * lib/lock.c (glthread_recursive_lock_init)
96444         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
96445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96447 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
96449         New function qset_acl, like set_acl but with syscall semantics.
96450         * lib/acl.h (qset_acl): New decl.
96451         * lib/acl.c (qset_acl): New function.
96452         (set_acl): Use new function.  Use more-consistent diagnostics.
96454 2007-11-28  Jim Meyering  <meyering@redhat.com>
96456         * modules/physmem (License): Change from GPL to LGPLv2+.
96458 2007-11-26  Bruno Haible  <bruno@clisp.org>
96460         * lib/vasnprintf.c (decode_long_double): Don't abort if the
96461         'long double' type has excess precision.
96462         Reported by Jim Meyering in
96463         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
96465 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96467         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
96468         Sync from <http://gnu.org/licenses>.
96469         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
96470         with license text from same location.
96471         * doc/maintain.texi, doc/standards.texi:  Sync from
96472         <http://savannah.gnu.org/projects/gnustandards>.
96474 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
96475         and Jim Meyering  <meyering@redhat.com>
96477         Adjust getdate' grammar to accept a slightly more regular language.
96478         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
96479         Before, the former was rejected.
96480         * lib/getdate.y (digits_to_date_time): New function, factored
96481         out of ...
96482         (number): ...here.  Just call digits_to_date_time.
96483         (hybrid): New non-terminal to handle an <unsigned number,
96484         signed relative offset> sequence consistently.
96486 2007-11-18  Jim Meyering  <meyering@redhat.com>
96488         Pull my changes from coreutils:
96489         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
96490         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
96491         use of $gnulib_tool_option_extras, so that it's separated from the
96492         preceding argument.
96494         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
96495         * build-aux/bootstrap (cp_mark_as_generated): Create any required
96496         parent destination directories before copying a file into place.
96498 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
96500         bootstrap: work also with 4-argument variant of AC_INIT
96501         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
96503 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
96505         Port test-getaddrinfo to Solaris.
96506         Problem reported by Bruno Haible in
96507         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
96508         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
96509         explanation of setting 'hints'.
96510         Don't reject an implementation merely because it returns EAI_SERVICE.
96511         (EAI_SERVICE): Define to 0 if not defined.
96513 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
96515         The license of gnu-make and posix-shell is now "GPLed build tool".
96516         * modules/gnu-make (License): Likewise.
96517         * modules/posix-shell (License): Likewise.
96519         New module posix-shell, for determining a POSIX shell
96520         or perhaps something that is close enough to a POSIX shell.
96521         * m4/posix-shell.m4: New file.
96522         * modules/posix-shell: New file.
96524         * MODULES.html.sh: Mention new module.
96526         New module gnu-make, for determining whether we're using GNU Make.
96527         * m4/gnu-make.m4: New file.
96528         * modules/gnu-make: New file.
96529         * MODULES.html.sh: Mention new module.
96531 2007-11-14  Jim Meyering  <meyering@redhat.com>
96533         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
96534         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
96535         use this macro to create a function _definition_.
96536         Remove useless "#undef ARGMATCH_DIE".
96538 2007-11-14  Bruno Haible  <bruno@clisp.org>
96540         * lib/config.charset: Update for OpenBSD 4.1.
96541         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
96543 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
96545         Document 64-bit #if problems in stdint.texi.
96546         * doc/headers/stdint.texi (stdint.h): Mention problems with
96547         64-bit-#if, and how to work around them.
96549         Don't insist on 'long long int' support in the preprocessor.  It
96550         breaks too many things.  For example, PRIdMAX still uses a 'long
96551         long int' format with the latest Sun compiler, even though
96552         HAVE_LONG_LONG_INT isn't defined due to that compiler's
96553         preprocessor problem.  This causes the latest coreutils to dump
96554         core on Solaris 10 sparc with the Sun C compiler.
96555         Instead, fix the 2007-10-16 problem in a different way, by evaluating
96556         the troublesome expressions at configure-time, not at #if-time.
96557         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
96558         preprocessor.
96559         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
96560         compile-time C checks, done at 'configure'-time.
96561         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
96562         * modules/inttypes (Makefile): Substitute the new symbols that
96563         gl_INTTYPES_H now generates.
96564         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
96566 2007-11-12  Bruno Haible  <bruno@clisp.org>
96568         Tests for Unicode character classification functions.
96570         * modules/unictype/bidicategory-byname-tests: New file.
96571         * modules/unictype/bidicategory-name-tests: New file.
96572         * modules/unictype/bidicategory-of-tests: New file.
96573         * modules/unictype/bidicategory-test-tests: New file.
96574         * modules/unictype/block-list-tests: New file.
96575         * modules/unictype/block-of-tests: New file.
96576         * modules/unictype/block-test-tests: New file.
96577         * modules/unictype/category-C-tests: New file.
96578         * modules/unictype/category-Cc-tests: New file.
96579         * modules/unictype/category-Cf-tests: New file.
96580         * modules/unictype/category-Cn-tests: New file.
96581         * modules/unictype/category-Co-tests: New file.
96582         * modules/unictype/category-Cs-tests: New file.
96583         * modules/unictype/category-L-tests: New file.
96584         * modules/unictype/category-Ll-tests: New file.
96585         * modules/unictype/category-Lm-tests: New file.
96586         * modules/unictype/category-Lo-tests: New file.
96587         * modules/unictype/category-Lt-tests: New file.
96588         * modules/unictype/category-Lu-tests: New file.
96589         * modules/unictype/category-M-tests: New file.
96590         * modules/unictype/category-Mc-tests: New file.
96591         * modules/unictype/category-Me-tests: New file.
96592         * modules/unictype/category-Mn-tests: New file.
96593         * modules/unictype/category-N-tests: New file.
96594         * modules/unictype/category-Nd-tests: New file.
96595         * modules/unictype/category-Nl-tests: New file.
96596         * modules/unictype/category-No-tests: New file.
96597         * modules/unictype/category-P-tests: New file.
96598         * modules/unictype/category-Pc-tests: New file.
96599         * modules/unictype/category-Pd-tests: New file.
96600         * modules/unictype/category-Pe-tests: New file.
96601         * modules/unictype/category-Pf-tests: New file.
96602         * modules/unictype/category-Pi-tests: New file.
96603         * modules/unictype/category-Po-tests: New file.
96604         * modules/unictype/category-Ps-tests: New file.
96605         * modules/unictype/category-S-tests: New file.
96606         * modules/unictype/category-Sc-tests: New file.
96607         * modules/unictype/category-Sk-tests: New file.
96608         * modules/unictype/category-Sm-tests: New file.
96609         * modules/unictype/category-So-tests: New file.
96610         * modules/unictype/category-Z-tests: New file.
96611         * modules/unictype/category-Zl-tests: New file.
96612         * modules/unictype/category-Zp-tests: New file.
96613         * modules/unictype/category-Zs-tests: New file.
96614         * modules/unictype/category-and-not-tests: New file.
96615         * modules/unictype/category-and-tests: New file.
96616         * modules/unictype/category-byname-tests: New file.
96617         * modules/unictype/category-name-tests: New file.
96618         * modules/unictype/category-none-tests: New file.
96619         * modules/unictype/category-of-tests: New file.
96620         * modules/unictype/category-or-tests: New file.
96621         * modules/unictype/category-test-withtable-tests: New file.
96622         * modules/unictype/combining-class-tests: New file.
96623         * modules/unictype/ctype-alnum-tests: New file.
96624         * modules/unictype/ctype-alpha-tests: New file.
96625         * modules/unictype/ctype-blank-tests: New file.
96626         * modules/unictype/ctype-cntrl-tests: New file.
96627         * modules/unictype/ctype-digit-tests: New file.
96628         * modules/unictype/ctype-graph-tests: New file.
96629         * modules/unictype/ctype-lower-tests: New file.
96630         * modules/unictype/ctype-print-tests: New file.
96631         * modules/unictype/ctype-punct-tests: New file.
96632         * modules/unictype/ctype-space-tests: New file.
96633         * modules/unictype/ctype-upper-tests: New file.
96634         * modules/unictype/ctype-xdigit-tests: New file.
96635         * modules/unictype/decimal-digit-tests: New file.
96636         * modules/unictype/digit-tests: New file.
96637         * modules/unictype/mirror-tests: New file.
96638         * modules/unictype/numeric-tests: New file.
96639         * modules/unictype/property-alphabetic-tests: New file.
96640         * modules/unictype/property-ascii-hex-digit-tests: New file.
96641         * modules/unictype/property-bidi-arabic-digit-tests: New file.
96642         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
96643         * modules/unictype/property-bidi-block-separator-tests: New file.
96644         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
96645         * modules/unictype/property-bidi-common-separator-tests: New file.
96646         * modules/unictype/property-bidi-control-tests: New file.
96647         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
96648         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
96649         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
96650         * modules/unictype/property-bidi-european-digit-tests: New file.
96651         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
96652         * modules/unictype/property-bidi-left-to-right-tests: New file.
96653         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
96654         * modules/unictype/property-bidi-other-neutral-tests: New file.
96655         * modules/unictype/property-bidi-pdf-tests: New file.
96656         * modules/unictype/property-bidi-segment-separator-tests: New file.
96657         * modules/unictype/property-bidi-whitespace-tests: New file.
96658         * modules/unictype/property-byname-tests: New file.
96659         * modules/unictype/property-combining-tests: New file.
96660         * modules/unictype/property-composite-tests: New file.
96661         * modules/unictype/property-currency-symbol-tests: New file.
96662         * modules/unictype/property-dash-tests: New file.
96663         * modules/unictype/property-decimal-digit-tests: New file.
96664         * modules/unictype/property-default-ignorable-code-point-tests: New file.
96665         * modules/unictype/property-deprecated-tests: New file.
96666         * modules/unictype/property-diacritic-tests: New file.
96667         * modules/unictype/property-extender-tests: New file.
96668         * modules/unictype/property-format-control-tests: New file.
96669         * modules/unictype/property-grapheme-base-tests: New file.
96670         * modules/unictype/property-grapheme-extend-tests: New file.
96671         * modules/unictype/property-grapheme-link-tests: New file.
96672         * modules/unictype/property-hex-digit-tests: New file.
96673         * modules/unictype/property-hyphen-tests: New file.
96674         * modules/unictype/property-id-continue-tests: New file.
96675         * modules/unictype/property-id-start-tests: New file.
96676         * modules/unictype/property-ideographic-tests: New file.
96677         * modules/unictype/property-ids-binary-operator-tests: New file.
96678         * modules/unictype/property-ids-trinary-operator-tests: New file.
96679         * modules/unictype/property-ignorable-control-tests: New file.
96680         * modules/unictype/property-iso-control-tests: New file.
96681         * modules/unictype/property-join-control-tests: New file.
96682         * modules/unictype/property-left-of-pair-tests: New file.
96683         * modules/unictype/property-line-separator-tests: New file.
96684         * modules/unictype/property-logical-order-exception-tests: New file.
96685         * modules/unictype/property-lowercase-tests: New file.
96686         * modules/unictype/property-math-tests: New file.
96687         * modules/unictype/property-non-break-tests: New file.
96688         * modules/unictype/property-not-a-character-tests: New file.
96689         * modules/unictype/property-numeric-tests: New file.
96690         * modules/unictype/property-other-alphabetic-tests: New file.
96691         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
96692         * modules/unictype/property-other-grapheme-extend-tests: New file.
96693         * modules/unictype/property-other-id-continue-tests: New file.
96694         * modules/unictype/property-other-id-start-tests: New file.
96695         * modules/unictype/property-other-lowercase-tests: New file.
96696         * modules/unictype/property-other-math-tests: New file.
96697         * modules/unictype/property-other-uppercase-tests: New file.
96698         * modules/unictype/property-paired-punctuation-tests: New file.
96699         * modules/unictype/property-paragraph-separator-tests: New file.
96700         * modules/unictype/property-pattern-syntax-tests: New file.
96701         * modules/unictype/property-pattern-white-space-tests: New file.
96702         * modules/unictype/property-private-use-tests: New file.
96703         * modules/unictype/property-punctuation-tests: New file.
96704         * modules/unictype/property-quotation-mark-tests: New file.
96705         * modules/unictype/property-radical-tests: New file.
96706         * modules/unictype/property-sentence-terminal-tests: New file.
96707         * modules/unictype/property-soft-dotted-tests: New file.
96708         * modules/unictype/property-space-tests: New file.
96709         * modules/unictype/property-terminal-punctuation-tests: New file.
96710         * modules/unictype/property-test-tests: New file.
96711         * modules/unictype/property-titlecase-tests: New file.
96712         * modules/unictype/property-unassigned-code-value-tests: New file.
96713         * modules/unictype/property-unified-ideograph-tests: New file.
96714         * modules/unictype/property-uppercase-tests: New file.
96715         * modules/unictype/property-variation-selector-tests: New file.
96716         * modules/unictype/property-white-space-tests: New file.
96717         * modules/unictype/property-xid-continue-tests: New file.
96718         * modules/unictype/property-xid-start-tests: New file.
96719         * modules/unictype/property-zero-width-tests: New file.
96720         * modules/unictype/scripts-tests: New file.
96721         * modules/unictype/syntax-c-ident-tests: New file.
96722         * modules/unictype/syntax-c-whitespace-tests: New file.
96723         * modules/unictype/syntax-java-ident-tests: New file.
96724         * modules/unictype/syntax-java-whitespace-tests: New file.
96725         * tests/unictype/test-bidi_byname.c: New file.
96726         * tests/unictype/test-bidi_name.c: New file.
96727         * tests/unictype/test-bidi_of.c: New file.
96728         * tests/unictype/test-bidi_test.c: New file.
96729         * tests/unictype/test-block_list.c: New file.
96730         * tests/unictype/test-block_of.c: New file.
96731         * tests/unictype/test-block_test.c: New file.
96732         * tests/unictype/test-categ_and.c: New file.
96733         * tests/unictype/test-categ_and_not.c: New file.
96734         * tests/unictype/test-categ_byname.c: New file.
96735         * tests/unictype/test-categ_name.c: New file.
96736         * tests/unictype/test-categ_none.c: New file.
96737         * tests/unictype/test-categ_of.c: New file.
96738         * tests/unictype/test-categ_or.c: New file.
96739         * tests/unictype/test-categ_test_withtable.c: New file.
96740         * tests/unictype/test-combining.c: New file.
96741         * tests/unictype/test-decdigit.c: New file.
96742         * tests/unictype/test-digit.c: New file.
96743         * tests/unictype/test-mirror.c: New file.
96744         * tests/unictype/test-numeric.c: New file.
96745         * tests/unictype/test-pr_byname.c: New file.
96746         * tests/unictype/test-pr_test.c: New file.
96747         * tests/unictype/test-predicate-part1.h: New file.
96748         * tests/unictype/test-predicate-part2.h: New file.
96749         * tests/unictype/test-scripts.c: New file.
96750         * tests/unictype/test-sy_c_ident.c: New file.
96751         * tests/unictype/test-sy_java_ident.c: New file.
96753         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
96754         for Unicode 5.0.0.
96755         * tests/unictype/test-categ_Cc.c: Likewise.
96756         * tests/unictype/test-categ_Cf.c: Likewise.
96757         * tests/unictype/test-categ_Cn.c: Likewise.
96758         * tests/unictype/test-categ_Co.c: Likewise.
96759         * tests/unictype/test-categ_Cs.c: Likewise.
96760         * tests/unictype/test-categ_L.c: Likewise.
96761         * tests/unictype/test-categ_Ll.c: Likewise.
96762         * tests/unictype/test-categ_Lm.c: Likewise.
96763         * tests/unictype/test-categ_Lo.c: Likewise.
96764         * tests/unictype/test-categ_Lt.c: Likewise.
96765         * tests/unictype/test-categ_Lu.c: Likewise.
96766         * tests/unictype/test-categ_M.c: Likewise.
96767         * tests/unictype/test-categ_Mc.c: Likewise.
96768         * tests/unictype/test-categ_Me.c: Likewise.
96769         * tests/unictype/test-categ_Mn.c: Likewise.
96770         * tests/unictype/test-categ_N.c: Likewise.
96771         * tests/unictype/test-categ_Nd.c: Likewise.
96772         * tests/unictype/test-categ_Nl.c: Likewise.
96773         * tests/unictype/test-categ_No.c: Likewise.
96774         * tests/unictype/test-categ_P.c: Likewise.
96775         * tests/unictype/test-categ_Pc.c: Likewise.
96776         * tests/unictype/test-categ_Pd.c: Likewise.
96777         * tests/unictype/test-categ_Pe.c: Likewise.
96778         * tests/unictype/test-categ_Pf.c: Likewise.
96779         * tests/unictype/test-categ_Pi.c: Likewise.
96780         * tests/unictype/test-categ_Po.c: Likewise.
96781         * tests/unictype/test-categ_Ps.c: Likewise.
96782         * tests/unictype/test-categ_S.c: Likewise.
96783         * tests/unictype/test-categ_Sc.c: Likewise.
96784         * tests/unictype/test-categ_Sk.c: Likewise.
96785         * tests/unictype/test-categ_Sm.c: Likewise.
96786         * tests/unictype/test-categ_So.c: Likewise.
96787         * tests/unictype/test-categ_Z.c: Likewise.
96788         * tests/unictype/test-categ_Zl.c: Likewise.
96789         * tests/unictype/test-categ_Zp.c: Likewise.
96790         * tests/unictype/test-categ_Zs.c: Likewise.
96791         * tests/unictype/test-ctype_alnum.c: Likewise.
96792         * tests/unictype/test-ctype_alpha.c: Likewise.
96793         * tests/unictype/test-ctype_blank.c: Likewise.
96794         * tests/unictype/test-ctype_cntrl.c: Likewise.
96795         * tests/unictype/test-ctype_digit.c: Likewise.
96796         * tests/unictype/test-ctype_graph.c: Likewise.
96797         * tests/unictype/test-ctype_lower.c: Likewise.
96798         * tests/unictype/test-ctype_print.c: Likewise.
96799         * tests/unictype/test-ctype_punct.c: Likewise.
96800         * tests/unictype/test-ctype_space.c: Likewise.
96801         * tests/unictype/test-ctype_upper.c: Likewise.
96802         * tests/unictype/test-ctype_xdigit.c: Likewise.
96803         * tests/unictype/test-decdigit.h: Likewise.
96804         * tests/unictype/test-digit.h: Likewise.
96805         * tests/unictype/test-numeric.h: Likewise.
96806         * tests/unictype/test-pr_alphabetic.c: Likewise.
96807         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
96808         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
96809         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
96810         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
96811         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
96812         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
96813         * tests/unictype/test-pr_bidi_control.c: Likewise.
96814         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
96815         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
96816         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
96817         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
96818         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
96819         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
96820         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
96821         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
96822         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
96823         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
96824         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
96825         * tests/unictype/test-pr_combining.c: Likewise.
96826         * tests/unictype/test-pr_composite.c: Likewise.
96827         * tests/unictype/test-pr_currency_symbol.c: Likewise.
96828         * tests/unictype/test-pr_dash.c: Likewise.
96829         * tests/unictype/test-pr_decimal_digit.c: Likewise.
96830         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
96831         * tests/unictype/test-pr_deprecated.c: Likewise.
96832         * tests/unictype/test-pr_diacritic.c: Likewise.
96833         * tests/unictype/test-pr_extender.c: Likewise.
96834         * tests/unictype/test-pr_format_control.c: Likewise.
96835         * tests/unictype/test-pr_grapheme_base.c: Likewise.
96836         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
96837         * tests/unictype/test-pr_grapheme_link.c: Likewise.
96838         * tests/unictype/test-pr_hex_digit.c: Likewise.
96839         * tests/unictype/test-pr_hyphen.c: Likewise.
96840         * tests/unictype/test-pr_id_continue.c: Likewise.
96841         * tests/unictype/test-pr_id_start.c: Likewise.
96842         * tests/unictype/test-pr_ideographic.c: Likewise.
96843         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
96844         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
96845         * tests/unictype/test-pr_ignorable_control.c: Likewise.
96846         * tests/unictype/test-pr_iso_control.c: Likewise.
96847         * tests/unictype/test-pr_join_control.c: Likewise.
96848         * tests/unictype/test-pr_left_of_pair.c: Likewise.
96849         * tests/unictype/test-pr_line_separator.c: Likewise.
96850         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
96851         * tests/unictype/test-pr_lowercase.c: Likewise.
96852         * tests/unictype/test-pr_math.c: Likewise.
96853         * tests/unictype/test-pr_non_break.c: Likewise.
96854         * tests/unictype/test-pr_not_a_character.c: Likewise.
96855         * tests/unictype/test-pr_numeric.c: Likewise.
96856         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
96857         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
96858         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
96859         * tests/unictype/test-pr_other_id_continue.c: Likewise.
96860         * tests/unictype/test-pr_other_id_start.c: Likewise.
96861         * tests/unictype/test-pr_other_lowercase.c: Likewise.
96862         * tests/unictype/test-pr_other_math.c: Likewise.
96863         * tests/unictype/test-pr_other_uppercase.c: Likewise.
96864         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
96865         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
96866         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
96867         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
96868         * tests/unictype/test-pr_private_use.c: Likewise.
96869         * tests/unictype/test-pr_punctuation.c: Likewise.
96870         * tests/unictype/test-pr_quotation_mark.c: Likewise.
96871         * tests/unictype/test-pr_radical.c: Likewise.
96872         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
96873         * tests/unictype/test-pr_soft_dotted.c: Likewise.
96874         * tests/unictype/test-pr_space.c: Likewise.
96875         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
96876         * tests/unictype/test-pr_titlecase.c: Likewise.
96877         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
96878         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
96879         * tests/unictype/test-pr_uppercase.c: Likewise.
96880         * tests/unictype/test-pr_variation_selector.c: Likewise.
96881         * tests/unictype/test-pr_white_space.c: Likewise.
96882         * tests/unictype/test-pr_xid_continue.c: Likewise.
96883         * tests/unictype/test-pr_xid_start.c: Likewise.
96884         * tests/unictype/test-pr_zero_width.c: Likewise.
96885         * tests/unictype/test-sy_c_whitespace.c: Likewise.
96886         * tests/unictype/test-sy_java_whitespace.c: Likewise.
96888 2007-11-12  Bruno Haible  <bruno@clisp.org>
96890         Unicode character classification functions.
96891         * lib/unictype.h: New file.
96892         * modules/unictype/base: New file.
96893         * modules/unictype/category-L: New file.
96894         * modules/unictype/category-Lu: New file.
96895         * modules/unictype/category-Ll: New file.
96896         * modules/unictype/category-Lt: New file.
96897         * modules/unictype/category-Lm: New file.
96898         * modules/unictype/category-Lo: New file.
96899         * modules/unictype/category-M: New file.
96900         * modules/unictype/category-Mn: New file.
96901         * modules/unictype/category-Mc: New file.
96902         * modules/unictype/category-Me: New file.
96903         * modules/unictype/category-N: New file.
96904         * modules/unictype/category-Nd: New file.
96905         * modules/unictype/category-Nl: New file.
96906         * modules/unictype/category-No: New file.
96907         * modules/unictype/category-P: New file.
96908         * modules/unictype/category-Pc: New file.
96909         * modules/unictype/category-Pd: New file.
96910         * modules/unictype/category-Ps: New file.
96911         * modules/unictype/category-Pe: New file.
96912         * modules/unictype/category-Pi: New file.
96913         * modules/unictype/category-Pf: New file.
96914         * modules/unictype/category-Po: New file.
96915         * modules/unictype/category-S: New file.
96916         * modules/unictype/category-Sm: New file.
96917         * modules/unictype/category-Sc: New file.
96918         * modules/unictype/category-Sk: New file.
96919         * modules/unictype/category-So: New file.
96920         * modules/unictype/category-Z: New file.
96921         * modules/unictype/category-Zs: New file.
96922         * modules/unictype/category-Zl: New file.
96923         * modules/unictype/category-Zp: New file.
96924         * modules/unictype/category-C: New file.
96925         * modules/unictype/category-Cc: New file.
96926         * modules/unictype/category-Cf: New file.
96927         * modules/unictype/category-Cs: New file.
96928         * modules/unictype/category-Co: New file.
96929         * modules/unictype/category-Cn: New file.
96930         * modules/unictype/category-or: New file.
96931         * modules/unictype/category-of: New file.
96932         * modules/unictype/category-test: New file.
96933         * modules/unictype/category-test-withtable: New file.
96934         * modules/unictype/category-byname: New file.
96935         * modules/unictype/category-none: New file.
96936         * modules/unictype/category-and: New file.
96937         * modules/unictype/category-and-not: New file.
96938         * modules/unictype/category-name: New file.
96939         * modules/unictype/combining-class: New file.
96940         * modules/unictype/category-all: New file.
96941         * modules/unictype/bidicategory-all: New file.
96942         * modules/unictype/bidicategory-byname: New file.
96943         * modules/unictype/bidicategory-name: New file.
96944         * modules/unictype/bidicategory-of: New file.
96945         * modules/unictype/bidicategory-test: New file.
96946         * modules/unictype/decimal-digit: New file.
96947         * modules/unictype/digit: New file.
96948         * modules/unictype/numeric: New file.
96949         * modules/unictype/mirror: New file.
96950         * modules/unictype/property-white-space: New file.
96951         * modules/unictype/property-alphabetic: New file.
96952         * modules/unictype/property-other-alphabetic: New file.
96953         * modules/unictype/property-not-a-character: New file.
96954         * modules/unictype/property-default-ignorable-code-point: New file.
96955         * modules/unictype/property-other-default-ignorable-code-point: New
96956         file.
96957         * modules/unictype/property-deprecated: New file.
96958         * modules/unictype/property-logical-order-exception: New file.
96959         * modules/unictype/property-variation-selector: New file.
96960         * modules/unictype/property-private-use: New file.
96961         * modules/unictype/property-unassigned-code-value: New file.
96962         * modules/unictype/property-uppercase: New file.
96963         * modules/unictype/property-other-uppercase: New file.
96964         * modules/unictype/property-lowercase: New file.
96965         * modules/unictype/property-other-lowercase: New file.
96966         * modules/unictype/property-titlecase: New file.
96967         * modules/unictype/property-soft-dotted: New file.
96968         * modules/unictype/property-id-start: New file.
96969         * modules/unictype/property-other-id-start: New file.
96970         * modules/unictype/property-id-continue: New file.
96971         * modules/unictype/property-other-id-continue: New file.
96972         * modules/unictype/property-xid-start: New file.
96973         * modules/unictype/property-xid-continue: New file.
96974         * modules/unictype/property-pattern-white-space: New file.
96975         * modules/unictype/property-pattern-syntax: New file.
96976         * modules/unictype/property-join-control: New file.
96977         * modules/unictype/property-grapheme-base: New file.
96978         * modules/unictype/property-grapheme-extend: New file.
96979         * modules/unictype/property-other-grapheme-extend: New file.
96980         * modules/unictype/property-grapheme-link: New file.
96981         * modules/unictype/property-bidi-control: New file.
96982         * modules/unictype/property-bidi-left-to-right: New file.
96983         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
96984         * modules/unictype/property-bidi-arabic-right-to-left: New file.
96985         * modules/unictype/property-bidi-european-digit: New file.
96986         * modules/unictype/property-bidi-eur-num-separator: New file.
96987         * modules/unictype/property-bidi-eur-num-terminator: New file.
96988         * modules/unictype/property-bidi-arabic-digit: New file.
96989         * modules/unictype/property-bidi-common-separator: New file.
96990         * modules/unictype/property-bidi-block-separator: New file.
96991         * modules/unictype/property-bidi-segment-separator: New file.
96992         * modules/unictype/property-bidi-whitespace: New file.
96993         * modules/unictype/property-bidi-non-spacing-mark: New file.
96994         * modules/unictype/property-bidi-boundary-neutral: New file.
96995         * modules/unictype/property-bidi-pdf: New file.
96996         * modules/unictype/property-bidi-embedding-or-override: New file.
96997         * modules/unictype/property-bidi-other-neutral: New file.
96998         * modules/unictype/property-hex-digit: New file.
96999         * modules/unictype/property-ascii-hex-digit: New file.
97000         * modules/unictype/property-ideographic: New file.
97001         * modules/unictype/property-unified-ideograph: New file.
97002         * modules/unictype/property-radical: New file.
97003         * modules/unictype/property-ids-binary-operator: New file.
97004         * modules/unictype/property-ids-trinary-operator: New file.
97005         * modules/unictype/property-zero-width: New file.
97006         * modules/unictype/property-space: New file.
97007         * modules/unictype/property-non-break: New file.
97008         * modules/unictype/property-iso-control: New file.
97009         * modules/unictype/property-format-control: New file.
97010         * modules/unictype/property-dash: New file.
97011         * modules/unictype/property-hyphen: New file.
97012         * modules/unictype/property-punctuation: New file.
97013         * modules/unictype/property-line-separator: New file.
97014         * modules/unictype/property-paragraph-separator: New file.
97015         * modules/unictype/property-quotation-mark: New file.
97016         * modules/unictype/property-sentence-terminal: New file.
97017         * modules/unictype/property-terminal-punctuation: New file.
97018         * modules/unictype/property-currency-symbol: New file.
97019         * modules/unictype/property-math: New file.
97020         * modules/unictype/property-other-math: New file.
97021         * modules/unictype/property-paired-punctuation: New file.
97022         * modules/unictype/property-left-of-pair: New file.
97023         * modules/unictype/property-combining: New file.
97024         * modules/unictype/property-composite: New file.
97025         * modules/unictype/property-decimal-digit: New file.
97026         * modules/unictype/property-numeric: New file.
97027         * modules/unictype/property-diacritic: New file.
97028         * modules/unictype/property-extender: New file.
97029         * modules/unictype/property-ignorable-control: New file.
97030         * modules/unictype/property-test: New file.
97031         * modules/unictype/property-byname: New file.
97032         * modules/unictype/property-all: New file.
97033         * modules/unictype/scripts: New file.
97034         * modules/unictype/scripts-all: New file.
97035         * modules/unictype/block-of: New file.
97036         * modules/unictype/block-test: New file.
97037         * modules/unictype/block-list: New file.
97038         * modules/unictype/block-all: New file.
97039         * modules/unictype/syntax-c-whitespace: New file.
97040         * modules/unictype/syntax-java-whitespace: New file.
97041         * modules/unictype/syntax-c-ident: New file.
97042         * modules/unictype/syntax-java-ident: New file.
97043         * modules/unictype/ctype-alnum: New file.
97044         * modules/unictype/ctype-alpha: New file.
97045         * modules/unictype/ctype-cntrl: New file.
97046         * modules/unictype/ctype-digit: New file.
97047         * modules/unictype/ctype-graph: New file.
97048         * modules/unictype/ctype-lower: New file.
97049         * modules/unictype/ctype-print: New file.
97050         * modules/unictype/ctype-punct: New file.
97051         * modules/unictype/ctype-space: New file.
97052         * modules/unictype/ctype-upper: New file.
97053         * modules/unictype/ctype-xdigit: New file.
97054         * modules/unictype/ctype-blank: New file.
97055         * lib/unictype/bidi_byname.c: New file.
97056         * lib/unictype/bidi_name.c: New file.
97057         * lib/unictype/bidi_of.c: New file.
97058         * lib/unictype/bidi_test.c: New file.
97059         * lib/unictype/bitmap.h: New file.
97060         * lib/unictype/block_test.c: New file.
97061         * lib/unictype/blocks.c: New file.
97062         * lib/unictype/categ_C.c: New file.
97063         * lib/unictype/categ_Cc.c: New file.
97064         * lib/unictype/categ_Cf.c: New file.
97065         * lib/unictype/categ_Cn.c: New file.
97066         * lib/unictype/categ_Co.c: New file.
97067         * lib/unictype/categ_Cs.c: New file.
97068         * lib/unictype/categ_L.c: New file.
97069         * lib/unictype/categ_Ll.c: New file.
97070         * lib/unictype/categ_Lm.c: New file.
97071         * lib/unictype/categ_Lo.c: New file.
97072         * lib/unictype/categ_Lt.c: New file.
97073         * lib/unictype/categ_Lu.c: New file.
97074         * lib/unictype/categ_M.c: New file.
97075         * lib/unictype/categ_Mc.c: New file.
97076         * lib/unictype/categ_Me.c: New file.
97077         * lib/unictype/categ_Mn.c: New file.
97078         * lib/unictype/categ_N.c: New file.
97079         * lib/unictype/categ_Nd.c: New file.
97080         * lib/unictype/categ_Nl.c: New file.
97081         * lib/unictype/categ_No.c: New file.
97082         * lib/unictype/categ_P.c: New file.
97083         * lib/unictype/categ_Pc.c: New file.
97084         * lib/unictype/categ_Pd.c: New file.
97085         * lib/unictype/categ_Pe.c: New file.
97086         * lib/unictype/categ_Pf.c: New file.
97087         * lib/unictype/categ_Pi.c: New file.
97088         * lib/unictype/categ_Po.c: New file.
97089         * lib/unictype/categ_Ps.c: New file.
97090         * lib/unictype/categ_S.c: New file.
97091         * lib/unictype/categ_Sc.c: New file.
97092         * lib/unictype/categ_Sk.c: New file.
97093         * lib/unictype/categ_Sm.c: New file.
97094         * lib/unictype/categ_So.c: New file.
97095         * lib/unictype/categ_Z.c: New file.
97096         * lib/unictype/categ_Zl.c: New file.
97097         * lib/unictype/categ_Zp.c: New file.
97098         * lib/unictype/categ_Zs.c: New file.
97099         * lib/unictype/categ_and.c: New file.
97100         * lib/unictype/categ_and_not.c: New file.
97101         * lib/unictype/categ_byname.c: New file.
97102         * lib/unictype/categ_name.c: New file.
97103         * lib/unictype/categ_none.c: New file.
97104         * lib/unictype/categ_of.c: New file.
97105         * lib/unictype/categ_or.c: New file.
97106         * lib/unictype/categ_test.c: New file.
97107         * lib/unictype/combining.c: New file.
97108         * lib/unictype/ctype_alnum.c: New file.
97109         * lib/unictype/ctype_alpha.c: New file.
97110         * lib/unictype/ctype_blank.c: New file.
97111         * lib/unictype/ctype_cntrl.c: New file.
97112         * lib/unictype/ctype_digit.c: New file.
97113         * lib/unictype/ctype_graph.c: New file.
97114         * lib/unictype/ctype_lower.c: New file.
97115         * lib/unictype/ctype_print.c: New file.
97116         * lib/unictype/ctype_punct.c: New file.
97117         * lib/unictype/ctype_space.c: New file.
97118         * lib/unictype/ctype_upper.c: New file.
97119         * lib/unictype/ctype_xdigit.c: New file.
97120         * lib/unictype/decdigit.c: New file.
97121         * lib/unictype/digit.c: New file.
97122         * lib/unictype/identsyntaxmap.h: New file.
97123         * lib/unictype/mirror.c: New file.
97124         * lib/unictype/numeric.c: New file.
97125         * lib/unictype/pr_alphabetic.c: New file.
97126         * lib/unictype/pr_ascii_hex_digit.c: New file.
97127         * lib/unictype/pr_bidi_arabic_digit.c: New file.
97128         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
97129         * lib/unictype/pr_bidi_block_separator.c: New file.
97130         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
97131         * lib/unictype/pr_bidi_common_separator.c: New file.
97132         * lib/unictype/pr_bidi_control.c: New file.
97133         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
97134         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
97135         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
97136         * lib/unictype/pr_bidi_european_digit.c: New file.
97137         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
97138         * lib/unictype/pr_bidi_left_to_right.c: New file.
97139         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
97140         * lib/unictype/pr_bidi_other_neutral.c: New file.
97141         * lib/unictype/pr_bidi_pdf.c: New file.
97142         * lib/unictype/pr_bidi_segment_separator.c: New file.
97143         * lib/unictype/pr_bidi_whitespace.c: New file.
97144         * lib/unictype/pr_byname.c: New file.
97145         * lib/unictype/pr_byname.gperf: New file.
97146         * lib/unictype/pr_combining.c: New file.
97147         * lib/unictype/pr_composite.c: New file.
97148         * lib/unictype/pr_currency_symbol.c: New file.
97149         * lib/unictype/pr_dash.c: New file.
97150         * lib/unictype/pr_decimal_digit.c: New file.
97151         * lib/unictype/pr_default_ignorable_code_point.c: New file.
97152         * lib/unictype/pr_deprecated.c: New file.
97153         * lib/unictype/pr_diacritic.c: New file.
97154         * lib/unictype/pr_extender.c: New file.
97155         * lib/unictype/pr_format_control.c: New file.
97156         * lib/unictype/pr_grapheme_base.c: New file.
97157         * lib/unictype/pr_grapheme_extend.c: New file.
97158         * lib/unictype/pr_grapheme_link.c: New file.
97159         * lib/unictype/pr_hex_digit.c: New file.
97160         * lib/unictype/pr_hyphen.c: New file.
97161         * lib/unictype/pr_id_continue.c: New file.
97162         * lib/unictype/pr_id_start.c: New file.
97163         * lib/unictype/pr_ideographic.c: New file.
97164         * lib/unictype/pr_ids_binary_operator.c: New file.
97165         * lib/unictype/pr_ids_trinary_operator.c: New file.
97166         * lib/unictype/pr_ignorable_control.c: New file.
97167         * lib/unictype/pr_iso_control.c: New file.
97168         * lib/unictype/pr_join_control.c: New file.
97169         * lib/unictype/pr_left_of_pair.c: New file.
97170         * lib/unictype/pr_line_separator.c: New file.
97171         * lib/unictype/pr_logical_order_exception.c: New file.
97172         * lib/unictype/pr_lowercase.c: New file.
97173         * lib/unictype/pr_math.c: New file.
97174         * lib/unictype/pr_non_break.c: New file.
97175         * lib/unictype/pr_not_a_character.c: New file.
97176         * lib/unictype/pr_numeric.c: New file.
97177         * lib/unictype/pr_other_alphabetic.c: New file.
97178         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
97179         * lib/unictype/pr_other_grapheme_extend.c: New file.
97180         * lib/unictype/pr_other_id_continue.c: New file.
97181         * lib/unictype/pr_other_id_start.c: New file.
97182         * lib/unictype/pr_other_lowercase.c: New file.
97183         * lib/unictype/pr_other_math.c: New file.
97184         * lib/unictype/pr_other_uppercase.c: New file.
97185         * lib/unictype/pr_paired_punctuation.c: New file.
97186         * lib/unictype/pr_paragraph_separator.c: New file.
97187         * lib/unictype/pr_pattern_syntax.c: New file.
97188         * lib/unictype/pr_pattern_white_space.c: New file.
97189         * lib/unictype/pr_private_use.c: New file.
97190         * lib/unictype/pr_punctuation.c: New file.
97191         * lib/unictype/pr_quotation_mark.c: New file.
97192         * lib/unictype/pr_radical.c: New file.
97193         * lib/unictype/pr_sentence_terminal.c: New file.
97194         * lib/unictype/pr_soft_dotted.c: New file.
97195         * lib/unictype/pr_space.c: New file.
97196         * lib/unictype/pr_terminal_punctuation.c: New file.
97197         * lib/unictype/pr_test.c: New file.
97198         * lib/unictype/pr_titlecase.c: New file.
97199         * lib/unictype/pr_unassigned_code_value.c: New file.
97200         * lib/unictype/pr_unified_ideograph.c: New file.
97201         * lib/unictype/pr_uppercase.c: New file.
97202         * lib/unictype/pr_variation_selector.c: New file.
97203         * lib/unictype/pr_white_space.c: New file.
97204         * lib/unictype/pr_xid_continue.c: New file.
97205         * lib/unictype/pr_xid_start.c: New file.
97206         * lib/unictype/pr_zero_width.c: New file.
97207         * lib/unictype/scripts.c: New file.
97208         * lib/unictype/sy_c_ident.c: New file.
97209         * lib/unictype/sy_c_whitespace.c: New file.
97210         * lib/unictype/sy_java_ident.c: New file.
97211         * lib/unictype/sy_java_whitespace.c: New file.
97213         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
97214         Unicode 5.0.0.
97215         * lib/unictype/blocks.h: Likewise.
97216         * lib/unictype/categ_C.h: Likewise.
97217         * lib/unictype/categ_Cc.h: Likewise.
97218         * lib/unictype/categ_Cf.h: Likewise.
97219         * lib/unictype/categ_Cn.h: Likewise.
97220         * lib/unictype/categ_Co.h: Likewise.
97221         * lib/unictype/categ_Cs.h: Likewise.
97222         * lib/unictype/categ_L.h: Likewise.
97223         * lib/unictype/categ_Ll.h: Likewise.
97224         * lib/unictype/categ_Lm.h: Likewise.
97225         * lib/unictype/categ_Lo.h: Likewise.
97226         * lib/unictype/categ_Lt.h: Likewise.
97227         * lib/unictype/categ_Lu.h: Likewise.
97228         * lib/unictype/categ_M.h: Likewise.
97229         * lib/unictype/categ_Mc.h: Likewise.
97230         * lib/unictype/categ_Me.h: Likewise.
97231         * lib/unictype/categ_Mn.h: Likewise.
97232         * lib/unictype/categ_N.h: Likewise.
97233         * lib/unictype/categ_Nd.h: Likewise.
97234         * lib/unictype/categ_Nl.h: Likewise.
97235         * lib/unictype/categ_No.h: Likewise.
97236         * lib/unictype/categ_P.h: Likewise.
97237         * lib/unictype/categ_Pc.h: Likewise.
97238         * lib/unictype/categ_Pd.h: Likewise.
97239         * lib/unictype/categ_Pe.h: Likewise.
97240         * lib/unictype/categ_Pf.h: Likewise.
97241         * lib/unictype/categ_Pi.h: Likewise.
97242         * lib/unictype/categ_Po.h: Likewise.
97243         * lib/unictype/categ_Ps.h: Likewise.
97244         * lib/unictype/categ_S.h: Likewise.
97245         * lib/unictype/categ_Sc.h: Likewise.
97246         * lib/unictype/categ_Sk.h: Likewise.
97247         * lib/unictype/categ_Sm.h: Likewise.
97248         * lib/unictype/categ_So.h: Likewise.
97249         * lib/unictype/categ_Z.h: Likewise.
97250         * lib/unictype/categ_Zl.h: Likewise.
97251         * lib/unictype/categ_Zp.h: Likewise.
97252         * lib/unictype/categ_Zs.h: Likewise.
97253         * lib/unictype/categ_of.h: Likewise.
97254         * lib/unictype/combining.h: Likewise.
97255         * lib/unictype/ctype_alnum.h: Likewise.
97256         * lib/unictype/ctype_alpha.h: Likewise.
97257         * lib/unictype/ctype_blank.h: Likewise.
97258         * lib/unictype/ctype_cntrl.h: Likewise.
97259         * lib/unictype/ctype_digit.h: Likewise.
97260         * lib/unictype/ctype_graph.h: Likewise.
97261         * lib/unictype/ctype_lower.h: Likewise.
97262         * lib/unictype/ctype_print.h: Likewise.
97263         * lib/unictype/ctype_punct.h: Likewise.
97264         * lib/unictype/ctype_space.h: Likewise.
97265         * lib/unictype/ctype_upper.h: Likewise.
97266         * lib/unictype/ctype_xdigit.h: Likewise.
97267         * lib/unictype/decdigit.h: Likewise.
97268         * lib/unictype/digit.h: Likewise.
97269         * lib/unictype/mirror.h: Likewise.
97270         * lib/unictype/numeric.h: Likewise.
97271         * lib/unictype/pr_alphabetic.h: Likewise.
97272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
97273         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
97274         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
97275         * lib/unictype/pr_bidi_block_separator.h: Likewise.
97276         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
97277         * lib/unictype/pr_bidi_common_separator.h: Likewise.
97278         * lib/unictype/pr_bidi_control.h: Likewise.
97279         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
97280         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
97281         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
97282         * lib/unictype/pr_bidi_european_digit.h: Likewise.
97283         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
97284         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
97285         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
97286         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
97287         * lib/unictype/pr_bidi_pdf.h: Likewise.
97288         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
97289         * lib/unictype/pr_bidi_whitespace.h: Likewise.
97290         * lib/unictype/pr_combining.h: Likewise.
97291         * lib/unictype/pr_composite.h: Likewise.
97292         * lib/unictype/pr_currency_symbol.h: Likewise.
97293         * lib/unictype/pr_dash.h: Likewise.
97294         * lib/unictype/pr_decimal_digit.h: Likewise.
97295         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
97296         * lib/unictype/pr_deprecated.h: Likewise.
97297         * lib/unictype/pr_diacritic.h: Likewise.
97298         * lib/unictype/pr_extender.h: Likewise.
97299         * lib/unictype/pr_format_control.h: Likewise.
97300         * lib/unictype/pr_grapheme_base.h: Likewise.
97301         * lib/unictype/pr_grapheme_extend.h: Likewise.
97302         * lib/unictype/pr_grapheme_link.h: Likewise.
97303         * lib/unictype/pr_hex_digit.h: Likewise.
97304         * lib/unictype/pr_hyphen.h: Likewise.
97305         * lib/unictype/pr_id_continue.h: Likewise.
97306         * lib/unictype/pr_id_start.h: Likewise.
97307         * lib/unictype/pr_ideographic.h: Likewise.
97308         * lib/unictype/pr_ids_binary_operator.h: Likewise.
97309         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
97310         * lib/unictype/pr_ignorable_control.h: Likewise.
97311         * lib/unictype/pr_iso_control.h: Likewise.
97312         * lib/unictype/pr_join_control.h: Likewise.
97313         * lib/unictype/pr_left_of_pair.h: Likewise.
97314         * lib/unictype/pr_line_separator.h: Likewise.
97315         * lib/unictype/pr_logical_order_exception.h: Likewise.
97316         * lib/unictype/pr_lowercase.h: Likewise.
97317         * lib/unictype/pr_math.h: Likewise.
97318         * lib/unictype/pr_non_break.h: Likewise.
97319         * lib/unictype/pr_not_a_character.h: Likewise.
97320         * lib/unictype/pr_numeric.h: Likewise.
97321         * lib/unictype/pr_other_alphabetic.h: Likewise.
97322         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
97323         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
97324         * lib/unictype/pr_other_id_continue.h: Likewise.
97325         * lib/unictype/pr_other_id_start.h: Likewise.
97326         * lib/unictype/pr_other_lowercase.h: Likewise.
97327         * lib/unictype/pr_other_math.h: Likewise.
97328         * lib/unictype/pr_other_uppercase.h: Likewise.
97329         * lib/unictype/pr_paired_punctuation.h: Likewise.
97330         * lib/unictype/pr_paragraph_separator.h: Likewise.
97331         * lib/unictype/pr_pattern_syntax.h: Likewise.
97332         * lib/unictype/pr_pattern_white_space.h: Likewise.
97333         * lib/unictype/pr_private_use.h: Likewise.
97334         * lib/unictype/pr_punctuation.h: Likewise.
97335         * lib/unictype/pr_quotation_mark.h: Likewise.
97336         * lib/unictype/pr_radical.h: Likewise.
97337         * lib/unictype/pr_sentence_terminal.h: Likewise.
97338         * lib/unictype/pr_soft_dotted.h: Likewise.
97339         * lib/unictype/pr_space.h: Likewise.
97340         * lib/unictype/pr_terminal_punctuation.h: Likewise.
97341         * lib/unictype/pr_titlecase.h: Likewise.
97342         * lib/unictype/pr_unassigned_code_value.h: Likewise.
97343         * lib/unictype/pr_unified_ideograph.h: Likewise.
97344         * lib/unictype/pr_uppercase.h: Likewise.
97345         * lib/unictype/pr_variation_selector.h: Likewise.
97346         * lib/unictype/pr_white_space.h: Likewise.
97347         * lib/unictype/pr_xid_continue.h: Likewise.
97348         * lib/unictype/pr_xid_start.h: Likewise.
97349         * lib/unictype/pr_zero_width.h: Likewise.
97350         * lib/unictype/scripts.h: Likewise.
97351         * lib/unictype/scripts_byname.gperf: Likewise.
97352         * lib/unictype/sy_c_ident.h: Likewise.
97353         * lib/unictype/sy_c_whitespace.h: Likewise.
97354         * lib/unictype/sy_java_ident.h: Likewise.
97355         * lib/unictype/sy_java_whitespace.h: Likewise.
97357         * lib/unictype/Makefile: New file.
97358         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
97359         glibc.
97360         * lib/unictype/3level.h: New file, copied from glibc.
97361         * lib/unictype/3levelbit.h: New file.
97363 2007-11-11  Bruno Haible  <bruno@clisp.org>
97365         * modules/gperf: New file.
97366         * modules/iconv_open (Depends-on): Add it.
97367         (Makefile.am): Remove the GPERF definition.
97369 2007-11-11  Bruno Haible  <bruno@clisp.org>
97371         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
97372         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
97374 2007-11-11  Bruno Haible  <bruno@clisp.org>
97376         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
97377         (usage): Remove function.
97379 2007-11-11  Bruno Haible  <bruno@clisp.org>
97381         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
97382         gl_FUNC_CEILF_LIBS.
97383         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
97384         gl_FUNC_CEIL_LIBS.
97385         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
97386         gl_FUNC_CEILL_LIBS.
97387         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
97388         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
97389         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
97391 2007-11-11  Bruno Haible  <bruno@clisp.org>
97393         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
97394         roundf were declared but do not exist on functions.
97395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
97396         roundl were declared but do not exist on functions.
97397         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
97398         HAVE_FLOORL_AND_CEILL, respectively.
97399         Needed for Sun C on Solaris 10.
97401 2007-11-11  Bruno Haible  <bruno@clisp.org>
97403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
97404         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
97405         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
97406         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
97407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
97408         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
97409         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
97410         HAVE_DECL_ROUNDF.
97411         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
97412         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
97413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
97414         of HAVE_DECL_ROUND*.
97415         * modules/math (Makefile.am): Update.
97417 2007-11-10  Bruno Haible  <bruno@clisp.org>
97419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
97420         ptrdiff_t as m4/intl.m4.
97422 2007-11-10  Jim Meyering  <meyering@redhat.com>
97424         Avoid link failure for the argmatch test.
97425         * tests/test-argmatch.c (usage): Define function to avoid a link
97426         failure: argmatch_die requires a usage function.
97428 2007-11-09  Bruno Haible  <bruno@clisp.org>
97430         * doc/functions/snprintf.texi: Mention BeOS deficiency.
97431         * doc/functions/vsnprintf.texi: Likewise.
97432         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
97433         with a size argument < 2.
97435 2007-11-09  Bruno Haible  <bruno@clisp.org>
97437         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
97438         buffer. Fixes an inefficiency introduced on 2007-11-03.
97440 2007-11-09  Bruno Haible  <bruno@clisp.org>
97442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
97443         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
97445 2007-11-08  Jim Meyering  <meyering@redhat.com>
97447         Change cache variable name prefix "jm_" to "gl_" everywhere.
97448         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
97449         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
97450         * m4/uptime.m4: s/gl_/jm_/
97452 2007-11-07  Bruno Haible  <bruno@clisp.org>
97454         Update to GNU gettext 0.17.
97455         * m4/intl.m4: Update to GNU gettext 0.17.
97456         * m4/po.m4: Likewise.
97457         * modules/gettext (Files): Remove m4/ulonglong.m4.
97458         (configure.ac): Require gettext infrastructure from version 0.17.
97460 2007-11-06  Bruno Haible  <bruno@clisp.org>
97462         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
97463         symbolic values are not defined in a public header.
97464         * lib/freadable.c (freadable) [QNX]: Likewise.
97465         * lib/freadahead.c (freadahead) [QNX]: Likewise.
97466         * lib/freading.c (freading) [QNX]: Likewise.
97467         * lib/fseterr.c (fseterr) [QNX]: Likewise.
97468         * lib/fwritable.c (fwritable) [QNX]: Likewise.
97469         * lib/fwriting.c (fwriting) [QNX]: Likewise.
97470         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
97471         Reported by Alain Magloire.
97473         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
97475 2007-11-05  Bruno Haible  <bruno@clisp.org>
97477         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
97478         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
97479         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
97480         Reported by Eric Blake.
97482 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97483             Bruno Haible  <bruno@clisp.org>
97485         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
97486         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
97487         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
97488         (malloc): Undefine also before including <stdlib.h>.
97489         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
97490         Needed on OSF/1 4.0.
97492 2007-11-05  Jim Meyering  <meyering@redhat.com>
97494         git-version-gen: sync from coreutils.
97495         * build-aux/git-version-gen: Add comments.
97496         Change the first '-' to '.' in the snapshot version string,
97497         e.g., 6.9-377-08144 -> 6.9.377-08144
97498         Remove first parameter.
97499         Don't declare a version "-dirty" merely because a time
97500         stamp has changed.
97502 2007-11-04  Bruno Haible  <bruno@clisp.org>
97504         * lib/lock.h: Protect all macro definitions containing an 'if'
97505         statement through a "do { ... } while (0)".
97506         * lib/tls.h: Likewise.
97508 2007-11-04  Bruno Haible  <bruno@clisp.org>
97510         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
97512 2007-11-04  Bruno Haible  <bruno@clisp.org>
97514         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
97515         * modules/fprintf-posix (Depends-on): Add nocrash.
97516         * modules/snprintf-posix (Depends-on): Likewise.
97517         * modules/sprintf-posix (Depends-on): Likewise.
97518         * modules/vasnprintf-posix (Depends-on): Likewise.
97519         * modules/vasprintf-posix (Depends-on): Likewise.
97520         * modules/vfprintf-posix (Depends-on): Likewise.
97521         * modules/vsnprintf-posix (Depends-on): Likewise.
97522         * modules/vsprintf-posix (Depends-on): Likewise.
97523         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97524         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97525         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97526         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97527         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97528         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97531 2007-11-04  Bruno Haible  <bruno@clisp.org>
97533         * modules/nocrash: New file.
97534         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
97535         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
97537 2007-11-04  Bruno Haible  <bruno@clisp.org>
97539         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
97540         precision handling.
97541         * tests/test-vasprintf-posix.c (test_function): Likewise.
97542         * tests/test-snprintf-posix.h (test_function): Likewise.
97543         * tests/test-sprintf-posix.h (test_function): Likewise.
97545         Fix *printf behaviour for large precisions on mingw and BeOS.
97546         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
97547         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
97548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
97549         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97551         gl_PRINTF_PRECISION and test its result. Invoke
97552         gl_PREREQ_VASNPRINTF_PRECISION.
97553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97559         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97560         * doc/functions/fprintf.texi: Update.
97561         * doc/functions/printf.texi: Update.
97562         * doc/functions/snprintf.texi: Update.
97563         * doc/functions/sprintf.texi: Update.
97564         * doc/functions/vfprintf.texi: Update.
97565         * doc/functions/vprintf.texi: Update.
97566         * doc/functions/vsnprintf.texi: Update.
97567         * doc/functions/vsprintf.texi: Update.
97569 2007-11-04  Bruno Haible  <bruno@clisp.org>
97571         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
97573 2007-11-04  Bruno Haible  <bruno@clisp.org>
97575         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
97576         Reported by Sylvain Beucler <beuc@gnu.org>.
97578 2007-11-03  Bruno Haible  <bruno@clisp.org>
97580         * tests/test-fprintf-posix2.sh: New file.
97581         * tests/test-fprintf-posix2.c: New file.
97582         * modules/fprintf-posix-tests (Files): Add them.
97583         (TESTS): Add test-fprintf-posix2.sh.
97584         (configure.ac): Check for getrlimit and setrlimit.
97585         (check_PROGRAMS): Add test-fprintf-posix2.
97587         * tests/test-printf-posix2.sh: New file.
97588         * tests/test-printf-posix2.c: New file.
97589         * modules/printf-posix-tests (Files): Add them.
97590         (TESTS): Add test-printf-posix2.sh.
97591         (configure.ac): Check for getrlimit and setrlimit.
97592         (check_PROGRAMS): Add test-printf-posix2.
97594         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
97595         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
97596         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
97597         (decode_double): New function, copied from decode_long_double.
97598         (scale10_round_decimal_decoded): New function, extracted from
97599         scale10_round_decimal_long_double.
97600         (scale10_round_decimal_long_double): Use it.
97601         (scale10_round_decimal_double): New function.
97602         (floorlog10): New function.
97603         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
97604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
97605         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97607         gl_PRINTF_ENOMEM and test its result. Invoke
97608         gl_PREREQ_VASNPRINTF_ENOMEM.
97609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97616         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
97617         * modules/snprintf-posix (Depends-on): Likewise.
97618         * modules/sprintf-posix (Depends-on): Likewise.
97619         * modules/vasnprintf-posix (Depends-on): Likewise.
97620         * modules/vasprintf-posix (Depends-on): Likewise.
97621         * modules/vfprintf-posix (Depends-on): Likewise.
97622         * modules/vsnprintf-posix (Depends-on): Likewise.
97623         * modules/vsprintf-posix (Depends-on): Likewise.
97624         * doc/functions/fprintf.texi: Update.
97625         * doc/functions/printf.texi: Update.
97626         * doc/functions/snprintf.texi: Update.
97627         * doc/functions/sprintf.texi: Update.
97628         * doc/functions/vfprintf.texi: Update.
97629         * doc/functions/vprintf.texi: Update.
97630         * doc/functions/vsnprintf.texi: Update.
97631         * doc/functions/vsprintf.texi: Update.
97633 2007-11-03  Bruno Haible  <bruno@clisp.org>
97635         * modules/frexp-nolibm-tests: New file.
97637         * modules/frexp-nolibm: New file.
97638         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
97640 2007-11-03  Bruno Haible  <bruno@clisp.org>
97642         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
97643         value is C99 compliant.
97644         Needed for OSF/1 5.1.
97646 2007-11-03  Bruno Haible  <bruno@clisp.org>
97648         Fix out-of-memory handling of vasnprintf.
97649         * lib/printf-parse.c: Include <errno.h>.
97650         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
97651         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
97652         is already set.
97654 2007-11-02  Eric Blake  <ebb9@byu.net>
97656         Fix tests on cygwin.
97657         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
97659 2007-11-01  Bruno Haible  <bruno@clisp.org>
97661         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
97662         warning.
97663         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
97664         needed for POSIX compatibility.
97666 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
97668         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
97669         for compatibility with GNU.
97671 2007-11-01  Bruno Haible  <bruno@clisp.org>
97673         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
97674         (putenv): Renamed from rpl_putenv. Change argument type from
97675         'const char *' to 'char *'.
97676         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
97677         of defining putenv in config.h, just set REPLACE_PUTENV.
97678         * modules/putenv (Depends-on): Add stdlib.
97679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97680         (Include): Use <stdlib.h>.
97681         * lib/stdlib.in.h (putenv): New declaration.
97682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
97683         REPLACE_PUTENV.
97684         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
97685         REPLACE_PUTENV.
97686         Needed for MacOS X 10.5.0.
97687         Reported by Peter O'Gorman <peter@pogma.com>.
97689 2007-11-01  Jim Meyering  <meyering@redhat.com>
97691         Treat an empty date string exactly like "0".
97692         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
97693         if the remaining date string (to be parsed) is empty, use "0".
97694         Reported by Mischa Molhoek and discussed in this thread:
97695         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
97697 2007-10-31  Bruno Haible  <bruno@clisp.org>
97699         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
97700         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
97701         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
97702         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
97703         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
97704         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
97706 2007-10-31  Bruno Haible  <bruno@clisp.org>
97708         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
97709         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
97710         (AC_TYPE_LONG_LONG_INT): Use it.
97711         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
97712         it as well.
97713         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
97714         to m4/longlong.m4.
97715         * modules/stdint (Files): Remove m4/ulonglong.m4.
97716         * modules/strtoull (Files): Use m4/longlong.m4 instead of
97717         m4/ulonglong.m4.
97718         * modules/strtoumax (Files): Likewise.
97720 2007-10-30  Bruno Haible  <bruno@clisp.org>
97722         * modules/xvasprintf-posix: New file.
97723         Suggested by Eric Blake.
97725 2007-10-30  Bruno Haible  <bruno@clisp.org>
97727         * modules/xprintf-posix-tests: New file.
97728         * tests/test-xprintf-posix.sh: New file.
97729         * tests/test-xprintf-posix.c: New file.
97730         * tests/test-xfprintf-posix.c: New file.
97732         * modules/xprintf-posix: New file.
97734 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97736         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
97737         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
97738         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
97740 2007-10-29  Bruno Haible  <bruno@clisp.org>
97742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
97743         contain the special marker '_cv_'.
97744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
97745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
97746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
97747         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
97748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
97749         Reported by Ralf Wildenhues.
97751 2007-10-29  Bruno Haible  <bruno@clisp.org>
97753         * gnulib-tool (func_import): When --lgpl is not specified, set
97754         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
97755         GPLv3.
97756         Reported by Simon Josefsson.
97758 2007-10-28  Bruno Haible  <bruno@clisp.org>
97760         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
97761         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
97762         HAVE_DECL_ISFINITE.
97763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
97764         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
97765         HAVE_DECL_ISFINITE.
97767 2007-10-28  Bruno Haible  <bruno@clisp.org>
97769         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
97770         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
97772 2007-10-28  Bruno Haible  <bruno@clisp.org>
97774         Fix link errors with Sun C 5.0 on Solaris 10.
97775         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
97776         function is declared but not present in the compiler's libm.
97777         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
97778         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
97779         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
97780         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
97781         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
97782         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
97783         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
97784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
97785         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
97786         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
97787         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
97788         HAVE_DECL_FLOORL.
97790 2007-10-28  Bruno Haible  <bruno@clisp.org>
97792         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
97793         gl_FUNC_FLOORL. Cache the result.
97794         (gl_FUNC_FLOORL): Use it.
97795         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
97796         gl_FUNC_CEILL. Cache the result.
97797         (gl_FUNC_CEILL): Use it.
97799         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
97800         gl_FUNC_FLOOR. Cache the result.
97801         (gl_FUNC_FLOOR): Use it.
97802         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
97803         gl_FUNC_CEIL. Cache the result.
97804         (gl_FUNC_CEIL): Use it.
97806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
97807         gl_FUNC_FLOORF. Cache the result.
97808         (gl_FUNC_FLOORF): Use it.
97809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
97810         gl_FUNC_CEILF. Cache the result.
97811         (gl_FUNC_CEILF): Use it.
97813 2007-10-28  Bruno Haible  <bruno@clisp.org>
97815         * gnulib-tool: Allow specifying the LGPL version number through
97816         --lgpl=2 or --lgpl=3.
97817         (func_usage): Document --lgpl with argument.
97818         Handle --lgpl=... arguments.
97819         (func_import): Recognize also gl_LGPL calls with an argument. When
97820         --lgpl=2 is used and the module's license is just LGPL, report an
97821         error. Set sed_transform_lib_file according to the lgpl variable. In
97822         the generated files, use --lgpl or gl_LGPL invocations with argument,
97823         if necessary.
97824         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
97825         an LGPv2+ license.
97826         * doc/gnulib-tool.texi (Modified imports): Update explanation of
97827         gl_LGPL macro.
97829 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97830             Bruno Haible  <bruno@clisp.org>
97832         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
97833         (u16_uctomb_aux): Likewise.
97834         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
97835         !HAVE_INLINE.
97836         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
97838 2007-10-28  Bruno Haible  <bruno@clisp.org>
97840         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
97841         Invoke AM_GETTEXT_OPTION if it exists.
97842         * modules/vasprintf: Likewise.
97843         * modules/verror: Likewise.
97844         * modules/xprintf: Likewise.
97845         * modules/xvasprintf: Likewise.
97847 2007-10-27  Ben Pfaff  <blp@gnu.org>
97849         * lib/math.in.h: Define isfinite macro and prototypes for
97850         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
97851         implementations.
97852         * m4/math_h.m4: New substitutions for isfinite module.
97853         * lib/isfinite.c: New file.
97854         * m4/isfinite.m4: New file.
97855         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
97856         * modules/isfinite: New file.
97857         * modules/isfinite-tests: New file.
97858         * tests/tests-isfinite.c: New file.
97859         * doc/functions/isfinite.texi: Mention isfinite module.
97860         * MODULES.html.sh: Mention new module.
97862 2007-10-27  Ben Pfaff  <blp@gnu.org>
97864         Ralf Wildenhues reported that Tru64 4.0D declares the round
97865         functions but does not have definitions.
97866         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
97867         cannot be found in any library, set the output variable to
97868         "missing" instead of "".
97869         * m4/round.m4: Also use our substitute if we cannot find round in
97870         any library, even if it is declared.
97871         * m4/roundf.m4: Likewise for roundf.
97872         * m4/roundl.m4: Likewise for roundl.
97873         * lib/math.in.h: Undefine roundf, round, roundl before defining
97874         their replacements, to allow for hypothetical systems where these
97875         may be defined as macros but not available in libraries.
97877 2007-10-27  Bruno Haible  <bruno@clisp.org>
97879         * doc/gnulib.texi: Invoke @firstparagraphindent.
97880         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
97881         changes in gnulib.
97882         (Source changes): New section.
97884 2007-10-26  Bruno Haible  <bruno@clisp.org>
97886         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
97887         borrowed from autoconf.
97889 2007-10-26  Bruno Haible  <bruno@clisp.org>
97891         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
97892         strerror returned the empty string. Needed on HP-UX 11.00.
97894 2007-10-24  Micah Cowan  <micah@cowan.name>
97896         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
97897         * build-aux/bootstrap: Remove support for now-unnecessary option,
97898         --cvs-user, and envvars CVS_USER, CVS_RSH.
97900 2007-10-24  Jim Meyering  <meyering@redhat.com>
97902         Avoid diagnostics from sha1sum when there is no cached checksum.
97903         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
97904         if the po.s1 file hasn't been created yet.
97906         * build-aux/bootstrap: Sync from coreutils:
97907         2007-10-24  Jim Meyering  <meyering@redhat.com>
97908         Get gnulib from the git repository, not from an obsolete cvs one.
97909         * build-aux/bootstrap: Suggestion from Micah Cowan.
97910         2007-10-04  Jim Meyering  <jim@meyering.net>
97911         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
97912         (update_po_files): Work also when there are no .po files in po/.
97914 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
97916         * README: Append ".git" to git and cg examples.
97917         Problem reported by Benoit Sigoure.
97919 2007-10-23  Micah Cowan  <micah@cowan.name>
97921         * users.txt: Add wget.
97923 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97925         Fix linking of some unistdio tests on FreeBSD.
97926         * modules/unistdio/u16-vsnprintf-tests
97927         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
97928         * modules/unistdio/u16-vsprintf-tests
97929         (test_u16_vsnprintf1_LDADD): Likewise.
97930         * modules/unistdio/u32-vsnprintf-tests
97931         (test_u32_vsnprintf1_LDADD): Likewise.
97932         * modules/unistdio/u32-vsprintf-tests
97933         (test_u32_vsprintf1_LDADD): Likewise.
97934         * modules/unistdio/u8-vsnprintf-tests
97935         (test_u8_vsnprintf1_LDADD): Likewise.
97936         * modules/unistdio/u8-vsprintf-tests
97937         (test_u8_vsprintf1_LDADD): Likewise.
97938         * modules/unistdio/ulc-vsnprintf-tests
97939         (test_ulc_vsnprintf1_LDADD): Likewise.
97940         * modules/unistdio/ulc-vsprintf-tests
97941         (test_ulc_vsprintf1_LDADD): Likewise.
97943         Fix linking of some uniconv tests on FreeBSD.
97944         * modules/uniconv/u16-conv-from-enc-tests
97945         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
97946         * modules/uniconv/u16-conv-to-enc-tests
97947         (test_u16_conv_to_enc_LDADD): Likewise.
97948         * modules/uniconv/u16-strconv-from-enc-tests
97949         (test_u16_strconv_from_enc_LDADD): Likewise.
97950         * modules/uniconv/u16-strconv-to-enc-tests
97951         (test_u16_strconv_to_enc_LDADD): Likewise.
97952         * modules/uniconv/u32-conv-from-enc-tests
97953         (test_u32_conv_from_enc_LDADD): Likewise.
97954         * modules/uniconv/u32-conv-to-enc-tests
97955         (test_u32_conv_to_enc_LDADD): Likewise.
97956         * modules/uniconv/u32-strconv-from-enc-tests
97957         (test_u32_strconv_from_enc_LDADD): Likewise.
97958         * modules/uniconv/u32-strconv-to-enc-tests
97959         (test_u32_strconv_to_enc_LDADD): Likewise.
97960         * modules/uniconv/u8-conv-from-enc-tests
97961         (test_u8_conv_from_enc_LDADD): Likewise.
97962         * modules/uniconv/u8-conv-to-enc-tests
97963         (test_u8_conv_to_enc_LDADD): Likewise.
97964         * modules/uniconv/u8-strconv-from-enc-tests
97965         (test_u8_strconv_from_enc_LDADD): Likewise.
97966         * modules/uniconv/u8-strconv-to-enc-tests
97967         (test_u8_strconv_to_enc_LDADD): Likewise.
97969 2007-10-22  Bruno Haible  <bruno@clisp.org>
97971         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
97972         size.
97974 2007-10-22  Eric Blake  <ebb9@byu.net>
97976         Tweak x*printf documentation.
97977         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
97978         variable name and comments.
97979         Suggested by Bruno Haible.
97981 2007-10-22  Bruno Haible  <bruno@clisp.org>
97983         * lib/acl.c (copy_acl): Fix file name in comment.
97985 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
97987         Fix Tru64 problem with stdbool.h.
97988         * lib/stdbool.in.h (false, true):
97989         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
97990         Don't declare as an enum in this situation; it runs afoul of Tru64.
97991         Problem reported by Steven M. Schweda in
97992         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
97994 2007-10-22  Eric Blake  <ebb9@byu.net>
97996         Also wrap vf?printf.
97997         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
97998         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
97999         (xvprintf, xvfprintf): New functions.
98001 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98003         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
98004         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
98006         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
98007         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
98009 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98011         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
98012         by Bruno Haible.
98014 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98016         * lib/getloadavg.c
98017         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
98018         Undef `sys' after including sys/table.h, for Tru64 4.0D.
98020         * tests/test-i-ring.c: Work for C89.
98022 2007-10-22  Bruno Haible  <bruno@clisp.org>
98024         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
98025         -1u, in preprocessor expression, so that we don't test for the bug
98026         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
98027         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
98029 2007-10-22  Eric Blake  <ebb9@byu.net>
98031         * tests/test-yesno.sh: Silence stderr during test.
98033 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98035         * modules/crypto/gc-camellia: New file.
98037         * m4/gc-camellia.m4: New file.
98039         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
98041         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
98043 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98045         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
98046         --help to stdout.  Reported by sms@antinode.org (Steven
98047         M. Schweda).
98049 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98051         * users.txt: Fix link to libksba.
98053 2007-10-21  Ben Pfaff  <blp@gnu.org>
98055         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
98056         round.c roundf implementation that depends on floorf and ceilf to
98057         be tested unconditionally.
98059 2007-10-21  Ben Pfaff  <blp@gnu.org>
98061         * m4/check-libm-func.m4: Removed.
98062         * m4/check-math-lib.m4: New file.
98063         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
98064         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
98065         definition and lack of AC_LIBOBJ([roundf]).
98066         * m4/roundl.m4: Ditto, and similarly for roundl.
98067         * modules/round: Reference new m4 file.
98068         * modules/roundf: Ditto.
98069         * modules/roundl: Ditto.
98070         * tests/test-round2.c (main): Use ROUND instead of round.
98071         Bug report from Bruno Haible.
98073 2007-10-21  Bruno Haible  <bruno@clisp.org>
98075         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
98076         context.
98078 2007-10-21  Bruno Haible  <bruno@clisp.org>
98080         * tests/test-wcwidth.c (main): Allow negative result for some control
98081         characters.
98083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
98084         Needed on OSF/1 5.1.
98086 2007-10-21  Bruno Haible  <bruno@clisp.org>
98088         * tests/test-floorf1.c: Include isnanf.h.
98089         (main): Use isnanf() instead of isnan().
98090         * tests/test-ceilf1.c: Include isnanf.h.
98091         (main): Use isnanf() instead of isnan().
98092         * tests/test-truncf1.c: Include isnanf.h.
98093         (main): Use isnanf() instead of isnan().
98094         * tests/test-roundf1.c: Include isnanf.h.
98095         (main): Use isnanf() instead of isnan().
98097 2007-10-21  Eric Blake  <ebb9@byu.net>
98099         * users.txt: Update URL for m4.
98101 2007-10-21  Bruno Haible  <bruno@clisp.org>
98103         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
98105 2007-10-21  Bruno Haible  <bruno@clisp.org>
98107         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
98108         Git's management files if the CVS files are not present.
98110 2007-10-20  Bruno Haible  <bruno@clisp.org>
98112         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
98113         gcc-3.4.x.
98115 2007-10-20  Ben Pfaff  <blp@gnu.org>
98117         * lib/math.in.h: Declare round, roundf, roundl if we are providing
98118         implementations.
98119         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
98120         * lib/round.c: New file.
98121         * lib/roundf.c: New file.
98122         * lib/roundl.c: New file.
98123         * m4/round.m4: New file.
98124         * m4/roundf.m4: New file.
98125         * m4/roundl.m4: New file.
98126         * m4/check-libm-func-m4: New file.
98127         * modules/math: Replace round, roundf, roundl related @VARS@ in
98128         math.in.h.
98129         * modules/round: New file.
98130         * modules/round-tests: New file.
98131         * modules/roundf: New file.
98132         * modules/roundf-tests: New file.
98133         * modules/roundl: New file.
98134         * modules/roundl-tests: New file.
98135         * tests/test-round1.c: New file.
98136         * tests/test-round2.c: New file.
98137         * tests/test-roundf1.c: New file.
98138         * tests/test-roundf2.c: New file.
98139         * tests/test-roundl.c: New file.
98140         * doc/functions/round.texi: Mention round module.
98141         * doc/functions/roundf.texi: Mention roundf module.
98142         * doc/functions/roundl.texi: Mention roundl module.
98143         * MODULES.html.sh: Mention new modules.
98144         Thanks to Bruno Haible for suggestions.
98146 2007-10-20  Jim Meyering  <meyering@redhat.com>
98148         * lib/xprintf.c: Include <config.h> unconditionally.
98150         Change xprintf's license to GPL.
98151         * modules/xprintf (License): s/LGPL/GPL/, since this module
98152         depends on modules (exit and exitfail) which are GPL.
98153         Suggestion from Bruno Haible.
98155         xprintf fixes.
98156         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
98157         Use a clearer diagnostic.
98158         Patch from Bruno Haible.
98160 2007-10-20  Bruno Haible  <bruno@clisp.org>
98162         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
98163         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
98164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98166 2007-10-20  Bruno Haible  <bruno@clisp.org>
98168         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
98169         precision in the comparison result > x - 1 or similar.
98170         * tests/test-ceilf2.c (correct_result_p): Likewise.
98171         * tests/test-truncf2.c (correct_result_p): Likewise.
98172         * tests/test-trunc2.c (correct_result_p): Likewise.
98173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98175 2007-10-20  Bruno Haible  <bruno@clisp.org>
98177         * modules/ceil: New file.
98178         * m4/ceil.m4: New file.
98179         * doc/functions/ceil.texi: Mention the 'ceil' module.
98181 2007-10-20  Bruno Haible  <bruno@clisp.org>
98183         * modules/floor: New file.
98184         * m4/floor.m4: New file.
98185         * doc/functions/floor.texi: Mention the 'floor' module.
98187 2007-10-20  Bruno Haible  <bruno@clisp.org>
98189         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
98190         of %a.
98191         * modules/floorf-tests (Depends-on): Likewise.
98192         * modules/truncf-tests (Depends-on): Likewise.
98193         * modules/trunc-tests (Depends-on): Likewise.
98194         Reported by Ben Pfaff.
98196 2007-10-19  Jim Meyering  <meyering@redhat.com>
98198         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
98199         Don't bother testing specific errno values.  Just test ferror.
98201         New module: xprintf
98202         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
98204 2007-10-19  Bruno Haible  <bruno@clisp.org>
98206         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
98207         syntax.
98208         * modules/javaexec (Makefile.am): Likewise.
98209         * modules/relocatable-prog (Makefile.am): Likewise.
98210         Suggested by Jim Meyering.
98212 2007-10-18  Bruno Haible  <bruno@clisp.org>
98214         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
98215         Reported by Jim Meyering.
98217 2007-10-18  Eric Blake  <ebb9@byu.net>
98219         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
98221 2007-10-18  Bruno Haible  <bruno@clisp.org>
98223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
98224         the format string into writable memory. Needed in Fortify conditions.
98226 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
98227             Bruno Haible  <bruno@clisp.org>
98229         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
98230         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
98231         * modules/trim (Depends-on): Add mbchar.
98232         (configure.ac): Add gl_FUNC_MBRTOWC.
98233         (Makefile.am): Augment lib_SOURCES.
98235 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
98237         Modify glob.c to use fstatat and dirfd, to simplify it.
98238         Suggested by Eric Blake.
98239         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
98240         Don't include <stdbool.h>; not used.
98241         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
98242         (link_exists_p): Simplify implementation, since we can now assume
98243         dirfd and fstatat.
98244         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
98246 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98248         * gnulib-tool (func_get_dependencies): Fix sed script to
98249         match only tests.
98251 2007-10-17  Bruno Haible  <bruno@clisp.org>
98253         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
98254         allow locale names without encoding suffix.
98255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98258 2007-10-16  Bruno Haible  <bruno@clisp.org>
98260         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
98261         * lib/getgroups.c (getgroups): Likewise.
98262         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
98264 2007-10-16  Bruno Haible  <bruno@clisp.org>
98266         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
98267         * modules/malloc-posix (License): Likewise.
98268         * modules/realloc-posix (License): Likewise.
98269         * modules/calloc-posix (License): Likewise.
98270         * modules/intprops (License): Change from GPL to LGPL, with
98271         Paul Eggert's approval.
98273 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
98275         Merge glibc changes into lib/glob.c.
98277         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
98278         2007-10-15 04:59:03 UTC.  Here are the changes:
98280         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
98282         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
98284         * lib/glob.c: Add some branch prediction throughout.
98286         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
98288         [BZ #5103]
98289         * lib/glob.c (glob): Recognize patterns starting \/.
98291         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
98293         [BZ #3996]
98294         * lib/glob.c (attribute_hidden): Define if not defined.
98295         (glob): Unescape dirname, filename or username when needed and not
98296         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
98297         is NULL.  Handle unescaped [ in pattern without closing ].
98298         Don't pass GLOB_CHECK down to recursive glob for directories.
98299         (__glob_pattern_type): New function.
98300         (__glob_pattern_p): Implement using __glob_pattern_type.
98301         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
98302         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
98303         Remove unreachable code.
98305         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
98307         * lib/glob.c (glob_in_dir): Add some comments and asserts to
98308         explain why there are no leaks.
98310         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
98312         [BZ #3253]
98313         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
98314         time, rather allocate increasingly bigger arrays of pointers, if
98315         possible with alloca, if too large with malloc.
98317 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
98319         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
98320         Problem reported by H.Merijn Brand in
98321         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
98322         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
98323         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
98325 2007-10-15  Bruno Haible  <bruno@clisp.org>
98327         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
98328         with explicit rpl_ prefix.
98329         * lib/fopen.c (fopen): Likewise.
98330         * lib/freopen.c (freopen): Likewise.
98331         * lib/iconv.c (iconv): Likewise.
98332         * lib/iconv_close.c (iconv_close): Likewise.
98334 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98336         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
98338 2007-10-15  Bruno Haible  <bruno@clisp.org>
98340         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
98341         <stddef.h> instead of <stdlib.h> since we only need NULL.
98342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98344 2007-10-15  Bruno Haible  <bruno@clisp.org>
98346         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
98347         Replace paragraph talking about LIBOBJS.
98348         Reported by Colin Watson <cjwatson@debian.org>.
98350 2007-10-15  Bruno Haible  <bruno@clisp.org>
98352         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
98353         <stdlib.h> before using NULL.
98355 2007-10-15  Simon Josefsson  <simon@josefsson.org>
98357         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
98358         Reported by Albert Chin <china@thewrittenword.com>.
98360 2007-10-14  Bruno Haible  <bruno@clisp.org>
98362         * modules/iconv_open-utf-tests: New file.
98363         * tests/test-iconv-utf.c: New file.
98365         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
98366         * modules/iconv_open-utf: New file.
98367         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
98368         (iconv, iconv_close): New declarations.
98369         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
98370         be defined.
98371         (iconv_open): Add special handling of conversion between UTF-8 and
98372         UTF-{16,32}{BE,LE}.
98373         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
98374         * lib/iconv_close.c: New file.
98375         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
98376         gl_FUNC_ICONV_OPEN.
98377         (gl_FUNC_ICONV_OPEN): Use it.
98378         (gl_FUNC_ICONV_OPEN_UTF): New macro.
98379         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
98380         and REPLACE_ICONV_UTF.
98381         * modules/iconv_open (Depends-on): Add c-strcase.
98382         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
98383         ICONV_CONST.
98384         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
98386 2007-10-13  Albert Chin  <china@thewrittenword.com>
98387             Bruno Haible  <bruno@clisp.org>
98389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
98390         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
98392 2007-10-13  Bruno Haible  <bruno@clisp.org>
98394         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
98395         defined, use the ISO C99 inline semantics.
98396         * lib/argp.h (ARGP_EI): Likewise.
98398 2007-10-13  Bruno Haible  <bruno@clisp.org>
98400         Handle 'inline' change in gcc 4.3.0.
98401         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
98402         argp_fmtstream_write, argp_fmtstream_set_lmargin,
98403         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
98404         argp_fmtstream_point): Disable 'extern' declaration if the function
98405         definition is going to be provided inline.
98406         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
98407         semantics, not the ISO C99 inline semantics.
98408         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
98409         'extern' declaration if the function definition is going to be provided
98410         inline.
98411         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
98412         the GNU C inline semantics, not the ISO C99 inline semantics. With
98413         GCC 4.2, avoid a warning.
98415 2007-10-13  Bruno Haible  <bruno@clisp.org>
98417         * lib/freading.h (freading): Enable the use of __freading for
98418         glibc >= 2.7.
98419         * lib/freading.c (freading): Likewise.
98421 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
98423         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
98424         "warning: C99 inline functions are not supported; using GNU89".
98426 2007-10-12  Bruno Haible  <bruno@clisp.org>
98428         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
98429         of 2.
98430         * tests/test-ceilf2.c: New file.
98431         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
98433         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
98434         * modules/ceilf-tests: Update.
98436 2007-10-12  Bruno Haible  <bruno@clisp.org>
98438         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
98439         of 2.
98440         * tests/test-floorf2.c: New file.
98441         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
98443         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
98444         * modules/floorf-tests: Update.
98446 2007-10-12  Bruno Haible  <bruno@clisp.org>
98448         * tests/test-trunc2.c: New file.
98449         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
98451         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
98452         * modules/trunc-tests: Update.
98454 2007-10-12  Bruno Haible  <bruno@clisp.org>
98456         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
98457         of 2.
98458         * tests/test-truncf2.c: New file.
98459         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
98461         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
98462         * modules/truncf-tests: Update.
98464 2007-10-11  Eric Blake  <ebb9@byu.net>
98466         Don't claim strerror is broken on Interix.
98467         * doc/functions/strerror.texi (strerror): Known broken systems are
98468         now Solaris 8, and not Interix.
98469         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
98470         Interix on cross-compile.
98471         Reported by Martin Koeppe in
98472         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
98474 2007-10-11  Bruno Haible  <bruno@clisp.org>
98476         * modules/i-ring-tests: New file.
98477         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
98478         instead of assert.
98480 2007-10-11  Bruno Haible  <bruno@clisp.org>
98482         * modules/filenamecat-tests: New file.
98483         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
98484         * lib/filenamecat.c: Remove test code.
98486 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
98488         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
98490         * lib/strerror.c: Include <string.h> always, to test interface,
98491         and to remove the need for the dummy.
98492         Include intprops.h to compute width instead of doing it ourselves
98493         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
98494         (strerror): Define it to return NULL if there's no system strerror.
98495         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
98496         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
98497         ancient pre-strerror Unix systems well any more.  Saying "unknown
98498         system error" is enough.
98499         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
98500         simpler strerror.c implementation.
98501         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
98502         Simplify the tests to reflect the simpler strerror implementation.
98503         * modules/strerror (Depends-on): Add intprops.
98505 2007-10-09  Eric Blake  <ebb9@byu.net>
98507         Silence test-fpending.
98508         * modules/fpending-tests (Files): Add wrapper script.
98509         * tests/test-fpending.sh: New file.
98511 2007-10-09  Bruno Haible  <bruno@clisp.org>
98513         * MODULES.html.sh (func_module): Don't create a hyperlink for
98514         function names like 'printf_frexp'.
98515         (Misc): Add crc, memxor.
98516         (Characteristics of floating types): New section.
98517         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
98518         isnanf-nolibm, signbit, trunc, truncf, truncl.
98519         (Enhancements for ISO C 99 functions): New subsection Input/output.
98520         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
98521         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
98522         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
98523         (Compatibility checks for POSIX:2001 functions): Add clock-time.
98524         (Enhancements for POSIX:2001 functions): Add chdir-long.
98525         (File system functions): Add areadlink, chdir-safer, read-file.
98526         Remove cycle-check.
98527         (File system as inode set): New section.
98528         (Date and time): Add gethrxtime.
98529         (Multithreading): Add openmp.
98530         (Internationalization functions): Add localename.
98531         (Unicode string functions): Add unistr/u*-mbsnlen.
98532         (Support for maintaining and releasing projects): Add git-version-gen.
98533         (Lone files): Remove directories.
98535 2007-10-08  Ben Pfaff  <blp@gnu.org>
98537         * lib/xmalloca.h: Fix typo in comment.
98539 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
98541         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
98542         when avoiding problems with integer overflow.  Use a portable test
98543         instead.
98545 2007-10-08  Simon Josefsson  <simon@josefsson.org>
98547         * modules/dummy (License): Change to LGPLv2+.
98548         * modules/float (License): Likewise
98549         * modules/realloc (License): Likewise
98550         * modules/stdlib (License): Likewise
98552 2007-10-07  Bruno Haible  <bruno@clisp.org>
98554         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
98555         * floor.c (TWO_MANT_DIG): Likewise.
98556         * ceil.c (TWO_MANT_DIG): Likewise.
98557         Reported by Ben Pfaff.
98559 2007-10-07  Bruno Haible  <bruno@clisp.org>
98561         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
98562         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
98563         * lib/frexp.c (FUNC): Likewise.
98564         * lib/printf-frexp.h (printf_frexp): Likewise.
98565         * lib/printf-frexpl.h (printf_frexpl): Likewise.
98566         * lib/printf-frexp.c (FUNC): Likewise.
98567         Suggested by Jim Meyering.
98569 2007-10-07  Jim Meyering  <meyering@redhat.com>
98571         Make xnanosleep's integer overflow test more robust.
98572         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
98573         so that gcc-4.3.0 doesn't optimize away this test for overflow.
98575 2007-10-07  Bruno Haible  <bruno@clisp.org>
98577         * NEWS: Mention the license change.
98579         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
98580         abbreviations in the modules files.
98582         Change copyright notice from GPLv2+ to GPLv3+.
98583         * README: Change copyright notice.
98584         * MODULES.html.sh: Likewise.
98585         * build-aux/bootstrap.conf: Likewise.
98586         * build-aux/config.libpath: Likewise.
98587         * build-aux/csharpcomp.sh.in: Likewise.
98588         * build-aux/csharpexec.sh.in: Likewise.
98589         * build-aux/install-reloc: Likewise.
98590         * build-aux/javacomp.sh.in: Likewise.
98591         * build-aux/javaexec.sh.in: Likewise.
98592         * build-aux/ldd.sh.in: Likewise.
98593         * build-aux/reloc-ldflags: Likewise.
98594         * build-aux/relocatable.sh.in: Likewise.
98595         * build-aux/x-to-1.in: Likewise.
98596         * check-module: Likewise.
98597         * config/srclistvars.sh: Likewise.
98598         * gnulib-tool: Likewise.
98599         * lib/acl-internal.h: Likewise.
98600         * lib/acl.c: Likewise.
98601         * lib/acl.h: Likewise.
98602         * lib/acl_entries.c: Likewise.
98603         * lib/areadlink-with-size.c: Likewise.
98604         * lib/areadlink.c: Likewise.
98605         * lib/areadlink.h: Likewise.
98606         * lib/argmatch.c: Likewise.
98607         * lib/argmatch.h: Likewise.
98608         * lib/argp-ba.c: Likewise.
98609         * lib/argp-eexst.c: Likewise.
98610         * lib/argp-fmtstream.c: Likewise.
98611         * lib/argp-fmtstream.h: Likewise.
98612         * lib/argp-fs-xinl.c: Likewise.
98613         * lib/argp-help.c: Likewise.
98614         * lib/argp-namefrob.h: Likewise.
98615         * lib/argp-parse.c: Likewise.
98616         * lib/argp-pin.c: Likewise.
98617         * lib/argp-pv.c: Likewise.
98618         * lib/argp-pvh.c: Likewise.
98619         * lib/argp-xinl.c: Likewise.
98620         * lib/argp.h: Likewise.
98621         * lib/at-func.c: Likewise.
98622         * lib/atanl.c: Likewise.
98623         * lib/backupfile.c: Likewise.
98624         * lib/backupfile.h: Likewise.
98625         * lib/basename.c: Likewise.
98626         * lib/binary-io.h: Likewise.
98627         * lib/byteswap.in.h: Likewise.
98628         * lib/c-stack.c: Likewise.
98629         * lib/c-stack.h: Likewise.
98630         * lib/c-strcasestr.c: Likewise.
98631         * lib/c-strcasestr.h: Likewise.
98632         * lib/c-strstr.c: Likewise.
98633         * lib/c-strstr.h: Likewise.
98634         * lib/c-strtod.c: Likewise.
98635         * lib/calloc.c: Likewise.
98636         * lib/canon-host.c: Likewise.
98637         * lib/canon-host.h: Likewise.
98638         * lib/canonicalize-lgpl.c: Likewise.
98639         * lib/canonicalize.c: Likewise.
98640         * lib/canonicalize.h: Likewise.
98641         * lib/ceil.c: Likewise.
98642         * lib/ceilf.c: Likewise.
98643         * lib/ceill.c: Likewise.
98644         * lib/chdir-long.c: Likewise.
98645         * lib/chdir-long.h: Likewise.
98646         * lib/chdir-safer.c: Likewise.
98647         * lib/chdir-safer.h: Likewise.
98648         * lib/chown.c: Likewise.
98649         * lib/classpath.c: Likewise.
98650         * lib/classpath.h: Likewise.
98651         * lib/clean-temp.c: Likewise.
98652         * lib/clean-temp.h: Likewise.
98653         * lib/cloexec.c: Likewise.
98654         * lib/close-stream.c: Likewise.
98655         * lib/closein.c: Likewise.
98656         * lib/closein.h: Likewise.
98657         * lib/closeout.c: Likewise.
98658         * lib/closeout.h: Likewise.
98659         * lib/concat-filename.c: Likewise.
98660         * lib/copy-file.c: Likewise.
98661         * lib/copy-file.h: Likewise.
98662         * lib/count-one-bits.h: Likewise.
98663         * lib/crc.c: Likewise.
98664         * lib/crc.h: Likewise.
98665         * lib/creat-safer.c: Likewise.
98666         * lib/csharpcomp.c: Likewise.
98667         * lib/csharpcomp.h: Likewise.
98668         * lib/csharpexec.c: Likewise.
98669         * lib/csharpexec.h: Likewise.
98670         * lib/cycle-check.c: Likewise.
98671         * lib/cycle-check.h: Likewise.
98672         * lib/diacrit.c: Likewise.
98673         * lib/diacrit.h: Likewise.
98674         * lib/diffseq.h: Likewise.
98675         * lib/dirchownmod.c: Likewise.
98676         * lib/dirent.in.h: Likewise.
98677         * lib/dirfd.c: Likewise.
98678         * lib/dirfd.h: Likewise.
98679         * lib/dirname.c: Likewise.
98680         * lib/dirname.h: Likewise.
98681         * lib/dummy.c: Likewise.
98682         * lib/dup-safer.c: Likewise.
98683         * lib/dup2.c: Likewise.
98684         * lib/eealloc.h: Likewise.
98685         * lib/error.c: Likewise.
98686         * lib/error.h: Likewise.
98687         * lib/euidaccess.c: Likewise.
98688         * lib/exclude.c: Likewise.
98689         * lib/exclude.h: Likewise.
98690         * lib/execute.c: Likewise.
98691         * lib/execute.h: Likewise.
98692         * lib/exitfail.c: Likewise.
98693         * lib/exitfail.h: Likewise.
98694         * lib/expl.c: Likewise.
98695         * lib/fatal-signal.c: Likewise.
98696         * lib/fatal-signal.h: Likewise.
98697         * lib/fbufmode.c: Likewise.
98698         * lib/fbufmode.h: Likewise.
98699         * lib/fchdir.c: Likewise.
98700         * lib/fchmodat.c: Likewise.
98701         * lib/fchownat.c: Likewise.
98702         * lib/fcntl--.h: Likewise.
98703         * lib/fcntl-safer.h: Likewise.
98704         * lib/fcntl.in.h: Likewise.
98705         * lib/fd-safer.c: Likewise.
98706         * lib/fflush.c: Likewise.
98707         * lib/file-has-acl.c: Likewise.
98708         * lib/file-set.c: Likewise.
98709         * lib/file-type.c: Likewise.
98710         * lib/file-type.h: Likewise.
98711         * lib/fileblocks.c: Likewise.
98712         * lib/filemode.c: Likewise.
98713         * lib/filemode.h: Likewise.
98714         * lib/filename.h: Likewise.
98715         * lib/filenamecat.c: Likewise.
98716         * lib/filenamecat.h: Likewise.
98717         * lib/findprog.c: Likewise.
98718         * lib/findprog.h: Likewise.
98719         * lib/float.in.h: Likewise.
98720         * lib/floor.c: Likewise.
98721         * lib/floorf.c: Likewise.
98722         * lib/floorl.c: Likewise.
98723         * lib/fopen-safer.c: Likewise.
98724         * lib/fopen.c: Likewise.
98725         * lib/fpending.c: Likewise.
98726         * lib/fpending.h: Likewise.
98727         * lib/fprintf.c: Likewise.
98728         * lib/fprintftime.h: Likewise.
98729         * lib/fpucw.h: Likewise.
98730         * lib/fpurge.c: Likewise.
98731         * lib/fpurge.h: Likewise.
98732         * lib/freadable.c: Likewise.
98733         * lib/freadable.h: Likewise.
98734         * lib/freadahead.c: Likewise.
98735         * lib/freadahead.h: Likewise.
98736         * lib/freading.c: Likewise.
98737         * lib/freading.h: Likewise.
98738         * lib/free.c: Likewise.
98739         * lib/freopen.c: Likewise.
98740         * lib/frexp.c: Likewise.
98741         * lib/frexpl.c: Likewise.
98742         * lib/fseek.c: Likewise.
98743         * lib/fseterr.c: Likewise.
98744         * lib/fseterr.h: Likewise.
98745         * lib/fstatat.c: Likewise.
98746         * lib/fstrcmp.c: Likewise.
98747         * lib/fstrcmp.h: Likewise.
98748         * lib/fsusage.c: Likewise.
98749         * lib/fsusage.h: Likewise.
98750         * lib/ftell.c: Likewise.
98751         * lib/ftello.c: Likewise.
98752         * lib/fts-cycle.c: Likewise.
98753         * lib/fts.c: Likewise.
98754         * lib/fts_.h: Likewise.
98755         * lib/full-read.c: Likewise.
98756         * lib/full-read.h: Likewise.
98757         * lib/full-write.c: Likewise.
98758         * lib/full-write.h: Likewise.
98759         * lib/fwritable.c: Likewise.
98760         * lib/fwritable.h: Likewise.
98761         * lib/fwriteerror.c: Likewise.
98762         * lib/fwriteerror.h: Likewise.
98763         * lib/fwriting.c: Likewise.
98764         * lib/fwriting.h: Likewise.
98765         * lib/gcd.c: Likewise.
98766         * lib/gcd.h: Likewise.
98767         * lib/getcwd.c: Likewise.
98768         * lib/getdate.h: Likewise.
98769         * lib/getdate.y: Likewise.
98770         * lib/getdomainname.c: Likewise.
98771         * lib/getdomainname.h: Likewise.
98772         * lib/getgroups.c: Likewise.
98773         * lib/gethostname.c: Likewise.
98774         * lib/gethrxtime.c: Likewise.
98775         * lib/gethrxtime.h: Likewise.
98776         * lib/getloadavg.c: Likewise.
98777         * lib/getndelim2.c: Likewise.
98778         * lib/getndelim2.h: Likewise.
98779         * lib/getnline.c: Likewise.
98780         * lib/getnline.h: Likewise.
98781         * lib/getopt.c: Likewise.
98782         * lib/getopt.in.h: Likewise.
98783         * lib/getopt1.c: Likewise.
98784         * lib/getopt_int.h: Likewise.
98785         * lib/getpagesize.h: Likewise.
98786         * lib/getsubopt.c: Likewise.
98787         * lib/gettime.c: Likewise.
98788         * lib/getugroups.c: Likewise.
98789         * lib/getugroups.h: Likewise.
98790         * lib/getusershell.c: Likewise.
98791         * lib/gl_anyavltree_list1.h: Likewise.
98792         * lib/gl_anyavltree_list2.h: Likewise.
98793         * lib/gl_anyhash_list1.h: Likewise.
98794         * lib/gl_anyhash_list2.h: Likewise.
98795         * lib/gl_anylinked_list1.h: Likewise.
98796         * lib/gl_anylinked_list2.h: Likewise.
98797         * lib/gl_anyrbtree_list1.h: Likewise.
98798         * lib/gl_anyrbtree_list2.h: Likewise.
98799         * lib/gl_anytree_list1.h: Likewise.
98800         * lib/gl_anytree_list2.h: Likewise.
98801         * lib/gl_anytree_oset.h: Likewise.
98802         * lib/gl_anytreehash_list1.h: Likewise.
98803         * lib/gl_anytreehash_list2.h: Likewise.
98804         * lib/gl_array_list.c: Likewise.
98805         * lib/gl_array_list.h: Likewise.
98806         * lib/gl_array_oset.c: Likewise.
98807         * lib/gl_array_oset.h: Likewise.
98808         * lib/gl_avltree_list.c: Likewise.
98809         * lib/gl_avltree_list.h: Likewise.
98810         * lib/gl_avltree_oset.c: Likewise.
98811         * lib/gl_avltree_oset.h: Likewise.
98812         * lib/gl_avltreehash_list.c: Likewise.
98813         * lib/gl_avltreehash_list.h: Likewise.
98814         * lib/gl_carray_list.c: Likewise.
98815         * lib/gl_carray_list.h: Likewise.
98816         * lib/gl_linked_list.c: Likewise.
98817         * lib/gl_linked_list.h: Likewise.
98818         * lib/gl_linkedhash_list.c: Likewise.
98819         * lib/gl_linkedhash_list.h: Likewise.
98820         * lib/gl_list.c: Likewise.
98821         * lib/gl_list.h: Likewise.
98822         * lib/gl_oset.c: Likewise.
98823         * lib/gl_oset.h: Likewise.
98824         * lib/gl_rbtree_list.c: Likewise.
98825         * lib/gl_rbtree_list.h: Likewise.
98826         * lib/gl_rbtree_oset.c: Likewise.
98827         * lib/gl_rbtree_oset.h: Likewise.
98828         * lib/gl_rbtreehash_list.c: Likewise.
98829         * lib/gl_rbtreehash_list.h: Likewise.
98830         * lib/gl_sublist.c: Likewise.
98831         * lib/gl_sublist.h: Likewise.
98832         * lib/group-member.c: Likewise.
98833         * lib/group-member.h: Likewise.
98834         * lib/hard-locale.c: Likewise.
98835         * lib/hard-locale.h: Likewise.
98836         * lib/hash-pjw.c: Likewise.
98837         * lib/hash-pjw.h: Likewise.
98838         * lib/hash-triple.c: Likewise.
98839         * lib/hash.c: Likewise.
98840         * lib/hash.h: Likewise.
98841         * lib/human.c: Likewise.
98842         * lib/human.h: Likewise.
98843         * lib/i-ring.c: Likewise.
98844         * lib/i-ring.h: Likewise.
98845         * lib/idcache.c: Likewise.
98846         * lib/imaxabs.c: Likewise.
98847         * lib/imaxdiv.c: Likewise.
98848         * lib/inet_pton.c: Likewise.
98849         * lib/inet_pton.h: Likewise.
98850         * lib/intprops.h: Likewise.
98851         * lib/inttostr.c: Likewise.
98852         * lib/inttostr.h: Likewise.
98853         * lib/inttypes.in.h: Likewise.
98854         * lib/isapipe.c: Likewise.
98855         * lib/isdir.c: Likewise.
98856         * lib/isnan.c: Likewise.
98857         * lib/isnan.h: Likewise.
98858         * lib/isnanf.c: Likewise.
98859         * lib/isnanf.h: Likewise.
98860         * lib/isnanl-nolibm.h: Likewise.
98861         * lib/isnanl.c: Likewise.
98862         * lib/isnanl.h: Likewise.
98863         * lib/javacomp.c: Likewise.
98864         * lib/javacomp.h: Likewise.
98865         * lib/javaexec.c: Likewise.
98866         * lib/javaexec.h: Likewise.
98867         * lib/javaversion.c: Likewise.
98868         * lib/javaversion.h: Likewise.
98869         * lib/javaversion.java: Likewise.
98870         * lib/lbrkprop.h: Likewise.
98871         * lib/lchmod.h: Likewise.
98872         * lib/lchown.c: Likewise.
98873         * lib/ldexpl.c: Likewise.
98874         * lib/linebreak.c: Likewise.
98875         * lib/linebreak.h: Likewise.
98876         * lib/linebuffer.c: Likewise.
98877         * lib/linebuffer.h: Likewise.
98878         * lib/locale.in.h: Likewise.
98879         * lib/logl.c: Likewise.
98880         * lib/long-options.c: Likewise.
98881         * lib/long-options.h: Likewise.
98882         * lib/lstat.c: Likewise.
98883         * lib/lstat.h: Likewise.
98884         * lib/math.in.h: Likewise.
98885         * lib/mbchar.c: Likewise.
98886         * lib/mbchar.h: Likewise.
98887         * lib/mbfile.h: Likewise.
98888         * lib/mbiter.h: Likewise.
98889         * lib/mbscasecmp.c: Likewise.
98890         * lib/mbscasestr.c: Likewise.
98891         * lib/mbschr.c: Likewise.
98892         * lib/mbscspn.c: Likewise.
98893         * lib/mbslen.c: Likewise.
98894         * lib/mbsncasecmp.c: Likewise.
98895         * lib/mbsnlen.c: Likewise.
98896         * lib/mbspbrk.c: Likewise.
98897         * lib/mbspcasecmp.c: Likewise.
98898         * lib/mbsrchr.c: Likewise.
98899         * lib/mbssep.c: Likewise.
98900         * lib/mbsspn.c: Likewise.
98901         * lib/mbsstr.c: Likewise.
98902         * lib/mbstok_r.c: Likewise.
98903         * lib/mbswidth.c: Likewise.
98904         * lib/mbswidth.h: Likewise.
98905         * lib/mbuiter.h: Likewise.
98906         * lib/memcasecmp.c: Likewise.
98907         * lib/memcasecmp.h: Likewise.
98908         * lib/memchr.c: Likewise.
98909         * lib/memcmp.c: Likewise.
98910         * lib/memcoll.c: Likewise.
98911         * lib/memcoll.h: Likewise.
98912         * lib/memcpy.c: Likewise.
98913         * lib/memrchr.c: Likewise.
98914         * lib/mkancesdirs.c: Likewise.
98915         * lib/mkdir-p.c: Likewise.
98916         * lib/mkdir-p.h: Likewise.
98917         * lib/mkdir.c: Likewise.
98918         * lib/mkdirat.c: Likewise.
98919         * lib/mkdtemp.c: Likewise.
98920         * lib/mkstemp-safer.c: Likewise.
98921         * lib/mkstemp.c: Likewise.
98922         * lib/modechange.c: Likewise.
98923         * lib/modechange.h: Likewise.
98924         * lib/mountlist.c: Likewise.
98925         * lib/mountlist.h: Likewise.
98926         * lib/mpsort.c: Likewise.
98927         * lib/nanosleep.c: Likewise.
98928         * lib/obstack.c: Likewise.
98929         * lib/obstack.h: Likewise.
98930         * lib/open-safer.c: Likewise.
98931         * lib/open.c: Likewise.
98932         * lib/openat-die.c: Likewise.
98933         * lib/openat-priv.h: Likewise.
98934         * lib/openat-proc.c: Likewise.
98935         * lib/openat.c: Likewise.
98936         * lib/openat.h: Likewise.
98937         * lib/pagealign_alloc.c: Likewise.
98938         * lib/pagealign_alloc.h: Likewise.
98939         * lib/physmem.c: Likewise.
98940         * lib/physmem.h: Likewise.
98941         * lib/pipe-safer.c: Likewise.
98942         * lib/pipe.c: Likewise.
98943         * lib/pipe.h: Likewise.
98944         * lib/posixtm.c: Likewise.
98945         * lib/posixtm.h: Likewise.
98946         * lib/posixver.c: Likewise.
98947         * lib/printf-frexp.c: Likewise.
98948         * lib/printf-frexp.h: Likewise.
98949         * lib/printf-frexpl.c: Likewise.
98950         * lib/printf-frexpl.h: Likewise.
98951         * lib/printf.c: Likewise.
98952         * lib/progname.c: Likewise.
98953         * lib/progname.h: Likewise.
98954         * lib/progreloc.c: Likewise.
98955         * lib/putenv.c: Likewise.
98956         * lib/quote.c: Likewise.
98957         * lib/quote.h: Likewise.
98958         * lib/quotearg.c: Likewise.
98959         * lib/quotearg.h: Likewise.
98960         * lib/raise.c: Likewise.
98961         * lib/readline.c: Likewise.
98962         * lib/readline.h: Likewise.
98963         * lib/readlink.c: Likewise.
98964         * lib/readtokens.c: Likewise.
98965         * lib/readtokens.h: Likewise.
98966         * lib/readtokens0.c: Likewise.
98967         * lib/readtokens0.h: Likewise.
98968         * lib/readutmp.c: Likewise.
98969         * lib/readutmp.h: Likewise.
98970         * lib/realloc.c: Likewise.
98971         * lib/relocwrapper.c: Likewise.
98972         * lib/rename-dest-slash.c: Likewise.
98973         * lib/rename.c: Likewise.
98974         * lib/rmdir.c: Likewise.
98975         * lib/rpmatch.c: Likewise.
98976         * lib/safe-read.c: Likewise.
98977         * lib/safe-read.h: Likewise.
98978         * lib/safe-write.c: Likewise.
98979         * lib/safe-write.h: Likewise.
98980         * lib/same-inode.h: Likewise.
98981         * lib/same.c: Likewise.
98982         * lib/same.h: Likewise.
98983         * lib/save-cwd.c: Likewise.
98984         * lib/save-cwd.h: Likewise.
98985         * lib/savedir.c: Likewise.
98986         * lib/savedir.h: Likewise.
98987         * lib/savewd.c: Likewise.
98988         * lib/savewd.h: Likewise.
98989         * lib/search.in.h: Likewise.
98990         * lib/setenv.c: Likewise.
98991         * lib/setenv.h: Likewise.
98992         * lib/settime.c: Likewise.
98993         * lib/sh-quote.c: Likewise.
98994         * lib/sh-quote.h: Likewise.
98995         * lib/sig2str.c: Likewise.
98996         * lib/sig2str.h: Likewise.
98997         * lib/signal.in.h: Likewise.
98998         * lib/signbitd.c: Likewise.
98999         * lib/signbitf.c: Likewise.
99000         * lib/signbitl.c: Likewise.
99001         * lib/sigprocmask.c: Likewise.
99002         * lib/sincosl.c: Likewise.
99003         * lib/sleep.c: Likewise.
99004         * lib/sprintf.c: Likewise.
99005         * lib/sqrtl.c: Likewise.
99006         * lib/stat-time.h: Likewise.
99007         * lib/stdio--.h: Likewise.
99008         * lib/stdio-safer.h: Likewise.
99009         * lib/stdlib--.h: Likewise.
99010         * lib/stdlib-safer.h: Likewise.
99011         * lib/stdlib.in.h: Likewise.
99012         * lib/stpcpy.c: Likewise.
99013         * lib/stpncpy.c: Likewise.
99014         * lib/strchrnul.c: Likewise.
99015         * lib/strcspn.c: Likewise.
99016         * lib/strerror.c: Likewise.
99017         * lib/strftime.c: Likewise.
99018         * lib/strftime.h: Likewise.
99019         * lib/striconveh.c: Likewise.
99020         * lib/striconveh.h: Likewise.
99021         * lib/striconveha.c: Likewise.
99022         * lib/striconveha.h: Likewise.
99023         * lib/stripslash.c: Likewise.
99024         * lib/strnlen1.c: Likewise.
99025         * lib/strnlen1.h: Likewise.
99026         * lib/strtod.c: Likewise.
99027         * lib/strtoimax.c: Likewise.
99028         * lib/strtok_r.c: Likewise.
99029         * lib/strtol.c: Likewise.
99030         * lib/strtoll.c: Likewise.
99031         * lib/strtoul.c: Likewise.
99032         * lib/strtoull.c: Likewise.
99033         * lib/sysexits.in.h: Likewise.
99034         * lib/tempname.c: Likewise.
99035         * lib/tempname.h: Likewise.
99036         * lib/timespec.h: Likewise.
99037         * lib/tls.c: Likewise.
99038         * lib/tls.h: Likewise.
99039         * lib/tmpdir.c: Likewise.
99040         * lib/tmpdir.h: Likewise.
99041         * lib/tmpfile-safer.c: Likewise.
99042         * lib/tmpfile.c: Likewise.
99043         * lib/trigl.c: Likewise.
99044         * lib/trigl.h: Likewise.
99045         * lib/trim.c: Likewise.
99046         * lib/trim.h: Likewise.
99047         * lib/trunc.c: Likewise.
99048         * lib/truncf.c: Likewise.
99049         * lib/truncl.c: Likewise.
99050         * lib/tsearch.c: Likewise.
99051         * lib/unicodeio.c: Likewise.
99052         * lib/unicodeio.h: Likewise.
99053         * lib/unistd--.h: Likewise.
99054         * lib/unistd-safer.h: Likewise.
99055         * lib/unistdio/ulc-fprintf.c: Likewise.
99056         * lib/unistdio/ulc-vfprintf.c: Likewise.
99057         * lib/unlinkdir.c: Likewise.
99058         * lib/unlinkdir.h: Likewise.
99059         * lib/unlocked-io.h: Likewise.
99060         * lib/unsetenv.c: Likewise.
99061         * lib/userspec.c: Likewise.
99062         * lib/utime.c: Likewise.
99063         * lib/utimecmp.c: Likewise.
99064         * lib/utimecmp.h: Likewise.
99065         * lib/utimens.c: Likewise.
99066         * lib/verify.h: Likewise.
99067         * lib/verror.c: Likewise.
99068         * lib/verror.h: Likewise.
99069         * lib/version-etc-fsf.c: Likewise.
99070         * lib/version-etc.c: Likewise.
99071         * lib/version-etc.h: Likewise.
99072         * lib/vfprintf.c: Likewise.
99073         * lib/vprintf.c: Likewise.
99074         * lib/vsprintf.c: Likewise.
99075         * lib/w32spawn.h: Likewise.
99076         * lib/wait-process.c: Likewise.
99077         * lib/wait-process.h: Likewise.
99078         * lib/wcwidth.c: Likewise.
99079         * lib/write-any-file.c: Likewise.
99080         * lib/xalloc-die.c: Likewise.
99081         * lib/xalloc.h: Likewise.
99082         * lib/xasprintf.c: Likewise.
99083         * lib/xgetcwd.c: Likewise.
99084         * lib/xgetcwd.h: Likewise.
99085         * lib/xgetdomainname.c: Likewise.
99086         * lib/xgetdomainname.h: Likewise.
99087         * lib/xgethostname.c: Likewise.
99088         * lib/xmalloc.c: Likewise.
99089         * lib/xmalloca.c: Likewise.
99090         * lib/xmalloca.h: Likewise.
99091         * lib/xmemcoll.c: Likewise.
99092         * lib/xnanosleep.c: Likewise.
99093         * lib/xreadlink.c: Likewise.
99094         * lib/xreadlink.h: Likewise.
99095         * lib/xsetenv.c: Likewise.
99096         * lib/xsetenv.h: Likewise.
99097         * lib/xstriconv.c: Likewise.
99098         * lib/xstriconv.h: Likewise.
99099         * lib/xstrndup.c: Likewise.
99100         * lib/xstrndup.h: Likewise.
99101         * lib/xstrtod.c: Likewise.
99102         * lib/xstrtod.h: Likewise.
99103         * lib/xstrtol-error.c: Likewise.
99104         * lib/xstrtol.c: Likewise.
99105         * lib/xstrtol.h: Likewise.
99106         * lib/xtime.h: Likewise.
99107         * lib/xvasprintf.c: Likewise.
99108         * lib/xvasprintf.h: Likewise.
99109         * lib/yesno.c: Likewise.
99110         * lib/yesno.h: Likewise.
99111         * posix-modules: Likewise.
99112         * tests/test-alloca-opt.c: Likewise.
99113         * tests/test-arcfour.c: Likewise.
99114         * tests/test-arctwo.c: Likewise.
99115         * tests/test-argmatch.c: Likewise.
99116         * tests/test-argp-2.sh: Likewise.
99117         * tests/test-argp.c: Likewise.
99118         * tests/test-arpa_inet.c: Likewise.
99119         * tests/test-array_list.c: Likewise.
99120         * tests/test-array_oset.c: Likewise.
99121         * tests/test-atexit.c: Likewise.
99122         * tests/test-avltree_list.c: Likewise.
99123         * tests/test-avltree_oset.c: Likewise.
99124         * tests/test-avltreehash_list.c: Likewise.
99125         * tests/test-base64.c: Likewise.
99126         * tests/test-binary-io.c: Likewise.
99127         * tests/test-byteswap.c: Likewise.
99128         * tests/test-c-ctype.c: Likewise.
99129         * tests/test-c-strcasecmp.c: Likewise.
99130         * tests/test-c-strcasestr.c: Likewise.
99131         * tests/test-c-strncasecmp.c: Likewise.
99132         * tests/test-c-strstr.c: Likewise.
99133         * tests/test-canonicalize-lgpl.c: Likewise.
99134         * tests/test-canonicalize.c: Likewise.
99135         * tests/test-carray_list.c: Likewise.
99136         * tests/test-ceilf.c: Likewise.
99137         * tests/test-ceill.c: Likewise.
99138         * tests/test-count-one-bits.c: Likewise.
99139         * tests/test-crc.c: Likewise.
99140         * tests/test-dirname.c: Likewise.
99141         * tests/test-fbufmode.c: Likewise.
99142         * tests/test-fcntl.c: Likewise.
99143         * tests/test-fflush.c: Likewise.
99144         * tests/test-floorf.c: Likewise.
99145         * tests/test-floorl.c: Likewise.
99146         * tests/test-fopen.c: Likewise.
99147         * tests/test-fprintf-posix.c: Likewise.
99148         * tests/test-fprintf-posix.h: Likewise.
99149         * tests/test-fpurge.c: Likewise.
99150         * tests/test-freadable.c: Likewise.
99151         * tests/test-freadahead.c: Likewise.
99152         * tests/test-freading.c: Likewise.
99153         * tests/test-freopen.c: Likewise.
99154         * tests/test-frexp.c: Likewise.
99155         * tests/test-frexpl.c: Likewise.
99156         * tests/test-fseek.c: Likewise.
99157         * tests/test-fseeko.c: Likewise.
99158         * tests/test-fseterr.c: Likewise.
99159         * tests/test-fstrcmp.c: Likewise.
99160         * tests/test-ftell.c: Likewise.
99161         * tests/test-ftello.c: Likewise.
99162         * tests/test-fwritable.c: Likewise.
99163         * tests/test-fwriting.c: Likewise.
99164         * tests/test-getaddrinfo.c: Likewise.
99165         * tests/test-getpass.c: Likewise.
99166         * tests/test-gettimeofday.c: Likewise.
99167         * tests/test-hmac-md5.c: Likewise.
99168         * tests/test-hmac-sha1.c: Likewise.
99169         * tests/test-iconv.c: Likewise.
99170         * tests/test-iconvme.c: Likewise.
99171         * tests/test-inttypes.c: Likewise.
99172         * tests/test-isnan.c: Likewise.
99173         * tests/test-isnanf.c: Likewise.
99174         * tests/test-isnanl-nolibm.c: Likewise.
99175         * tests/test-isnanl.c: Likewise.
99176         * tests/test-isnanl.h: Likewise.
99177         * tests/test-ldexpl.c: Likewise.
99178         * tests/test-linked_list.c: Likewise.
99179         * tests/test-linkedhash_list.c: Likewise.
99180         * tests/test-locale.c: Likewise.
99181         * tests/test-localename.c: Likewise.
99182         * tests/test-lock.c: Likewise.
99183         * tests/test-lseek.c: Likewise.
99184         * tests/test-malloca.c: Likewise.
99185         * tests/test-math.c: Likewise.
99186         * tests/test-mbscasecmp.c: Likewise.
99187         * tests/test-mbscasestr1.c: Likewise.
99188         * tests/test-mbscasestr2.c: Likewise.
99189         * tests/test-mbscasestr3.c: Likewise.
99190         * tests/test-mbscasestr4.c: Likewise.
99191         * tests/test-mbschr.c: Likewise.
99192         * tests/test-mbscspn.c: Likewise.
99193         * tests/test-mbsncasecmp.c: Likewise.
99194         * tests/test-mbspbrk.c: Likewise.
99195         * tests/test-mbspcasecmp.c: Likewise.
99196         * tests/test-mbsrchr.c: Likewise.
99197         * tests/test-mbsspn.c: Likewise.
99198         * tests/test-mbsstr1.c: Likewise.
99199         * tests/test-mbsstr2.c: Likewise.
99200         * tests/test-mbsstr3.c: Likewise.
99201         * tests/test-md5.c: Likewise.
99202         * tests/test-memmem.c: Likewise.
99203         * tests/test-netinet_in.c: Likewise.
99204         * tests/test-open.c: Likewise.
99205         * tests/test-printf-frexp.c: Likewise.
99206         * tests/test-printf-frexpl.c: Likewise.
99207         * tests/test-printf-posix.c: Likewise.
99208         * tests/test-printf-posix.h: Likewise.
99209         * tests/test-rbtree_list.c: Likewise.
99210         * tests/test-rbtree_oset.c: Likewise.
99211         * tests/test-rbtreehash_list.c: Likewise.
99212         * tests/test-read-file.c: Likewise.
99213         * tests/test-rijndael.c: Likewise.
99214         * tests/test-search.c: Likewise.
99215         * tests/test-signbit.c: Likewise.
99216         * tests/test-sleep.c: Likewise.
99217         * tests/test-snprintf-posix.c: Likewise.
99218         * tests/test-snprintf-posix.h: Likewise.
99219         * tests/test-snprintf.c: Likewise.
99220         * tests/test-sprintf-posix.c: Likewise.
99221         * tests/test-sprintf-posix.h: Likewise.
99222         * tests/test-stat-time.c: Likewise.
99223         * tests/test-stdbool.c: Likewise.
99224         * tests/test-stdint.c: Likewise.
99225         * tests/test-stdio.c: Likewise.
99226         * tests/test-stdlib.c: Likewise.
99227         * tests/test-stpncpy.c: Likewise.
99228         * tests/test-strcasestr.c: Likewise.
99229         * tests/test-striconv.c: Likewise.
99230         * tests/test-striconveh.c: Likewise.
99231         * tests/test-striconveha.c: Likewise.
99232         * tests/test-string.c: Likewise.
99233         * tests/test-sys_select.c: Likewise.
99234         * tests/test-sys_socket.c: Likewise.
99235         * tests/test-sys_stat.c: Likewise.
99236         * tests/test-sys_time.c: Likewise.
99237         * tests/test-sysexits.c: Likewise.
99238         * tests/test-time.c: Likewise.
99239         * tests/test-tls.c: Likewise.
99240         * tests/test-trunc.c: Likewise.
99241         * tests/test-truncf.c: Likewise.
99242         * tests/test-truncl.c: Likewise.
99243         * tests/test-unistd.c: Likewise.
99244         * tests/test-vasnprintf-posix.c: Likewise.
99245         * tests/test-vasnprintf-posix2.c: Likewise.
99246         * tests/test-vasnprintf.c: Likewise.
99247         * tests/test-vasprintf-posix.c: Likewise.
99248         * tests/test-vasprintf.c: Likewise.
99249         * tests/test-verify.c: Likewise.
99250         * tests/test-vfprintf-posix.c: Likewise.
99251         * tests/test-vprintf-posix.c: Likewise.
99252         * tests/test-vsnprintf-posix.c: Likewise.
99253         * tests/test-vsnprintf.c: Likewise.
99254         * tests/test-vsprintf-posix.c: Likewise.
99255         * tests/test-wchar.c: Likewise.
99256         * tests/test-wctype.c: Likewise.
99257         * tests/test-wcwidth.c: Likewise.
99258         * tests/test-xstrtol.c: Likewise.
99259         * tests/test-xvasprintf.c: Likewise.
99260         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
99261         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
99262         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99263         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99264         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99265         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
99266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99268         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99269         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
99270         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99271         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99272         * tests/uniname/test-uninames.c: Likewise.
99273         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
99274         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
99275         * tests/unistdio/test-u16-printf1.h: Likewise.
99276         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
99277         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
99278         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
99279         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
99280         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
99281         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
99282         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
99283         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
99284         * tests/unistdio/test-u32-printf1.h: Likewise.
99285         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
99286         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
99287         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
99288         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
99289         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
99290         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
99291         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
99292         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
99293         * tests/unistdio/test-u8-printf1.h: Likewise.
99294         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
99295         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
99296         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
99297         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
99298         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
99299         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
99300         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
99301         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
99302         * tests/unistdio/test-ulc-printf1.h: Likewise.
99303         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
99304         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
99305         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
99306         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
99307         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
99308         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
99309         * tests/uniwidth/test-u16-strwidth.c: Likewise.
99310         * tests/uniwidth/test-u16-width.c: Likewise.
99311         * tests/uniwidth/test-u32-strwidth.c: Likewise.
99312         * tests/uniwidth/test-u32-width.c: Likewise.
99313         * tests/uniwidth/test-u8-strwidth.c: Likewise.
99314         * tests/uniwidth/test-u8-width.c: Likewise.
99315         * tests/uniwidth/test-uc_width.c: Likewise.
99316         * config/srclist-update: Likewise.
99317         (fixlicense): Update to GPLv3+.
99319         Change copyright notice from LGPLv2.1+ to LGPLv3+.
99320         * tests/test-tsearch.c: Change copyright notice.
99322         Change copyright notice from LGPLv2.0+ to LGPLv3+.
99323         * lib/c-strcaseeq.h: Change copyright notice.
99324         * lib/streq.h: Likewise.
99325         * lib/uniconv.h: Likewise.
99326         * lib/uniconv/u-conv-from-enc.h: Likewise.
99327         * lib/uniconv/u-conv-to-enc.h: Likewise.
99328         * lib/uniconv/u-strconv-from-enc.h: Likewise.
99329         * lib/uniconv/u-strconv-to-enc.h: Likewise.
99330         * lib/uniconv/u16-conv-from-enc.c: Likewise.
99331         * lib/uniconv/u16-conv-to-enc.c: Likewise.
99332         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
99333         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
99334         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
99335         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
99336         * lib/uniconv/u32-conv-from-enc.c: Likewise.
99337         * lib/uniconv/u32-conv-to-enc.c: Likewise.
99338         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
99339         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
99340         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
99341         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
99342         * lib/uniconv/u8-conv-from-enc.c: Likewise.
99343         * lib/uniconv/u8-conv-to-enc.c: Likewise.
99344         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
99345         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
99346         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
99347         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
99348         * lib/uniname.h: Likewise.
99349         * lib/uniname/uniname.c: Likewise.
99350         * lib/unistdio.h: Likewise.
99351         * lib/unistdio/u-asnprintf.h: Likewise.
99352         * lib/unistdio/u-asprintf.h: Likewise.
99353         * lib/unistdio/u-printf-args.c: Likewise.
99354         * lib/unistdio/u-printf-args.h: Likewise.
99355         * lib/unistdio/u-printf-parse.h: Likewise.
99356         * lib/unistdio/u-snprintf.h: Likewise.
99357         * lib/unistdio/u-sprintf.h: Likewise.
99358         * lib/unistdio/u-vasprintf.h: Likewise.
99359         * lib/unistdio/u-vsnprintf.h: Likewise.
99360         * lib/unistdio/u-vsprintf.h: Likewise.
99361         * lib/unistdio/u16-asnprintf.c: Likewise.
99362         * lib/unistdio/u16-asprintf.c: Likewise.
99363         * lib/unistdio/u16-printf-parse.c: Likewise.
99364         * lib/unistdio/u16-snprintf.c: Likewise.
99365         * lib/unistdio/u16-sprintf.c: Likewise.
99366         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
99367         * lib/unistdio/u16-u16-asprintf.c: Likewise.
99368         * lib/unistdio/u16-u16-snprintf.c: Likewise.
99369         * lib/unistdio/u16-u16-sprintf.c: Likewise.
99370         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
99371         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
99372         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
99373         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
99374         * lib/unistdio/u16-vasnprintf.c: Likewise.
99375         * lib/unistdio/u16-vasprintf.c: Likewise.
99376         * lib/unistdio/u16-vsnprintf.c: Likewise.
99377         * lib/unistdio/u16-vsprintf.c: Likewise.
99378         * lib/unistdio/u32-asnprintf.c: Likewise.
99379         * lib/unistdio/u32-asprintf.c: Likewise.
99380         * lib/unistdio/u32-printf-parse.c: Likewise.
99381         * lib/unistdio/u32-snprintf.c: Likewise.
99382         * lib/unistdio/u32-sprintf.c: Likewise.
99383         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
99384         * lib/unistdio/u32-u32-asprintf.c: Likewise.
99385         * lib/unistdio/u32-u32-snprintf.c: Likewise.
99386         * lib/unistdio/u32-u32-sprintf.c: Likewise.
99387         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
99388         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
99389         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
99390         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
99391         * lib/unistdio/u32-vasnprintf.c: Likewise.
99392         * lib/unistdio/u32-vasprintf.c: Likewise.
99393         * lib/unistdio/u32-vsnprintf.c: Likewise.
99394         * lib/unistdio/u32-vsprintf.c: Likewise.
99395         * lib/unistdio/u8-asnprintf.c: Likewise.
99396         * lib/unistdio/u8-asprintf.c: Likewise.
99397         * lib/unistdio/u8-printf-parse.c: Likewise.
99398         * lib/unistdio/u8-snprintf.c: Likewise.
99399         * lib/unistdio/u8-sprintf.c: Likewise.
99400         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
99401         * lib/unistdio/u8-u8-asprintf.c: Likewise.
99402         * lib/unistdio/u8-u8-snprintf.c: Likewise.
99403         * lib/unistdio/u8-u8-sprintf.c: Likewise.
99404         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
99405         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
99406         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
99407         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
99408         * lib/unistdio/u8-vasnprintf.c: Likewise.
99409         * lib/unistdio/u8-vasprintf.c: Likewise.
99410         * lib/unistdio/u8-vsnprintf.c: Likewise.
99411         * lib/unistdio/u8-vsprintf.c: Likewise.
99412         * lib/unistdio/ulc-asnprintf.c: Likewise.
99413         * lib/unistdio/ulc-asprintf.c: Likewise.
99414         * lib/unistdio/ulc-printf-parse.c: Likewise.
99415         * lib/unistdio/ulc-snprintf.c: Likewise.
99416         * lib/unistdio/ulc-sprintf.c: Likewise.
99417         * lib/unistdio/ulc-vasnprintf.c: Likewise.
99418         * lib/unistdio/ulc-vasprintf.c: Likewise.
99419         * lib/unistdio/ulc-vsnprintf.c: Likewise.
99420         * lib/unistdio/ulc-vsprintf.c: Likewise.
99421         * lib/unistr.h: Likewise.
99422         * lib/unistr/u-cpy-alloc.h: Likewise.
99423         * lib/unistr/u-cpy.h: Likewise.
99424         * lib/unistr/u-endswith.h: Likewise.
99425         * lib/unistr/u-move.h: Likewise.
99426         * lib/unistr/u-set.h: Likewise.
99427         * lib/unistr/u-startswith.h: Likewise.
99428         * lib/unistr/u-stpcpy.h: Likewise.
99429         * lib/unistr/u-stpncpy.h: Likewise.
99430         * lib/unistr/u-strcat.h: Likewise.
99431         * lib/unistr/u-strcpy.h: Likewise.
99432         * lib/unistr/u-strcspn.h: Likewise.
99433         * lib/unistr/u-strdup.h: Likewise.
99434         * lib/unistr/u-strlen.h: Likewise.
99435         * lib/unistr/u-strncat.h: Likewise.
99436         * lib/unistr/u-strncpy.h: Likewise.
99437         * lib/unistr/u-strnlen.h: Likewise.
99438         * lib/unistr/u-strpbrk.h: Likewise.
99439         * lib/unistr/u-strspn.h: Likewise.
99440         * lib/unistr/u-strstr.h: Likewise.
99441         * lib/unistr/u-strtok.h: Likewise.
99442         * lib/unistr/u16-check.c: Likewise.
99443         * lib/unistr/u16-chr.c: Likewise.
99444         * lib/unistr/u16-cmp.c: Likewise.
99445         * lib/unistr/u16-cpy-alloc.c: Likewise.
99446         * lib/unistr/u16-cpy.c: Likewise.
99447         * lib/unistr/u16-endswith.c: Likewise.
99448         * lib/unistr/u16-mblen.c: Likewise.
99449         * lib/unistr/u16-mbsnlen.c: Likewise.
99450         * lib/unistr/u16-mbtouc-aux.c: Likewise.
99451         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
99452         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
99453         * lib/unistr/u16-mbtouc.c: Likewise.
99454         * lib/unistr/u16-mbtoucr.c: Likewise.
99455         * lib/unistr/u16-move.c: Likewise.
99456         * lib/unistr/u16-next.c: Likewise.
99457         * lib/unistr/u16-prev.c: Likewise.
99458         * lib/unistr/u16-set.c: Likewise.
99459         * lib/unistr/u16-startswith.c: Likewise.
99460         * lib/unistr/u16-stpcpy.c: Likewise.
99461         * lib/unistr/u16-stpncpy.c: Likewise.
99462         * lib/unistr/u16-strcat.c: Likewise.
99463         * lib/unistr/u16-strchr.c: Likewise.
99464         * lib/unistr/u16-strcmp.c: Likewise.
99465         * lib/unistr/u16-strcpy.c: Likewise.
99466         * lib/unistr/u16-strcspn.c: Likewise.
99467         * lib/unistr/u16-strdup.c: Likewise.
99468         * lib/unistr/u16-strlen.c: Likewise.
99469         * lib/unistr/u16-strmblen.c: Likewise.
99470         * lib/unistr/u16-strmbtouc.c: Likewise.
99471         * lib/unistr/u16-strncat.c: Likewise.
99472         * lib/unistr/u16-strncmp.c: Likewise.
99473         * lib/unistr/u16-strncpy.c: Likewise.
99474         * lib/unistr/u16-strnlen.c: Likewise.
99475         * lib/unistr/u16-strpbrk.c: Likewise.
99476         * lib/unistr/u16-strrchr.c: Likewise.
99477         * lib/unistr/u16-strspn.c: Likewise.
99478         * lib/unistr/u16-strstr.c: Likewise.
99479         * lib/unistr/u16-strtok.c: Likewise.
99480         * lib/unistr/u16-to-u32.c: Likewise.
99481         * lib/unistr/u16-to-u8.c: Likewise.
99482         * lib/unistr/u16-uctomb-aux.c: Likewise.
99483         * lib/unistr/u16-uctomb.c: Likewise.
99484         * lib/unistr/u32-check.c: Likewise.
99485         * lib/unistr/u32-chr.c: Likewise.
99486         * lib/unistr/u32-cmp.c: Likewise.
99487         * lib/unistr/u32-cpy-alloc.c: Likewise.
99488         * lib/unistr/u32-cpy.c: Likewise.
99489         * lib/unistr/u32-endswith.c: Likewise.
99490         * lib/unistr/u32-mblen.c: Likewise.
99491         * lib/unistr/u32-mbsnlen.c: Likewise.
99492         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
99493         * lib/unistr/u32-mbtouc.c: Likewise.
99494         * lib/unistr/u32-mbtoucr.c: Likewise.
99495         * lib/unistr/u32-move.c: Likewise.
99496         * lib/unistr/u32-next.c: Likewise.
99497         * lib/unistr/u32-prev.c: Likewise.
99498         * lib/unistr/u32-set.c: Likewise.
99499         * lib/unistr/u32-startswith.c: Likewise.
99500         * lib/unistr/u32-stpcpy.c: Likewise.
99501         * lib/unistr/u32-stpncpy.c: Likewise.
99502         * lib/unistr/u32-strcat.c: Likewise.
99503         * lib/unistr/u32-strchr.c: Likewise.
99504         * lib/unistr/u32-strcmp.c: Likewise.
99505         * lib/unistr/u32-strcpy.c: Likewise.
99506         * lib/unistr/u32-strcspn.c: Likewise.
99507         * lib/unistr/u32-strdup.c: Likewise.
99508         * lib/unistr/u32-strlen.c: Likewise.
99509         * lib/unistr/u32-strmblen.c: Likewise.
99510         * lib/unistr/u32-strmbtouc.c: Likewise.
99511         * lib/unistr/u32-strncat.c: Likewise.
99512         * lib/unistr/u32-strncmp.c: Likewise.
99513         * lib/unistr/u32-strncpy.c: Likewise.
99514         * lib/unistr/u32-strnlen.c: Likewise.
99515         * lib/unistr/u32-strpbrk.c: Likewise.
99516         * lib/unistr/u32-strrchr.c: Likewise.
99517         * lib/unistr/u32-strspn.c: Likewise.
99518         * lib/unistr/u32-strstr.c: Likewise.
99519         * lib/unistr/u32-strtok.c: Likewise.
99520         * lib/unistr/u32-to-u16.c: Likewise.
99521         * lib/unistr/u32-to-u8.c: Likewise.
99522         * lib/unistr/u32-uctomb.c: Likewise.
99523         * lib/unistr/u8-check.c: Likewise.
99524         * lib/unistr/u8-chr.c: Likewise.
99525         * lib/unistr/u8-cmp.c: Likewise.
99526         * lib/unistr/u8-cpy-alloc.c: Likewise.
99527         * lib/unistr/u8-cpy.c: Likewise.
99528         * lib/unistr/u8-endswith.c: Likewise.
99529         * lib/unistr/u8-mblen.c: Likewise.
99530         * lib/unistr/u8-mbsnlen.c: Likewise.
99531         * lib/unistr/u8-mbtouc-aux.c: Likewise.
99532         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
99533         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
99534         * lib/unistr/u8-mbtouc.c: Likewise.
99535         * lib/unistr/u8-mbtoucr.c: Likewise.
99536         * lib/unistr/u8-move.c: Likewise.
99537         * lib/unistr/u8-next.c: Likewise.
99538         * lib/unistr/u8-prev.c: Likewise.
99539         * lib/unistr/u8-set.c: Likewise.
99540         * lib/unistr/u8-startswith.c: Likewise.
99541         * lib/unistr/u8-stpcpy.c: Likewise.
99542         * lib/unistr/u8-stpncpy.c: Likewise.
99543         * lib/unistr/u8-strcat.c: Likewise.
99544         * lib/unistr/u8-strchr.c: Likewise.
99545         * lib/unistr/u8-strcmp.c: Likewise.
99546         * lib/unistr/u8-strcpy.c: Likewise.
99547         * lib/unistr/u8-strcspn.c: Likewise.
99548         * lib/unistr/u8-strdup.c: Likewise.
99549         * lib/unistr/u8-strlen.c: Likewise.
99550         * lib/unistr/u8-strmblen.c: Likewise.
99551         * lib/unistr/u8-strmbtouc.c: Likewise.
99552         * lib/unistr/u8-strncat.c: Likewise.
99553         * lib/unistr/u8-strncmp.c: Likewise.
99554         * lib/unistr/u8-strncpy.c: Likewise.
99555         * lib/unistr/u8-strnlen.c: Likewise.
99556         * lib/unistr/u8-strpbrk.c: Likewise.
99557         * lib/unistr/u8-strrchr.c: Likewise.
99558         * lib/unistr/u8-strspn.c: Likewise.
99559         * lib/unistr/u8-strstr.c: Likewise.
99560         * lib/unistr/u8-strtok.c: Likewise.
99561         * lib/unistr/u8-to-u16.c: Likewise.
99562         * lib/unistr/u8-to-u32.c: Likewise.
99563         * lib/unistr/u8-uctomb-aux.c: Likewise.
99564         * lib/unistr/u8-uctomb.c: Likewise.
99565         * lib/unitypes.h: Likewise.
99566         * lib/uniwidth.h: Likewise.
99567         * lib/uniwidth/cjk.h: Likewise.
99568         * lib/uniwidth/u16-strwidth.c: Likewise.
99569         * lib/uniwidth/u16-width.c: Likewise.
99570         * lib/uniwidth/u32-strwidth.c: Likewise.
99571         * lib/uniwidth/u32-width.c: Likewise.
99572         * lib/uniwidth/u8-strwidth.c: Likewise.
99573         * lib/uniwidth/u8-width.c: Likewise.
99574         * lib/uniwidth/width.c: Likewise.
99576 2007-10-07  Bruno Haible  <bruno@clisp.org>
99578         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
99579         The file is still under LGPL (see modules/inttypes).
99581 2007-10-06  Bruno Haible  <bruno@clisp.org>
99583         * modules/trunc (Dependencies): Add 'extensions'.
99584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
99585         Reported by Ben Pfaff <blp@gnu.org>.
99587 2007-10-06  Bruno Haible  <bruno@clisp.org>
99589         * modules/freopen-tests: New file.
99590         * tests/test-freopen.c: New file.
99592         * modules/fopen-tests: New file.
99593         * tests/test-fopen.c: New file.
99595         * modules/fopen: New file.
99596         * lib/fopen.c: New file.
99597         * m4/fopen.m4: New file.
99598         * modules/freopen: New file.
99599         * lib/freopen.c: New file.
99600         * m4/freopen.m4: New file.
99601         * lib/stdio.in.h (fopen, freopen): New declarations.
99602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
99603         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
99604         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
99605         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
99606         * doc/functions/fopen.texi: Mention the 'fopen' module.
99607         * doc/functions/freopen.texi: Mention the 'freopen' module.
99609 2007-10-06  Bruno Haible  <bruno@clisp.org>
99611         * modules/open-tests: New file.
99612         * tests/test-open.c: New file.
99614         * modules/open: New file.
99615         * lib/open.c: New file.
99616         * m4/open.m4: New file.
99617         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
99618         lib/open.c does.
99619         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
99620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
99621         macros.
99622         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
99623         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
99624         REPLACE_OPEN.
99625         * doc/functions/open.texi: Mention the 'open' module.
99627 2007-10-04  Bruno Haible  <bruno@clisp.org>
99629         * modules/ceill-tests: New file.
99630         * tests/test-ceill.c: New file.
99632         * modules/ceill: New file.
99633         * lib/ceill.c: Replace entire file.
99634         * m4/ceill.m4: New file.
99635         * lib/math.in.h (ceill): Replace declaration.
99636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
99637         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
99638         * doc/functions/ceill.texi: Mention the 'ceill' module.
99639         * modules/mathl (Files): Remove lib/ceill.c.
99640         (Depends-on): Add ceill.
99642 2007-10-04  Bruno Haible  <bruno@clisp.org>
99644         * modules/ceilf-tests: New file.
99645         * tests/test-ceilf.c: New file.
99647         * modules/ceilf: New file.
99648         * lib/ceil.c: New file.
99649         * lib/ceilf.c: New file.
99650         * m4/ceilf.m4: New file.
99651         * lib/math.in.h (ceilf): New declaration.
99652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
99653         HAVE_DECL_CEILF.
99654         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
99655         HAVE_DECL_CEILF.
99656         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
99658 2007-10-04  Bruno Haible  <bruno@clisp.org>
99660         * modules/floorl-tests: New file.
99661         * tests/test-floorl.c: New file.
99663         * modules/floorl: New file.
99664         * lib/floorl.c: Replace entire file.
99665         * m4/floorl.m4: New file.
99666         * lib/math.in.h (floorl): Replace declaration.
99667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
99668         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
99669         * doc/functions/floorl.texi: Mention the 'floorl' module.
99670         * modules/mathl (Files): Remove lib/floorl.c.
99671         (Depends-on): Add floorl.
99673 2007-10-04  Bruno Haible  <bruno@clisp.org>
99675         * modules/floorf-tests: New file.
99676         * tests/test-floorf.c: New file.
99678         * modules/floorf: New file.
99679         * lib/floor.c: New file.
99680         * lib/floorf.c: New file.
99681         * m4/floorf.m4: New file.
99682         * lib/math.in.h (floorf): New declaration.
99683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
99684         HAVE_DECL_FLOORF.
99685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
99686         HAVE_DECL_FLOORF.
99687         * doc/functions/floorf.texi: Mention the 'floorf' module.
99689 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
99690             Bruno Haible  <bruno@clisp.org>
99692         Advertise for the Git server instead of the CVS server.
99693         * doc/gnulib-intro.texi (Steady Development): Mention the Git
99694         repository instead of the CVS one.
99695         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
99696         about all VCS systems generically.
99697         * doc/gnulib.texi (Introduction): Capitalize `Git'.
99699 2007-10-04  Bruno Haible  <bruno@clisp.org>
99701         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
99702         means.
99703         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
99705 2007-10-04  Bruno Haible  <bruno@clisp.org>
99707         * modules/truncl-tests: New file.
99708         * tests/test-truncl.c: New file.
99710         * modules/truncl: New file.
99711         * lib/truncl.c: New file.
99712         * m4/truncl.m4: New file.
99713         * lib/math.in.h (truncl): New declaration.
99714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
99715         HAVE_DECL_TRUNCL.
99716         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
99717         HAVE_DECL_TRUNCL.
99718         * doc/functions/truncl.texi: Mention the 'truncl' module.
99720 2007-10-04  Bruno Haible  <bruno@clisp.org>
99722         * modules/truncf-tests: New file.
99723         * tests/test-truncf.c: New file.
99725         * modules/truncf: New file.
99726         * lib/trunc.c: Make paramerizable through USE_* macros.
99727         * lib/truncf.c: New file.
99728         * m4/truncf.m4: New file.
99729         * lib/math.in.h (truncf): New declaration.
99730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
99731         HAVE_DECL_TRUNCF.
99732         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
99733         HAVE_DECL_TRUNCF.
99734         * doc/functions/truncf.texi: Mention the 'truncf' module.
99736 2007-10-03  Bruno Haible  <bruno@clisp.org>
99738         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
99739         augmentation also for tests modules.
99740         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
99741         * modules/atexit-tests (Makefile.am): Likewise.
99742         * modules/binary-io-tests (Makefile.am): Likewise.
99743         * modules/c-strcase-tests (Makefile.am): Likewise.
99744         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
99745         * modules/canonicalize-tests (Makefile.am): Likewise.
99746         * modules/closein-tests (Makefile.am): Likewise.
99747         * modules/fprintf-posix-tests (Makefile.am): Likewise.
99748         * modules/freadahead-tests (Makefile.am): Likewise.
99749         * modules/fseek-tests (Makefile.am): Likewise.
99750         * modules/fseeko-tests (Makefile.am): Likewise.
99751         * modules/ftell-tests (Makefile.am): Likewise.
99752         * modules/ftello-tests (Makefile.am): Likewise.
99753         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
99754         * modules/isnanl-tests (Makefile.am): Likewise.
99755         * modules/lseek-tests (Makefile.am): Likewise.
99756         * modules/mbscasecmp-tests (Makefile.am): Likewise.
99757         * modules/mbscasestr-tests (Makefile.am): Likewise.
99758         * modules/mbschr-tests (Makefile.am): Likewise.
99759         * modules/mbscspn-tests (Makefile.am): Likewise.
99760         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
99761         * modules/mbspbrk-tests (Makefile.am): Likewise.
99762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
99763         * modules/mbsrchr-tests (Makefile.am): Likewise.
99764         * modules/mbsspn-tests (Makefile.am): Likewise.
99765         * modules/mbsstr-tests (Makefile.am): Likewise.
99766         * modules/printf-posix-tests (Makefile.am): Likewise.
99767         * modules/snprintf-posix-tests (Makefile.am): Likewise.
99768         * modules/sprintf-posix-tests (Makefile.am): Likewise.
99769         * modules/tsearch-tests (Makefile.am): Likewise.
99770         * modules/uniname/uniname-tests (Makefile.am): Likewise.
99771         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
99772         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
99773         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
99774         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
99775         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
99776         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
99777         * modules/vprintf-posix-tests (Makefile.am): Likewise.
99778         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
99779         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
99780         * modules/xstrtoimax-tests (Makefile.am): Likewise.
99781         * modules/xstrtol-tests (Makefile.am): Likewise.
99782         * modules/xstrtoumax-tests (Makefile.am): Likewise.
99783         * modules/yesno-tests (Makefile.am): Likewise.
99785 2007-10-03  Bruno Haible  <bruno@clisp.org>
99787         * modules/trunc-tests: New file.
99788         * tests/test-trunc.c: New file.
99790         * modules/trunc: New file.
99791         * lib/trunc.c: New file.
99792         * m4/trunc.m4: New file.
99793         * lib/math.in.h (trunc): New declaration.
99794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
99795         HAVE_DECL_TRUNC.
99796         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
99797         HAVE_DECL_TRUNC.
99798         * doc/functions/trunc.texi: Mention the 'trunc' module.
99800 2007-10-03  Bruno Haible  <bruno@clisp.org>
99802         * tests/test-fpending.c: New file, mostly copied
99803         from coreutils/lib/t-fpending.c.
99804         * modules/fpending-tests: New file.
99806 2007-10-03  Bruno Haible  <bruno@clisp.org>
99808         Port the stdio extensions to QNX (untested).
99809         * lib/fseterr.c (fseterr): Add support for QNX.
99810         * lib/fbufmode.c (fbufmode): Likewise.
99811         * lib/freadable.c (freadable): Likewise.
99812         * lib/fwritable.c (fwritable): Likewise.
99813         * lib/freading.c (freading): Likewise.
99814         * lib/fwriting.c (fwriting): Likewise.
99815         * lib/freadahead.c (freadahed): Likewise.
99816         * lib/fpurge.c (fpurge): Likewise.
99817         * lib/fseeko.c (rpl_fseeko): Likewise.
99819 2007-10-03  Bruno Haible  <bruno@clisp.org>
99820             Jim Meyering  <jim@meyering.net>
99821             Eric Blake  <ebb9@byu.net>
99823         * doc/relocatable.texi: Use @command instead of @program.
99825 2007-10-02  Jim Meyering  <jim@meyering.net>
99827         Perform one more "_.h" -> ".in.h" substitution.
99828         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
99829         instead of unistd_.h here, too.
99831 2007-10-01  Bruno Haible  <bruno@clisp.org>
99833         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
99834         Needed for the alloca-opt module.
99836 2007-09-30  Bruno Haible  <bruno@clisp.org>
99838         * lib/alloca.in.h: Renamed from lib/alloca_.h.
99839         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
99840         alloca_.h.
99841         * lib/argz.in.h: Renamed from lib/argz_.h.
99842         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
99843         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
99844         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
99845         byteswap_.h.
99846         * lib/dirent.in.h: Renamed from lib/dirent_.h.
99847         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
99848         dirent_.h.
99849         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
99850         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
99851         fcntl_.h.
99852         * lib/float.in.h: Renamed from lib/float_.h.
99853         * modules/float (Files, Makefile.am): Use float.in.h instead of
99854         float_.h.
99855         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
99856         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
99857         fnmatch_.h.
99858         * lib/getopt.in.h: Renamed from lib/getopt_.h.
99859         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
99860         getopt_.h.
99861         * lib/glob.in.h: Renamed from lib/glob_.h.
99862         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
99863         * lib/iconv.in.h: Renamed from lib/iconv_.h.
99864         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
99865         iconv_.h.
99866         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
99867         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
99868         inttypes_.h.
99869         * lib/locale.in.h: Renamed from lib/locale_.h.
99870         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
99871         locale_.h.
99872         * lib/math.in.h: Renamed from lib/math_.h.
99873         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
99874         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
99875         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
99876         of netinet_in_.h. Add dependency.
99877         * lib/poll.in.h: Renamed from lib/poll_.h.
99878         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
99879         * lib/search.in.h: Renamed from lib/search_.h.
99880         * modules/search (Files, Makefile.am): Use search.in.h instead of
99881         search_.h.
99882         * lib/signal.in.h: Renamed from lib/signal_.h.
99883         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
99884         _signal.h.
99885         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
99886         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
99887         stdbool_.h.
99888         * lib/stdint.in.h: Renamed from lib/stdint_.h.
99889         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
99890         stdint_.h.
99891         * lib/stdio.in.h: Renamed from lib/stdio_.h.
99892         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
99893         stdio_.h.
99894         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
99895         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
99896         stdlib_.h.
99897         * lib/string.in.h: Renamed from lib/string_.h.
99898         * modules/string (Files, Makefile.am): Use string.in.h instead of
99899         string_.h.
99900         * doc/gnulib-tool.texi (Initial import): Update.
99901         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
99902         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
99903         of sys_select_.h. Add dependency.
99904         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
99905         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
99906         of sys_socket_.h.
99907         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
99908         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
99909         sys_stat_.h.
99910         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
99911         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
99912         sys_time_.h.
99913         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
99914         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
99915         sysexits_.h.
99916         * lib/time.in.h: Renamed from lib/time_.h.
99917         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
99918         * lib/unistd.in.h: Renamed from lib/unistd_.h.
99919         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
99920         unistd_.h.
99921         * lib/wchar.in.h: Renamed from lib/wchar_.h.
99922         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
99923         wchar_.h.
99924         * lib/wctype.in.h: Renamed from lib/wctype_.h.
99925         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
99926         wctype_.h.
99927         * build-aux/bootstrap (slurp): Update.
99928         * lib/.cppi-disable: Update.
99930 2007-09-30  Bruno Haible  <bruno@clisp.org>
99932         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
99933         Needed on BeOS.
99935 2007-09-30  Bruno Haible  <bruno@clisp.org>
99937         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
99939 2007-09-29  Bruno Haible  <bruno@clisp.org>
99941         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
99943 2007-09-29  Bruno Haible  <bruno@clisp.org>
99945         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
99946         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
99947         * build-aux/install-reloc: Compile also areadlink.c.
99948         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
99950 2007-09-29  Bruno Haible  <bruno@clisp.org>
99952         * gnulib-tool (func_emit_initmacro_done): Indentation.
99954 2007-09-29  Bruno Haible  <bruno@clisp.org>
99956         * README: Add CVS checkout update instructions.
99957         Info from Bob Proulx <bob@proulx.com>.
99959 2007-09-28  Eric Blake  <ebb9@byu.net>
99961         Provide move-if-change.
99962         * build-aux/move-if-change: New file, based on best practice
99963         rather than any canonical upstream location.
99965 2007-09-28  Jim Meyering  <jim@meyering.net>
99967         Fix canonicalize loop-detection corner case.
99968         Do not attempt to stat the symlink values stored via seen_triple.
99969         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
99970         on linux-2.6.18, (but not 2.6.22).
99971         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
99972         triple_compare.  The former compares dev,ino,filename, while the latter
99973         would actually stat dirname(filename) when dev and ino were equal.
99974         * lib/hash-triple.c: Install <string.h>.
99975         (STREQ): Define.
99976         (triple_compare_ino_str): New function.
99977         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
99979 2007-09-28  Eric Blake  <ebb9@byu.net>
99981         Enforce that AC_REPLACE_FUNCS files exist.
99982         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
99983         override check for typos.
99985         Fix test-closein on Solaris 10.
99986         * tests/test-closein.c (main): Don't assume stdin can be inherited
99987         closed on all systems.
99988         * tests/test-closein.sh: Likewise.
99989         Reported by Piotr Tarnowski.
99991 2007-09-28  Jim Meyering  <jim@meyering.net>
99993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
99995 2007-09-27  Jim Meyering  <jim@meyering.net>
99997         canonicalize: Avoid a false-positive cycle failure.
99998         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
99999         Sort.  Remove cycle-check.
100000         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
100001         not cycle-check.h.
100002         (seen_triple): New function.
100003         (canonicalize_filename_mode): Use it instead of cycle-check.
100004         * tests/test-canonicalize.c: Add a test for this bug.
100005         * tests/test-canonicalize.sh: Set up and run the test.
100007         New module, file-set, from coreutils.
100008         * modules/file-set: Define it.
100009         * lib/file-set.c, lib/file-set.h: Implement.
100011         New module, hash-triple, from coreutils.
100012         * modules/hash-triple: Define it.
100013         * lib/hash-triple.c, lib/hash-triple.h: Implement.
100015 2007-09-25  Eric Blake  <ebb9@byu.net>
100017         Fix strerror on Interix.
100018         * lib/string_.h (strerror): Declare replacement.
100019         * doc/functions/strerror.texi (strerror): Document the Interix
100020         shortcoming.
100021         * modules/string (Makefile.am): Support new hooks.
100022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
100023         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
100024         gl_FUNC_STRERROR_SEPARATE.
100025         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
100026         * lib/strerror.c (rpl_strerror): Provide replacement.
100027         * modules/strerror (Depends-on): Add string.
100028         (configure.ac): Detect use of module.
100029         * tests/test-strerror.c: New file.
100030         * modules/strerror-tests: New test module.
100031         * modules/argp (Depends-on): Add strerror.
100032         * modules/error (Depends-on): Likewise.
100033         Reported by Martin Koeppe.
100035 2007-09-24  Bruno Haible  <bruno@clisp.org>
100037         * README: Update git instructions.
100039 2007-09-24  Eric Blake  <ebb9@byu.net>
100041         Revert fpending breakage from 2007-09-08.
100042         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
100043         __fpending.c.
100045 2007-09-24  Jim Meyering  <jim@meyering.net>
100047         filenamecat.c: Add a test.
100048         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
100049         showing how the function works when DIR is the empty string.
100051 2007-09-21  Simon Josefsson  <simon@josefsson.org>
100053         * tests/test-canonicalize.sh: Turn on executable bit.
100055 2007-09-19  Eric Blake  <ebb9@byu.net>
100057         * README: Update CVS instructions.
100059 2007-09-18  Bruno Haible  <bruno@clisp.org>
100061         * modules/areadlink: New file.
100062         * lib/areadlink.h (areadlink): New declaration.
100063         * lib/areadlink.c: New file, based on lib/xreadlink.c.
100065 2007-09-17  Jim Meyering  <jim@meyering.net>
100067         * lib/savewd.c (ESTALE) [!defined]: Define.
100068         Reported to be required on Interix by Martin Koeppe.
100070 2007-09-17  Bruno Haible  <bruno@clisp.org>
100072         * gnulib-tool (func_version): Use $version.
100074 2007-09-16  Bruno Haible  <bruno@clisp.org>
100076         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
100077         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
100078         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
100079         Reported by Greg Schafer <gschafer@zip.com.au>.
100081 2007-09-15  Bruno Haible  <bruno@clisp.org>
100083         * gnulib-tool (sed): Try a little harder to make bash understand the
100084         alias.
100085         Reported by Bruce Korb <bruce.korb@gmail.com>.
100087 2007-09-13  Eric Blake  <ebb9@byu.net>
100089         * ChangeLog: Remove conflict markers.
100091 2007-09-13  Simon Josefsson  <simon@josefsson.org>
100093         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
100094         Reported by Bruno Haible <bruno@clisp.org>.
100096 2007-09-12  Bruno Haible  <bruno@clisp.org>
100098         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
100099         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
100100         is not defined.
100102 2007-09-12  Eric Blake  <ebb9@byu.net>
100104         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
100105         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
100106         Autoconf definition.
100107         * modules/euidaccess (Depends-on): Add extensions, for
100108         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
100109         * modules/fnmatch (Depends-on): Likewise.
100110         * modules/getaddrinfo (Depends-on): Likewise.
100111         * modules/getdelim (Depends-on): Likewise.
100112         * modules/getline (Depends-on): Likewise.
100113         * modules/getsubopt (Depends-on): Likewise.
100114         * modules/gettext (Depends-on): Likewise.
100115         * modules/group-member (Depends-on): Likewise.
100116         * modules/mbchar (Depends-on): Likewise.
100117         * modules/memmem (Depends-on): Likewise.
100118         * modules/mempcpy (Depends-on): Likewise.
100119         * modules/memrchr (Depends-on): Likewise.
100120         * modules/pagealign_alloc (Depends-on): Likewise.
100121         * modules/readutmp (Depends-on): Likewise.
100122         * modules/stpcpy (Depends-on): Likewise.
100123         * modules/stpncpy (Depends-on): Likewise.
100124         * modules/strchrnul (Depends-on): Likewise.
100125         * modules/strndup (Depends-on): Likewise.
100126         * modules/strsep (Depends-on): Likewise.
100127         * modules/strverscmp (Depends-on): Likewise.
100128         * modules/vasprintf (Depends-on): Likewise.
100129         * modules/wcwidth (Depends-on): Likewise.
100130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
100131         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
100132         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
100133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
100134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
100135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100136         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
100137         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100138         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
100139         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
100140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
100141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100142         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100143         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
100144         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
100145         * m4/readutmp.m4 (gl_READUTMP): Likewise.
100146         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100147         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100152         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100153         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
100154         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
100155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100156         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
100157         so that lock.m4 can be used in gettext without extensions module.
100159 2007-09-11  Bruno Haible  <bruno@clisp.org>
100161         * m4/isc-posix.m4: Remove file.
100162         Suggested by Eric Blake.
100164 2007-09-11  Eric Blake  <ebb9@byu.net>
100166         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
100168 2007-09-10  Bruno Haible  <bruno@clisp.org>
100170         * posix-modules: Fix typo in error message.
100171         Reported by Matt <mkraai@beckman.com>.
100173 2007-09-09  Bruno Haible  <bruno@clisp.org>
100175         * doc/functions/getdelim.texi: Update list of platforms lacking the
100176         function.
100177         * doc/functions/getline.texi: Likewise.
100179 2007-09-09  Jim Meyering  <jim@meyering.net>
100181         * lib/hash.c (hash_initialize): Detect calloc failure.
100182         Reported by Bruno Haible.
100184 2007-09-09  Bruno Haible  <bruno@clisp.org>
100186         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
100187         malloc or realloc fails.
100189 2007-09-09  Bruno Haible  <bruno@clisp.org>
100191         * modules/getcwd (Depends-on): Add malloc-posix.
100192         * modules/glob (Depends-on): Likewise.
100193         * modules/putenv (Depends-on): Likewise.
100194         * modules/strdup (Depends-on): Likewise.
100195         * modules/getdelim (Depends-on): Add realloc-posix.
100196         * modules/read-file (Depends-on): Likewise.
100198 2007-09-09  Bruno Haible  <bruno@clisp.org>
100200         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
100201         (gl_FUNC_MALLOC_POSIX): Require it.
100202         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
100203         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
100204         * modules/realloc (Files): Add m4/malloc.m4.
100205         * modules/calloc (Files): Likewise.
100207 2007-09-09  Bruno Haible  <bruno@clisp.org>
100209         * modules/malloc-posix: New file.
100210         * modules/malloc (Depends-on): Add malloc-posix.
100211         * lib/malloc.c: Include errno.h.
100212         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
100213         and a POSIX-compatible malloc into a single function. Set ENOMEM
100214         when returning NULL.
100215         * m4/malloc.m4: New file.
100216         * doc/functions/malloc.texi: Mention the malloc-posix module.
100217         * lib/stdlib_.h (malloc): New declaration.
100218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100219         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
100220         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
100221         and HAVE_MALLOC_POSIX.
100223 2007-09-09  Bruno Haible  <bruno@clisp.org>
100225         * modules/realloc-posix: New file.
100226         * modules/realloc (Depends-on): Add realloc-posix.
100227         * lib/realloc.c: Include errno.h.
100228         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
100229         and a POSIX-compatible realloc into a single function. Set ENOMEM
100230         when returning NULL.
100231         * m4/realloc.m4: New file.
100232         * doc/functions/realloc.texi: Mention the realloc-posix module.
100233         * lib/stdlib_.h (realloc): New declaration.
100234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100235         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
100236         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
100237         and HAVE_REALLOC_POSIX.
100239 2007-09-09  Bruno Haible  <bruno@clisp.org>
100241         * modules/calloc-posix: New file.
100242         * modules/calloc (Depends-on): Add calloc-posix.
100243         * lib/calloc.c: Include errno.h.
100244         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
100245         and a POSIX-compatible calloc into a single function. Set ENOMEM
100246         when returning NULL.
100247         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
100248         * doc/functions/calloc.texi: Mention the calloc-posix module.
100249         * lib/stdlib_.h (calloc): New declaration.
100250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100251         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
100252         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
100253         and HAVE_CALLOC_POSIX.
100255 2007-09-09  Bruno Haible  <bruno@clisp.org>
100257         Allow for modules to show an arbitrary notice.
100258         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
100259         * gnulib-tool: New option --extract-notice.
100260         (func_usage): Document it.
100261         (sed_extract_prog): Update.
100262         (func_get_notice): New function.
100263         (func_modules_notice): New function.
100264         (func_import, func_create_testdir): Invoke it.
100265         Suggested by Jim Meyering.
100267 2007-09-09  Bruno Haible  <bruno@clisp.org>
100269         * gnulib-tool: New options --verbose, --quiet.
100270         (func_usage): Document them.
100271         (verbose): New variable.
100272         (func_execute_command): New function.
100273         (func_import): Don't show the module list and the file list if
100274         $verbose < 0.
100275         (func_create_testdir): Likewise. Use func_execute_command.
100276         (func_create_megatestdir): Use func_execute_command.
100278 2007-09-08  Bruno Haible  <bruno@clisp.org>
100280         * gnulib-tool (func_import): Prefer rsync over wget when available,
100281         for fetching the PO files.
100283 2007-09-08  Bruno Haible  <bruno@clisp.org>
100285         * posix-modules: New file. Portions copied from gnulib-tool.
100286         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
100288 2007-09-08  Jim Meyering  <jim@meyering.net>
100290         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
100291         * lib/fpending.h: Rename from __fpending.h.
100292         * lib/fpending.c: Rename from __fpending.c.
100293         Include "fpending.h", not "__fpending.h".
100294         * lib/__fpending.h, lib/__fpending.c: Remove files.
100295         * modules/fpending (Files): Reflect new file names.
100296         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
100298 2007-09-08  Bruno Haible  <bruno@clisp.org>
100300         * m4/inttypes-h.m4: Remove stub file.
100302 2007-09-07  Simon Josefsson  <simon@josefsson.org>
100304         * doc/headers/stdint.texi: Discuss #include_next issue.
100306 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100308         * build-aux/bootstrap: Remove obsolete comment about wget --help.
100310 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100312         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
100313         in variable name.
100315 2007-09-03  Jim Meyering  <jim@meyering.net>
100317         New module: git-version-gen.
100318         * modules/git-version-gen: New file.
100320         Import changes from coreutils for bootstrap script.
100322         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
100324         bootstrap: uses rsync to download the .po files
100325         * build-aux/bootstrap (po_download_command_format): New global.
100326         (download_po_files): Use rsync.
100327         (update_po_files): Don't remove .po files after download,
100328         so future rsync runs can take advantage of the copies.
100330         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
100332         Solve the unnecessary-.po-file-regeneration problem once and for all.
100333         * build-aux/bootstrap (download_po_files): New function, renamed from
100334         get_translations.  Now, downloads, but doesn't update LINGUAS.
100335         (update_po_files): New function.
100337         bootstrap: Ignore more.
100338         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
100339         uniwidth to e.g., lib/.gitignore.
100340         (slurp): Handle the sys_stat_.h -> sys mapping, too.
100342         * build-aux/bootstrap: New setting: vc_ignore.
100343         (insert_sorted_if_absent): Create $file if absent.
100344         Adapt to new, possibly empty, list: $vc_ignore.
100346         bootstrap: generate more ignorable names
100347         * build-aux/bootstrap (slurp): When generating ignorable names,
100348         also map .sin to .sed, .gperf to .c, and .y to .c.
100350 2007-09-03  Jim Meyering  <jim@meyering.net>
100352         * build-aux/git-version-gen: New file, from coreutils.  For details, see
100353         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
100355 2007-09-02  Bruno Haible  <bruno@clisp.org>
100357         Fix mis-recognition of 'mcs' on QNX 6.
100358         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
100359         output contains the string "Mono".
100360         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
100361         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
100363 2007-09-01  Bruno Haible  <bruno@clisp.org>
100365         Fix collision between uniwidth/* and linebreak modules.
100366         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
100367         u32_width): Remove declarations.
100368         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
100369         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
100370         streq3, streq2, streq1, streq0): Remove functions.
100371         (STREQ): Remove macro.
100372         (is_cjk_encoding): Remove function.
100373         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
100374         (uc_width, u8_width, u16_width, u32_width): Remove functions.
100375         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
100376         * NEWS: Document the change.
100378 2007-09-01  Bruno Haible  <bruno@clisp.org>
100380         * lib/streq.h: Add double-inclusion guard.
100382 2007-09-01  Karl Berry  <karl@gnu.org>
100384         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
100386 2007-08-28  Jim Meyering  <jim@meyering.net>
100388         Rename mreadlink_with_size to areadlink_with_size.
100389         * NEWS: Document the change.
100390         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
100391         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
100392         * lib/mreadlink.h: Rename this to...
100393         * lib/areadlink.h: ...this.
100394         * modules/mreadlink-with-size: Rename this to...
100395         * modules/areadlink-with-size: ...this.
100396         * lib/canonicalize.c: Reflect the renaming.
100397         * modules/canonicalize: Likewise.
100399 2007-08-26  Bruno Haible  <bruno@clisp.org>
100401         * gnulib-tool (func_import): When deciding which files to remove,
100402         consider also dangling symbolic links.
100403         Reported by Eric Blake.
100405 2007-08-26  Bruno Haible  <bruno@clisp.org>
100407         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
100409 2007-08-23  Simon Josefsson  <simon@josefsson.org>
100411         * lib/readline.c: Don't include getline.h, the prototype is now
100412         found in stdio.h.
100414 2007-08-23  Jim Meyering  <jim@meyering.net>
100416         Getdelim touchup.
100417         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
100418         around the funlockfile call, since funlockfile never sets errno.
100419         Don't set errno upon failed realloc.
100421 2007-08-22  Eric Blake  <ebb9@byu.net>
100423         Getline touchups.
100424         * lib/getdelim.c (getdelim): Revert regression that required *n to
100425         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
100426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
100427         getdelim, rather than whether implementation is missing.
100428         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
100429         * lib/stdio_.h (getline): Also declare if replacement is
100430         required.
100431         * doc/functions/getdelim.texi: New file.
100432         * doc/functions/getline.texi: Likewise.
100433         * doc/gnulib.texi (Function Substitutes): Add new files.
100434         Reported by Bruno Haible.
100436 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
100438         * users.txt: Add Guile.
100440 2007-08-22  Eric Blake  <ebb9@byu.net>
100442         * tests/test-getdelim.c (main): Use remove, not unlink.
100443         * tests/test-getline.c (main): Likewise.
100445         Move getline and getdelim into stdio.h, per POSIX 200x.
100446         * modules/getline (Files): Remove getline.h.
100447         (Depends-on): Add stdio.
100448         (configure.ac): Add module indicator.
100449         * modules/getdelim (Files): Remove getdelim.h.
100450         (Depends-on): Add stdio.
100451         (configure.ac): Add module indicator.
100452         * modules/stdio (Makefile.am): Work with new indicators.
100453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
100454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
100455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100456         * lib/getdelim.h: Delete.
100457         * lib/getline.h: Delete.
100458         * lib/stdio_.h (getdelim, getline): Declare.
100459         * modules/getdelim-tests: New module.
100460         * modules/getline-tests: Likewise.
100461         * tests/test-getdelim.c: New file.
100462         * tests/test-getline.c: Likewise.
100463         * NEWS: Document the change.
100464         * lib/getline.c: Update choice of header.
100465         * lib/csharpcomp.c: Likewise.
100466         * lib/getpass.c: Likewise.
100467         * lib/javacomp.c: Likewise.
100468         * lib/javaversion.c: Likewise.
100469         * lib/yesno.c: Likewise.
100470         * lib/getdelim.c: Likewise.
100471         (getdelim): Set errno on failure, and avoid memory leak.
100473 2007-08-19  Bruno Haible  <bruno@clisp.org>
100475         * modules/closein (Depends-on): Add freadahead.
100476         * lib/closein.c: Include freadahead.h.
100477         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
100478         is zero.
100480 2007-08-19  Bruno Haible  <bruno@clisp.org>
100482         * modules/freadahead-tests: New file.
100483         * tests/test-freadahead.sh: New file.
100484         * tests/test-freadahead.c: New file.
100486         * modules/freadahead: New file.
100487         * lib/freadahead.h: New file.
100488         * lib/freadahead.c: New file.
100489         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
100490         fbufmode, fpurge, freadable, fwritable.
100492 2007-08-19  Eric Blake  <ebb9@byu.net>
100494         Test yesno in combination with closein.
100495         * lib/yesno.c (yesno): Document use of stdin.
100496         * modules/yesno-tests (Files): New module.
100497         * tests/test-yesno.c (main): New file.
100498         * tests/test-yesno.sh: Likewise.
100500 2007-08-19  Bruno Haible  <bruno@clisp.org>
100502         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
100503         * lib/fseeko.c (rpl_fseeko): Likewise.
100504         * lib/fseterr.c (fseterr): Likewise.
100506 2007-08-19  Bruno Haible  <bruno@clisp.org>
100508         * tests/test-lseek.c (main): Disable a test for BeOS.
100509         * doc/functions/lseek.texi: Document the BeOS bug.
100511 2007-08-19  Bruno Haible  <bruno@clisp.org>
100512             Eric Blake  <ebb9@byu.net>
100514         * lib/lseek.c: Include <sys/stat.h>.
100515         (rpl_lseek): Add workaround code also for Unix platforms.
100516         Needed for BeOS.
100517         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
100518         * doc/functions/lseek.texi: Document BeOS definiency.
100520 2007-08-18  Bruno Haible  <bruno@clisp.org>
100522         * modules/fstrcmp-tests: New file.
100523         * tests/test-fstrcmp.c: New file.
100525 2007-08-18  Bruno Haible  <bruno@clisp.org>
100527         * modules/fstrcmp: New file, from GNU gettext with modifications.
100528         * lib/fstrcmp.h: New file, from GNU gettext.
100529         * lib/fstrcmp.c: New file, from GNU gettext.
100530         * MODULES.html.sh (String handling): Add fstrcmp.
100532 2007-08-18  Bruno Haible  <bruno@clisp.org>
100534         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
100535         'bool'.
100536         (diag, compareseq): Remove const from the ctxt argument.
100537         (USE_HEURISTIC): Undefine at the end.
100539 2007-08-18  Jim Meyering  <jim@meyering.net>
100541         New file: lib/idcache.h
100542         * NEWS: Mention the addition.
100543         * modules/idcache (Files): Add lib/idcache.h
100544         * lib/idcache.c: Include "idcache.h".
100545         Don't include <sys/types.h>.
100546         Add a FIXME comment.
100547         Move file-scoped "static" declarations to the top.
100548         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
100550 2007-08-17  Bruno Haible  <bruno@clisp.org>
100551         and Paul Eggert  <eggert@cs.ucla.edu>
100553         * MODULES.html.sh: Add diffseq.
100554         * modules/diffseq: New file.
100555         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
100556         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
100558 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
100560         Import changes from coreutils for bootstrap script.
100562         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
100564         * build-aux/bootstrap (slurp): Work even in environments where
100565         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
100566         current code does not slurp files whose names start with ".", and
100567         this looks like it might be a troublesome area.
100569         2007-07-11  Jim Meyering  <jim@meyering.net>
100571         If there's a GPL vN copyright comment, require that N == 3.
100573         2007-07-08  Jim Meyering  <jim@meyering.net>
100575         Run the coreutils-specific code only if tests/Makefile.am.in exists.
100576         * build-aux/bootstrap (mam_template): Move definition out of loop.
100578         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
100580         * build-aux/bootstrap (symlink_to_dir): Rename function from
100581         symlink_to_gnulib.  Add a directory parameter.  Update all
100582         callers.
100583         (cp_mark_as_generated): Also check for -- and link to -- files in
100584         gl/.
100586         2007-07-08  Jim Meyering  <jim@meyering.net>
100588         Adapt to deeper hierarchy in gnulib.
100589         * build-aux/bootstrap (symlink_to_dir): If the destination
100590         directory doesn't exist, create it. This is required at least for
100591         "lib/uniwidth/cjk.h".
100593         2007-05-15  Jim Meyering  <jim@meyering.net>
100595         * build-aux/bootstrap: Now that generated Makefile.am files
100596         are no longer under version control, they must be created at
100597         bootstrap time.
100599 2007-08-14  Ben Pfaff  <blp@gnu.org>
100601         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
100603 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
100605         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
100606         given the changes below.
100607         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
100608         even on hosts that have padding bits beyond the supported 64.
100610 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
100612         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
100613         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
100614         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
100615         depends on it.
100616         (xstrtol_error): Remove.
100617         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
100618         but with a different signature.
100619         (ATTRIBUTE_NORETURN, __attribute__): New macros.
100620         * lib/xstrtol-error.c: Include exitfail.h.
100621         (xstrtol_fatal): New function, with a different signature from the
100622         old xstrtol_error, so that the caller need not worry about passing
100623         in an exit status, or about storage management of the option argument.
100624         (xstrtol_error): Now a static function.  Redo signature to
100625         implement xstrtol_fatal.  Output the correct number of hyphens in
100626         front of the option so that the caller need not worry about
100627         storage management.
100628         (N_): New macro.
100629         (_): Remove; not used now.
100630         * modules/xstrtol: Depend on getopt.
100631         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
100632         of old STRTOL_FATAL_ERROR macro.
100633         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
100634         of test program.
100635         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
100636         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
100638 2007-08-08  Eric Blake  <ebb9@byu.net>
100640         * lib/xstrtol-error.c: Add missing include.
100642         Move xstrtol messages into gnulib domain, when --pobase is used.
100643         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
100644         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
100645         * modules/xstrtol (Files): Distribute new file.
100646         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
100647         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
100648         * tests/test-xstrtol.c: ...into new file.
100649         * tests/test-xstrtoul.c: Also test xstrtoul.
100650         * tests/test-xstrtoimax.c: Also test xstrtoimax.
100651         * tests/test-xstrtoumax.c: Also test xstrtoumax.
100652         * tests/test-xstrtol.sh: Drive the tests.
100653         * tests/test-xstrtoimax.sh: Likewise.
100654         * tests/test-xstrtoumax.sh: Likewise.
100655         * modules/xstrtol-tests: New module.
100656         * modules/xstrtoimax-tests: Likewise.
100657         * modules/xstrtoumax-tests: Likewise.
100659 2007-08-08  Jim Meyering  <jim@meyering.net>
100661         New function: mfile_name_concat.
100662         * lib/filenamecat.c (mfile_name_concat): New function, just like
100663         file_name_concat, but return NULL upon failure rather than exiting
100664         with a diagnostic.
100665         * lib/filenamecat.h: Declare it.
100667 2007-08-07  Bruno Haible  <bruno@clisp.org>
100669         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
100670         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
100671         warning from gcc.
100672         Reported by Eric Blake.
100674 2007-08-07  Simon Josefsson  <simon@josefsson.org>
100676         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
100677         * modules/crypto/arcfour (License): Likewise.
100678         * modules/crypto/des-tests (License): Likewise.
100679         * modules/crypto/gc-arctwo-tests (License): Likewise.
100680         * modules/crypto/gc-des-tests (License): Likewise.
100681         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
100682         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
100683         * modules/crypto/gc-md2-tests (License): Likewise.
100684         * modules/crypto/gc-md4-tests (License): Likewise.
100685         * modules/crypto/gc-md5-tests (License): Likewise.
100686         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
100687         * modules/crypto/gc-rijndael-tests (License): Likewise.
100688         * modules/crypto/gc-sha1-tests (License): Likewise.
100689         * modules/crypto/gc-tests (License): Likewise.
100690         * modules/crypto/hmac-md5 (License): Likewise.
100691         * modules/crypto/hmac-sha1 (License): Likewise.
100692         * modules/crypto/md2-tests (License): Likewise.
100693         * modules/crypto/md4-tests (License): Likewise.
100694         * modules/crypto/md5 (License): Likewise.
100695         * modules/crypto/rijndael (License): Likewise.
100696         * modules/crypto/sha1 (License): Likewise.
100697         * modules/memxor (License): Likewise.
100699 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
100700         and Bruno Haible  <bruno@clisp.org>
100702         * NEWS: Describe interface changes to human, xstrtol.
100703         * lib/human.h: Include <xstrtol.h>.
100704         (human_options): Return enum strtol_error, not int.  Remove
100705         bool arg; take int * instead.
100706         * lib/human.c: Don't include "gettext.h".
100707         (_): Remove; no longer used.
100708         Don't include <xstrtol.h>, since human.h does it.
100709         (human_options): Adjust to abovementioned interface changes.
100710         Do not report error to stderr; that's now the caller's
100711         responsibility.
100712         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
100713         interface change.
100714         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
100715         Str, Argument_type_string.  All uses changed.  Put " argument"
100716         in diagnostics to make them clearer.  Change wording of suffix
100717         message for clarity.
100718         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
100719         Argument_type_string.
100720         (STRTOL_FATAL_WARN): Remove; no longer used.
100721         * modules/human (Depends-on): Remove gettext-h.
100723 2007-08-06  Simon Josefsson  <simon@josefsson.org>
100725         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
100727 2007-07-31  Bruno Haible  <bruno@clisp.org>
100729         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
100730         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
100731         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
100733 2007-07-31  Bruno Haible  <bruno@clisp.org>
100735         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
100736         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
100738 2007-07-30  Bruno Haible  <bruno@clisp.org>
100740         * modules/base64 (License): Use the synonymous term "LGPLv2+".
100741         * modules/c-ctype (License): Likewise.
100742         * modules/c-strcase (License): Likewise.
100743         * modules/check-version (License): Likewise.
100744         * modules/iconv (License): Likewise.
100745         * modules/iconv_open (License): Likewise.
100746         * modules/read-file (License): Likewise.
100747         * modules/striconv (License): Likewise.
100748         * modules/strverscmp (License): Likewise.
100749         * modules/vasprintf (License): Likewise.
100750         * modules/crypto/des (License): Likewise.
100751         * modules/crypto/gc (License): Likewise.
100752         * modules/crypto/gc-arcfour (License): Likewise.
100753         * modules/crypto/gc-arctwo (License): Likewise.
100754         * modules/crypto/gc-des (License): Likewise.
100755         * modules/crypto/gc-hmac-md5 (License): Likewise.
100756         * modules/crypto/gc-hmac-sha1 (License): Likewise.
100757         * modules/crypto/gc-md2 (License): Likewise.
100758         * modules/crypto/gc-md4 (License): Likewise.
100759         * modules/crypto/gc-md5 (License): Likewise.
100760         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
100761         * modules/crypto/gc-random (License): Likewise.
100762         * modules/crypto/gc-rijndael (License): Likewise.
100763         * modules/crypto/gc-sha1 (License): Likewise.
100764         * modules/crypto/md2 (License): Likewise.
100765         * modules/crypto/md4 (License): Likewise.
100767 2007-07-30  Jim Meyering  <jim@meyering.net>
100769         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
100770         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
100771         it has valid stat data.  This bug would cause du not to count the
100772         sizes of inaccessible directories.
100773         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
100774         in <http://bugzilla.redhat.com/250077>.
100776 2007-07-25  Peter O'Gorman  <peter@pogma.com>
100777             Bruno Haible  <bruno@clisp.org>
100779         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
100780         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
100781         #include_next, gives a diagnostic about it, but reports no error in
100782         the exit code.
100783         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
100785 2007-07-24  Ben Pfaff  <blp@gnu.org>
100787         Improve name: "count-one-bits" is better than "popcount".
100788         * MODULES.html.sh: Update name.
100789         * lib/popcount.h: Renamed lib/count-one-bits.h.
100790         (popcount): Renamed count_one_bits.
100791         (popcountl): Renamed count_one_bits_l.
100792         (popcountll): Renamed count_one_bits_ll.
100793         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
100794         * modules/popcount: Renamed module/count-one-bits.
100795         * modules/popcount-tests: Renamed module/count-one-bits-tests.
100796         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
100798 2007-07-23  Ben Pfaff  <blp@gnu.org>
100800         * lib/popcount.h (popcount32): Reduce size of constants, to allow
100801         better code generation, and add U to large constants to avoid
100802         warnings, in non-GCC case.
100803         Suggested by Bruno Haible.
100805 2007-07-23  Ben Pfaff  <blp@gnu.org>
100807         * lib/popcount.h: Use verify_true instead of if...abort.
100808         * modules/popcount: Depend on verify module.
100809         Suggested by Jim Meyering.
100811 2007-07-23  Bruno Haible  <bruno@clisp.org>
100813         * gnulib-tool (func_import): Create a .cvsignore file also when the
100814         directory is not yet in CVS but the toplevel directory is. When
100815         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
100816         Reported by Karl Berry.
100818 2007-07-22  Ben Pfaff  <blp@gnu.org>
100820         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
100821         case.
100822         Suggested by Eric Blake.
100824 2007-07-22  Ben Pfaff  <blp@gnu.org>
100826         New module: popcount.
100827         * MODULES.html.sh: Add popcount.
100828         * modules/popcount: New file.
100829         * modules/popcount-tests: New file.
100830         * tests/test-popcount.c: New file.
100831         * lib/popcount.h: New file.
100832         * m4/popcount.m4: New file.
100834 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
100836         * build-aux/announce-gen: Update to GPLv3.
100838         * build-aux/config.guess: Update from config.
100840 2007-07-21  Bruno Haible  <bruno@clisp.org>
100842         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
100843         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
100845 2007-07-20  Jim Meyering  <jim@meyering.net>
100847         * check-module: Diagnose a self-dependency.
100849 2007-07-19  Bruno Haible  <bruno@clisp.org>
100851         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
100852         empty.
100853         Reported by Eric Blake.
100855 2007-07-18  Bruno Haible  <bruno@clisp.org>
100857         * gnulib-tool: New options --po-base, --po-domain.
100858         (func_usage): Document them.
100859         (pobase, po_domain): New variables.
100860         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
100861         DEFAULT_TEXT_DOMAIN.
100862         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
100863         (func_import): Consider pobase and po_domain. Create a po/ directory.
100864         (func_create_testdir): Set pobase and po_domain to empty.
100865         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
100866         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
100868 2007-07-18  Bruno Haible  <bruno@clisp.org>
100870         * gnulib-tool (func_get_automake_snippet): Synthesize also an
100871         EXTRA_DIST augmentation for files in build-aux/.
100873 2007-07-16  Bruno Haible  <bruno@clisp.org>
100875         * modules/lseek (License): Use the synonymous term "LGPLv2+".
100876         * modules/getdelim (License): Likewise.
100878 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100880         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
100881         * modules/d-type (License): Likewise.
100882         * modules/extensions (License): Likewise.
100883         * modules/fnmatch (License): Likewise.
100884         * modules/fseeko (License): Likewise.
100885         * modules/getaddrinfo (License): Likewise.
100886         * modules/getline (License): Likewise.
100887         * modules/getlogin_r (License): Likewise.
100888         * modules/getpass (License): Likewise.
100889         * modules/gettimeofday (License): Likewise.
100890         * modules/glob (License): Likewise.
100891         * modules/inet_ntop (License): Likewise.
100892         * modules/malloc (License): Likewise.
100893         * modules/malloca (License): Likewise.
100894         * modules/memmem (License): Likewise.
100895         * modules/mempcpy (License): Likewise.
100896         * modules/memset (License): Likewise.
100897         * modules/minmax (License): Likewise.
100898         * modules/mktime (License): Likewise.
100899         * modules/netinet_in (License): Likewise.
100900         * modules/pathmax (License): Likewise.
100901         * modules/poll (License): Likewise.
100902         * modules/regex (License): Likewise.
100903         * modules/snprintf (License): Likewise.
100904         * modules/stdbool (License): Likewise.
100905         * modules/stdint (License): Likewise.
100906         * modules/stdio (License): Likewise.
100907         * modules/strcase (License): Likewise.
100908         * modules/strcasestr (License): Likewise.
100909         * modules/strdup (License): Likewise.
100910         * modules/string (License): Likewise.
100911         * modules/strndup (License): Likewise.
100912         * modules/strnlen (License): Likewise.
100913         * modules/strpbrk (License): Likewise.
100914         * modules/strptime (License): Likewise.
100915         * modules/strsep (License): Likewise.
100916         * modules/sys_select (License): Likewise.
100917         * modules/sys_socket (License): Likewise.
100918         * modules/sys_stat (License): Likewise.
100919         * modules/sys_time (License): Likewise.
100920         * modules/time (License): Likewise.
100921         * modules/time_r (License): Likewise.
100922         * modules/timegm (License): Likewise.
100923         * modules/unistd (License): Likewise.
100924         * modules/vsnprintf (License): Likewise.
100925         * modules/wctype (License): Likewise.
100927 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100929         * modules/argz (License): LGPLv2+.
100931 2007-07-15  Karl Berry  <karl@gnu.org>
100933         * doc/gnulib.texi: revise node structure per new fdl.texi.
100935 2007-07-14  Bruno Haible  <bruno@clisp.org>
100937         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
100938         the output file.
100939         * lib/uniname/uninames.h: Regenerated.
100941 2007-07-14  Karl Berry  <karl@gnu.org>
100943         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
100944         omitting sectioning and index commands.
100946 2007-07-13  Bruno Haible  <bruno@clisp.org>
100948         New gnulib-tool option --more-symlinks.
100949         * gnulib-tool (func_usage): Document --more-symlinks.
100950         (do_copyrights): New variable.
100951         Recognize option --more-symlinks.
100952         (func_import): Don't add a copyright notice transform to
100953         sed_transform_lib_file if do_copyrights is empty.
100955 2007-07-13  Bruno Haible  <bruno@clisp.org>
100957         * lib/vasnprintf.c (decimal_point_char): Define also if
100958         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
100959         && !NEED_PRINTF_DIRECTIVE_A.
100960         Reported by Clemens Koller <clemens.koller@anagramm.de> via
100961         Gary V. Vaughan <gary@gnu.org>.
100963 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
100965         * lib/inttypes_.h: Undo previous change, since it was fixed
100966         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
100968 2007-07-13  Bruno Haible  <bruno@clisp.org>
100970         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
100971         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
100973 2007-07-13  Jim Meyering  <jim@meyering.net>
100975         df: Don't fail for Tru64's "file-on-file mount".
100976         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
100977         so we fall through and use statfs instead.  Details here:
100978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
100979         Reported by Albert Chin.
100981 2007-07-13  Bruno Haible  <bruno@clisp.org>
100983         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
100984         * modules/configmake (License): Likewise.
100985         * modules/gettext (License): Likewise.
100986         * modules/gettext-h (License): Likewise.
100987         * modules/include_next (License): Likewise.
100988         * modules/link-warning (License): Likewise.
100989         * modules/localcharset (License): Likewise.
100990         * modules/localename (License): Likewise.
100991         * modules/lock (License): Likewise.
100992         * modules/relocatable-lib-lgpl (License): Likewise.
100993         * modules/size_max (License): Likewise.
100994         * modules/vasnprintf (License): Likewise.
100995         * modules/wchar (License): Likewise.
100996         * modules/xsize (License): Likewise.
100998 2007-07-13  Bruno Haible  <bruno@clisp.org>
101000         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
101001         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
101003 2007-07-12  Bruno Haible  <bruno@clisp.org>
101005         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
101006         in the modules files.
101008 2007-07-11  Karl Berry  <karl@gnu.org>
101010         * MODULES.html.sh (func_module): use
101011          sed -e '\|^'"${includefile}"'$|d'
101012          instead of /.../d, to avoid errors on $includefile's containing /.
101014 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101016         * gnulib-tool (func_import): Avoid duplication of --avoid
101017         statements
101018         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
101019         names to `_' in variable names.
101021 2007-07-10  Eric Blake  <ebb9@byu.net>
101023         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
101024         * NEWS: Document this change.
101026 2007-07-08  Bruno Haible  <bruno@clisp.org>
101028         Update to Unicode 5.0.
101029         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
101030         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
101031         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
101032         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
101033         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
101034         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
101035         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
101036         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
101037         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
101038         U+10A3F, U+1D242..U+1D244.
101039         (nonspacing_table_ind): Update.
101040         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
101041         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
101043 2007-07-08  Bruno Haible  <bruno@clisp.org>
101045         Update to Unicode 5.0.
101046         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
101047         code transform. Extend the name index field of unicode_name_to_code and
101048         unicode_code_to_name from 16 to 24 bits.
101049         * lib/uniname/uniname.c (unicode_character_name,
101050         unicode_name_character): Add the range 0x12xxx to the code transform.
101051         * lib/uniname/uninames.h: Regenerated.
101052         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
101054 2007-07-07  Bruno Haible  <bruno@clisp.org>
101056         * modules/wcwidth-tests: New file.
101057         * tests/test-wcwidth.c: New file.
101059         Work around MacOS X wcwidth() bug.
101060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
101061         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
101062         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
101063         original wcwidth in non-UTF-8 locales.
101064         * modules/wcwidth (Depends-on): Add localcharset, streq,
101065         uniwidth/width.
101066         * doc/functions/wcwidth.texi: Update.
101068 2007-07-07  Bruno Haible  <bruno@clisp.org>
101070         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
101071         (wcwidth): New declaration.
101072         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
101073         macros.
101074         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
101075         here. Prepare for creating <wchar.h> unconditionally.
101076         * modules/wchar (Depends-on): Add link-warning.
101077         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
101078         REPLACE_WCWIDTH, and GL_LINK_WARNING.
101079         * lib/wcwidth.h: Remove file.
101080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
101081         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
101082         * modules/wcwidth (Files): Remove lib/wcwidth.h.
101083         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
101084         (Include): Replace wcwidth.h with <wchar.h>.
101085         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
101086         * lib/mbchar.h: Don't include wcwidth.h.
101087         * lib/mbswidth.c: Likewise.
101088         * NEWS: Mention the change.
101090 2007-07-07  Bruno Haible  <bruno@clisp.org>
101092         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
101093         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
101094         definition with an external declaration.
101095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
101096         defined as a function. Remove AC_C_INLINE requirement.
101097         * modules/wcwidth (Files): Add lib/wcwidth.c.
101098         (Makefile.am): Remove redundant statement.
101100 2007-07-07  Bruno Haible  <bruno@clisp.org>
101102         * MODULES.html.sh (Unicode string functions): Add the new modules.
101104         * tests/uniwidth/test-u32-strwidth.c: New file.
101105         * modules/uniwidth/u32-strwidth-tests: New file.
101107         * lib/uniwidth/u32-strwidth.c: New file.
101108         * modules/uniwidth/u32-strwidth: New file.
101110         * tests/uniwidth/test-u16-strwidth.c: New file.
101111         * modules/uniwidth/u16-strwidth-tests: New file.
101113         * lib/uniwidth/u16-strwidth.c: New file.
101114         * modules/uniwidth/u16-strwidth: New file.
101116         * tests/uniwidth/test-u8-strwidth.c: New file.
101117         * modules/uniwidth/u8-strwidth-tests: New file.
101119         * lib/uniwidth/u8-strwidth.c: New file.
101120         * modules/uniwidth/u8-strwidth: New file.
101122         * tests/uniwidth/test-u32-width.c: New file.
101123         * modules/uniwidth/u32-width-tests: New file.
101125         * lib/uniwidth/u32-width.c: New file.
101126         * modules/uniwidth/u32-width: New file.
101128         * tests/uniwidth/test-u16-width.c: New file.
101129         * modules/uniwidth/u16-width-tests: New file.
101131         * lib/uniwidth/u16-width.c: New file.
101132         * modules/uniwidth/u16-width: New file.
101134         * tests/uniwidth/test-u8-width.c: New file.
101135         * modules/uniwidth/u8-width-tests: New file.
101137         * lib/uniwidth/u8-width.c: New file.
101138         * modules/uniwidth/u8-width: New file.
101140         * tests/uniwidth/test-uc_width.c: New file.
101141         * modules/uniwidth/width-tests: New file.
101143         * lib/uniwidth/width.c: New file, from GNU libiconv.
101144         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
101145         * modules/uniwidth/width: New file.
101147         * lib/uniwidth.h: New file, from GNU libiconv.
101148         * modules/uniwidth/base: New file.
101150 2007-07-07  Bruno Haible  <bruno@clisp.org>
101152         * lib/uniname.h: New file, from GNU gettext.
101153         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
101154         * lib/uniname/uninames.h: New file, from GNU gettext.
101155         * lib/uniname/uniname.c: New file, from GNU gettext.
101156         * tests/uniname/test-uninames.sh: New file.
101157         * tests/uniname/test-uninames.c: New file, from GNU gettext.
101158         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
101159         * modules/uniname/base: New file.
101160         * modules/uniname/uniname: New file.
101161         * modules/uniname/uniname-tests: New file.
101162         * MODULES.html.sh (Unicode string functions): Add the new modules.
101164 2007-07-06  Bruno Haible  <bruno@clisp.org>
101166         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
101168 2007-07-06  Bruno Haible  <bruno@clisp.org>
101170         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
101171         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
101172         includes <cygwin/sys_time.h> which includes <sys/select.h> which
101173         include <sys/time.h>.
101174         Reported by Eric Blake.
101176 2007-07-06  Eric Blake  <ebb9@byu.net>
101178         Fix testing canonicalize on cygwin.
101179         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
101180         Revert patch from 2007-06-19.
101181         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
101182         canonicalize module is also in use.
101183         * tests/test-canonicalize.c: New file.
101184         * tests/test-canonicalize.sh: Likewise.
101185         * modules/canonicalize-tests: Likewise.
101187 2007-07-06  Jim Meyering  <jim@meyering.net>
101189         * lib/getugroups.c (getugroups): Detect getgrent failure.
101190         Adjust comment to reflect reality: this function may return -1.
101192 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
101194         * build-aux/bootstrap (TP_URL,get_translations): Update to use
101195         the new TP address.
101196         (usage): Fix typo
101197         (gnulib_mk): New variable.
101199 2007-07-05  Jim Meyering  <jim@meyering.net>
101201         Don't let endgrent clobber errno, no matter how improbable.
101202         * lib/getugroups.c (getugroups): Save and restore errno around
101203         endgrent call.
101205         Close the group DB even when failing with 2^31 or more members.
101206         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
101208 2007-07-04  Jim Meyering  <jim@meyering.net>
101210         * lib/getugroups.h: New file.
101211         * lib/getugroups.c: Include "getugroups.h".
101212         Remove uses of "register" keyword.
101213         Move local variable, "cp", down into scope where used.
101214         Give "username" parameter the "const" attribute.
101215         * modules/getugroups (Files): Add lib/getugroups.h
101217 2007-07-04  Karl Berry  <karl@gnu.org>
101219         * MODULES.html.sh (func_all_modules): Complete rename of
101220         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
101222 2007-07-02  Bruno Haible  <bruno@clisp.org>
101224         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
101225         mode, when inttypes.h comes from gnulib.
101226         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
101228 2007-07-02  Simon Josefsson  <simon@josefsson.org>
101230         * NEWS: Mention lgpl module name change.
101232         * modules/lgpl-2.1: Renamed from lgpl.
101234         * NEWS: Mention gpl module name change.
101236         * modules/gpl-3.0: New file, based on gpl-2.0.
101238         * modules/gpl-2.0: Renamed from gpl.
101240         * modules/gpl: Fix filename, doc/gpl.texi is now found at
101241         doc/gpl-2.0.texi.
101243 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
101245         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
101246         #define __STDC_LIMIT_MACROS temporarily while including
101247         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
101248         Problem reported by Joel E. Denny in
101249         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
101251 2007-07-01  Bruno Haible  <bruno@clisp.org>
101253         * lib/unistdio.h: New file.
101254         * lib/unistdio/u-asnprintf.h: New file.
101255         * lib/unistdio/u-asprintf.h: New file.
101256         * lib/unistdio/u-printf-args.c: New file.
101257         * lib/unistdio/u-printf-args.h: New file.
101258         * lib/unistdio/u-printf-parse.h: New file.
101259         * lib/unistdio/u-snprintf.h: New file.
101260         * lib/unistdio/u-sprintf.h: New file.
101261         * lib/unistdio/u-vasprintf.h: New file.
101262         * lib/unistdio/u-vsnprintf.h: New file.
101263         * lib/unistdio/u-vsprintf.h: New file.
101264         * lib/unistdio/ulc-asnprintf.c: New file.
101265         * lib/unistdio/ulc-asprintf.c: New file.
101266         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
101267         * lib/unistdio/ulc-printf-parse.c: New file.
101268         * lib/unistdio/ulc-snprintf.c: New file.
101269         * lib/unistdio/ulc-sprintf.c: New file.
101270         * lib/unistdio/ulc-vasnprintf.c: New file.
101271         * lib/unistdio/ulc-vasprintf.c: New file.
101272         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
101273         * lib/unistdio/ulc-vsnprintf.c: New file.
101274         * lib/unistdio/ulc-vsprintf.c: New file.
101275         * lib/unistdio/u8-asnprintf.c: New file.
101276         * lib/unistdio/u8-asprintf.c: New file.
101277         * lib/unistdio/u8-printf-parse.c: New file.
101278         * lib/unistdio/u8-snprintf.c: New file.
101279         * lib/unistdio/u8-sprintf.c: New file.
101280         * lib/unistdio/u8-vasnprintf.c: New file.
101281         * lib/unistdio/u8-vasprintf.c: New file.
101282         * lib/unistdio/u8-vsnprintf.c: New file.
101283         * lib/unistdio/u8-vsprintf.c: New file.
101284         * lib/unistdio/u8-u8-asnprintf.c: New file.
101285         * lib/unistdio/u8-u8-asprintf.c: New file.
101286         * lib/unistdio/u8-u8-snprintf.c: New file.
101287         * lib/unistdio/u8-u8-sprintf.c: New file.
101288         * lib/unistdio/u8-u8-vasnprintf.c: New file.
101289         * lib/unistdio/u8-u8-vasprintf.c: New file.
101290         * lib/unistdio/u8-u8-vsnprintf.c: New file.
101291         * lib/unistdio/u8-u8-vsprintf.c: New file.
101292         * lib/unistdio/u16-asnprintf.c: New file.
101293         * lib/unistdio/u16-asprintf.c: New file.
101294         * lib/unistdio/u16-printf-parse.c: New file.
101295         * lib/unistdio/u16-snprintf.c: New file.
101296         * lib/unistdio/u16-sprintf.c: New file.
101297         * lib/unistdio/u16-vasnprintf.c: New file.
101298         * lib/unistdio/u16-vasprintf.c: New file.
101299         * lib/unistdio/u16-vsnprintf.c: New file.
101300         * lib/unistdio/u16-vsprintf.c: New file.
101301         * lib/unistdio/u16-u16-asnprintf.c: New file.
101302         * lib/unistdio/u16-u16-asprintf.c: New file.
101303         * lib/unistdio/u16-u16-snprintf.c: New file.
101304         * lib/unistdio/u16-u16-sprintf.c: New file.
101305         * lib/unistdio/u16-u16-vasnprintf.c: New file.
101306         * lib/unistdio/u16-u16-vasprintf.c: New file.
101307         * lib/unistdio/u16-u16-vsnprintf.c: New file.
101308         * lib/unistdio/u16-u16-vsprintf.c: New file.
101309         * lib/unistdio/u32-asnprintf.c: New file.
101310         * lib/unistdio/u32-asprintf.c: New file.
101311         * lib/unistdio/u32-printf-parse.c: New file.
101312         * lib/unistdio/u32-snprintf.c: New file.
101313         * lib/unistdio/u32-sprintf.c: New file.
101314         * lib/unistdio/u32-vasnprintf.c: New file.
101315         * lib/unistdio/u32-vasprintf.c: New file.
101316         * lib/unistdio/u32-vsnprintf.c: New file.
101317         * lib/unistdio/u32-vsprintf.c: New file.
101318         * lib/unistdio/u32-u32-asnprintf.c: New file.
101319         * lib/unistdio/u32-u32-asprintf.c: New file.
101320         * lib/unistdio/u32-u32-snprintf.c: New file.
101321         * lib/unistdio/u32-u32-sprintf.c: New file.
101322         * lib/unistdio/u32-u32-vasnprintf.c: New file.
101323         * lib/unistdio/u32-u32-vasprintf.c: New file.
101324         * lib/unistdio/u32-u32-vsnprintf.c: New file.
101325         * lib/unistdio/u32-u32-vsprintf.c: New file.
101326         * tests/unistdio/test-ulc-asnprintf1.c: New file.
101327         * tests/unistdio/test-ulc-asnprintf1.h: New file.
101328         * tests/unistdio/test-ulc-printf1.h: New file.
101329         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
101330         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
101331         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
101332         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
101333         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
101334         * tests/unistdio/test-ulc-vasprintf1.c: New file.
101335         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
101336         * tests/unistdio/test-ulc-vsprintf1.c: New file.
101337         * tests/unistdio/test-u8-asnprintf1.c: New file.
101338         * tests/unistdio/test-u8-asnprintf1.h: New file.
101339         * tests/unistdio/test-u8-printf1.h: New file.
101340         * tests/unistdio/test-u8-vasnprintf1.c: New file.
101341         * tests/unistdio/test-u8-vasnprintf2.c: New file.
101342         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
101343         * tests/unistdio/test-u8-vasnprintf3.c: New file.
101344         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
101345         * tests/unistdio/test-u8-vasprintf1.c: New file.
101346         * tests/unistdio/test-u8-vsnprintf1.c: New file.
101347         * tests/unistdio/test-u8-vsprintf1.c: New file.
101348         * tests/unistdio/test-u16-asnprintf1.c: New file.
101349         * tests/unistdio/test-u16-asnprintf1.h: New file.
101350         * tests/unistdio/test-u16-printf1.h: New file.
101351         * tests/unistdio/test-u16-vasnprintf1.c: New file.
101352         * tests/unistdio/test-u16-vasnprintf2.c: New file.
101353         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
101354         * tests/unistdio/test-u16-vasnprintf3.c: New file.
101355         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
101356         * tests/unistdio/test-u16-vasprintf1.c: New file.
101357         * tests/unistdio/test-u16-vsnprintf1.c: New file.
101358         * tests/unistdio/test-u16-vsprintf1.c: New file.
101359         * tests/unistdio/test-u32-asnprintf1.c: New file.
101360         * tests/unistdio/test-u32-asnprintf1.h: New file.
101361         * tests/unistdio/test-u32-printf1.h: New file.
101362         * tests/unistdio/test-u32-vasnprintf1.c: New file.
101363         * tests/unistdio/test-u32-vasnprintf2.c: New file.
101364         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
101365         * tests/unistdio/test-u32-vasnprintf3.c: New file.
101366         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
101367         * tests/unistdio/test-u32-vasprintf1.c: New file.
101368         * tests/unistdio/test-u32-vsnprintf1.c: New file.
101369         * tests/unistdio/test-u32-vsprintf1.c: New file.
101370         * modules/unistdio/base: New file.
101371         * modules/unistdio/u-printf-args: New file.
101372         * modules/unistdio/ulc-asnprintf: New file.
101373         * modules/unistdio/ulc-asprintf: New file.
101374         * modules/unistdio/ulc-fprintf: New file.
101375         * modules/unistdio/ulc-printf-parse: New file.
101376         * modules/unistdio/ulc-snprintf: New file.
101377         * modules/unistdio/ulc-sprintf: New file.
101378         * modules/unistdio/ulc-vasnprintf: New file.
101379         * modules/unistdio/ulc-vasprintf: New file.
101380         * modules/unistdio/ulc-vfprintf: New file.
101381         * modules/unistdio/ulc-vsnprintf: New file.
101382         * modules/unistdio/ulc-vsprintf: New file.
101383         * modules/unistdio/u8-asnprintf: New file.
101384         * modules/unistdio/u8-asprintf: New file.
101385         * modules/unistdio/u8-printf-parse: New file.
101386         * modules/unistdio/u8-snprintf: New file.
101387         * modules/unistdio/u8-sprintf: New file.
101388         * modules/unistdio/u8-vasnprintf: New file.
101389         * modules/unistdio/u8-vasprintf: New file.
101390         * modules/unistdio/u8-vsnprintf: New file.
101391         * modules/unistdio/u8-vsprintf: New file.
101392         * modules/unistdio/u8-u8-asnprintf: New file.
101393         * modules/unistdio/u8-u8-asprintf: New file.
101394         * modules/unistdio/u8-u8-snprintf: New file.
101395         * modules/unistdio/u8-u8-sprintf: New file.
101396         * modules/unistdio/u8-u8-vasnprintf: New file.
101397         * modules/unistdio/u8-u8-vasprintf: New file.
101398         * modules/unistdio/u8-u8-vsnprintf: New file.
101399         * modules/unistdio/u8-u8-vsprintf: New file.
101400         * modules/unistdio/u16-asnprintf: New file.
101401         * modules/unistdio/u16-asprintf: New file.
101402         * modules/unistdio/u16-printf-parse: New file.
101403         * modules/unistdio/u16-snprintf: New file.
101404         * modules/unistdio/u16-sprintf: New file.
101405         * modules/unistdio/u16-vasnprintf: New file.
101406         * modules/unistdio/u16-vasprintf: New file.
101407         * modules/unistdio/u16-vsnprintf: New file.
101408         * modules/unistdio/u16-vsprintf: New file.
101409         * modules/unistdio/u16-u16-asnprintf: New file.
101410         * modules/unistdio/u16-u16-asprintf: New file.
101411         * modules/unistdio/u16-u16-snprintf: New file.
101412         * modules/unistdio/u16-u16-sprintf: New file.
101413         * modules/unistdio/u16-u16-vasnprintf: New file.
101414         * modules/unistdio/u16-u16-vasprintf: New file.
101415         * modules/unistdio/u16-u16-vsnprintf: New file.
101416         * modules/unistdio/u16-u16-vsprintf: New file.
101417         * modules/unistdio/u32-asnprintf: New file.
101418         * modules/unistdio/u32-asprintf: New file.
101419         * modules/unistdio/u32-printf-parse: New file.
101420         * modules/unistdio/u32-snprintf: New file.
101421         * modules/unistdio/u32-sprintf: New file.
101422         * modules/unistdio/u32-vasnprintf: New file.
101423         * modules/unistdio/u32-vasprintf: New file.
101424         * modules/unistdio/u32-vsnprintf: New file.
101425         * modules/unistdio/u32-vsprintf: New file.
101426         * modules/unistdio/u32-u32-asnprintf: New file.
101427         * modules/unistdio/u32-u32-asprintf: New file.
101428         * modules/unistdio/u32-u32-snprintf: New file.
101429         * modules/unistdio/u32-u32-sprintf: New file.
101430         * modules/unistdio/u32-u32-vasnprintf: New file.
101431         * modules/unistdio/u32-u32-vasprintf: New file.
101432         * modules/unistdio/u32-u32-vsnprintf: New file.
101433         * modules/unistdio/u32-u32-vsprintf: New file.
101434         * modules/unistdio/ulc-asnprintf-tests: New file.
101435         * modules/unistdio/ulc-vasnprintf-tests: New file.
101436         * modules/unistdio/ulc-vasprintf-tests: New file.
101437         * modules/unistdio/ulc-vsnprintf-tests: New file.
101438         * modules/unistdio/ulc-vsprintf-tests: New file.
101439         * modules/unistdio/u8-asnprintf-tests: New file.
101440         * modules/unistdio/u8-vasnprintf-tests: New file.
101441         * modules/unistdio/u8-vasprintf-tests: New file.
101442         * modules/unistdio/u8-vsnprintf-tests: New file.
101443         * modules/unistdio/u8-vsprintf-tests: New file.
101444         * modules/unistdio/u16-asnprintf-tests: New file.
101445         * modules/unistdio/u16-vasnprintf-tests: New file.
101446         * modules/unistdio/u16-vasprintf-tests: New file.
101447         * modules/unistdio/u16-vsnprintf-tests: New file.
101448         * modules/unistdio/u16-vsprintf-tests: New file.
101449         * modules/unistdio/u32-asnprintf-tests: New file.
101450         * modules/unistdio/u32-vasnprintf-tests: New file.
101451         * modules/unistdio/u32-vasprintf-tests: New file.
101452         * modules/unistdio/u32-vsnprintf-tests: New file.
101453         * modules/unistdio/u32-vsprintf-tests: New file.
101454         * MODULES.html.sh (Unicode string functions): Add the new modules.
101456 2007-07-01  Bruno Haible  <bruno@clisp.org>
101458         * lib/sprintf.c (sprintf): Limit the available length estimation,
101459         to avoid address wraparound.
101460         * lib/vsprintf.c (vsprintf): Likewise.
101461         * modules/sprintf-posix (Dependencies): Add stdint.
101462         * modules/vsprintf-posix (Dependencies): Likewise.
101464 2007-07-01  Bruno Haible  <bruno@clisp.org>
101466         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
101467         Windows PATH as well. Conservative double-quoting. Comments.
101469 2007-07-01  Bruno Haible  <bruno@clisp.org>
101470             Eric Blake  <ebb9@byu.net>
101471             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101473         * gnulib-tool (self_abspathname): Fix algorithm to cope with
101474         empty components in $PATH, denoting '.'.
101476 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101478         * gnulib-tool: Fix indentation.
101479         (func_create_megatestdir): Likewise.
101480         Report by Bruno Haible.
101482 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101484         Sync from Automake.
101485         * build-aux/gnupload: Fix shell portability issues with for loops.
101486         Report by Karl Berry.
101488 2007-06-29  Simon Josefsson  <simon@josefsson.org>
101490         * build-aux/maint.mk (POURL): Use translationproject.org.
101492 2007-06-27  Simon Josefsson  <simon@josefsson.org>
101493             Bruno Haible  <bruno@clisp.org>
101495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
101496         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
101497         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
101498         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
101499         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
101501 2007-06-27  Bruno Haible  <bruno@clisp.org>
101503         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
101504         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
101506 2007-06-26  Karl Berry  <karl@gnu.org>
101508         * MODULES.html.sh: remove xreadlink-with-size.
101510 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101512         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
101513         method that I hope also handles the double-include problem noted
101514         by Bruno Haible in
101515         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
101517 2007-06-23  Bruno Haible  <bruno@clisp.org>
101519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101520         Don't let the 'mostlyclean' target fail if the last subdirectory could
101521         not be removed.
101522         Reported by Karl Berry.
101524 2007-06-23  Bruno Haible  <bruno@clisp.org>
101526         * gnulib-tool (echo): Add a speedier workaround for ksh.
101527         * tests/test-echo.sh: Likewise.
101529 2007-06-23  Bruno Haible  <bruno@clisp.org>
101531         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
101532         * tests/test-echo.sh: Likewise.
101534 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101536         * gnulib-tool (IFS): Initialize early, so we don't set it to
101537         empty later.
101538         (self_abspathname): Rewrite algorithm to set it, reindent.
101539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
101540         (func_create_megatestdir): Merge some sed scripts.
101542 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
101545         exposed by Sun Studio 11 cc on Solaris 8.
101547 2007-06-22  Bruno Haible  <bruno@clisp.org>
101549         * gnulib-tool (echo): Ensure the echo primitive does not interpret
101550         backslashes.
101551         * tests/test-echo.sh: New file.
101553 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101555         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
101556         simplify `sed_replace_build_aux' scripts, they are portable but
101557         echoing them with `echo' is not.
101558         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
101560 2007-06-21  Karl Berry  <karl@gnu.org>
101562         * config/srclist.txt: guess we can't handle the licenses via
101563         srclist at the moment.
101565 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
101567         * MODULES.html.sh: Add include_next.
101568         * modules/include_next: New file.
101570 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
101572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
101573         INCLUDE_NEXT.
101574         (gl_CHECK_NEXT_HEADERS): New macro.
101575         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
101576         the obsolescent gl_ABSOLUTE_HEADER.
101577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
101578         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
101579         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
101580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
101581         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
101582         * m4/math_h.m4 (gl_MATH_H): Likewise.
101583         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
101584         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
101585         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
101586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
101587         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
101588         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
101589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
101590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
101591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
101592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
101593         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
101594         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
101595         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
101596         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
101597         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
101598         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
101599         * m4/inttypes.m4 (gl_INTTYPES_H): Define
101600         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
101601         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
101602         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
101603         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
101604         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
101605         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
101606         * lib/float_.h: Likewise.
101607         * lib/inttypes_.h: Likewise.
101608         * lib/math_.h: Likewise.
101609         * lib/search_.h: Likewise.
101610         * lib/signal_.h: Likewise.
101611         * lib/stdint_.h: Likewise.
101612         * lib/stdio_.h: Likewise.
101613         * lib/stdlib_.h: Likewise.
101614         * lib/string_.h: Likewise.
101615         * lib/sys_stat_.h: Likewise.
101616         * lib/sys_time_.h: Likewise.
101617         * lib/time_.h: Likewise.
101618         * lib/unistd_.h: Likewise.
101619         * lib/wchar_.h: Likewise.
101620         * lib/wctype_.h: Likewise.
101621         * lib/dirent_.h: Likewise.
101622         * lib/iconv_.h: Likewise.
101623         * lib/locale_.h: Likewise.
101624         * lib/netinet_in_.h: Likewise.
101625         * lib/sys_select_.h: Likewise.
101626         * lib/sys_socket_.h: Likewise.
101627         * lib/sysexits_.h: Likewise.
101628         * modules/fcntl (Depends-on): Depend on include_next, not
101629         absolute_header.
101630         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
101631         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
101632         * modules/fchdir: Likewise.
101633         * modules/float: Likewise.
101634         * modules/iconv_open: Likewise.
101635         * modules/inttypes: Likewise.
101636         * modules/locale: Likewise.
101637         * modules/math: Likewise.
101638         * modules/netinet_in: Likewise.
101639         * modules/search: Likewise.
101640         * modules/signal: Likewise.
101641         * modules/stdint: Likewise.
101642         * modules/stdio: Likewise.
101643         * modules/stdlib: Likewise.
101644         * modules/string: Likewise.
101645         * modules/sys_select: Likewise.
101646         * modules/sys_socket: Likewise.
101647         * modules/sys_stat: Likewise.
101648         * modules/sys_time: Likewise.
101649         * modules/sysexits: Likewise.
101650         * modules/time: Likewise.
101651         * modules/unistd: Likewise.
101652         * modules/wchar: Likewise.
101653         * modules/wctype: Likewise.
101654         * modules/sys_stat: Change maintainer to "all".
101655         * modules/unistd: Likewise.
101657 2007-06-20  Karl Berry  <karl@gnu.org>
101659         * config/srclist.txt: track www changes in license files.
101661 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
101663         * build-aux/bootstrap: Remove stray dot.
101664         Make sure build_aux settings are honored when linking
101665         gnulib_extra_files.
101667 2007-06-19  Eric Blake  <ebb9@byu.net>
101669         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
101670         Allow compilation on cygwin.
101672 2007-06-19  Jim Meyering  <jim@meyering.net>
101674         xreadlink-with-size: Remove module.  No longer used.
101675         Ex-callers now use xreadlink or mreadlink-with-size.
101676         * modules/xreadlink-with-size: Remove module.
101677         * lib/xreadlink-with-size.c: Remove file.
101678         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
101679         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
101680         just before the function definition *is* accurate.
101682         Eliminate one way canonicalize_filename_mode could exit.
101683         * lib/canonicalize.c (canonicalize_filename_mode):
101684         Use mreadlink_with_size, not xreadlink_with_size.
101686 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
101688         Detect porting problems to FreeBSD/arm, which has time_t wider than
101689         long int.  Original problem reported for GNU diff by Xin Li in
101690         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
101691         * modules/getdate (Depends-on): Add intprops, verify.
101692         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
101693         is an integer type no wider than long int.
101695 2007-06-18  Jim Meyering  <jim@meyering.net>
101697         New module: mreadlink-with-size.
101698         * MODULES.html.sh: Add mreadlink-with-size.
101699         * modules/mreadlink-with-size: New module
101700         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
101701         not xreadlink-with-size.
101702         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
101704 2007-06-16  Bruno Haible  <bruno@clisp.org>
101706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
101707         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
101708         Reported by Gary V. Vaughan <gary@gnu.org>.
101710 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
101712         Revamp lchown so that it lives in unistd.h where it belongs.
101713         * lib/lchown.h: Remove.
101714         * lib/dirchownmod.c: Don't include lib/lchown.h.
101715         * lib/fchownat.c: Likewise.
101716         * lib/openat.c: Likewise.
101717         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
101718         does not follow symlinks.
101719         (EOPNOTSUPP): Define if not defined.
101720         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
101721         is defined to 0.
101722         (lchown): New decl.
101723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
101724         Do not check for lchown decl.
101725         Set REPLACE_LCHOWN.
101726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
101727         REPLACE_LCHOWN.
101728         * modules/chown: Make it clear it follows symlinks.
101729         * modules/lchown: Make it clear it doesn't follow symlinks.
101730         (Files): Remove lib/lchown.h
101731         (Depends-on): Add unistd.
101732         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
101733         (Include): Include <unistd.h>, not "lchown.h".
101734         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
101735         REPLACE_LCHOWN.
101737 2007-06-15  Jim Meyering  <jim@meyering.net>
101739         Change license (GPL to LGPL) of fsusage and dependents.
101740         * modules/fsusage (License): Change to LGPL.
101741         * modules/full-read (License): Likewise.
101742         * modules/full-write (License): Likewise.
101743         * modules/safe-read (License): Likewise.
101744         * modules/safe-write (License): Likewise.
101746 2007-06-14  Ben Pfaff  <blp@gnu.org>
101748         Missing part of allocsa -> malloca transition.
101749         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
101750         gl_MALLOCA.
101752 2007-06-12  Bruno Haible  <bruno@clisp.org>
101754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
101755         to ia64, x86_64, i386.
101756         Reported by Eric Blake.
101758 2007-06-12  Bruno Haible  <bruno@clisp.org>
101760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
101761         cross-compiling to x86_64.
101763 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
101765         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
101766         glitch reported by Ralf Wildenhues in
101767         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
101769         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
101770         Vin Shelton.
101772 2007-06-11  Bruno Haible  <bruno@clisp.org>
101774         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
101775         replacement string.
101776         Reported by Eric Blake.
101778 2007-06-10  Bruno Haible  <bruno@clisp.org>
101780         Prepare vasnprintf code for use with Unicode strings.
101781         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
101782         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
101783         TYPE_U32_STRING.
101784         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
101785         a_u32_string variants.
101786         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
101787         * lib/printf-args.c: Don't include config.h and the specification
101788         header if PRINTF_FETCHARGS is already defined.
101789         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
101790         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
101791         TYPE_U16_STRING, TYPE_U32_STRING.
101792         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
101793         u16_directive, u16_directives, u32_directive, u32_directives): New
101794         types.
101795         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
101796         New declarations.
101797         * lib/printf-parse.c: Don't include config.h and the specification
101798         header if PRINTF_PARSE is already defined. Eliminate the set of
101799         parameters for WIDE_CHAR_VERSION; the user of this file must provide
101800         them now. Include c-ctype.h.
101801         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
101802         directive and CHAR_T_ONLY_ASCII.
101803         * lib/vasnprintf.c: Don't include config.h and the specification header
101804         if VASNPRINTF is already defined.
101805         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
101806         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
101807         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
101808         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
101809         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
101810         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
101811         code accordingly.
101812         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
101813         pad_ourselves also in this case, with the 'c' and 's' directives, and
101814         with a different notion of "width".
101815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
101817 2007-06-10  Bruno Haible  <bruno@clisp.org>
101819         * modules/unistr/u32-mbsnlen: New file.
101820         * lib/unistr/u32-mbsnlen.c: New file.
101822         * modules/unistr/u16-mbsnlen: New file.
101823         * lib/unistr/u16-mbsnlen.c: New file.
101825         * modules/unistr/u8-mbsnlen: New file.
101826         * lib/unistr/u8-mbsnlen.c: New file.
101828         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
101829         declarations.
101831 2007-06-10  Bruno Haible  <bruno@clisp.org>
101833         * lib/string_.h (mbsnlen): New declaration.
101834         * lib/mbsnlen.c: New file.
101835         * m4/mbsnlen.m4: New file.
101836         * modules/mbsnlen: New file.
101837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
101838         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
101839         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
101841 2007-06-10  Bruno Haible  <bruno@clisp.org>
101843         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
101845 2007-06-10  Bruno Haible  <bruno@clisp.org>
101847         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
101848         * lib/mbuiter.h: Likewise.
101850 2007-06-10  Bruno Haible  <bruno@clisp.org>
101852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
101853         declaration.
101855 2007-06-10  Karl Berry  <karl@gnu.org>
101857         * config/srclist.txt: remove gettext entries, Bruno prefers
101858         to update individually.
101860 2007-06-10  Bruno Haible  <bruno@clisp.org>
101862         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
101863         'maxlen'. Ensure only length + width bytes are allocated, not
101864         length + 1 + width.
101866 2007-06-09  Bruno Haible  <bruno@clisp.org>
101868         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
101869         (CHAR_T): Remove macro.
101870         (VASNPRINTF): Update.
101872 2007-06-09  Bruno Haible  <bruno@clisp.org>
101874         * MODULES.html.sh (Unicode string functions): Add the new modules.
101876         * modules/uniconv/u32-conv-to-enc: New file.
101877         * lib/uniconv/u32-conv-to-enc.c: New file.
101878         * modules/uniconv/u32-conv-to-enc-tests: New file.
101879         * tests/uniconv/test-u32-conv-to-enc.c: New file.
101881         * modules/uniconv/u16-conv-to-enc: New file.
101882         * lib/uniconv/u16-conv-to-enc.c: New file.
101883         * lib/uniconv/u-conv-to-enc.h: New file.
101884         * modules/uniconv/u16-conv-to-enc-tests: New file.
101885         * tests/uniconv/test-u16-conv-to-enc.c: New file.
101887         * modules/uniconv/u8-conv-to-enc: New file.
101888         * lib/uniconv/u8-conv-to-enc.c: New file.
101889         * modules/uniconv/u8-conv-to-enc-tests: New file.
101890         * tests/uniconv/test-u8-conv-to-enc.c: New file.
101892         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
101893         u32_conv_to_encoding): New declarations.
101895 2007-06-09  Bruno Haible  <bruno@clisp.org>
101897         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
101899 2007-06-09  Bruno Haible  <bruno@clisp.org>
101901         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
101902         * modules/malloca: Renamed from modules/allocsa, updated.
101903         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
101904         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
101905         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
101906         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
101907         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
101908         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
101909         * modules/xmalloca: Renamed from modules/xallocsa, updated.
101910         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
101911         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
101912         * modules/c-strcasestr (Depends-on): Update.
101913         * lib/c-strcasestr.c: Update.
101914         * modules/c-strstr (Depends-on): Update.
101915         * lib/c-strstr.c: Update.
101916         * modules/canonicalize-lgpl (Depends-on): Update.
101917         * lib/canonicalize-lgpl.c: Update.
101918         * modules/clean-temp (Depends-on): Update.
101919         * lib/clean-temp.c: Update.
101920         * modules/csharpcomp (Depends-on): Update.
101921         * lib/csharpcomp.c: Update.
101922         * modules/csharpexec (Depends-on): Update.
101923         * lib/csharpexec.c: Update.
101924         * modules/javacomp (Depends-on): Update.
101925         * lib/javacomp.c: Update.
101926         * modules/javaexec (Depends-on): Update.
101927         * lib/javaexec.c: Update.
101928         * modules/mbscasestr (Depends-on): Update.
101929         * lib/mbscasestr.c: Update.
101930         * modules/mbsstr (Depends-on): Update.
101931         * lib/mbsstr.c: Update.
101932         * modules/setenv (Depends-on): Update.
101933         * lib/setenv.c: Update.
101934         * modules/strcasestr (Depends-on): Update.
101935         * lib/strcasestr.c: Update.
101936         * modules/striconveha (Depends-on): Update.
101937         * lib/striconveha.c: Update.
101938         * modules/relocatable-prog-wrapper (Files): Update.
101939         * lib/relocwrapper.c: Update.
101940         * build-aux/install-reloc: Update.
101941         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
101943 2007-06-08  Bruno Haible  <bruno@clisp.org>
101945         Port to uClibc.
101946         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
101947         * lib/fpurge.c (fpurge): Likewise.
101948         * lib/freading.c (freading): Likewise.
101949         * lib/fseeko.c (rpl_fseeko): Likewise.
101950         * lib/fseterr.c (fseterr): Likewise.
101951         * lib/fwriting.c (fwriting): Likewise.
101952         * tests/test-fflush.c (main): Avoid a failure on uClibc.
101954 2007-06-08  Bruno Haible  <bruno@clisp.org>
101956         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
101957         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
101958         * modules/gettext (Files): Add m4/intlmacosx.m4.
101960 2007-06-07  Bruno Haible  <bruno@clisp.org>
101962         * modules/localename-tests: New file.
101963         * tests/test-localename.c: New file.
101965         New module 'localename'.
101966         * lib/localename.h: New file.
101967         * lib/localename.c: New file, from GNU gettext.
101968         * m4/localename.m4: New file.
101969         * modules/localename: New file.
101971 2007-06-07  Bruno Haible  <bruno@clisp.org>
101973         Work around the lack of <wchar.h> on some builds of uClibc.
101974         * doc/headers/wchar.texi: Update.
101975         * lib/wchar_.h: Include <wchar.h> only if it exists.
101976         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
101977         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
101978         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
101979         doesn't exist.
101980         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
101981         * modules/mbfile (Depends-on): Add wchar.
101982         * modules/mbiter (Depends-on): Likewise.
101983         * modules/mbuiter (Depends-on): Likewise.
101984         Reported by Simon Josefsson.
101986 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
101988         Work around problem reported by Steven M. Schweda in
101989         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
101990         Tru64 5.1B with the Compaq compiler environment installed declares
101991         an 'isblank' function but does not define it in the C library.
101992         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
101993         * lib/regex_internal.h (isblank): Likewise.
101994         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
101995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101997 2007-06-05  Bruno Haible  <bruno@clisp.org>
101999         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
102000         ia64.
102001         * modules/printf-safe: New file.
102002         * modules/fprintf-posix (Depends-on): Add printf-safe.
102003         * modules/printf-posix (Depends-on): Likewise.
102004         * modules/snprintf-posix (Depends-on): Likewise.
102005         * modules/sprintf-posix (Depends-on): Likewise.
102006         * modules/vasnprintf-posix (Depends-on): Likewise.
102007         * modules/vasprintf-posix (Depends-on): Likewise.
102008         * modules/vfprintf-posix (Depends-on): Likewise.
102009         * modules/vprintf-posix (Depends-on): Likewise.
102010         * modules/vsnprintf-posix (Depends-on): Likewise.
102011         * modules/vsprintf-posix (Depends-on): Likewise.
102012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
102013         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
102014         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
102015         "no" on i386, x86_64, ia64.
102016         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
102017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102018         on i386, x86_64, ia64.
102019         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
102020         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102021         on i386, x86_64, ia64.
102022         * tests/test-vasnprintf-posix.c: Include float.h.
102023         (LDBL80_WORDS): New macro.
102024         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102025         on i386, x86_64, ia64.
102026         * tests/test-vasprintf-posix.c: Include float.h.
102027         (LDBL80_WORDS): New macro.
102028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102029         on i386, x86_64, ia64.
102030         * tests/test-snprintf-posix.c: Include float.h.
102031         * tests/test-sprintf-posix.c: Likewise.
102032         * tests/test-vsnprintf-posix.c: Likewise.
102033         * tests/test-vsprintf-posix.c: Likewise.
102035 2007-06-05  Bruno Haible  <bruno@clisp.org>
102037         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
102038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
102039         non-IEEE numbers on i386, x86_64, ia64.
102040         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
102041         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
102042         * tests/test-isnanl.h: Include float.h.
102043         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
102045 2007-06-05  Bruno Haible  <bruno@clisp.org>
102047         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
102048         also the %a / %A. Handle the %a / %A code before this extra handling.
102050 2007-06-05  Bruno Haible  <bruno@clisp.org>
102052         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
102053         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
102055 2007-06-05  Bruno Haible  <bruno@clisp.org>
102057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
102058         typo in variable name.
102060 2007-06-05  Eric Blake  <ebb9@byu.net>
102062         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
102063         Reported by Simon Josefsson.
102065 2007-06-04  Bruno Haible  <bruno@clisp.org>
102067         Avoid test failures on some PowerPC platforms.
102068         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
102069         Define differently for PowerPC.
102070         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
102071         Reported by Gary V. Vaughan <gary@gnu.org>.
102073 2007-06-02  Bruno Haible  <bruno@clisp.org>
102075         Fix test-stdint failure on FreeBSD/ia64.
102076         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
102077         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
102078         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
102079         * doc/headers/stdint.texi: Update.
102081 2007-06-01  Bruno Haible  <bruno@clisp.org>
102083         * tests/test-binary-io.c (main): Pass a third argument to open().
102084         Reported by Gary V. Vaughan <gary@gnu.org>.
102086 2007-06-01  Bruno Haible  <bruno@clisp.org>
102088         * doc/functions/frexpl.texi: Update for mingw.
102090 2007-06-01  Bruno Haible  <bruno@clisp.org>
102092         * tests/test-lseek.c (main): Disable test of errno for invalid third
102093         argument.
102094         * doc/functions/lseek.texi: Update.
102095         Reported by Gary V. Vaughan <gary@gnu.org>.
102097 2007-05-28  Bruno Haible  <bruno@clisp.org>
102099         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
102101 2007-05-31  Eric Blake  <ebb9@byu.net>
102103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
102104         cross compiling.
102106 2007-05-30  Eric Blake  <ebb9@byu.net>
102107         and Bruno Haible  <bruno@clisp.org>
102109         Work around mingw test failures exposed by m4-1.4.9b.
102110         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
102111         * tests/test-unistd.c: Disable uid_t and git_t tests for the
102112         moment.
102114 2007-05-30  Bruno Haible  <bruno@clisp.org>
102116         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
102117         assuming that they are closed. Needed on HP-UX 11.
102119 2007-05-29  Bruno Haible  <bruno@clisp.org>
102121         Fix a problem with #include_next.
102122         * lib/dirent_.h: Split the double-inclusion guard.
102123         * lib/fcntl_.h: Likewise.
102124         * lib/float_.h: Likewise.
102125         * lib/iconv_.h: Likewise.
102126         * lib/inttypes_.h: Likewise.
102127         * lib/locale_.h: Likewise.
102128         * lib/math_.h: Likewise.
102129         * lib/netinet_in_.h: Likewise.
102130         * lib/search_.h: Likewise.
102131         * lib/signal_.h: Likewise.
102132         * lib/stdint_.h: Likewise.
102133         * lib/stdio_.h: Likewise.
102134         * lib/stdlib_.h: Likewise.
102135         * lib/string_.h: Likewise.
102136         * lib/sys_select_.h: Likewise.
102137         * lib/sys_socket_.h: Likewise.
102138         * lib/sys_stat_.h: Likewise.
102139         * lib/sys_time_.h: Likewise.
102140         * lib/sysexits_.h: Likewise.
102141         * lib/time_.h: Likewise.
102142         * lib/unistd_.h: Likewise.
102143         * lib/wchar_.h: Likewise.
102144         * lib/wctype_.h: Likewise.
102146 2007-05-29  Bruno Haible  <bruno@clisp.org>
102148         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
102149         for the moment.
102151 2007-05-29  Bruno Haible  <bruno@clisp.org>
102153         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
102154         invocation.
102155         Reported by Eric Blake.
102157 2007-05-29  Bruno Haible  <bruno@clisp.org>
102159         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
102160         compiling case.
102162 2007-05-29  Eric Blake  <ebb9@byu.net>
102163             Bruno Haible  <bruno@clisp.org>
102165         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
102166         cross compiles.
102168 2007-05-28  Eric Blake  <ebb9@byu.net>
102170         * modules/closein-tests (test_closein_LDADD): Support test on
102171         cygwin with libtool.
102173 2007-05-28  Bruno Haible  <bruno@clisp.org>
102175         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
102176         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
102177         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
102178         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
102179         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
102180         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
102181         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
102182         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
102183         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
102185 2007-05-28  Eric Blake  <ebb9@byu.net>
102187         Unconditionally include <config.h> in unit tests.
102188         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
102189         * tests/test-allocsa.c, tests/test-arcfour.c,
102190         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
102191         tests/test-array_list.c, tests/test-array_oset.c,
102192         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
102193         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
102194         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
102195         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
102196         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
102197         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
102198         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
102199         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
102200         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
102201         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
102202         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
102203         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
102204         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
102205         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
102206         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
102207         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
102208         test-md5.c, test-memmem.c, test-printf-posix.c,
102209         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
102210         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
102211         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
102212         test-strcasestr.c, test-striconv.c, test-striconveh.c,
102213         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
102214         test-vasnprintf-posix2.c, test-vasnprintf.c,
102215         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
102216         test-vfprintf-posix.c, test-vprintf-posix.c,
102217         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
102218         test-xvasprintf.c: Likewise.
102220 2007-05-28  Bruno Haible  <bruno@clisp.org>
102222         * gnulib-tool (func_import): Remember the --with-tests command-line
102223         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
102224         Reported by Eric Blake.
102226 2007-05-28  Bruno Haible  <bruno@clisp.org>
102228         * modules/ftell-tests: New file.
102229         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
102230         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
102232         * lib/ftell.c: New file.
102233         * modules/ftell: New file.
102234         * m4/ftell.m4: New file.
102235         * doc/functions/ftell.texi: Update.
102236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
102237         REPLACE_FTELL.
102238         * lib/stdio_.h (rpl_ftell): New declaration.
102239         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
102240         REPLACE_FTELL.
102242 2007-05-28  Eric Blake  <ebb9@byu.net>
102244         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
102246 2007-05-28  Bruno Haible  <bruno@clisp.org>
102248         * modules/fseek-tests: New file.
102249         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
102250         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
102252         * lib/fseek.c: New file.
102253         * modules/fseek: New file.
102254         * m4/fseek.m4: New file.
102255         * doc/functions/fseek.texi: Update.
102256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
102257         REPLACE_FSEEK.
102258         * lib/stdio_.h (rpl_fseek): New declaration.
102259         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
102260         REPLACE_FSEEK.
102262 2007-05-28  Bruno Haible  <bruno@clisp.org>
102264         * lib/stdio_.h (fflush): More comments.
102266 2007-05-28  Bruno Haible  <bruno@clisp.org>
102268         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
102269         runtime test.
102271 2007-05-28  Eric Blake  <ebb9@byu.net>
102273         Improve lseek module.
102274         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
102275         * lib/unistd_.h (lseek): Scale back link warning message.
102276         * tests/test-lseek.c: Beef up test.
102277         * tests/test-lseek.sh: Exercise more facets of lseek.
102278         Reported by Bruno Haible.
102280 2007-05-28  Bruno Haible  <bruno@clisp.org>
102282         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
102283         to define.
102285 2007-05-27  Bruno Haible  <bruno@clisp.org>
102287         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
102289 2007-05-27  Bruno Haible  <bruno@clisp.org>
102291         * modules/openmp: New file.
102292         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
102293         Noah Misch.
102295 2007-05-26  Bruno Haible  <bruno@clisp.org>
102297         * modules/chdir-long (Depends-on): Add fchdir.
102298         * modules/chdir-safer (Depends-on): Likewise.
102299         * modules/fts (Depends-on): Likewise.
102300         * modules/fts-lgpl (Depends-on): Likewise.
102301         * modules/openat (Depends-on): Likewise.
102302         * modules/savewd (Depends-on): Likewise.
102304 2007-05-24  Eric Blake  <ebb9@byu.net>
102306         Fix lseek on mingw.
102307         * modules/lseek: New module.
102308         * m4/lseek.m4: New file.
102309         * lib/lseek.c: New file.
102310         * modules/lseek-tests: New file.
102311         * tests/test-lseek.c: New file.
102312         * tests/test-lseek.sh: New file.
102313         * MODULES.html.sh: Document lseek module.
102314         * modules/fflush (Depends-on): Add lseek, fseeko.
102315         * modules/fseeko (Depends-on): Likewise.
102316         * modules/ftello (Depends-on): Likewise.
102317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
102318         broken.
102319         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
102320         broken.
102321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
102322         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
102323         * lib/ftello.c (rpl_ftello): Likewise.
102324         * tests/test-fseeko.c (main): Test this.
102325         * tests/test-fseeko.sh: Likewise.
102326         * tests/test-ftello.c (main): Likewise.
102327         * tests/test-ftello.sh: Likewise.
102328         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
102329         implies replacing fseek.
102330         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
102331         HAVE_FTELLO.
102332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
102333         * modules/unistd (Makefile.am): Likewise.
102334         * lib/unistd_.h (lseek): Declare a replacement.
102335         * doc/functions/lseek.texi (lseek): Document this fix.
102336         * doc/functions/fseek.texi (fseek): Likewise.
102337         * doc/functions/ftell.texi (ftell): Likewise.
102339 2007-05-24  Bruno Haible  <bruno@clisp.org>
102341         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
102342         in the printed representation of a NaN.
102343         * tests/test-vasprintf-posix.c (test_function): Likewise.
102344         * tests/test-snprintf-posix.h (test_function): Likewise.
102345         * tests/test-sprintf-posix.h (test_function): Likewise.
102346         Reported by Eric Blake.
102348 2007-05-23  Eric Blake  <ebb9@byu.net>
102350         Fix fseeko/ftello on cygwin 1.5.24.
102351         * doc/functions/fseeko.texi (fseeko): Document the fix.
102352         * doc/functions/ftello.texi (ftello): Document the fix.
102353         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
102354         * doc/functions/stdout.text (stdout): New file.
102355         * doc/functions/stderr.text (stderr): New file.
102356         * doc/gnulib.texi (Function Substitutes): Use new files.
102357         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
102358         prior to 1.7.0.
102359         * tests/test-ftello.c (main): Likewise for ftello.
102360         * tests/test-fseeko.sh: New file.
102361         * tests/test-ftello.sh: New file.
102362         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
102363         with seekable stdin.
102364         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
102365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
102366         (gl_REPLACE_FSEEKO): New macro.
102367         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
102368         * modules/fseeko (Files): Distribute fseeko.c.
102369         * modules/ftello (Files): Distribute ftello.c.
102370         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
102371         mode.
102372         * lib/ftello.c (rpl_ftello): New file.
102373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
102374         fseeko, ftello.
102375         (gl_STDIN_LARGE_OFFSET): New macro.
102376         * modules/stdio (Makefile.am): Perform the replacement.
102377         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
102379 2007-05-23  Bruno Haible  <bruno@clisp.org>
102381         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
102382         GNULIB_POSIXCHECK is defined.
102384 2007-05-21  Bruno Haible  <bruno@clisp.org>
102386         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
102387         Check also the output for NaN arguments. When cross-compiling, guess
102388         no on IRIX.
102389         * lib/vasnprintf.c: Update comments.
102390         * tests/test-vasnprintf-posix.c (strisnan): New function.
102391         (test_function): Use it.
102392         * tests/test-vasprintf-posix.c (strisnan): New function.
102393         (test_function): Use it.
102394         * tests/test-snprintf-posix.h (strisnan): New function.
102395         (test_function): Use it.
102396         * tests/test-sprintf-posix.h (strisnan): New function.
102397         (test_function): Use it.
102398         Reported by Eric Blake.
102400 2007-05-20  Bruno Haible  <bruno@clisp.org>
102402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
102403         numbers that fails on BeOS.
102404         * doc/functions/frexpl.texi: Update.
102406 2007-05-20  Jim Meyering  <jim@meyering.net>
102408         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
102409         forced upon us by glibc-2.6.
102411 2007-05-20  Bruno Haible  <bruno@clisp.org>
102413         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
102414         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
102415         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
102416         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
102417         NEED_PRINTF_INFINITE.
102418         (is_infinitel): New function.
102419         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
102420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
102421         gl_PREREQ_VASNPRINTF_INFINITE.
102422         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
102423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102424         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
102425         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
102426         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
102427         gl_PREREQ_VASNPRINTF_INFINITE.
102428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102435         * doc/functions/fprintf.texi: Update.
102436         * doc/functions/printf.texi: Update.
102437         * doc/functions/snprintf.texi: Update.
102438         * doc/functions/sprintf.texi: Update.
102439         * doc/functions/vfprintf.texi: Update.
102440         * doc/functions/vprintf.texi: Update.
102441         * doc/functions/vsnprintf.texi: Update.
102442         * doc/functions/vsprintf.texi: Update.
102444 2007-05-20  Bruno Haible  <bruno@clisp.org>
102446         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
102447         was not found in libc.
102448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
102450 2007-05-20  Bruno Haible  <bruno@clisp.org>
102452         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
102453         printed as "-nan" instead of "nan".
102454         * tests/test-vasprintf-posix.c (test_function): Likewise.
102455         * tests/test-snprintf-posix.h (test_function): Likewise.
102456         * tests/test-sprintf-posix.h (test_function): Likewise.
102457         Needed for HP-UX 11.
102459 2007-05-20  Jim Meyering  <jim@meyering.net>
102461         Fix buggy test for the fchownat-deref bug.
102462         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
102463         symlink required for the run-test.  Without it, this test would
102464         always declare that fchownat doesn't work, and client code would
102465         unnecessarily use the replacement function with fixed libc.
102466         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
102467         Reported by Greg Schafer.
102469 2007-05-19  Bruno Haible  <bruno@clisp.org>
102471         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
102472         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
102473         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
102474         Needed for IRIX 6.5 and Solaris 2.5.1.
102476 2007-05-19  Bruno Haible  <bruno@clisp.org>
102478         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
102479         (test_function): Skip tests involving -0.0 on platforms where
102480         -0.0 = 0.0.
102481         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
102482         (test_function): Skip tests involving -0.0 on platforms where
102483         -0.0 = 0.0.
102484         * tests/test-snprintf-posix.h (have_minus_zero): New function.
102485         (test_function): Skip tests involving -0.0 on platforms where
102486         -0.0 = 0.0.
102487         * tests/test-sprintf-posix.h (have_minus_zero): New function.
102488         (test_function): Skip tests involving -0.0 on platforms where
102489         -0.0 = 0.0.
102490         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
102491         tests.
102492         * tests/test-printf-posix.h (test_function): Likewise.
102493         * tests/test-printf-posix.output: Remove all -0.0 related results.
102494         Needed for IRIX 6.5.
102496 2007-05-19  Bruno Haible  <bruno@clisp.org>
102498         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
102499         printed as "nan0x7fffffff" instead of "nan".
102500         * tests/test-vasprintf-posix.c (test_function): Likewise.
102501         * tests/test-snprintf-posix.h (test_function): Likewise.
102502         * tests/test-sprintf-posix.h (test_function): Likewise.
102503         * tests/test-fprintf-posix.h (NaN): Remove macro.
102504         (test_function): Remove all NaN related tests.
102505         * tests/test-printf-posix.h (NaN): Remove macro.
102506         (test_function): Remove all NaN related tests.
102507         * tests/test-printf-posix.output: Remove all NaN related results.
102508         Needed for IRIX 6.5.
102510 2007-05-19  Bruno Haible  <bruno@clisp.org>
102512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
102513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
102515 2007-05-19  Bruno Haible  <bruno@clisp.org>
102517         * lib/float_.h: New file.
102518         * m4/float_h.m4: New file.
102519         * modules/float: New file.
102520         * modules/isnanl (Dependencies): Add float.
102521         * modules/isnanl-nolibm (Dependencies): Likewise.
102522         * modules/mathl (Dependencies): Likewise.
102523         * modules/printf-frexpl (Dependencies): Likewise.
102524         * modules/signbit (Dependencies): Likewise.
102525         * modules/vasnprintf (Dependencies): Likewise.
102526         * doc/headers/float.texi: Update.
102528 2007-05-19  Jim Meyering  <jim@meyering.net>
102530         * lib/utimens.c (gl_futimens): Rename from futimens,
102531         now that glibc-2.6 declares futimens.
102532         * lib/utimens.h: Likewise.
102534 2007-05-19  Bruno Haible  <bruno@clisp.org>
102536         Avoid test failures on mingw.
102537         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
102538         * tests/test-printf-posix.sh: Likewise.
102539         * tests/test-vfprintf-posix.sh: Likewise.
102540         * tests/test-vprintf-posix.sh: Likewise.
102542 2007-05-19  Bruno Haible  <bruno@clisp.org>
102544         Fix *printf result for NaN, Inf, -0.0 on mingw.
102545         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
102546         * lib/vasnprintf.c: Include math.h and isnan.h.
102547         (is_infinite_or_zero): New function.
102548         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
102549         values in the %f, %F, %e, %E, %g, %G directives.
102550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
102551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102552         gl_PRINTF_INFINITE and test its result. Invoke
102553         gl_PREREQ_VASNPRINTF_INFINITE.
102554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102561         * doc/functions/fprintf.texi: Update.
102562         * doc/functions/printf.texi: Update.
102563         * doc/functions/snprintf.texi: Update.
102564         * doc/functions/sprintf.texi: Update.
102565         * doc/functions/vfprintf.texi: Update.
102566         * doc/functions/vprintf.texi: Update.
102567         * doc/functions/vsnprintf.texi: Update.
102568         * doc/functions/vsprintf.texi: Update.
102570 2007-05-19  Bruno Haible  <bruno@clisp.org>
102572         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
102573         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
102574         Instead of multiplying with 10^k, set extra_zeroes to k.
102575         (scale10_round_long_double): Remove function.
102577 2007-05-18  Bruno Haible  <bruno@clisp.org>
102579         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
102580         introduced on 2007-05-06.
102582 2007-05-18  Bruno Haible  <bruno@clisp.org>
102584         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
102585         %g directives.
102586         * tests/test-vasprintf-posix.c (test_function): Likewise.
102587         * tests/test-snprintf-posix.h (test_function): Likewise.
102588         * tests/test-sprintf-posix.h (test_function): Likewise.
102590 2007-05-18  Bruno Haible  <bruno@clisp.org>
102592         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
102593         (strmatch): New function.
102594         (test_function): Test the %f directive on numbers of various exponents.
102595         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
102596         (strmatch): New function.
102597         (test_function): Test the %f directive on numbers of various exponents.
102598         * tests/test-snprintf-posix.h (strmatch): New function.
102599         (test_function): Test the %f directive on numbers of various exponents.
102600         * tests/test-sprintf-posix.h (strmatch): New function.
102601         (test_function): Test the %f directive on numbers of various exponents.
102602         * tests/test-snprintf-posix.c (SIZEOF): New macro.
102603         * tests/test-sprintf-posix.c (SIZEOF): New macro.
102604         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
102605         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
102607 2007-05-18  Bruno Haible  <bruno@clisp.org>
102609         Add support for 'long double' number output.
102610         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
102611         * lib/vasnprintf.c: Include math.h and float+.h.
102612         (mp_limb_t): New type.
102613         (GMP_LIMB_BITS): New macro.
102614         (mp_twolimb_t): New type.
102615         (GMP_TWOLIMB_BITS): New macro.
102616         (mpn_t): New type.
102617         (multiply, divide, convert_to_decimal, decode_long_double,
102618         scale10_round_long_double, scale10_round_decimal_long_double,
102619         floorlog10l): New functions.
102620         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
102621         for the %f, %F, %e, %E, %g, %G directives.
102622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
102623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102624         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
102625         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
102626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102633         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
102634         * modules/snprintf-posix (Depends-on): Likewise.
102635         * modules/sprintf-posix (Depends-on): Likewise.
102636         * modules/vasnprintf-posix (Depends-on): Likewise.
102637         * modules/vasprintf-posix (Depends-on): Likewise.
102638         * modules/vfprintf-posix (Depends-on): Likewise.
102639         * modules/vsnprintf-posix (Depends-on): Likewise.
102640         * modules/vsprintf-posix (Depends-on): Likewise.
102641         * modules/vasnprintf (Files): Add lib/float+.h.
102642         * doc/functions/fprintf.texi: Update.
102643         * doc/functions/printf.texi: Update.
102644         * doc/functions/snprintf.texi: Update.
102645         * doc/functions/sprintf.texi: Update.
102646         * doc/functions/vfprintf.texi: Update.
102647         * doc/functions/vprintf.texi: Update.
102648         * doc/functions/vsnprintf.texi: Update.
102649         * doc/functions/vsprintf.texi: Update.
102651 2007-05-18  Bruno Haible  <bruno@clisp.org>
102653         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
102655 2007-05-18  Bruno Haible  <bruno@clisp.org>
102657         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
102658         for printing 64-bit integers. Needed for mingw.
102660 2007-05-18  Bruno Haible  <bruno@clisp.org>
102662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102663         gl_FUNC_FREXPL_WORKS.
102664         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
102666 2007-05-18  Bruno Haible  <bruno@clisp.org>
102668         * modules/frexpl-nolibm-tests: New file.
102670         * modules/frexpl-nolibm: New file.
102671         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
102673 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
102675         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
102676         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
102677         GCC 4.2, which otherwise issues a lot of warnings.
102678         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
102679         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
102680         Likewise.
102681         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
102682         * modules/iconv_open (iconv.h): Likewise.
102683         * modules/locale (locale.h): Likewise.
102684         * modules/netinet_in (netinet/in.h): Likewise.
102685         * modules/sys_select (sys_select.h): Likewise.
102686         * modules/sys_socket (sys/socket.h): Likewise.
102687         * modules/sys_stat (sys/stat.h): Likewise.
102688         * modules/sysexits (sysexits.h): Likewise.
102689         * modules/unistd (unistd.h): Likewise.
102691 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102693         * modules/closein-tests (Makefile.am): Distribute
102694         `test-closein.sh'.
102696 2007-05-17  Bruno Haible  <bruno@clisp.org>
102698         * tests/test-printf-posix.output: Renamed from
102699         tests/test-fprintf-posix.out.
102700         * modules/fprintf-posix-tests: Update.
102701         * modules/printf-posix-tests: Update.
102702         * modules/vfprintf-posix-tests: Update.
102703         * modules/vprintf-posix-tests: Update.
102704         * tests/test-fprintf-posix.sh: Update.
102705         * tests/test-printf-posix.sh: Update.
102706         * tests/test-vfprintf-posix.sh: Update.
102707         * tests/test-vprintf-posix.sh: Update.
102708         Reported by Ralf Wildenhues.
102710 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
102712         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
102713         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
102714         GCC 4.2, which otherwise issues a lot of warnings.
102715         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
102716         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
102717         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
102718         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
102719         it should no longer be needed.
102720         * lib/string_.h: Likewise.
102721         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
102722         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
102723         * modules/inttypes (inttypes.h): Likewise.
102724         * modules/math (math.h): Likewise.
102725         * modules/search (search.h): Likewise.
102726         * modules/signal (signal.h): Likewise.
102727         * modules/stdint (stdint.h): Likewise.
102728         * modules/stdio (stdio.h): Likewise.
102729         * modules/stdlib (stdlib.h): Likewise.
102730         * modules/string (string.h): Likewise.
102731         * modules/sys_time (sys/time.h): Likewise.
102732         * modules/time (time.h): Likewise.
102733         * modules/wchar (wchar.h): Likewise.
102734         * modules/wctype (wtype.h): Likewise.
102736 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
102738         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
102740 2007-05-13  Bruno Haible  <bruno@clisp.org>
102742         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
102743         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102744         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
102745         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
102746         (gl_PREREQ_STRTOK_R): Don't require it here.
102748 2007-05-13  Bruno Haible  <bruno@clisp.org>
102750         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
102751         when used in C++ mode.
102753 2007-05-12  Bruno Haible  <bruno@clisp.org>
102755         * lib/linebuffer.h: Tweak doc.
102756         * lib/linebuffer.c: Likewise.
102758 2007-05-12  James Youngman  <jay@gnu.org>
102760         * lib/linebuffer.c (readlinebuffer_delim): New function,
102761         like readlinebuffer, but use a caller-specified delimiter.
102762         (readlinebuffer): Just call readlinebuffer_delim with '\n'
102763         as the delimiter.
102764         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
102766 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
102768         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
102769         * modules/openat (Files): Remove openat-die.c.
102770         (Depends-on): Add openat-die.
102771         * modules/openat-die: New module.
102773 2007-05-06  Bruno Haible  <bruno@clisp.org>
102775         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
102776         Update with info about Cygwin.
102777         * doc/functions/fprintf.texi: Update.
102778         * doc/functions/printf.texi: Update.
102779         * doc/functions/snprintf.texi: Update.
102780         * doc/functions/sprintf.texi: Update.
102781         * doc/functions/vfprintf.texi: Update.
102782         * doc/functions/vprintf.texi: Update.
102783         * doc/functions/vsnprintf.texi: Update.
102784         * doc/functions/vsprintf.texi: Update.
102785         Reported by Eric Blake.
102787 2007-05-06  Bruno Haible  <bruno@clisp.org>
102789         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
102790         padding ourselves for the floating-point directives.
102791         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
102792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
102793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102794         gl_PRINTF_FLAG_ZERO and test its result. Invoke
102795         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
102796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
102798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102803         * tests/test-snprintf-posix.h (test_function): Also check the width
102804         and some flags in the %f directive.
102805         * tests/test-sprintf-posix.h (test_function): Likewise.
102806         * tests/test-vasnprintf-posix.c (test_function): Likewise.
102807         * tests/test-vasprintf-posix.c (test_function): Likewise.
102808         * doc/functions/fprintf.texi: Update.
102809         * doc/functions/printf.texi: Update.
102810         * doc/functions/snprintf.texi: Update.
102811         * doc/functions/sprintf.texi: Update.
102812         * doc/functions/vfprintf.texi: Update.
102813         * doc/functions/vprintf.texi: Update.
102814         * doc/functions/vsnprintf.texi: Update.
102815         * doc/functions/vsprintf.texi: Update.
102817 2007-05-06  Bruno Haible  <bruno@clisp.org>
102819         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
102820         pass the ' flag character to sprintf or snprintf.
102821         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
102822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
102823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102824         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
102825         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
102826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
102828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102833         * tests/test-snprintf-posix.h (test_function): Also check the grouping
102834         flag.
102835         * tests/test-sprintf-posix.h (test_function): Likewise.
102836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
102837         * tests/test-vasprintf-posix.c (test_function): Likewise.
102838         * doc/functions/fprintf.texi: Update.
102839         * doc/functions/printf.texi: Update.
102840         * doc/functions/snprintf.texi: Update.
102841         * doc/functions/sprintf.texi: Update.
102842         * doc/functions/vfprintf.texi: Update.
102843         * doc/functions/vprintf.texi: Update.
102844         * doc/functions/vsnprintf.texi: Update.
102845         * doc/functions/vsprintf.texi: Update.
102847 2007-05-01  Bruno Haible  <bruno@clisp.org>
102849         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
102851 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
102853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
102854         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
102856 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
102858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
102859         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
102860         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
102862 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
102864         * lib/argp-help.c (struct hol_entry): New member `ord'.
102865         (HOL_ENTRY_PTRCMP): Use ord for comparison
102866         (hol_sort): Initialize ord.
102868 2007-05-01  Bruno Haible  <bruno@clisp.org>
102870         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
102871         Reported by Eric Blake.
102872         * doc/gnulib.texi (Function Substitutes): Update.
102874 2007-05-01  Bruno Haible  <bruno@clisp.org>
102876         * doc/functions.texi: Remove file, now redundant through
102877         doc/functions/*.texi.
102879 2007-05-01  Bruno Haible  <bruno@clisp.org>
102881         * modules/argp (Depends-on): Add sleep.
102883 2007-05-01  Bruno Haible  <bruno@clisp.org>
102885         * modules/sleep-tests: New file.
102886         * tests/test-sleep.c: New file.
102888         * modules/sleep: New file.
102889         * lib/sleep.c: New file.
102890         * m4/sleep.m4: New file.
102891         * lib/unistd_.h (sleep): New declaration.
102892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
102893         HAVE_SLEEP.
102894         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
102895         * doc/functions/sleep.texi: Document the sleep module.
102897 2007-05-01  Bruno Haible  <bruno@clisp.org>
102899         * lib/sigprocmask.h: Remove file.
102900         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
102901         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
102902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
102903         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
102904         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
102905         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
102906         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
102907         HAVE_SIGSET_T as a shell variable.
102908         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
102909         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
102910         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
102911         (Depends-on): Add signal. Remove verify.
102912         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
102913         (Include): Mention <signal.h> instead of sigprocmask.h.
102914         * NEWS: Mention the change.
102915         * lib/fatal-signal.c: Don't include sigprocmask.h.
102917 2007-05-01  Bruno Haible  <bruno@clisp.org>
102919         * modules/signal: New file.
102920         * lib/signal_.h: New file.
102921         * m4/signal_h.m4: New file.
102923 2007-05-01  Bruno Haible  <bruno@clisp.org>
102925         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
102926         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
102927         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
102928         HAVE_WCTYPE_CTMP_BUG into wctype.h.
102930 2007-05-01  Bruno Haible  <bruno@clisp.org>
102932         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
102933         configure time.
102934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
102935         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
102936         * modules/sys_stat (Makefile.am): Substitute their values into
102937         sys/stat.h.
102939 2007-05-01  Bruno Haible  <bruno@clisp.org>
102941         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
102942         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
102943         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
102945 2007-05-01  Bruno Haible  <bruno@clisp.org>
102947         * doc/header/assert.texi: Undo last change: don't mention the gnulib
102948         'assert' module here.
102950 2007-05-01  Bruno Haible  <bruno@clisp.org>
102952         * doc/functions/*.texi: New files.
102953         * doc/functions/google-ranking.txt: New file.
102954         * doc/gnulib.texi (Function Substitutes): New chapter.
102955         (ctime, inet_ntoa): Remove sections.
102956         * doc/ctime.texi: Remove file.
102957         * doc/inet_ntoa.texi: Remove file.
102958         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
102959         dependencies.
102960         (%.info): New rule, specifying a --reference-limit.
102962 2007-05-01  Bruno Haible  <bruno@clisp.org>
102964         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
102966 2007-05-01  Bruno Haible  <bruno@clisp.org>
102968         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
102969         the portability of 'mkdir' to mingw systems.
102971 2007-05-01  Bruno Haible  <bruno@clisp.org>
102973         * doc/headers/google-ranking.txt: New file.
102975 2007-04-30  Eric Blake  <ebb9@byu.net>
102977         Prefer fseeko to fseek.
102978         * modules/getpass (Depends-on): Add fseeko.
102979         * lib/getpass.c (getpass): Use fseeko, not fseek.
102981 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
102983         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
102984         assumes the sorting is stable, while most qsort implementations
102985         are not.  Use argument addresses to ensure they never compare as
102986         equal.
102988         * tests/test-argp-2.sh (usage-indent test): Fix output
102989         (func_compare): Restore diff options
102990         * tests/test-argp.c: Restore #include "progname.h"
102992 2007-04-29  Bruno Haible  <bruno@clisp.org>
102994         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
102995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102996         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
102997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102998         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
102999         (configure.ac): Define CHECK_SNPRINTF_POSIX.
103000         (TESTS, check_PROGRAMS): Add test-snprintf.
103001         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
103002         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
103003         (TESTS, check_PROGRAMS): Add test-vsnprintf.
103004         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
103005         assertions that fail on HP-UX, OSF/1, or IRIX.
103006         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
103008 2007-04-29  Bruno Haible  <bruno@clisp.org>
103010         * MODULES.html.sh (posix_functions): Remove 'contents'.
103012 2007-04-29  Karl Berry  <karl@gnu.org>
103014         * config/srclist.txt (gendocs_template_min): new entry.
103016 2007-04-29  Bruno Haible  <bruno@clisp.org>
103018         Work around fpurge bug on BSD systems.
103019         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
103020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
103021         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
103022         fpurge to rpl_fpurge if the system already has this function.
103023         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
103024         the case where the system already has this function. Correct invariants
103025         on BSD systems.
103026         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
103027         BSD systems.
103029 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
103031         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
103032         proposed by Sven Verdoolaege.
103034         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
103035         options.
103036         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
103037         (usage and help tests): Update
103039 2007-04-29  Bruno Haible  <bruno@clisp.org>
103041         * tests/test-fflush.c (main): Use a file of size 17, not 10.
103042         Print more information in case of failure. Disable a test on BeOS.
103044 2007-04-29  Bruno Haible  <bruno@clisp.org>
103046         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
103047         This helps debugging on systems on which no gdb is available.
103049 2007-04-29  Bruno Haible  <bruno@clisp.org>
103051         * lib/freading.h: Improve comments.
103052         * lib/fwriting.h: Likewise.
103053         * tests/test-freading.c (main): Don't check freading immediately after
103054         repositioning. Needed for glibc.
103056 2007-04-29  Bruno Haible  <bruno@clisp.org>
103058         * lib/freading.c (freading): Trivial simplification.
103060 2007-04-28  Bruno Haible  <bruno@clisp.org>
103062         * tests/test-fwriting.c (main): Also test the interaction between
103063         fflush and fwriting.
103064         * modules/fwriting-tests (Depends-on): Add fflush.
103066         * tests/test-freading.c (main): Also test the interaction between
103067         fflush and freading.
103068         * modules/freading-tests (Depends-on): Add fflush.
103070 2007-04-28  Bruno Haible  <bruno@clisp.org>
103072         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
103073         fseeko and ftello.
103074         Suggested by Eric Blake.
103076 2007-04-28  Jim Meyering  <jim@meyering.net>
103078         Avoid false-negative in gl_STDINT_H's C99 conformance test.
103079         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
103080         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
103082 2007-04-27  Eric Blake  <ebb9@byu.net>
103084         * doc/headers/assert.texi (assert.h): Document assert module use.
103086 2007-04-27  Bruno Haible  <bruno@clisp.org>
103088         * doc/headers/*.texi: New files.
103089         * doc/gnulib.texi (Header File Substitutes): New chapter.
103090         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
103091         dependencies.
103092         (standards.info ,standards.html, standards.dvi): Update dependencies.
103093         (mostlyclean, clean): New targets.
103095 2007-04-27  Bruno Haible  <bruno@clisp.org>
103097         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
103098         * modules/sysexits (Files, Makefile.am): Update.
103100         * lib/sys_socket_.h: Renamed from lib/socket_.h.
103101         * modules/sys_socket (Files, Makefile.am): Update.
103103         * lib/sys_stat_.h: Renamed from lib/stat_.h.
103104         * modules/sys_stat (Files, Makefile.am): Update.
103106 2007-04-27  Eric Blake  <ebb9@byu.net>
103108         * lib/freading.h: Improve comments.
103109         * lib/fwriting.h: Likewise.
103110         * lib/fflush.c: Likewise.
103112         Fix closein for mingw.
103113         * modules/closein-tests: Add tests for closein.
103114         * tests/test-closein.c: New file.
103115         * tests/test-closein.sh: Likewise.
103116         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
103117         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
103119 2007-04-27  Bruno Haible  <bruno@clisp.org>
103121         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
103122         version is < 6.
103123         * lib/math_.h [__DECC]: Likewise.
103124         * lib/stdio_.h [__DECC]: Likewise.
103125         * lib/stdlib_.h [__DECC]: Likewise.
103126         * lib/string_.h [__DECC]: Likewise.
103127         * lib/time_.h [__DECC]: Likewise.
103128         * lib/wchar_.h [__DECC]: Likewise.
103129         * lib/wctype_.h [__DECC]: Likewise.
103131 2007-04-27  Bruno Haible  <bruno@clisp.org>
103133         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
103135 2007-04-27  Bruno Haible  <bruno@clisp.org>
103137         * lib/fflush.c: Add comments.
103138         * modules/fpurge-tests (Depends-on): Add fflush.
103139         * modules/freadable-tests (Depends-on): Likewise.
103140         * modules/fwritable-tests (Depends-on): Likewise.
103142 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
103144         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
103145         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
103146         Report by Bruno Haible <bruno@clisp.org>.
103148 2007-04-26  Eric Blake  <ebb9@byu.net>
103150         Fix fflush on mingw.
103151         * modules/fflush (Depends-on): Add freading.
103152         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
103153         but unread data.
103155 2007-04-26  Eric Blake  <ebb9@byu.net>
103156         and Bruno Haible  <bruno@clisp.org>
103158         Implement freading and fwriting.
103159         * lib/freading.c: New file.
103160         * lib/freading.h: Likewise.
103161         * m4/freading.m4: Likewise.
103162         * modules/freading: Likewise.
103163         * modules/freading-tests: Likewise.
103164         * tests/test-freading.c: Likewise.
103165         * lib/fwriting.c: New file.
103166         * lib/fwriting.h: Likewise.
103167         * m4/fwriting.m4: Likewise.
103168         * modules/fwriting: Likewise.
103169         * modules/fwriting-tests: Likewise.
103170         * tests/test-fwriting.c: Likewise.
103171         * MODULES.html.sh (File stream based Input/Output): Mention them.
103173 2007-04-26  Bruno Haible  <bruno@clisp.org>
103175         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
103176         'long' when we assume it.
103177         Suggested by Eric Blake.
103179 2007-04-26  Bruno Haible  <bruno@clisp.org>
103181         Ensure fseeko, ftello are declared on glibc systems.
103182         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
103183         * modules/fseeko (configure.ac-early): Likewise.
103184         * modules/ftello (configure.ac-early): Likewise.
103185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
103186         AC_FUNC_FSEEKO for this.
103187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
103188         (gl_CHECK_FSEEKO): Remove macro.
103190 2007-04-26  Bruno Haible  <bruno@clisp.org>
103192         * tests/test-fflush.c (main): Also check the ftell result after
103193         fflush and fseek/fseeko.
103194         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
103195         file descriptor position cache in the stream.
103196         * lib/fseeko.c (rpl_fseeko): Likewise.
103198 2007-04-26  Bruno Haible  <bruno@clisp.org>
103200         * modules/fflush-tests (Depends-on): Add fseeko.
103202 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
103203             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103205         * lib/argz_.h: ensure error_t definition is obtained in same
103206         mechanism system argz.h would have.
103207         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
103208         argz facilities are known bad.  Err on the side of caution if
103209         cross-compiling.
103211 2007-04-25  Eric Blake  <ebb9@byu.net>
103213         * lib/fpurge.c (includes): Use stdlib.h for free.
103214         * tests/test-fflush.c (main): Also test fflush-fseeko.
103216 2007-04-25  Bruno Haible  <bruno@clisp.org>
103218         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
103219         * lib/fseeko.c: New file.
103220         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
103221         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
103222         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
103223         gl_FUNC_FSEEKO.
103224         (gl_FUNC_FSEEKO): Invoke it.
103225         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
103226         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
103227         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
103229 2007-04-25  Bruno Haible  <bruno@clisp.org>
103231         * modules/fflush (Depends-on): Add ftello.
103233 2007-04-25  Bruno Haible  <bruno@clisp.org>
103235         * modules/ftello-tests: New file.
103236         * tests/test-ftello.c: New file.
103238         * modules/ftello: New file.
103239         * m4/ftello.m4: New file.
103240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
103241         HAVE_FTELLO.
103242         * lib/stdio_.h (ftello): New declaration.
103243         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
103244         HAVE_FTELLO.
103246 2007-04-25  Bruno Haible  <bruno@clisp.org>
103248         * modules/fseeko-tests: New file.
103249         * tests/test-fseeko.c: New file.
103251         * modules/fseeko: New file.
103252         * m4/fseeko.m4: New file.
103253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
103254         HAVE_FSEEKO.
103255         * lib/stdio_.h (fseeko): New declaration.
103256         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
103257         HAVE_FSEEKO.
103259 2007-04-25  Bruno Haible  <bruno@clisp.org>
103261         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
103263 2007-04-25  Bruno Haible  <bruno@clisp.org>
103265         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
103266         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
103267         * tests/test-unistd.c: Likewise.
103268         * tests/test-fcntl.c: Likewise.
103270 2007-04-23  Eric Blake  <ebb9@byu.net>
103272         * lib/fflush.c: Fix missing include.
103273         Reported by Bruno Haible.
103275 2007-04-23  Bruno Haible  <bruno@clisp.org>
103277         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
103278         Reported by Eric Blake.
103280 2007-04-23  Bruno Haible  <bruno@clisp.org>
103282         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
103284 2007-04-23  Bruno Haible  <bruno@clisp.org>
103286         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
103288 2007-04-23  Bruno Haible  <bruno@clisp.org>
103290         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
103291         Needed on HP-UX 11.
103293 2007-04-16  Eric Blake  <ebb9@byu.net>
103295         Make fflush rely on fpurge.
103296         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
103297         open coding all variants.
103298         * modules/fflush (Depends-on): Add fpurge and unistd.
103299         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
103300         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
103302         Fix --with-tests compilation on cygwin.
103303         * modules/argmatch-tests (Makefile.am): List gnulib library first
103304         in LDADD.
103305         * modules/argp-tests (Makefile.am): Likewise.
103306         * modules/array-list-tests (Makefile.am): Likewise.
103307         * modules/array-oset-tests (Makefile.am): Likewise.
103308         * modules/avltree-list-tests (Makefile.am): Likewise.
103309         * modules/avltree-oset-tests (Makefile.am): Likewise.
103310         * modules/avltreehash-list-tests (Makefile.am): Likewise.
103311         * modules/carray-list-tests (Makefile.am): Likewise.
103312         * modules/dirname-tests (Makefile.am): Likewise.
103313         * modules/frexp-tests (Makefile.am): Likewise.
103314         * modules/isnanl-tests (Makefile.am): Likewise.
103315         * modules/linked-list-tests (Makefile.am): Likewise.
103316         * modules/linkedhash-list-tests (Makefile.am): Likewise.
103317         * modules/lock-tests (Makefile.am): Likewise.
103318         * modules/rbtree-list-tests (Makefile.am): Likewise.
103319         * modules/rbtree-oset-tests (Makefile.am): Likewise.
103320         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
103321         * modules/tls-tests (Makefile.am): Likewise.
103322         * modules/tsearch-tests (Makefile.am): Likewise.
103323         * modules/xvasprintf-tests (Makefile.am): Likewise.
103325         Fix fpurge for cygwin.
103326         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
103327         value.
103328         * modules/fpurge-tests (Depends-on): Clean up trash.
103330 2007-04-16  Simon Josefsson  <simon@josefsson.org>
103332         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
103334         * m4/autobuild.m4: Re-indent.
103336 2007-04-13  Bruno Haible  <bruno@clisp.org>
103338         * modules/fpurge-tests: New file.
103339         * tests/test-fpurge.c: New file.
103341         * modules/fpurge: New file.
103342         * lib/fpurge.h: New file.
103343         * lib/fpurge.c: New file.
103344         * m4/fpurge.m4: New file.
103346 2007-04-13  Bruno Haible  <bruno@clisp.org>
103348         * modules/fbufmode-tests: New file.
103349         * tests/test-fbufmode.c: New file.
103351         * modules/fbufmode: New file.
103352         * lib/fbufmode.h: New file.
103353         * lib/fbufmode.c: New file.
103354         * m4/fbufmode.m4: New file.
103356 2007-04-13  Bruno Haible  <bruno@clisp.org>
103358         * modules/fwritable-tests: New file.
103359         * tests/test-fwritable.c: New file.
103361         * modules/fwritable: New file.
103362         * lib/fwritable.h: New file.
103363         * lib/fwritable.c: New file.
103364         * m4/fwritable.m4: New file.
103366 2007-04-13  Bruno Haible  <bruno@clisp.org>
103368         * modules/freadable-tests: New file.
103369         * tests/test-freadable.c: New file.
103371         * modules/freadable: New file.
103372         * lib/freadable.h: New file.
103373         * lib/freadable.c: New file.
103374         * m4/freadable.m4: New file.
103376 2007-04-13  Bruno Haible  <bruno@clisp.org>
103378         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
103379         MOSTLYCLEANFILES.
103381 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103383         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
103384         gzip bootstrap.conf to avoid dragging in i18n machinery.
103385         (gnulib_tool_option): Use it.
103387 2007-04-13  Bruno Haible  <bruno@clisp.org>
103389         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
103390         %F directives.
103391         * tests/test-vasprintf-posix.c (test_function): Likewise.
103392         * tests/test-snprintf-posix.h (test_function): Likewise.
103393         * tests/test-sprintf-posix.h (test_function): Likewise.
103394         * tests/test-fprintf-posix.h (test_function): Likewise.
103395         * tests/test-printf-posix.h (test_function): Likewise.
103396         * tests/test-fprintf-posix.out: Likewise.
103398 2007-04-13  Bruno Haible  <bruno@clisp.org>
103400         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
103401         * modules/tls-tests (configure.ac): Likewise.
103402         Reported by Arto C. Nirkko <anirkko@insel.ch>.
103404 2007-04-13  Bruno Haible  <bruno@clisp.org>
103406         * lib/tls.c (glthread_tls_get): Fix return type.
103407         Patch by Arto C. Nirkko <anirkko@insel.ch>.
103409 2007-04-12  Eric Blake  <ebb9@byu.net>
103411         * modules/gettime (Depends-on): Remove gettime.
103412         Reported by Dmitry V. Levin.
103414 2007-04-12  Bruno Haible  <bruno@clisp.org>
103416         * modules/fflush (Include): Mention <stdio.h>.
103417         * modules/strtoimax (Include): Mention <inttypes.h>.
103418         * modules/strtoumax (Include): Likewise.
103420 2007-04-12  Eric Blake  <ebb9@byu.net>
103422         * .cvsignore: New file.
103423         * .gitignore: Likewise.
103425 2007-04-12  Bruno Haible  <bruno@clisp.org>
103427         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
103428         not before, since $(LDADD) often contains libgnu.a.
103429         * modules/striconv-tests (test_striconv_LDADD): Likewise.
103430         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
103431         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
103432         Needed on Cygwin.
103434 2007-04-12  Eric Blake  <ebb9@byu.net>
103436         Work around glibc's failure to flush stdin on fclose.
103437         * lib/closein.c (close_stdin): Flush stdin before closing.
103439         Work around glibc's failure to reset seekable stdin on exit.
103440         * modules/closein: New module.
103441         * lib/closein.c: New file.
103442         * lib/closein.h: Likewise.
103443         * m4/closein.m4: Likewise.
103444         * MODULES.html.sh (File stream based Input/Output): Document it.
103446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103448         * gnulib-tool: Rename generated 'autobuild' script to
103449         'do-autobuild' in --create-megatestdir output.
103451         * doc/gnulib.texi (Build robot for gnulib): Fix.
103453 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103455         * modules/sysexits (Depends-on): Add absolute-header.
103457 2007-04-12  Eric Blake  <ebb9@byu.net>
103459         No need to preserve errno on success.
103460         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
103461         Reported by Bruno Haible.
103463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103465         * MODULES.html.sh (Support for maintaining and releasing
103466         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
103468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103470         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
103472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103474         * modules/autobuild: New module.
103476         * m4/autobuild.m4: New file.
103478 2007-04-11  Bruno Haible  <bruno@clisp.org>
103480         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
103481         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
103482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
103483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
103484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103485         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103486         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103488         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103489         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
103491         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103492         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
103494         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103495         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
103497         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103498         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
103500         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103501         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
103503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
103506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103508         Reported by Eric Blake.
103510 2007-04-11  Bruno Haible  <bruno@clisp.org>
103512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
103514 2007-04-10  Bruno Haible  <bruno@clisp.org>
103516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
103517         for NaN and Infinity. Needed on FreeBSD 6.1.
103518         * tests/test-vasnprintf-posix.c (test_function): Undo last change
103519         regarding results for "%010a" of Infinity and NaN.
103520         * tests/test-vasprintf-posix.c (test_function): Likewise.
103521         * tests/test-snprintf-posix.h (test_function): Likewise.
103522         * tests/test-sprintf-posix.h (test_function): Likewise.
103523         * tests/test-fprintf-posix.h (test_function): Likewise.
103524         * tests/test-printf-posix.h (test_function): Likewise.
103525         * tests/test-fprintf-posix.out: Likewise.
103527 2007-04-10  Bruno Haible  <bruno@clisp.org>
103529         * modules/locale-tests: New file.
103530         * tests/test-locale.c: New file.
103532         * modules/locale: New file.
103533         * lib/locale_.h: New file.
103534         * m4/locale_h.m4: New file.
103536 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
103537             Bruno Haible  <bruno@clisp.org>
103539         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
103540         be determined, test for availability of the copysignf, copysign,
103541         copysignl functions.
103542         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
103543         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
103544         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
103546 2007-04-09  Eric Blake  <ebb9@byu.net>
103548         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
103549         * modules/stdio (Makefile.am): Support fflush.
103550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
103551         * modules/fflush: New file.
103552         * lib/fflush.c: Likewise.
103553         * m4/fflush.m4: Likewise.
103554         * modules/fflush-tests: New test.
103555         * tests/test-fflush.c: Likewise.
103556         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
103558 2007-04-06  Bruno Haible  <bruno@clisp.org>
103560         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
103561         (VASNPRINTF): Use signbit for faster determination whether to print a
103562         minus sign.
103563         * modules/vasnprintf (Files): Remove lib/float+.h.
103564         * modules/fprintf-posix (Depends-on): Add signbit.
103565         * modules/snprintf-posix (Depends-on): Likewise.
103566         * modules/sprintf-posix (Depends-on): Likewise.
103567         * modules/vasnprintf-posix (Depends-on): Likewise.
103568         * modules/vasprintf-posix (Depends-on): Likewise.
103569         * modules/vfprintf-posix (Depends-on): Likewise.
103570         * modules/vsnprintf-posix (Depends-on): Likewise.
103571         * modules/vsprintf-posix (Depends-on): Likewise.
103573 2007-04-06  Bruno Haible  <bruno@clisp.org>
103575         * tests/test-frexp.c (main): Test also the sign bit of zero results.
103576         * tests/test-frexpl.c (main): Likewise.
103577         * tests/test-ldexpl.c (main): Likewise.
103578         * modules/frexp-tests (Depends-on): Add signbit.
103579         * modules/frexpl-tests (Depdends-on): Likewise.
103580         * modules/ldexpl-tests (Depdends-on): Likewise.
103582 2007-04-06  Bruno Haible  <bruno@clisp.org>
103584         * modules/signbit-tests: New file.
103585         * tests/test-signbit.c: New file.
103587         * modules/signbit: New file.
103588         * lib/signbitf.c: New file.
103589         * lib/signbitd.c: New file.
103590         * lib/signbitl.c: New file.
103591         * m4/signbit.m4: New file.
103592         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
103593         (signbit): New macro.
103594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
103595         REPLACE_SIGNBIT.
103596         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
103597         REPLACE_FREXPL into math.h.
103599 2007-04-06  Bruno Haible  <bruno@clisp.org>
103601         * modules/isnanf-nolibm-tests: New file.
103602         * tests/test-isnanf.c: New file.
103604         * modules/isnanf-nolibm: New file.
103605         * lib/isnanf.h: New file.
103606         * lib/isnanf.c: New file.
103607         * lib/isnan.c: Consider the USE_FLOAT macro.
103608         * m4/isnanf.m4: New file.
103610 2007-04-06  Bruno Haible  <bruno@clisp.org>
103612         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
103613         (Link): New section.
103615         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
103617 2007-04-06  Bruno Haible  <bruno@clisp.org>
103619         Assume the 'long double' type.
103620         * m4/longdouble.m4: Remove file.
103621         * config/srclist.txt: Don't mention longdouble.m4.
103622         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
103623         * lib/float+.h: Likewise.
103624         * lib/frexp.c: Likewise.
103625         * lib/printf-args.h: Likewise.
103626         * lib/printf-args.c: Likewise.
103627         * lib/printf-frexp.c: Likewise.
103628         * lib/printf-parse.c: Likewise.
103629         * lib/vasnprintf.c: Likewise.
103630         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
103631         * m4/intl.m4: Likewise.
103632         * m4/isnanl.m4: Likewise.
103633         * m4/printf.m4: Likewise.
103634         * m4/printf-frexpl.m4: Likewise.
103635         * m4/vasnprintf.m4: Likewise.
103636         * modules/allocsa (Files): Remove m4/longdouble.m4.
103637         * modules/gettext (Files): Likewise.
103638         * modules/relocatable-prog-wrapper (Files): Likewise.
103639         * modules/vasnprintf (Files): Likewise.
103640         * modules/isnanl (Files): Likewise.
103641         (Include): Simplify.
103642         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
103643         (Include): Simplify.
103644         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
103645         (Include): Simplify.
103646         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
103647         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
103648         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
103649         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
103650         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
103651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
103652         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
103653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
103654         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
103655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
103656         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
103657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
103658         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
103659         * tests/test-isnanl.c: Likewise.
103660         * tests/test-snprintf-posix.h: Likewise.
103661         * tests/test-sprintf-posix.h: Likewise.
103662         * tests/test-vasnprintf-posix.c: Likewise.
103663         * tests/test-vasnprintf-posix2.c: Likewise.
103664         * tests/test-vasprintf-posix.c: Likewise.
103666 2007-04-06  Bruno Haible  <bruno@clisp.org>
103668         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
103669         * lib/math_.h [__DECC]: Include the overridden include file through
103670         #include_next, outside the double-inclusion guard.
103671         * lib/stdio_.h [__DECC]: Likewise.
103672         * lib/stdlib_.h [__DECC]: Likewise.
103673         * lib/string_.h [__DECC]: Likewise.
103674         * lib/time_.h [__DECC]: Likewise.
103675         * lib/wchar_.h [__DECC]: Likewise.
103676         * lib/wctype_.h [__DECC]: Likewise.
103677         * lib/inttypes_.h [__DECC]: Likewise.
103678         Reported by Albert Chin <china@thewrittenword.com> in
103679         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
103681 2007-04-04  Eric Blake  <ebb9@byu.net>
103683         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
103684         1.5.x.
103686 2007-04-04  Bruno Haible  <bruno@clisp.org>
103688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
103689         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
103691 2007-04-04  Bruno Haible  <bruno@clisp.org>
103693         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
103694         results for "%010a" of Infinity and NaN.
103695         * tests/test-vasprintf-posix.c (test_function): Likewise.
103696         * tests/test-snprintf-posix.h (test_function): Likewise.
103697         * tests/test-sprintf-posix.h (test_function): Likewise.
103698         * tests/test-fprintf-posix.h (test_function): Remove these tests.
103699         * tests/test-printf-posix.h (test_function): Likewise.
103700         * tests/test-fprintf-posix.out: Update.
103701         Needed for FreeBSD 6.1.
103703 2007-04-04  Bruno Haible  <bruno@clisp.org>
103705         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
103706         directly used by the gnulib modules nor by gnulib-tool.
103708 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
103710         * DEPENDENCIES: Give overall description of version dependency
103711         desirability.  Use more-typical names for apps.
103712         Add shell, coreutils, diffutils, grep, tar, gzip.
103714 2007-04-04  Simon Josefsson  <simon@josefsson.org>
103716         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
103718 2007-04-04  Karl Berry  <karl@gnu.org>
103720         * MODULES.html.sh (func_module): missing '.
103722 2007-04-03  Bruno Haible  <bruno@clisp.org>
103724         * modules/argmatch-tests (Makefile.am): New variable
103725         test_argmatch_LDADD.
103726         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
103727         * modules/array-list-tests (Makefile.am): New variable
103728         test_array_list_LDADD.
103729         * modules/array-oset-tests (Makefile.am): New variable
103730         test_array_oset_LDADD.
103731         * modules/avltree-list-tests (Makefile.am): New variable
103732         test_avltree_list_LDADD.
103733         * modules/avltree-oset-tests (Makefile.am): New variable
103734         test_avltree_oset_LDADD.
103735         * modules/avltreehash-list-tests (Makefile.am): New variable
103736         test_avltreehash_list_LDADD.
103737         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
103738         test_canonicalize_lgpl_LDADD.
103739         * modules/carray-list-tests (Makefile.am): New variable
103740         test_carray_list_LDADD.
103741         * modules/dirname-tests (Makefile.am): New variable
103742         test_dirname_LDADD.
103743         * modules/linked-list-tests (Makefile.am): New variable
103744         test_linked_list_LDADD.
103745         * modules/linkedhash-list-tests (Makefile.am): New variable
103746         test_linkedhash_list_LDADD.
103747         * modules/rbtree-list-tests (Makefile.am): New variable
103748         test_rbtree_list_LDADD.
103749         * modules/rbtree-oset-tests (Makefile.am): New variable
103750         test_rbtree_oset_LDADD.
103751         * modules/rbtreehash-list-tests (Makefile.am): New variable
103752         test_rbtreehash_list_LDADD.
103753         * modules/xvasprintf-tests (Makefile.am): New variable
103754         test_xvasprintf_LDADD.
103755         Reported by Eric Blake.
103757 2007-04-03  Eric Blake  <ebb9@byu.net>
103759         * DEPENDENCIES: Weaken m4 requirements.
103761 2007-04-03  Bruno Haible  <bruno@clisp.org>
103763         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
103764         * modules/isnanl-tests (configure.ac): Likewise.
103766 2007-04-03  Ben Pfaff  <blp@gnu.org>
103768         * modules/iconv_open: Add $(srcdir)/ to source directory
103769         references in Makefile fragments that call gperf, to fix VPATH
103770         builds.
103772 2007-04-03  Bruno Haible  <bruno@clisp.org>
103774         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
103775         * lib/ldexpl.c: Undo last change.
103777 2007-04-03  Bruno Haible  <bruno@clisp.org>
103779         * modules/printf-frexpl (Depends-on): Undo last change.
103780         (Files): Add m4/ldexpl.m4.
103782 2007-04-03  Bruno Haible  <bruno@clisp.org>
103784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
103785         * modules/isnanl (Link): New section.
103787         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
103788         * modules/frexp (Link): New section.
103790         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
103791         * modules/frexpl (Link): New section.
103793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
103794         * modules/ldexpl (Link): New section.
103796 2007-04-03  Bruno Haible  <bruno@clisp.org>
103798         * modules/TEMPLATE-EXTENDED: New file.
103799         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
103801 2007-04-03  Bruno Haible  <bruno@clisp.org>
103803         * DEPENDENCIES: New file.
103804         Suggested by Simon Josefsson.
103806 2007-04-03  Bruno Haible  <bruno@clisp.org>
103808         * doc/gnulib.texi: Escape @.
103810 2007-04-03  James Youngman  <jay@gnu.org>
103811         and Paul Eggert  <eggert@cs.ucla.edu>
103813         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
103814         birthtime on all systems that have birthtime, not just those which
103815         use st_birthtimensec rather than st_birthtim.  Putting zero in
103816         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
103817         that the birth time is not available for files on an NFS mount.
103819 2007-04-03  Simon Josefsson  <simon@josefsson.org>
103821         * modules/memxor: Move back from crypto/, suggested by Bruno.
103822         * modules/crypto/hmac-sha1: Fix memxor dependency.
103824         * modules/crypto/gc: Moved from ../.
103826 2007-04-02  Eric Blake  <ebb9@byu.net>
103828         * lib/ldexpl.c (includes): Avoid libm.
103830         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
103832 2007-04-02  Bruno Haible  <bruno@clisp.org>
103834         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
103835         on IRIX.
103837 2007-04-02  Bruno Haible  <bruno@clisp.org>
103839         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
103840         x86 or x86_64 platforms running MacOS X.
103841         Reported by Ryan Schmidt <@ryandesign.com>.
103843 2007-04-02  Bruno Haible  <bruno@clisp.org>
103845         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
103846         i386.
103848 2007-04-01  Simon Josefsson  <simon@josefsson.org>
103850         * modules/crypto/arcfour: Moved from ../.
103851         * modules/crypto/arcfour-tests: Moved from ../.
103852         * modules/crypto/arctwo: Moved from ../.
103853         * modules/crypto/arctwo-tests: Moved from ../.
103854         * modules/crypto/des: Moved from ../.
103855         * modules/crypto/des-tests: Moved from ../.
103856         * modules/crypto/gc-arcfour: Moved from ../.
103857         * modules/crypto/gc-arcfour-tests: Moved from ../.
103858         * modules/crypto/gc-arctwo: Moved from ../.
103859         * modules/crypto/gc-arctwo-tests: Moved from ../.
103860         * modules/crypto/gc-des: Moved from ../.
103861         * modules/crypto/gc-des-tests: Moved from ../.
103862         * modules/crypto/gc-hmac-md5: Moved from ../.
103863         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
103864         * modules/crypto/gc-hmac-sha1: Moved from ../.
103865         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
103866         * modules/crypto/gc-md2: Moved from ../.
103867         * modules/crypto/gc-md2-tests: Moved from ../.
103868         * modules/crypto/gc-md4: Moved from ../.
103869         * modules/crypto/gc-md4-tests: Moved from ../.
103870         * modules/crypto/gc-md5: Moved from ../.
103871         * modules/crypto/gc-md5-tests: Moved from ../.
103872         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
103873         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
103874         * modules/crypto/gc-random: Moved from ../.
103875         * modules/crypto/gc-rijndael: Moved from ../.
103876         * modules/crypto/gc-rijndael-tests: Moved from ../.
103877         * modules/crypto/gc-sha1: Moved from ../.
103878         * modules/crypto/gc-sha1-tests: Moved from ../.
103879         * modules/crypto/gc-tests: Moved from ../.
103880         * modules/crypto/hmac-md5: Moved from ../.
103881         * modules/crypto/hmac-md5-tests: Moved from ../.
103882         * modules/crypto/hmac-sha1: Moved from ../.
103883         * modules/crypto/hmac-sha1-tests: Moved from ../.
103884         * modules/crypto/md2: Moved from ../.
103885         * modules/crypto/md2-tests: Moved from ../.
103886         * modules/crypto/md4: Moved from ../.
103887         * modules/crypto/md4-tests: Moved from ../.
103888         * modules/crypto/md5: Moved from ../.
103889         * modules/crypto/md5-tests: Moved from ../.
103890         * modules/crypto/memxor: Moved from ../.
103891         * modules/crypto/rijndael: Moved from ../.
103892         * modules/crypto/rijndael-tests: Moved from ../.
103893         * modules/crypto/sha1: Moved from ../.
103895 2007-03-30  James Youngman  <jay@gnu.org>
103897         * tests/test-stat-time.c (prepare_test): use chmod() rather than
103898         rename() to change the ctime of a file (because ctime is unaffected
103899         by rename on jfs2 on AIX 5.1).
103900         (main): Start by doing cleanup, in case a previous run failed leaving
103901         test files behind.
103903 2007-03-31  Bruno Haible  <bruno@clisp.org>
103905         Support old proprietary implementations of iconv.
103906         * modules/iconv_open: New file.
103907         * lib/iconv_.h: New file.
103908         * m4/iconv_h.m4: New file.
103909         * lib/iconv_open.c: New file.
103910         * lib/iconv_open-aix.gperf: New file.
103911         * lib/iconv_open-hpux.gperf: New file.
103912         * lib/iconv_open-irix.gperf: New file.
103913         * lib/iconv_open-osf.gperf: New file.
103914         * m4/iconv_open.m4: New file.
103915         * modules/linebreak (Depends-on): Add iconv_open.
103916         * modules/striconv (Depends-on): Likewise.
103917         * modules/striconveh (Depends-on): Likewise.
103918         * modules/unicodeio (Depends-on): Likewise.
103919         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
103920         (iconv_t)(-1).
103921         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
103922         conversion if cd is (iconv_t)(-1).
103923         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
103924         is not possible.
103926 2007-03-31  Bruno Haible  <bruno@clisp.org>
103928         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
103929         work on Solaris either. Protect also second use of "autodetect_jp".
103931 2007-03-31  Bruno Haible  <bruno@clisp.org>
103933         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
103934         the function is not present.
103936 2007-03-31  Bruno Haible  <bruno@clisp.org>
103938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
103939         the function is not present.
103941 2007-03-31  Bruno Haible  <bruno@clisp.org>
103943         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
103944         a bug in HP-UX iconv_open().
103946 2007-03-31  Bruno Haible  <bruno@clisp.org>
103948         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
103949         (Mathematics <math.h>): New section, add fpieee.
103950         (Input/output <stdio.h>): Add fseterr.
103951         (Mathematics <math.h>): New section, add printf-frexp.
103952         (Container data structures): Add sublist.
103953         (Core language properties): Add fpucw, inline.
103954         (Functions for greatest-width integer types <inttypes.h>): Add
103955         imaxabs, imaxdiv, inttypes.
103956         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
103957         isnanl-nolibm, ldexp.
103958         (Mathematics <math.h>): New section, add printf-frexpl.
103959         (Support for systems lacking POSIX:2001): Add fprintf-posix,
103960         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
103961         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
103962         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
103963         (Unicode string functions): Add unistr/u*-mbtoucr.
103964         (Java): Add javacomp-script, javaexec-script.
103965         (C#): Add csharpcomp-script, csharpexec-script.
103966         (Support for building libraries and executables): Add havelib,
103967         relocatable-*.
103968         (Support for maintaining and releasing projects): Renamed from
103969         'Support for maintaining and release projects'. Add announce-gen.
103971 2007-03-31  Bruno Haible  <bruno@clisp.org>
103973         * README: Talk primarily about git.
103974         (git and CVS): Renamed from CVS.
103975         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
103976         gnulib is available through git.
103977         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
103979 2007-03-30  Bruno Haible  <bruno@clisp.org>
103981         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
103982         * lib/poll_.h: Likewise.
103983         * lib/stat_.h: Likewise.
103984         * lib/sys_time_.h: Likewise.
103985         * lib/sysexit_.h: Likewise.
103986         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
103987         * lib/stdbool_.h: Likewise.
103988         * lib/byteswap_.h: Add double-inclusion guard.
103990 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
103992         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
103994 2007-03-30  Karl Berry  <karl@gnu.org>
103996         * config/srclist-update: double space after USA in the license
103997         substitution, since that's how it's usually (?) written.
103999 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
104001         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
104002         reported by Bruno Haible.
104004 2007-03-29  Bruno Haible  <bruno@clisp.org>
104006         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
104007         a bug in AIX iconv().
104009 2007-03-29  Bruno Haible  <bruno@clisp.org>
104011         * modules/ldexpl-tests: New file.
104012         * tests/test-ldexpl.c: New file.
104014 2007-03-29  Bruno Haible  <bruno@clisp.org>
104016         * lib/ldexpl.c: Include fpucw.h.
104017         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
104018         multiplication.
104019         * modules/ldexpl (Depends-on): Add fpucw.
104021 2007-03-29  Bruno Haible  <bruno@clisp.org>
104023         * modules/ldexpl: New file.
104024         * m4/ldexpl.m4: New file.
104025         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
104026         set.
104027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
104028         REPLACE_LDEXPL.
104029         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
104030         REPLACE_LDEXPL.
104031         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104032         gl_FUNC_LDEXPL_WORKS.
104033         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
104034         * modules/mathl (Files): Remove lib/ldexpl.c.
104035         (Depends-on): Add ldexpl.
104037 2007-03-29  Bruno Haible  <bruno@clisp.org>
104039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
104041 2007-03-29  Bruno Haible  <bruno@clisp.org>
104043         * tests/test-striconveh.c (main): Don't assume that a direct conversion
104044         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
104045         and possibly also HP-UX.
104046         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104047         work on AIX, IRIX, HP-UX, OSF/1.
104048         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
104049         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
104050         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
104051         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
104052         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
104053         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
104055 2007-03-29  Bruno Haible  <bruno@clisp.org>
104057         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
104059 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104061         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
104062         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
104064 2007-03-29  Eric Blake  <ebb9@byu.net>
104066         * lib/acl-internal.h: Remove redundant include.
104067         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
104068         Cygwin when a file is locked.
104070 2007-03-29  Bruno Haible  <bruno@clisp.org>
104072         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
104073         file.
104074         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
104076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104078         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
104079         try to remove a parent directory if the child couldn't be removed
104080         (except for the first rmdir, which could fail because the child
104081         doesn't exist).  Problem reported by Jeff Blaine in
104082         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
104084 2007-03-28  Bruno Haible  <bruno@clisp.org>
104086         * lib/striconveh.c (utf8conv_carefully): New function.
104087         (mem_cd_iconveh_internal): Invoke it.
104089 2007-03-28  Bruno Haible  <bruno@clisp.org>
104091         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
104092         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
104093         input.
104094         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
104095         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
104096         unistr/u8-uctomb.
104098 2007-03-28  Bruno Haible  <bruno@clisp.org>
104100         * modules/unistr/u8-mbtoucr: New file.
104101         * lib/unistr/u8-mbtoucr.c: New file.
104102         * modules/unistr/u16-mbtoucr: New file.
104103         * lib/unistr/u16-mbtoucr.c: New file.
104104         * modules/unistr/u16-mbtoucr: New file.
104105         * lib/unistr/u16-mbtoucr.c: New file.
104106         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
104108 2007-03-27  Simon Josefsson  <simon@josefsson.org>
104109             Bruno Haible  <bruno@clisp.org>
104111         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
104112         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
104113         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
104115         * m4/stdio_h.m4: Add stubs for vasprintf too.
104117         * modules/stdio: Support vasprintf in sed command.
104119         * modules/vasprintf: Depend on stdio for prototypes.  Remove
104120         vasprintf.h.  Add stdio module indicator.
104122         * lib/stdio_.h: Declare asprintf and vasprintf, based on
104123         vasprintf.h.
104125         * lib/vasprintf.h: File removed.
104127         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
104128         * lib/vasprintf.c: Ditto.
104129         * lib/xvasprintf.c: Ditto.
104130         * tests/test-vasprintf-posix.c: Ditto.
104131         * tests/test-vasprintf.c: Ditto.
104133 2007-03-27  Bruno Haible  <bruno@clisp.org>
104135         Make vasnprintf multithread-safe.
104136         * lib/vasnprintf.c (decimal_point_char): New function.
104137         (VASNPRINTF): Use it.
104138         Suggested by Simon Josefsson.
104140 2007-03-27  Eric Blake  <ebb9@byu.net>
104142         Support sub-second birthtime on cygwin.
104143         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
104144         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
104145         (get_stat_birthtime): Also work with st_birthtim.
104147 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
104149         * lib/stat-time.h (USE_BIRTHTIME): Remove.
104150         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
104151         (get_stat_birthtime_ns): Do not try to use "spare" fields.
104152         (get_stat_birthtime_ns): Simplify compile-time tests.
104153         (get_stat_birthtime): Change the API to look like
104154         get_stat_mtime etc., except return a negative tv_nsec on error.
104155         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
104156         Don't check for "spare" fields.
104157         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
104158         or for struct stat.st_birthtime, as these tests aren't used.
104159         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
104161 2007-03-27  Bruno Haible  <bruno@clisp.org>
104163         * lib/stat-time.h: Include <sys/stat.h>.
104165 2007-03-27  James Youngman  <jay@gnu.org>
104167         * lib/stat-time.h (get_stat_birthtime): New function for
104168           retrieving st_birthtime as provided by UFS2 (hence *BSD).
104169         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
104170           and its variants.
104171         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
104172         * modules/stat-time-test: New file.
104173         * tests/test-stat-time.c: New test, devised by Bruno Haible.
104175 2007-03-26  Bruno Haible  <bruno@clisp.org>
104177         Better support of signalling NaNs.
104178         * lib/atanl.c: Include isnanl.h.
104179         (atanl): Perform test for NaN at the beginning of the function and
104180         through a call to isnanl.
104181         * lib/cosl.c: Include isnanl.h.
104182         (cosl): Perform test for NaN at the beginning of the function and
104183         through a call to isnanl.
104184         * lib/ldexpl.c: Include isnanl.h.
104185         (ldexpl): Perform test for NaN through a call to isnanl.
104186         * lib/logl.c: Include isnanl.h.
104187         (logl): Perform test for NaN at the beginning of the function and
104188         through a call to isnanl.
104189         * lib/sinl.c: Include isnanl.h.
104190         (sinl): Perform test for NaN at the beginning of the function and
104191         through a call to isnanl.
104192         * lib/sqrtl.c: Include isnanl.h.
104193         (sqrtl): Perform test for NaN at the beginning of the function and
104194         through a call to isnanl.
104195         * lib/tanl.c: Include isnanl.h.
104196         (tanl): Perform test for NaN at the beginning of the function and
104197         through a call to isnanl.
104198         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
104199         * modules/mathl (Depends-on): Add isnanl.
104201 2007-03-26  Eric Blake  <ebb9@byu.net>
104203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
104204         regression in logic sense of previous patch.
104206 2007-03-26  Bruno Haible  <bruno@clisp.org>
104208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
104209         unportable shell command "if ! ...".
104210         Reported by Ralf Wildenhues.
104212 2007-03-25  Bruno Haible  <bruno@clisp.org>
104214         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
104215         <sysexits.h> file, and only add EX_CONFIG.
104216         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
104217         absolute file name and whether it is sufficient. Substitute also
104218         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
104219         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
104220         ABSOLUTE_SYSEXITS_H into sysexits.h.
104222 2007-03-25  Bruno Haible  <bruno@clisp.org>
104224         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
104225         hints is NULL.
104227 2007-03-25  Bruno Haible  <bruno@clisp.org>
104229         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
104230         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
104232 2007-03-25  Bruno Haible  <bruno@clisp.org>
104234         * lib/vasnprintf.c: Include langinfo.h.
104235         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
104236         multithread-safe.
104237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
104238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
104239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
104245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104246         Reported by Simon Josefsson.
104248 2007-03-25  Bruno Haible  <bruno@clisp.org>
104250         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
104251         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
104252         * modules/vasnprintf (Depends-on): Add stdint.
104254 2007-03-25  Bruno Haible  <bruno@clisp.org>
104256         * modules/fpieee: New file.
104257         * m4/fpieee.m4: New file.
104258         * modules/isnan-nolibm (Depends-on): Add fpieee.
104259         * modules/isnanl-nolibm (Depends-on): Add fpieee.
104260         * modules/isnanl (Depends-on): Add fpieee.
104262 2007-03-25  Bruno Haible  <bruno@clisp.org>
104264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
104266 2007-03-25  Bruno Haible  <bruno@clisp.org>
104268         Avoid test failures on IRIX 6.5.
104269         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
104270         (main): Use it.
104271         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
104272         macros.
104273         (main): Use them.
104275 2007-03-25  Bruno Haible  <bruno@clisp.org>
104277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
104278         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
104279         exists but doesn't work.
104280         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
104281         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
104282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
104283         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
104284         math.h.
104286 2007-03-25  Bruno Haible  <bruno@clisp.org>
104288         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
104289         returns inf. Needed on IRIX 6.5.
104291 2007-03-25  Bruno Haible  <bruno@clisp.org>
104293         * tests/test-frexpl.c: Include isnanl-nolibm.h.
104294         (main): Use isnanl instead of x != x idiom.
104295         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
104297         * tests/test-frexp.c: Include isnan.h.
104298         (main): Use isnan instead of x != x idiom.
104299         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
104301 2007-03-25  Bruno Haible  <bruno@clisp.org>
104303         * tests/test-frexp.c (NaN): New function/macro.
104304         (main): Use it instead of 0.0 / 0.0.
104305         * tests/test-isnan.c (NaN): New function/macro.
104306         (main): Use it instead of 0.0 / 0.0.
104307         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
104308         (test_function): Use it instead of 0.0 / 0.0.
104309         * tests/test-vasprintf-posix.c (NaN): New function/macro.
104310         (test_function): Use it instead of 0.0 / 0.0.
104311         * tests/test-snprintf-posix.h (NaN): New function/macro.
104312         (test_function): Use it instead of 0.0 / 0.0.
104313         * tests/test-sprintf-posix.h (NaN): New function/macro.
104314         (test_function): Use it instead of 0.0 / 0.0.
104315         * tests/test-fprintf-posix.h (NaN): New function/macro.
104316         (test_function): Use it instead of 0.0 / 0.0.
104317         * tests/test-printf-posix.h (NaN): New function/macro.
104318         (test_function): Use it instead of 0.0 / 0.0.
104320         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
104322 2007-03-25  Bruno Haible  <bruno@clisp.org>
104324         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
104326 2007-03-25  Bruno Haible  <bruno@clisp.org>
104328         * lib/regexec.c (merge_state_with_log): Make static.
104330 2007-03-25  Bruno Haible  <bruno@clisp.org>
104332         * lib/trigl.c (kernel_rem_pio2): Make static.
104334 2007-03-25  Bruno Haible  <bruno@clisp.org>
104336         * lib/sincosl.c (sincosl_table): Make static.
104338 2007-03-25  Bruno Haible  <bruno@clisp.org>
104340         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
104341         if the compiler does not support C99.
104343 2007-03-25  Bruno Haible  <bruno@clisp.org>
104345         * modules/time (Makefile.am): Ensure all rule action lines start with a
104346         tab.
104348 2007-03-24  Bruno Haible  <bruno@clisp.org>
104350         * modules/tsearch-tests: New file.
104351         * tests/test-tsearch.sh: New file.
104352         * tests/test-tsearch.c: New file, mostly copied from glibc.
104354         * modules/search-tests: New file.
104355         * tests/test-search.c: New file.
104357         * modules/search: New file.
104358         * lib/search_.h: New file, incorporating lib/tsearch.h.
104359         * m4/search_h.m4: New file.
104360         * lib/tsearch.h: Remove file.
104361         * lib/tsearch.c: Include search.h instead of tsearch.h.
104362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
104363         HAVE_TSEARCH.
104364         * modules/tsearch (Files): Remove lib/tsearch.h.
104365         (Depends-on): Add search.
104366         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
104367         (Include): Change tsearch.h into search.h.
104369 2007-03-24  Bruno Haible  <bruno@clisp.org>
104371         * modules/fpucw: New file.
104372         * lib/fpucw.h: New file.
104373         * lib/frexp.c: Include fpucw.h.
104374         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104375         (FUNC): Use them.
104376         * lib/printf-frexp.c: Include fpucw.h.
104377         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104378         (FUNC): Use them.
104379         * lib/vasnprintf.c: Include fpucw.h.
104380         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
104381         'long double' calculations.
104382         * tests/test-frexpl.c: Include fpucw.h.
104383         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
104384         * tests/test-printf-frexpl.c: Include fpucw.h.
104385         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
104386         * modules/frexpl (Depends-on): Add fpucw.
104387         * modules/printf-frexpl (Depends-on): Likewise.
104388         * modules/fprintf-posix (Depends-on): Likewise.
104389         * modules/snprintf-posix (Depends-on): Likewise.
104390         * modules/sprintf-posix (Depends-on): Likewise.
104391         * modules/vasnprintf-posix (Depends-on): Likewise.
104392         * modules/vasprintf-posix (Depends-on): Likewise.
104393         * modules/vfprintf-posix (Depends-on): Likewise.
104394         * modules/vsnprintf-posix (Depends-on): Likewise.
104395         * modules/vsprintf-posix (Depends-on): Likewise.
104396         * modules/frexpl-tests (Depends-on): Likewise.
104397         * modules/printf-frexpl-tests (Depends-on): Likewise.
104399 2007-03-24  Bruno Haible  <bruno@clisp.org>
104401         * lib/float+.h: New file.
104402         * lib/isnan.c: Include float+.h.
104403         (SIZE): New macro.
104404         (FUNC): Compare only SIZE bytes of the value.
104405         * lib/vasnprintf.c: Include float+.h.
104406         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
104407         SIZEOF_LDBL or SIZEOF_DBL bytes.
104408         * modules/isnan-nolibm (Files): Add lib/float+.h.
104409         * modules/isnanl-nolibm (Files): Add lib/float+.h.
104410         * modules/isnanl (Files): Add lib/float+.h.
104411         * modules/vasnprintf (Files): Add lib/float+.h.
104413 2007-03-24  Bruno Haible  <bruno@clisp.org>
104415         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
104416         include isnanl-nolibm.h.
104418 2007-03-24  Bruno Haible  <bruno@clisp.org>
104420         * tests/test-read-file.c (main): Don't produce spurious output for
104421         expected situations. Make the test fail if it encountered unexpected
104422         results.
104424 2007-03-24  Bruno Haible  <bruno@clisp.org>
104426         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
104427         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
104429 2007-03-24  Bruno Haible  <bruno@clisp.org>
104431         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
104433 2007-03-24  Bruno Haible  <bruno@clisp.org>
104435         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
104436         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
104438         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
104439         * modules/utf8-ucs4: Turn into a symbolic link to module
104440         unistr/u8-mbtouc.
104442         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
104443         utf8-ucs4-unsafe.
104444         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
104445         unistr/u8-mbtouc-unsafe.
104447         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
104448         * modules/utf16-ucs4: Turn into a symbolic link to module
104449         unistr/u16-mbtouc.
104451         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
104452         utf16-ucs4-unsafe.
104453         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
104454         unistr/u16-mbtouc-unsafe.
104456         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
104457         * modules/ucs4-utf8: Turn into a symbolic link to module
104458         unistr/u8-ubtomb.
104460         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
104461         * modules/ucs4-utf16: Turn into a symbolic link to module
104462         unistr/u16-ubtomb.
104464 2007-03-24  Bruno Haible  <bruno@clisp.org>
104466         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
104467         Enable the function only if HAVE_INLINE.
104468         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
104469         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
104470         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
104471         Enable the function only if HAVE_INLINE.
104472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
104473         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
104474         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
104475         Enable the function only if HAVE_INLINE.
104476         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
104477         Enable the function only if HAVE_INLINE.
104478         * modules/utf8-ucs4: Update.
104479         * modules/utf8-ucs4-unsafe: Update.
104480         * modules/utf16-ucs4: Update.
104481         * modules/utf16-ucs4-unsafe: Update.
104482         * modules/ucs4-utf8: Update.
104483         * modules/ucs4-utf16: Update.
104485 2007-03-24  Bruno Haible  <bruno@clisp.org>
104487         * lib/utf8-ucs4.h: Remove file.
104488         * lib/utf8-ucs4-unsafe.h: Remove file.
104489         * lib/utf16-ucs4.h: Remove file.
104490         * lib/utf16-ucs4-unsafe.h: Remove file.
104491         * lib/ucs4-utf8.h: Remove file.
104492         * lib/ucs4-utf16.h: Remove file.
104493         * lib/unistr.h: Include their previous contents.
104494         * m4/utf-ucs4.m4: Remove file.
104495         * m4/ucs4-utf.m4: Remove file.
104496         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
104497         (Depends-on): Add unistr/base.
104498         (configure.ac): Remove gl_UTF_UCS4.
104499         (Makefile.am): Update.
104500         (Include): Change to unistr.h.
104501         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
104502         (Depends-on): Add unistr/base.
104503         (configure.ac): Remove gl_UTF_UCS4.
104504         (Makefile.am): Update.
104505         (Include): Change to unistr.h.
104506         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
104507         (Depends-on): Add unistr/base.
104508         (configure.ac): Remove gl_UTF_UCS4.
104509         (Makefile.am): Update.
104510         (Include): Change to unistr.h.
104511         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
104512         (Depends-on): Add unistr/base.
104513         (configure.ac): Remove gl_UTF_UCS4.
104514         (Makefile.am): Update.
104515         (Include): Change to unistr.h.
104516         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
104517         (Depends-on): Add unistr/base.
104518         (configure.ac): Remove gl_UCS4_UTF.
104519         (Makefile.am): Update.
104520         (Include): Change to unistr.h.
104521         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
104522         (Depends-on): Add unistr/base.
104523         (configure.ac): Remove gl_UCS4_UTF.
104524         (Makefile.am): Update.
104525         (Include): Change to unistr.h.
104526         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
104527         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
104528         utf8-ucs4-unsafe.h.
104529         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
104530         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
104531         utf16-ucs4-unsafe.h.
104532         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
104533         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
104534         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
104535         * lib/unistr/u8-strchr.c: Likewise.
104536         * lib/unistr/u8-strrchr.c: Likewise.
104537         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
104538         * lib/unistr/u16-strchr.c: Likewise.
104539         * lib/unistr/u16-strrchr.c: Likewise.
104540         * lib/striconveh.c: Update.
104541         * lib/linebreak.c: Update.
104543 2007-03-24  Bruno Haible  <bruno@clisp.org>
104545         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
104546         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
104548 2007-03-22  Bruno Haible  <bruno@clisp.org>
104550         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
104552 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104554         * MODULES.html.sh (File system functions): New module write-any-file.
104555         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
104556         * m4/write-any-file.m4: New files.
104558 2007-03-23  Eric Blake  <ebb9@byu.net>
104560         * gnulib-tool: Rearrange space-tab sequences, since some editors
104561         like to eat them.
104563 2007-03-23  Eric Blake  <ebb9@byu.net>
104565         * lib/version-etc.c (version_etc_va): Update license wording to
104566         be more concise.  Recommended by Richard Stallman.
104568 2007-03-22  Bruno Haible  <bruno@clisp.org>
104570         * lib/poll.c (MSG_PEEK): New fallback definition.
104572 2007-03-22  Bruno Haible  <bruno@clisp.org>
104574         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
104575         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
104576         (main): Update.
104577         Fixes a compilation error on BeOS.
104579 2007-03-22  Bruno Haible  <bruno@clisp.org>
104581         * modules/frexpl-tests: New file.
104582         * tests/test-frexpl.c: New file.
104584         * modules/frexpl: New file.
104585         * m4/frexpl.m4: New file.
104586         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
104587         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
104588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
104589         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
104590         (Depends-on): Add frexpl. Remove isnanl-nolibm.
104591         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
104593 2007-03-22  Bruno Haible  <bruno@clisp.org>
104595         * lib/frexpl.c: Share code with lib/frexp.c.
104596         * modules/mathl (Files): Add lib/frexp.c.
104597         (Depends-on): Add isnanl-nolibm.
104599 2007-03-22  Bruno Haible  <bruno@clisp.org>
104601         * modules/printf-frexp (Files): Add m4/frexp.m4.
104602         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
104603         only if the found frexp function actually works.
104605 2007-03-22  Bruno Haible  <bruno@clisp.org>
104607         * lib/frexp.c: Remove older implementation that uses divisions.
104609 2007-03-21  Bruno Haible  <bruno@clisp.org>
104611         * modules/frexp-tests: New file.
104612         * tests/test-frexp.c: New file.
104614         * modules/frexp: New file.
104615         * lib/frexp.c: New file.
104616         * m4/frexp.m4: New file.
104617         * lib/math_.h (frexp): New declaration.
104618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
104619         REPLACE_FREXP.
104620         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
104622 2007-03-21  Bruno Haible  <bruno@clisp.org>
104624         * modules/isnanl-tests: New file.
104625         * tests/test-isnanl.c: New file.
104627         * modules/isnanl: New file.
104628         * lib/isnanl.h: New file.
104629         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
104630         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
104631         gl_FUNC_ISNANL_WORKS.
104632         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
104633         New macros.
104635 2007-03-21  Bruno Haible  <bruno@clisp.org>
104637         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
104638         lib/isnanl.h.
104639         (Include): Update.
104640         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
104641         * lib/vasnprintf.c: Update.
104642         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
104643         tests/test-isnanl.h, remove tests/test-isnanl.c.
104644         (Makefile.am): Update.
104645         * tests/test-isnanl-nolibm.c: New file.
104646         * tests/test-isnanl.h: New file.
104647         * tests/test-isnanl.c: Remove file.
104649 2007-03-21  Jim Meyering  <jim@meyering.net>
104651         When trying to open ".", treat ESTALE like EACCES.
104652         * lib/savewd.c (savewd_save): Resort to forking not just upon
104653         failure with EACCES, but also when errno is ESTALE.
104655 2007-03-20  Bruno Haible  <bruno@clisp.org>
104657         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
104658         Needed on AIX 5.1. Reported by Matthew Woehlke.
104660 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
104662         Suggestions by Bruno Haible:
104663         * lib/acl-internal.h: Include "gettext.h" rather than rolling
104664         our own.
104665         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
104666         * modules/acl (Depends-on): Add gettext.
104668 2007-03-19  Bruno Haible  <bruno@clisp.org>
104670         * modules/iconvme: Remove file.
104671         * lib/iconvme.h: Remove file.
104672         * lib/iconvme.c: Remove file.
104673         * m4/iconvme.m4: Remove file.
104675 2007-03-19  Bruno Haible  <bruno@clisp.org>
104677         * doc/relocatable-maint.texi: Break long shell script line.
104678         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
104680 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
104682         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
104683         handle file_has_acl.
104684         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
104685         * lib/acl.c: Move header inclusions and related macro defns into
104686         lib/acl-internal.h.
104687         (S_ISLNK): Remove defn, since that's now done for us.
104688         (file_has_acl): Move to lib/file-has-acl.c.
104689         Call acl_trivial if available.  This is the crucial part of the fix.
104690         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
104691         shared within the library.  Rewrite a bit, partly to make it compatible
104692         with the GNU coding style.
104693         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
104694         Remove unnecessary double-quotes.
104695         Don't test for acl_to_text; the build will catch that.
104696         Replace acl_entries if it doesn't exist and it is needed.
104697         Check for -lsec and acl_trivial (as used on Solaris 10).
104698         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
104699         lib/file-has-acl.c.
104700         (Depends-on): Add sys_stat, for S_ISLNK.
104702 2007-03-19  Ben Pfaff  <blp@gnu.org>
104704         * doc/gnulib.texi: Fix typos.
104705         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
104707 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
104709         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
104710         If size is zero here, buf must be zero.
104712 2007-03-19  Simon Josefsson  <simon@josefsson.org>
104714         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
104715         <bruno@clisp.org>.
104717 2007-03-18  Bruno Haible  <bruno@clisp.org>
104719         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
104720         Suggested by Eric Blake.
104722 2007-03-18  Ben Pfaff  <blp@gnu.org>
104724         * doc/relocatable.texi: Recommend using as prefix a directory
104725         that does not exist and will never be created.  Based on
104726         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
104727         and others.
104729 2007-03-17  Bruno Haible  <bruno@clisp.org>
104731         * lib/fchownat.c: Include lchown.h.
104733 2007-03-17  Bruno Haible  <bruno@clisp.org>
104735         Fix endless loop when the given allocated size was > INT_MAX.
104736         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
104737         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
104738         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
104739         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
104740         * lib/sprintf.c (sprintf): Likewise.
104742 2007-03-17  Bruno Haible  <bruno@clisp.org>
104744         * tests/test-argp-2.sh (func_compare): Output a context diff.
104746 2007-03-17  Bruno Haible  <bruno@clisp.org>
104748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
104749         locale's decimal-point character.
104751 2007-03-17  Bruno Haible  <bruno@clisp.org>
104753         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
104754         before comparing it. Needed because on some platforms (e.g. x86) a
104755         'long double' occupies less bytes than sizeof (long double).
104757 2007-03-17  Bruno Haible  <bruno@clisp.org>
104759         * tests/test-crc.c (main): Make printf statements 64-bit clean.
104760         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
104761         * tests/test-getaddrinfo.c (simple): Likewise.
104762         * tests/test-read-file.c (main): Likewise.
104764 2007-03-17  Bruno Haible  <bruno@clisp.org>
104766         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
104768 2007-03-17  Bruno Haible  <bruno@clisp.org>
104770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
104771         unused variable.
104773 2007-03-17  Bruno Haible  <bruno@clisp.org>
104775         * tests/test-c-strcasecmp.c: Include c-strcase.h.
104776         * tests/test-c-strncasecmp.c: Likewise.
104778 2007-03-17  Bruno Haible  <bruno@clisp.org>
104780         * modules/stdlib (Depends-on): Add unistd.
104781         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
104782         Needed for MacOS X 10.3.
104784 2007-03-17  Bruno Haible  <bruno@clisp.org>
104786         * lib/unistr/u-strdup.h: Include <stdlib.h>.
104788 2007-03-17  Bruno Haible  <bruno@clisp.org>
104790         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
104792 2007-03-17  Bruno Haible  <bruno@clisp.org>
104794         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
104795         to reflect files copied from gnulib (with or without modifications).
104796         Suggested by Jim Meyering.
104798 2007-03-17  Eric Blake  <ebb9@byu.net>
104800         * NEWS: Document stdlib change from 2007-02-18.
104802 2007-03-17  Jim Meyering  <jim@meyering.net>
104804         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
104805         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
104806         someone uses a name containing shell meta-characters.
104807         Reported by Alfred M. Szmidt.
104809         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
104811 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
104813         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
104814         and copy gettext configuration files only if configure.ac contains
104815         a use of AM_GNU_GETTEXT_VERSION.
104817 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
104819         * build-aux/bootstrap (gnulib_name): New variable.
104820         (gnulib_tool_options): Use it.
104822 2007-03-13  Simon Josefsson  <simon@josefsson.org>
104824         * tests/test-des.c: Use new namespace.
104826 2007-03-15  Bruno Haible  <bruno@clisp.org>
104828         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
104829         Reported by James Youngman <jay@gnu.org>.
104831 2007-03-15  Bruno Haible  <bruno@clisp.org>
104833         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
104834         declared prototype. Needed with cc on OSF/1 5.1.
104836 2007-03-15  Bruno Haible  <bruno@clisp.org>
104838         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
104839         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
104840         (struct gl_list_implementation): Add dispose_fn argument to the
104841         'create_empty', 'create' methods.
104842         (struct gl_list_impl_base): Add field 'dispose_fn'.
104843         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
104844         argument.
104845         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
104846         dispose_fn argument.
104847         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
104848         dispose_fn on the dropped values.
104849         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
104850         dispose_fn argument.
104851         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
104852         dropped values.
104853         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
104854         (gl_tree_remove_node): Call dispose_fn on the dropped value.
104855         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
104856         (gl_tree_remove_node): Call dispose_fn on the dropped value.
104857         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
104858         argument.
104859         (gl_tree_list_free): Call dispose_fn on the dropped values.
104860         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
104861         the dropped values.
104862         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
104863         Add dispose_fn argument.
104864         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
104865         Call dispose_fn on the dropped values.
104866         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
104867         Add dispose_fn argument.
104868         (gl_sublist_create): Initialize the 'dispose_fn' field.
104869         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
104870         * tests/test-array_list.c (main): Update.
104871         * tests/test-carray_list.c (main): Update.
104872         * tests/test-avltree_list.c (main): Update.
104873         * tests/test-rbtree_list.c (main): Update.
104874         * tests/test-avltreehash_list.c (main): Update.
104875         * tests/test-rbtreehash_list.c (main): Update.
104876         * tests/test-linked_list.c (main): Update.
104877         * tests/test-linkedhash_list.c (main): Update.
104878         * tests/test-array_oset.c (main): Update.
104880 2007-03-15  Bruno Haible  <bruno@clisp.org>
104882         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
104883         (gl_oset_create_empty): Add dispose_fn argument.
104884         (struct gl_oset_implementation): Add dispose_fn argument to
104885         'create_empty' method.
104886         (struct gl_oset_impl_base): Add dispose_fn field.
104887         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
104888         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
104889         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
104890         values.
104891         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
104892         (gl_tree_oset_free): Call dispose_fn on the dropped values.
104893         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
104894         dropped value.
104895         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
104896         dropped value.
104897         * tests/test-array_oset.c (main): Update.
104898         * tests/test-avltree_oset.c (main): Update.
104899         * tests/test-rbtree_oset.c (main): Update.
104900         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
104902 2007-03-13  Bruno Haible  <bruno@clisp.org>
104904         * tests/test-stdbool.c (i): Update after last patch.
104906 2007-03-12  Bruno Haible  <bruno@clisp.org>
104908         * lib/quotearg.c: Include <wctype.h> early, before the definition of
104909         the iswprint macro. Needed on Solaris 2.5.1.
104911 2007-03-12  Bruno Haible  <bruno@clisp.org>
104913         * tests/test-printf-frexp.c (main): Declare x as volatile.
104915 2007-03-12  Simon Josefsson  <simon@josefsson.org>
104917         * doc/gnulib.texi (Build robot for gnulib): New section.
104919 2007-03-12  Jim Meyering  <jim@meyering.net>
104921         * build-aux/bootstrap: New file.
104922         * build-aux/bootstrap.conf: New file, from coreutils.
104924 2007-03-11  Bruno Haible  <bruno@clisp.org>
104926         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
104928 2007-03-12  Simon Josefsson  <simon@josefsson.org>
104930         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
104931         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
104932         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
104934 2007-03-11  Bruno Haible  <bruno@clisp.org>
104936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
104937         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
104939 2007-03-11  Bruno Haible  <bruno@clisp.org>
104941         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
104942         formula. Needed for SunPRO C 5.0.
104944 2007-03-11  Bruno Haible  <bruno@clisp.org>
104946         * modules/long-options (Depends-on): Add getopt.
104948 2007-03-11  Bruno Haible  <bruno@clisp.org>
104950         * modules/modechange (Depends-on): Add stdbool.
104952 2007-03-11  Bruno Haible  <bruno@clisp.org>
104954         * modules/i-ring (Depends-on): Add stdbool.
104956 2007-03-11  Bruno Haible  <bruno@clisp.org>
104958         * modules/gc-des (Depends-on): Add stdbool.
104960 2007-03-11  Bruno Haible  <bruno@clisp.org>
104962         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
104964 2007-03-11  Bruno Haible  <bruno@clisp.org>
104966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
104968 2007-03-11  Bruno Haible  <bruno@clisp.org>
104970         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
104972 2007-03-11  Bruno Haible  <bruno@clisp.org>
104974         * lib/vasnprintf.c (sprintf): Undefine.
104976 2007-03-11  Bruno Haible  <bruno@clisp.org>
104978         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
104979         initializers in SunPRO C and Compaq C compilers.
104981 2007-03-11  Bruno Haible  <bruno@clisp.org>
104983         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
104984         decrementing code ANSI C compliant.
104986 2007-03-11  Bruno Haible  <bruno@clisp.org>
104988         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
104989         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
104991 2007-03-11  Bruno Haible  <bruno@clisp.org>
104993         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
104994         <stdbool.h> substitute doesn't pass.
104996 2007-03-11  Bruno Haible  <bruno@clisp.org>
104998         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
105000 2007-03-11  Bruno Haible  <bruno@clisp.org>
105002         * gnulib-tool (func_create_megatestdir): Create also an autobuild
105003         script, for submission to autobuild.josefsson.org.
105005 2007-03-10  Bruno Haible  <bruno@clisp.org>
105007         * modules/canonicalize-lgpl-tests: New file.
105008         * tests/test-canonicalize-lgpl.sh: New file.
105009         * tests/test-canonicalize-lgpl.c: New file.
105011         * modules/c-strcase-tests: New file.
105012         * tests/test-c-strcase.sh: New file.
105013         * tests/test-c-strcasecmp.c: New file.
105014         * tests/test-c-strncasecmp.c: New file.
105016         * modules/atexit-tests: New file.
105017         * tests/test-atexit.sh: New file.
105018         * tests/test-atexit.c: New file.
105020 2007-03-10  Bruno Haible  <bruno@clisp.org>
105022         * tests/test-binary-io.sh: Use temporary filenames that are not so
105023         likely to clash with those of other tests (in a parallel make).
105024         * tests/test-binary-io.c: Likewise.
105026 2007-03-10  Bruno Haible  <bruno@clisp.org>
105028         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
105029         fallback; use #error instead.
105030         Suggested by Simon Josefsson.
105032 2007-03-10  Bruno Haible  <bruno@clisp.org>
105034         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
105035         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
105036         first and the last.
105038 2007-03-10  Bruno Haible  <bruno@clisp.org>
105040         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
105042 2007-03-10  Bruno Haible  <bruno@clisp.org>
105044         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
105045         "make distcheck".
105046         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
105047         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
105048         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
105050 2007-03-10  Bruno Haible  <bruno@clisp.org>
105052         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
105053         variable.
105054         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
105055         variable.
105057 2007-03-09  Eric Blake  <ebb9@byu.net>
105058         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
105060         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
105061         types are not being provided by gnulib.
105062         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
105063         types are supported.
105065 2007-03-10  Bruno Haible  <bruno@clisp.org>
105067         * lib/stdio_.h (__attribute__): New macro.
105068         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
105069         vsprintf): Specify __attribute__ __format__ for GCC.
105070         Suggested by Eric Blake.
105072 2007-03-09  Bruno Haible  <bruno@clisp.org>
105074         * modules/printf-posix-tests: New file.
105075         * tests/test-printf-posix.sh: New file.
105076         * tests/test-printf-posix.c: New file.
105078         * modules/printf-posix: New file.
105079         * lib/printf.c: New file.
105080         * m4/printf-posix-rpl.m4: New file.
105081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
105082         REPLACE_PRINTF.
105083         * lib/stdio_.h (printf): New declaration.
105084         (format, __format__, ____printf____, ____scanf____, ____strftime____,
105085         ____strfmon____): New macros.
105086         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
105087         REPLACE_PRINTF.
105089 2007-03-09  Bruno Haible  <bruno@clisp.org>
105091         * tests/test-vasnprintf-posix2.sh: New file.
105092         * tests/test-vasnprintf-posix2.c: New file.
105093         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
105094         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
105095         (Makefile.am): Activate test-vasnprintf-posix2.sh.
105097         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
105098         a locale dependent decimal point, rather than always '.'.
105100 2007-03-09  Eric Blake  <ebb9@byu.net>
105102         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
105103         spite of platforms like Tandem/NSK that define it to -1.
105105 2007-03-08  Bruno Haible  <bruno@clisp.org>
105107         * modules/vprintf-posix-tests: New file.
105108         * tests/test-vprintf-posix.sh: New file.
105109         * tests/test-vprintf-posix.c: New file.
105110         * tests/test-printf-posix.h: New file.
105112         * modules/vprintf-posix: New file.
105113         * lib/vprintf.c: New file.
105114         * m4/vprintf-posix.m4: New file.
105115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
105116         REPLACE_VPRINTF.
105117         * lib/stdio_.h (vprintf): New declaration.
105118         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
105119         REPLACE_VPRINTF.
105121 2007-03-08  Bruno Haible  <bruno@clisp.org>
105123         * modules/fprintf-posix-tests: New file.
105124         * tests/test-fprintf-posix.sh: New file.
105125         * tests/test-fprintf-posix.c: New file.
105127         * modules/fprintf-posix: New file.
105128         * lib/fprintf.c: New file.
105129         * m4/fprintf-posix.m4: New file.
105130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
105131         REPLACE_FPRINTF.
105132         * lib/stdio_.h (fprintf): New declaration.
105133         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
105134         REPLACE_FPRINTF.
105136 2007-03-08  Bruno Haible  <bruno@clisp.org>
105138         * modules/vfprintf-posix-tests: New file.
105139         * tests/test-vfprintf-posix.sh: New file.
105140         * tests/test-vfprintf-posix.c: New file.
105141         * tests/test-fprintf-posix.h: New file.
105142         * tests/test-fprintf-posix.out: New file.
105144         * modules/vfprintf-posix: New file.
105145         * lib/vfprintf.c: New file.
105146         * m4/vfprintf-posix.m4: New file.
105147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
105148         REPLACE_VFPRINTF.
105149         * lib/stdio_.h (vfprintf): New declaration.
105150         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
105151         REPLACE_VFPRINTF.
105153 2007-03-08  Bruno Haible  <bruno@clisp.org>
105155         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
105157 2007-03-08  Bruno Haible  <bruno@clisp.org>
105159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
105160         instead of 'expr' invocations.
105161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105166         Suggested by Paul Eggert.
105168 2007-03-08  Bruno Haible  <bruno@clisp.org>
105170         * modules/fseterr-tests: New file.
105171         * tests/test-fseterr.c: New file.
105173         * modules/fseterr: New file.
105174         * lib/fseterr.h: New file.
105175         * lib/fseterr.c: New file.
105177 2007-03-08  Bruno Haible  <bruno@clisp.org>
105179         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
105180         * lib/getopt_.h: Likewise.
105181         * lib/mbswidth.h: Likewise.
105182         * lib/setenv.h: Likewise.
105183         * lib/vasnprintf.h: Likewise.
105184         * lib/vasprintf.h: Likewise.
105185         * lib/verror.h: Likewise.
105186         * lib/xsetenv.h: Likewise.
105187         * lib/xvasprintf.h: Likewise.
105189 2007-03-08  Jim Meyering  <jim@meyering.net>
105191         * users.txt: Add parted.
105193         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
105195 2007-03-07  Bruno Haible  <bruno@clisp.org>
105197         * m4/printf.m4: Make the shell script snippets copy&pastable.
105199 2007-03-02  Bruno Haible  <bruno@clisp.org>
105201         * lib/netinet_in_.h: New file.
105202         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
105203         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
105204         * modules/netinet_in (Files): Add lib/netinet_in_.h.
105205         (Depends-on): Add absolute-header.
105206         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
105207         into netinet/in.h.
105209 2007-03-03  Bruno Haible  <bruno@clisp.org>
105211         * lib/sys_select_.h: New file.
105212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
105213         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
105214         * modules/sys_select (Files): Add lib/sys_select_.h.
105215         (Depends-on): Add absolute-header.
105216         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
105217         into sys/select.h.
105219 2007-03-02  Bruno Haible  <bruno@clisp.org>
105221         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
105222         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
105223         values.
105224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
105225         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
105226         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
105227         * modules/sys_socket (Depends-on): Add absolute-header.
105228         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
105229         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
105230         (Include): Remove requirement of inclusion of <sys/types.h>.
105232 2007-03-02  Bruno Haible  <bruno@clisp.org>
105234         * lib/byteswap_.h (bswap_32): Fix formula.
105236 2007-03-06  Bruno Haible  <bruno@clisp.org>
105238         * modules/sprintf-posix-tests: New file.
105239         * tests/test-sprintf-posix.c: New file.
105241         * modules/sprintf-posix: New file.
105242         * lib/sprintf.c: New file.
105243         * m4/sprintf-posix.m4: New file.
105244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
105245         REPLACE_SPRINTF.
105246         * lib/stdio_.h (sprintf): New declaration.
105247         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
105248         REPLACE_SPRINTF.
105250 2007-03-06  Bruno Haible  <bruno@clisp.org>
105252         * modules/vsprintf-posix-tests: New file.
105253         * tests/test-vsprintf-posix.c: New file.
105254         * tests/test-sprintf-posix.h: New file.
105256         * modules/vsprintf-posix: New file.
105257         * lib/vsprintf.c: New file.
105258         * m4/vsprintf-posix.m4: New file.
105259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
105260         REPLACE_VSPRINTF.
105261         * lib/stdio_.h (vsprintf): New declaration.
105262         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
105263         REPLACE_VSPRINTF.
105265 2007-03-06  Bruno Haible  <bruno@clisp.org>
105267         * modules/vsnprintf (Depend-on): Remove minmax.
105269 2007-03-06  Bruno Haible  <bruno@clisp.org>
105271         * modules/snprintf-posix-tests: New file.
105272         * tests/test-snprintf-posix.c: New file.
105274         * modules/snprintf-posix: New file.
105275         * m4/snprintf-posix.m4: New file.
105276         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
105277         gl_FUNC_SNPRINTF.
105278         (gl_FUNC_SNPRINTF): Invoke it.
105279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
105280         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
105281         is set.
105282         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
105284 2007-03-06  Bruno Haible  <bruno@clisp.org>
105286         * modules/vsnprintf-posix-tests: New file.
105287         * tests/test-vsnprintf-posix.c: New file.
105288         * tests/test-snprintf-posix.h: New file.
105290         * modules/vsnprintf-posix: New file.
105291         * m4/vsnprintf-posix.m4: New file.
105292         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
105293         gl_FUNC_VSNPRINTF.
105294         (gl_FUNC_VSNPRINTF): Invoke it.
105295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
105296         * lib/stdio_.h (vsnprintf): Define as a replacement if
105297         REPLACE_VSNPRINTF is set.
105298         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
105300 2007-03-06  Bruno Haible  <bruno@clisp.org>
105302         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
105303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
105305 2007-03-06  Bruno Haible  <bruno@clisp.org>
105307         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
105308         (asinl): Declare also if HAVE_DECL_ASINL is set.
105309         (atanl): Declare also if HAVE_DECL_ATANL is set.
105310         (ceill): Declare also if HAVE_DECL_CEILL is set.
105311         (cosl): Declare also if HAVE_DECL_COSL is set.
105312         (expl): Declare also if HAVE_DECL_EXPL is set.
105313         (floorl): Declare also if HAVE_DECL_FLOORL is set.
105314         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
105315         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
105316         (logl): Declare also if HAVE_DECL_LOGL is set.
105317         (sinl): Declare also if HAVE_DECL_SINL is set.
105318         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
105319         (tanl): Declare also if HAVE_DECL_TANL is set.
105320         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
105321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
105322         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
105323         declaration of frexpl, ldexpl.
105324         * modules/printf-frexpl (Depends-on): Add math.
105325         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
105327 2007-03-05  Bruno Haible  <bruno@clisp.org>
105329         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
105330         frexpl and ldexpl are declared.
105331         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
105333 2007-03-05  Bruno Haible  <bruno@clisp.org>
105335         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
105336         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
105338 2007-03-05  Bruno Haible  <bruno@clisp.org>
105340         * lib/stdio_.h: Include <stddef.h>.
105342 2007-03-05  Bruno Haible  <bruno@clisp.org>
105344         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
105346 2007-03-05  Bruno Haible  <bruno@clisp.org>
105348         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
105349         NetBSD 4, from Ralf Wildenhues.
105351 2007-03-04  Bruno Haible  <bruno@clisp.org>
105353         * lib/vasprintf.h: Update #if logic for the case when the functions
105354         exist but are overridden.
105356 2007-03-04  Bruno Haible  <bruno@clisp.org>
105358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
105359         implementations: glibc-2.4 and MacOS X 10.3.
105360         * tests/test-vasnprintf-posix.c (test_function): Test also the case
105361         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
105362         * tests/test-vasprintf-posix.c (test_function): Likewise.
105364 2007-03-04  Bruno Haible  <bruno@clisp.org>
105366         * modules/vasprintf-posix-tests: New file.
105367         * tests/test-vasprintf-posix.c: New file.
105369         * modules/vasprintf-posix: New file.
105370         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
105371         defined.
105372         * m4/vasprintf-posix.m4: New file.
105373         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
105374         gl_FUNC_VASPRINTF.
105375         (gl_FUNC_VASPRINTF): Invoke it.
105376         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
105377         here.
105378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
105380 2007-03-04  Bruno Haible  <bruno@clisp.org>
105382         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
105383         REPLACE_GETTIMEOFDAY.
105384         * modules/sys_time (Makefile.am): Likewise.
105385         * m4/sys_time_h.m4: Likewise.
105386         * m4/gettimeofday.m4: Likewise.
105388 2007-03-04  Bruno Haible  <bruno@clisp.org>
105390         * modules/vasnprintf-posix-tests: New file.
105391         * tests/test-vasnprintf-posix.c: New file.
105393         * modules/vasnprintf-posix: New file.
105394         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
105395         printf-frexpl.h.
105396         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
105397         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
105398         REPLACE_VASNPRINTF is defined.
105399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
105400         gl_FUNC_VASNPRINTF.
105401         (gl_FUNC_VASNPRINTF): Invoke it.
105402         * m4/vasnprintf-posix.m4: New file.
105403         * m4/printf.m4: New file.
105405 2007-03-04  Bruno Haible  <bruno@clisp.org>
105407         Compile progreloc.c only if --enable-relocatable is specified.
105408         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
105409         if --enable-relocatable was specified.
105410         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
105411         lib_SOURCES.
105413 2007-03-04  Jim Meyering  <jim@meyering.net>
105415         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
105416         Use it consistently, rather than enumerating errno constants.
105418 2007-03-04  Bruno Haible  <bruno@clisp.org>
105420         * modules/xvasprintf-tests: New file.
105421         * tests/test-xvasprintf.c: New file.
105423         * modules/vasprintf-tests: New file.
105424         * tests/test-vasprintf.c: New file.
105426         * modules/vasnprintf-tests: New file.
105427         * tests/test-vasnprintf.c: New file.
105429         * modules/vsnprintf-tests: New file.
105430         * tests/test-vsnprintf.c: New file.
105432         * modules/snprintf-tests: New file.
105433         * tests/test-snprintf.c: New file.
105435 2007-03-04  Bruno Haible  <bruno@clisp.org>
105437         Compile relocatable.c only if --enable-relocatable is specified.
105438         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
105439         gl_RELOCATABLE_LIBRARY.
105440         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
105441         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
105442         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
105443         gl_RELOCATABLE_LIBRARY.
105444         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
105445         (Makefile.am): Remove lib_SOURCES.
105446         * modules/relocatable-lib-lgpl (configure.ac): Invoke
105447         gl_RELOCATABLE_LIBRARY.
105448         (Makefile.am): Remove lib_SOURCES.
105449         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
105450         always.
105451         * modules/relocatable-prog-wrapper (configure.ac): Invoke
105452         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
105454 2007-03-04  Bruno Haible  <bruno@clisp.org>
105456         * modules/argmatch-tests: New file.
105457         * tests/test-argmatch.c: New file.
105459         * tests/test-allocsa.c (main): Halve the number of loop runs.
105461         * modules/alloca-opt-tests: New file.
105462         * tests/test-alloca-opt.c: New file.
105464 2007-03-04  Jim Meyering  <jim@meyering.net>
105466         Work around difference between Linux ACLs and Solaris 10 ZFS.
105467         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
105468         for EINVAL.
105470 2007-03-03  Bruno Haible  <bruno@clisp.org>
105472         * modules/relocatable-prog (Depends-on): Add back progreloc's
105473         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
105475 2007-03-03  Bruno Haible  <bruno@clisp.org>
105477         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
105478         * modules/relocatable-lib: New file.
105480 2007-03-03  Bruno Haible  <bruno@clisp.org>
105482         * modules/relocatable-prog: Renamed from modules/relocatable.
105483         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
105485 2007-03-03  Bruno Haible  <bruno@clisp.org>
105487         * modules/relocatable-script (Files): Add doc/relocatable.texi,
105488         m4/relocatable-lib.m4.
105489         (Depends-on): Remove 'relocatable'.
105490         (configure.ac): Add gl_RELOCATABLE_NOP.
105492 2007-03-03  Bruno Haible  <bruno@clisp.org>
105494         * modules/relocatable-prog-wrapper: New file.
105495         * modules/relocatable (Depends-on): Add it. Remove all other
105496         dependencies except progname.
105497         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
105499         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
105500         (gl_FUNC_STRERROR): Nop.
105501         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
105503         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
105504         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
105506         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
105507         (gl_FUNC_READLINK): Update.
105509         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
105511 2007-03-03  Bruno Haible  <bruno@clisp.org>
105513         * lib/xreadlink.c: Include <unistd.h> unconditionally.
105514         * modules/xreadlink (Depends-on): Add unistd.
105515         * modules/xreadlink-with-size (Depends-on): Likewise.
105517 2007-03-03  Bruno Haible  <bruno@clisp.org>
105519         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
105520         extracted from gt_FUNC_SETENV.
105521         (gt_FUNC_SETENV): Remove macro.
105522         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
105523         remove gt_FUNC_SETENV.
105525 2007-03-03  Bruno Haible  <bruno@clisp.org>
105527         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
105528         ENABLE_RELOCATABLE here.
105529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
105531 2007-03-03  Bruno Haible  <bruno@clisp.org>
105533         * modules/rbtreehash-list-tests (Depends-on): Add progname.
105534         * tests/test-rbtreehash_list.c: Include progname.h.
105535         (main): Call set_program_name.
105537         * modules/rbtree-oset-tests (Depends-on): Add progname.
105538         * tests/test-rbtree_oset.c: Include progname.h.
105539         (main): Call set_program_name.
105541         * modules/rbtree-list-tests (Depends-on): Add progname.
105542         * tests/test-rbtree_list.c: Include progname.h.
105543         (main): Call set_program_name.
105545         * modules/linked-list-tests (Depends-on): Add progname.
105546         * tests/test-linked_list.c: Include progname.h.
105547         (main): Call set_program_name.
105549 2007-03-03  Bruno Haible  <bruno@clisp.org>
105551         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
105552         All uses of __restrict changed to _Restrict_.
105553         * lib/glob_.h (__restrict): Remove macro.
105555 2007-03-02  Bruno Haible  <bruno@clisp.org>
105557         * modules/gettext (configure.ac): Require gettext infrastructure
105558         from version 0.16.1.
105560 2007-03-02  Bruno Haible  <bruno@clisp.org>
105562         * modules/linkedhash-list-tests (Depends-on): Add progname.
105563         * tests/test-linkedhash_list.c: Include progname.h.
105564         (main): Call set_program_name.
105566         * modules/carray-list-tests (Depends-on): Add progname.
105567         * tests/test-carray_list.c: Include progname.h.
105568         (main): Call set_program_name.
105570         * modules/avltreehash-list-tests (Depends-on): Add progname.
105571         * tests/test-avltreehash_list.c: Include progname.h.
105572         (main): Call set_program_name.
105574         * modules/avltree-oset-tests (Depends-on): Add progname.
105575         * tests/test-avltree_oset.c: Include progname.h.
105576         (main): Call set_program_name.
105578         * modules/avltree-list-tests (Depends-on): Add progname.
105579         * tests/test-avltree_list.c: Include progname.h.
105580         (main): Call set_program_name.
105582         * modules/array-oset-tests (Depends-on): Add progname.
105583         * tests/test-array_oset.c: Include progname.h.
105584         (main): Call set_program_name.
105586         * modules/array-list-tests (Depends-on): Add progname.
105587         * tests/test-array_list.c: Include progname.h.
105588         (main): Call set_program_name.
105590         * modules/argp-tests (Depends-on): Add progname.
105591         * tests/test-argp.c: Include argp.h first. Include progname.h.
105592         (main): Call set_program_name.
105594 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
105596         * doc/gnulib-tool.texi (Initial import): Reword description of
105597         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
105598         limited effect even if defined after the first system include.
105600 2007-03-01  Bruno Haible  <bruno@clisp.org>
105602         * build-aux/config.libpath: Update to libtool-1.5.22.
105603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
105605 2007-03-01  Bruno Haible  <bruno@clisp.org>
105607         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
105608         foo_CFLAGS.
105609         Reported by Ralf Wildenhues.
105611 2007-03-01  Bruno Haible  <bruno@clisp.org>
105613         * build-aux/install-reloc: Remove object files left over by some
105614         compilers.
105615         Reported by Ralf Wildenhues.
105617 2007-03-01  Bruno Haible  <bruno@clisp.org>
105619         * build-aux/install-reloc: Break long lines.
105621 2007-03-01  Bruno Haible  <bruno@clisp.org>
105623         * doc/relocatable.texi: Document that it may not work on OpenBSD.
105624         Reported by Ralf Wildenhues.
105626 2007-03-01  Bruno Haible  <bruno@clisp.org>
105628         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
105629         include ordering constraints.
105631 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105633         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
105634         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
105635         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
105636         as another example.
105637         * lib/time_.h: Fix misspelling.
105638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105639         Require gl_HEADER_TIME_H_DEFAULTS.
105640         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
105641         * m4/time_r.m4 (gl_TIME_R): Likewise.
105642         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
105644 2007-03-01  Bruno Haible  <bruno@clisp.org>
105646         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
105647         * m4/utimens.m4 (gl_UTIMENS): Likewise.
105649 2007-03-01  Jim Meyering  <jim@meyering.net>
105651         * modules/xreadlink (Maintainer): Add my name.
105652         * modules/xreadlink-with-size (Depends-on): Alphabetize.
105654 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
105655             Bruno Haible  <bruno@clisp.org>
105657         * build-aux/install-reloc: Compile also c-ctype.c.
105658         * build-aux/relocatable.sh.in: New file.
105659         * doc/relocatable.texi: New file.
105660         * doc/relocatable-maint.texi: New file.
105661         * doc/gnulib.texi: Include relocatable-maint.texi.
105662         * lib/progreloc.c: Include unistd.h unconditionally.
105663         * lib/relocwrapper.c: Include unistd.h unconditionally.
105664         Include c-ctype.h.
105665         (add_dotbin): Use c_tolower.
105666         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
105667         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
105668         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
105669         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
105670         to m4/relocatable-lib.m4.
105671         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
105672         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
105673         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
105674         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
105675         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
105676         * modules/relocatable: New file.
105677         * modules/relocatable-lib: New file.
105678         * modules/relocatable-script: New file.
105680 2007-02-28  Bruno Haible  <bruno@clisp.org>
105682         Import --enable-relocatable infrastructure.
105683         * build-aux/config.libpath: New file, from GNU gettext.
105684         * build-aux/install-reloc: New file, from GNU gettext.
105685         * build-aux/reloc-ldflags: New file, from GNU gettext.
105686         * lib/relocatable.h: New file, from GNU gettext.
105687         * lib/relocatable.c: New file, from GNU gettext.
105688         * lib/relocwrapper.c: New file, from GNU gettext.
105689         * m4/relocatable.m4: New file, from GNU gettext.
105691 2007-02-28  Bruno Haible  <bruno@clisp.org>
105693         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
105695         * modules/xreadlink: New file, from GNU gettext with modifications.
105696         * lib/xreadlink.c: New file, from GNU gettext.
105697         * lib/xreadlink.h: Add comments.
105698         (xreadlink): New declaration.
105700         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
105701         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
105702         lib/xreadlink-with-size.c.
105703         (configure.ac): Remove gl_XREADLINK invocation.
105704         (Makefile.am): Augment lib_SOURCES.
105705         * m4/xreadlink.m4: Remove file.
105706         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
105707         (xreadlink_with_size): Renamed from xreadink.
105708         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
105709         * modules/canonicalize (Depends-on): Replace xreadlink with
105710         xreadlink-with-size.
105711         * lib/canonicalize.c (canonicalize_filename_mode): Update.
105713 2007-02-25  Jim Meyering  <jim@meyering.net>
105715         * build-aux/announce-gen: When complaining about excess arguments,
105716         list them.
105718 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
105720         * README: Document signed integer overflow situation more
105721         accurately.
105723 2007-02-25  Bruno Haible  <bruno@clisp.org>
105725         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
105726         'a' or 'A' conversion.
105728 2007-02-25  Bruno Haible  <bruno@clisp.org>
105730         * modules/filename: Renamed from modules/pathname.
105731         (Files): Replace lib/pathname.h with lib/filename.h. Replace
105732         lib/concatpath.c with lib/concat-filename.c.
105733         (Makefile.am): Update.
105734         (Include): Replace pathname.h with filename.h.
105735         * lib/filename.h: Renamed from lib/pathname.h.
105736         (concatenated_filename): Renamed from concatenated_pathname.
105737         * lib/concat-filename.c: Renamed from lib/concatpath.c.
105738         (concatenated_filename): Renamed from concatenated_pathname.
105739         * lib/findprog.c: Include filename.h instead of pathname.h.
105740         (find_in_path): Update.
105741         * lib/javacomp.c: Include filename.h instead of pathname.h.
105742         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
105743         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
105744         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
105745         is_oldgcj_14_13_usable, is_javac_usable): Update.
105746         * lib/javaexec.c: Include filename.h instead of pathname.h.
105747         (execute_java_class): Update.
105748         * modules/findprog: Update.
105749         * modules/javacomp: Update.
105750         * modules/javaexec: Update.
105751         * MODULES.html.sh (File system functions): Add 'filename', remove
105752         'pathname'.
105754 2007-02-25  Bruno Haible  <bruno@clisp.org>
105756         * modules/printf-frexpl-tests: New file.
105757         * tests/test-printf-frexpl.c: New file.
105759         * modules/printf-frexpl: New file.
105760         * lib/printf-frexpl.h: New file.
105761         * lib/printf-frexpl.c: New file.
105762         * m4/printf-frexpl.m4: New file.
105764 2007-02-25  Bruno Haible  <bruno@clisp.org>
105766         * modules/printf-frexp-tests: New file.
105767         * tests/test-printf-frexp.c: New file.
105769         * modules/printf-frexp: New file.
105770         * lib/printf-frexp.h: New file.
105771         * lib/printf-frexp.c: New file.
105772         * m4/printf-frexp.m4: New file.
105774 2007-02-25  Bruno Haible  <bruno@clisp.org>
105776         Assume automake >= 1.10 for the tests.
105777         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
105778         * modules/arctwo-tests: Likewise.
105779         * modules/argp-tests: Likewise.
105780         * modules/avltree-list-tests: Likewise.
105781         * modules/avltree-oset-tests: Likewise.
105782         * modules/avltreehash-list-tests: Likewise.
105783         * modules/carray-list-tests: Likewise.
105784         * modules/crc-tests: Likewise.
105785         * modules/des-tests: Likewise.
105786         * modules/gc-arcfour-tests: Likewise.
105787         * modules/gc-arctwo-tests: Likewise.
105788         * modules/gc-des-tests: Likewise.
105789         * modules/gc-hmac-md5-tests: Likewise.
105790         * modules/gc-hmac-sha1-tests: Likewise.
105791         * modules/gc-md2-tests: Likewise.
105792         * modules/gc-md4-tests: Likewise.
105793         * modules/gc-md5-tests: Likewise.
105794         * modules/gc-pbkdf2-sha1-tests: Likewise.
105795         * modules/gc-rijndael-tests: Likewise.
105796         * modules/gc-sha1-tests: Likewise.
105797         * modules/gc-tests: Likewise.
105798         * modules/getaddrinfo-tests: Likewise.
105799         * modules/hmac-md5-tests: Likewise.
105800         * modules/hmac-sha1-tests: Likewise.
105801         * modules/linked-list-tests: Likewise.
105802         * modules/linkedhash-list-tests: Likewise.
105803         * modules/lock-tests: Likewise.
105804         * modules/md2-tests: Likewise.
105805         * modules/md4-tests: Likewise.
105806         * modules/md5-tests: Likewise.
105807         * modules/rbtree-list-tests: Likewise.
105808         * modules/rbtree-oset-tests: Likewise.
105809         * modules/rbtreehash-list-tests: Likewise.
105810         * modules/read-file-tests: Likewise.
105811         * modules/rijndael-tests: Likewise.
105812         * modules/stdint-tests: Likewise.
105813         * modules/tls-tests: Likewise.
105815 2007-02-24  Bruno Haible  <bruno@clisp.org>
105817         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
105818         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
105819         function; instead check whether isnan with a double argument links.
105820         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
105821         function; instead check whether isnan with a 'long double' argument
105822         links.
105823         Reported by Eric Blake <ebb9@byu.net>.
105825 2007-02-24  Bruno Haible  <bruno@clisp.org>
105827         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
105828         defined.
105829         * lib/isnanl.c: Remove all code. Just include isnan.c.
105830         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
105832 2007-02-25  Jim Meyering  <jim@meyering.net>
105834         Avoid conflicting types for 'unsetenv' on FreeBSD.
105835         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
105836         conflicting with FreeBSD's (5.0 and 6.1) function declaration
105837         in stdlib.h.
105839 2007-02-24  Bruno Haible  <bruno@clisp.org>
105841         * modules/isnanl-nolibm-tests: New file.
105842         * tests/test-isnanl.c: New file.
105844         * modules/isnanl-nolibm: New file.
105845         * lib/isnanl.h: New file.
105846         * lib/isnanl.c: New file.
105847         * m4/isnanl.m4: New file.
105849 2007-02-24  Bruno Haible  <bruno@clisp.org>
105851         * modules/isnan-nolibm-tests: New file.
105852         * tests/test-isnan.c: New file.
105854         * modules/isnan-nolibm: New file.
105855         * lib/isnan.h: New file.
105856         * lib/isnan.c: New file.
105857         * m4/isnan.m4: New file.
105859 2007-02-24  Bruno Haible  <bruno@clisp.org>
105861         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
105862         assume that an exponent fits in 20 bits.
105864 2007-02-24  Jim Meyering  <jim@meyering.net>
105866         * m4/regex.m4: Update the description of the configure-time option,
105867         --without-included-regex, to state accurately what the defaults are,
105868         and perhaps to give people an idea why using this option is risky.
105870 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
105872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
105873         loops on small arguments.  This attempts to avoid the problem
105874         Bruno Haible reported for AIX 4.3.2 in
105875         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
105877 2007-02-23  Bruno Haible  <bruno@clisp.org>
105879         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
105880         Needed for help2man.
105882 2007-02-23  Karl Berry  <karl@gnu.org>
105884         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
105885         exists, foo.h should be cvs-ignored, not committed.
105887 2007-02-23  Eric Blake  <ebb9@byu.net>
105889         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
105890         * lib/stat-time.h (includes): Likewise.
105891         * lib/utimecmp.c (includes): Likewise.
105892         * lib/utimens.h (includes): Likewise.
105893         * lib/getdate.y (includes): Also include "timespec.h" for use
105894         internal to the module.
105895         * modules/utimens (Depends-on): Revert yesterday's patch.
105896         * modules/nanosleep (Depends-on): Add missing dependency.
105898 2007-02-22  Bruno Haible  <bruno@clisp.org>
105900         * lib/glob.c: Don't include getlogin_r.h.
105902 2007-02-22  Jim Meyering  <jim@meyering.net>
105904         * modules/utimens (Depends-on): Add timespec, required for
105905         utimens.h's inclusion of timespec.h.
105907 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
105909         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
105910         long unreadable paths in GNU/Linux.  Problem reported by Andreas
105911         Schwab in
105912         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
105913         I'll try to think of a better way to fix the Solaris problem.
105915         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
105916         like glibc; on Solaris 10, it fails with errno == EINVAL.
105917         POSIX says the behavior is unspecified if the first argument is NULL,
105918         so play it safe and never pass NULL to the system getcwd.
105920 2007-02-21  Jim Meyering  <jim@meyering.net>
105922         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
105923         of gettimeofday.  It would conflict with the one now always
105924         provided via sys_time_.h.  Reported by Matthew Woehlke, as
105925         an IRIX 6.5 build failure.
105927 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
105929         Minor fixups to port to Solaris 10 with Sun C 5.8.
105930         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
105931         * modules/getcwd (Depends-on): Add dirfd.
105932         * lib/putenv.c (putenv): #undef it.
105933         (rpl_putenv): New decl.
105934         (malloc, free): Include <stdlib.h> rather than prototyping separately.
105936 2007-02-20  Bruno Haible  <bruno@clisp.org>
105938         * modules/stdio-tests: New file.
105939         * tests/test-stdio.c: New file.
105941         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
105942         (Depends-on): Add stdio.
105943         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
105944         (Include): Use <stdio.h> instead of vsnprintf.h.
105945         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
105946         HAVE_DECL_VSNPRINTF.
105947         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
105949         * modules/snprintf (Files): Remove lib/snprintf.h.
105950         (Depends-on): Add stdio.
105951         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
105952         (Include): Use <stdio.h> instead of snprintf.h.
105953         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
105954         HAVE_DECL_SNPRINTF.
105955         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
105956         * lib/getaddrinfo.c: Likewise.
105958         * modules/stdio: New file.
105959         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
105960         * lib/snprintf.h: Remove file.
105961         * lib/vsnprintf.h: Remove file.
105962         * lib/.cppi-disable: Remove snprintf.h.
105963         * m4/stdio_h.m4: New file.
105964         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
105966 2007-02-20  Jim Meyering  <jim@meyering.net>
105968         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
105969         used by e.g., mingw.  From Bruno Haible.
105971 2007-02-19  Bruno Haible  <bruno@clisp.org>
105973         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
105974         warnings.
105975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
105977 2007-02-19  Bruno Haible  <bruno@clisp.org>
105979         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
105980         from mingw users.
105982 2007-02-19  Bruno Haible  <bruno@clisp.org>
105984         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
105985         warnings.
105986         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
105988 2007-02-19  Jim Meyering  <jim@meyering.net>
105990         Don't use FD after a successful "fdopendir (fd)".
105991         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
105992         Reset it by calling dirfd on the just-obtained DIR*.
105994         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
105995         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
105997 2007-02-18  Bruno Haible  <bruno@clisp.org>
105999         * lib/readlink.c: Include <unistd.h>.
106000         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
106001         HAVE_READLINK.
106002         * modules/readlink (Depends-on): Add unistd.
106003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106004         (Include): Add <unistd.h>.
106006         * lib/getlogin_r.h: Remove file.
106007         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
106008         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
106009         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
106010         HAVE_DECL_GETLOGIN_R.
106011         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
106012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106013         (Include): Use <unistd.h> instead of getlogin_r.h.
106015         * lib/getcwd.h: Remove file.
106016         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
106017         * lib/xgetcwd.c: Likewise.
106018         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
106019         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
106020         * modules/getcwd (Files): Remove lib/getcwd.h.
106021         (Depends-on): Add unistd.
106022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106023         (Include): Use <unistd.h> instad of getcwd.h.
106025         * lib/ftruncate.c: Include <unistd.h> first.
106026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
106027         Set HAVE_FTRUNCATE.
106028         * modules/ftruncate (Depends-on): Add unistd.
106029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106031         * lib/fchdir.c: Include <unistd.h> first.
106032         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
106033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
106034         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
106035         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106036         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
106038         * lib/dup2.c: Include <unistd.h> first.
106039         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
106040         HAVE_DUP2.
106041         * modules/dup2 (Depends-on): Add unistd.
106042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106044         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
106045         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
106046         REPLACE_CHOWN. Don't define chown as a macro here.
106047         * modules/chown (Depends-on): Add unistd.
106048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106050         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
106051         Add definition for GL_LINK_WARNING.
106052         (chown, dup2): New declarations.
106053         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
106054         link warning.
106055         (ftruncate): New declaration.
106056         (getcwd): New declaration, taken from old getcwd.h.
106057         (getlogin_r): New declaration, taken from old getlogin_r.h.
106058         (readlink): New declaration.
106059         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
106060         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
106061         (gl_PREREQ_UNISTD): Remove macro.
106062         (gl_UNISTD_MODULE_INDICATOR): New macro.
106063         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
106064         many new variables. Don't set UNISTD_H.
106065         * modules/unistd (Description): Change.
106066         (Depends-on): Add link-warning.
106067         (configure.ac): Update.
106068         (Makefile.am): Create unistd.h always. Substitute many new variables
106069         into it.
106071 2007-02-18  Bruno Haible  <bruno@clisp.org>
106073         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
106074         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
106075         HAVE_GETSUBOPT.
106076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
106077         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
106078         * lib/getsubopt.h: Remove file.
106079         * modules/getsubopt (Files): Remove lib/getsubopt.h.
106080         (Depends-on): Add stdlib.
106081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106082         (Includes): Use <stdlib.h> instead of getsubopt.h.
106083         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
106084         Set HAVE_GETSUBOPT.
106085         * lib/getsubopt.c: Don't include getsubopt.h.
106087 2007-02-18  Bruno Haible  <bruno@clisp.org>
106089         * modules/fchdir (Depends-on): Add dup2.
106091 2007-02-18  Bruno Haible  <bruno@clisp.org>
106093         * lib/stdlib_.h: Handle glibc's special invocation convention
106094         specially.
106096 2007-02-18  Bruno Haible  <bruno@clisp.org>
106098         * modules/stdlib-tests: New file.
106099         * tests/test-stdlib.c: New file.
106101         * modules/mkstemp (Files): Remove lib/mkstemp.h.
106102         (Depends-on): Add stdlib.
106103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106104         (Includes): Use <stdlib.h> instead of mkstemp.h.
106105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106106         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
106107         * lib/mkstemp.c: Don't include mkstemp.h.
106108         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
106109         * lib/stdlib--.h: Don't include mkstemp.h.
106111         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
106112         (Depends-on): Add stdlib.
106113         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106114         (Includes): Use <stdlib.h> instead of mkdtemp.h.
106115         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106116         HAVE_MKDTEMP.
106117         * lib/mkdtemp.c: Don't include mkdtemp.h.
106118         * lib/clean-temp.c: Don't include mkdtemp.h.
106120         * modules/exit (Files): Remove lib/exit.h.
106121         (Depends-on): Add stdlib.
106122         (Makefile.am): Remove lib_SOURCES.
106123         (Include): Use <stdlib.h> instead of exit.h.
106124         * lib/argmatch.c: Don't include exit.h.
106125         * lib/execute.c: Likewise.
106126         * lib/pagealign_alloc.c: Likewise.
106127         * lib/pipe.c: Likewise.
106128         * lib/wait-process.c: Likewise.
106129         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
106130         * lib/exitfail.c: Likewise.
106131         * lib/savewd.c: Likewise.
106132         * lib/xsetenv.c: Likewise.
106134         * modules/stdlib: New file.
106135         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
106136         and extra comments about mkstemp().
106137         * lib/exit.h: Remove file.
106138         * lib/mkdtemp.h: Remove file.
106139         * lib/mkstemp.h: Remove file.
106140         * m4/stdlib_h.m4: New file.
106141         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
106143 2007-02-18  Bruno Haible  <bruno@clisp.org>
106145         * modules/math-tests: New file.
106146         * tests/test-math.c: New file.
106148         * modules/math: New file.
106149         * modules/mathl (Files): Remove lib/mathl.h.
106150         (Depends-on): Add math.
106151         (Makefile.am): Don't mention mathl.h.
106152         (Include): Use <math.h> instead of mathl.h.
106153         * lib/math_.h: New file.
106154         * lib/mathl.h: Remove file.
106155         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
106156         mathl.h.
106157         * lib/asinl.c: Likewise.
106158         * lib/atanl.c: Likewise.
106159         * lib/ceill.c: Likewise.
106160         * lib/cosl.c: Likewise.
106161         * lib/expl.c: Likewise.
106162         * lib/floorl.c: Likewise.
106163         * lib/frexpl.c: Likewise.
106164         * lib/ldexpl.c: Likewise.
106165         * lib/logl.c: Likewise.
106166         * lib/sincosl.c: Likewise.
106167         * lib/sinl.c: Likewise.
106168         * lib/sqrtl.c: Likewise.
106169         * lib/tanl.c: Likewise.
106170         * lib/trigl.c: Likewise.
106171         * m4/math_h.m4: New file.
106172         * MODULES.html.sh (Mathematics): Add math.
106174 2007-02-17  Bruno Haible  <bruno@clisp.org>
106176         * modules/wctype-tests: New file.
106177         * tests/test-wctype.c: New file.
106179         * modules/wchar-tests: New file.
106180         * tests/test-wchar.c: New file.
106182         * modules/unistd-tests: New file.
106183         * tests/test-unistd.c: New file.
106185         * modules/time-tests: New file.
106186         * tests/test-time.c: New file.
106188         * modules/sysexits-tests: New file.
106189         * tests/test-sysexits.c: New file.
106191         * modules/sys_time-tests: New file.
106192         * tests/test-sys_time.c: New file.
106194         * modules/sys_stat-tests: New file.
106195         * tests/test-sys_stat.c: New file.
106197         * modules/sys_socket-tests: New file.
106198         * tests/test-sys_socket.c: New file.
106200         * modules/sys_select-tests: New file.
106201         * tests/test-sys_select.c: New file.
106203         * modules/string-tests: New file.
106204         * tests/test-string.c: New file.
106206         * modules/stdbool-tests: New file.
106207         * tests/test-stdbool.c: New file.
106209         * modules/netinet_in-tests: New file.
106210         * tests/test-netinet_in.c: New file.
106212         * modules/inttypes-tests: New file.
106213         * tests/test-inttypes.c: New file.
106215         * modules/fcntl-tests: New file.
106216         * tests/test-fcntl.c: New file.
106218         * modules/byteswap-tests: New file.
106219         * tests/test-byteswap.c: New file.
106221         * modules/arpa_inet-tests: New file.
106222         * tests/test-arpa_inet.c: New file.
106224 2007-02-17  Bruno Haible  <bruno@clisp.org>
106226         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
106227         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
106228         if the corresponding module is not enabled. Emit link warnings if
106229         the function is used nevertheless.
106230         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
106231         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
106232         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
106233         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
106234         * modules/inttypes (Depends-on): Add link-warning.
106235         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106236         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
106237         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
106238         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
106239         * modules/imaxdiv (configure.ac): Likewise.
106240         * modules/strtoimax (configure.ac): Likewise.
106241         * modules/strtoumax (configure.ac): Likewise.
106243 2007-02-17  Bruno Haible  <bruno@clisp.org>
106245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
106246         gl_STRING_MODULE_INDICATOR_DEFAULTS.
106247         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
106248         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
106250 2007-02-17  Bruno Haible  <bruno@clisp.org>
106252         * modules/link-warning: New file.
106253         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
106254         * lib/string_.h (GL_LINK_WARNING): Remove definition.
106255         * modules/string (Depends-on): Add link-warning.
106256         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106257         string.h.
106258         * MODULES.html.sh (Support for building libraries and executables): Add
106259         link-warning.
106261 2007-02-17  Bruno Haible  <bruno@clisp.org>
106263         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
106264         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
106265         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
106266         long lines.
106268 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
106269             Bruno Haible  <bruno@clisp.org>
106271         * modules/tmpfile: New file.
106272         * lib/tmpfile.c: New file.
106273         * m4/tmpfile.m4: New file.
106274         * MODULES.html.sh (func_all_modules): New section "Input/output".
106276 2007-02-15  Bruno Haible  <bruno@clisp.org>
106278         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
106279         (supports_delete_on_close): New function.
106280         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
106282 2007-02-14  Bruno Haible  <bruno@clisp.org>
106284         * modules/mbspcasecmp-tests: New file.
106285         * tests/test-mbspcasecmp.sh: New file.
106286         * tests/test-mbspcasecmp.c: New file.
106288         New module mbspcasecmp.
106289         * modules/mbspcasecmp: New file.
106290         * lib/mbspcasecmp.c: New file.
106291         * lib/string_.h (strncasecmp): Change warning message.
106292         (mbspcasecmp): New declaration.
106293         * m4/mbspcasecmp.m4: New file.
106294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106295         GNULIB_MBSPCASECMP.
106296         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
106297         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
106299 2007-02-14  Bruno Haible  <bruno@clisp.org>
106301         * modules/mbsncasecmp-tests: New file.
106302         * tests/test-mbsncasecmp.sh: New file.
106303         * tests/test-mbsncasecmp.c: New file.
106305         New module mbsncasecmp.
106306         * modules/mbsncasecmp: New file.
106307         * lib/mbsncasecmp.c: New file.
106308         * lib/string_.h (mbsncasecmp): New declaration.
106309         * m4/mbsncasecmp.m4: New file.
106310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106311         GNULIB_MBSNCASECMP.
106312         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
106313         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
106315 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
106317         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
106318         Verify that it doesn't overlap with our flags.
106319         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
106320         do not have the desired effect in multibyte locales; instead, use
106321         mbscasecmp.
106322         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
106323         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
106324         we don't require GNU fnmatch ourselves (if our users require it, they
106325         should do so explicitly).
106327         Fix regex code so it doesn't rely on strcasecmp.
106328         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
106329         Otherwise, include gnulib's langinfo.h.
106330         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
106331         undesirable behavior in non-C locales.  Instead, rely on localecharset.
106332         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
106333         * modules/regex (FILES): Remove m4/codeset.m4.
106334         (Depends-on): Add localcharset.  Remove strcase.
106336 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106338         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
106339         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
106341 2007-02-13  Bruno Haible  <bruno@clisp.org>
106343         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
106344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106346 2007-02-12  Bruno Haible  <bruno@clisp.org>
106348         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
106349         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
106350         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
106351         time warning rather than a link error.
106353 2007-02-12  Bruno Haible  <bruno@clisp.org>
106355         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
106356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
106357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106359 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
106361         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
106362         args, not 2.
106364 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
106366         New module 'time', so that apps can include <time.h> as per
106367         POSIX and GNU instead of separate include files like time_r.h
106368         and timegm.h.  This implementation tries out a simpler approach
106369         for replacing decls in standard include files (as compared to
106370         the string module), somewhat as an experiment.
106372         * config/srclist.txt: Comment out mktime.c for now.
106373         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
106374         since it doesn't apply any more.  Use generic wording instead.
106375         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
106376         'time'.
106377         * lib/time_.h, m4/time_h.m4, modules/time: New files.
106378         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
106379         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
106380         Don't include <sys/types.h>; no longer needed since we assume C89.
106381         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
106382         * lib/strftime.c: Likewise.
106383         * lib/time_r.c: Likewise.
106384         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
106385         * lib/nanosleep.c: Include <time.h> first, to check interface.
106386         * lib/strptime.c: Likewise.
106387         * lib/time_r.c: Likewise.
106388         * lib/timegm.c: Likewise.
106389         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
106390         needed.
106391         * lib/timegm.c: Don't include timegm.h; no longer needed.
106392         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
106393         time.h now handles any problems in that area.
106394         (struct timespec, nanosleep): Remove; time.h now arranges for these.
106395         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
106396         that time.h defines struct timespec.
106397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
106398         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
106399         handles that.
106400         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
106401         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
106402         needed.  Set REPLACE_LOCALTIME.
106403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
106404         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
106405         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
106406         nanosleep; time_h.m4 now does that.  Don't require
106407         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
106408         module handles this now.
106409         * modules/getdate (Depends-on): Remove timespec.  Add time.
106410         * modules/nanosleep (Depends-on): Likewise.
106411         * modules/stat-time (Depends-on): Likewise.
106412         * modules/nanosleep (Include): Include time.h, not timespec.h.
106413         * modules/strptime (Files): Remove lib/strptime.h.
106414         (Depends-on): Add extensions, time.
106415         (Include): Include time.h, not strptime.h.
106416         * modules/time_r (Files): Remove lib/time_r.h.
106417         (Depends-on): Add time.
106418         (Include): Include time.h, not time_r.h.
106419         * modules/timegm: Likewise.
106420         * modules/timespec (Description): Now does timespec-related decls
106421         of our own, instead of struct timespec itself.
106422         (Depends-on): Add time; remove extensions.
106423         (Maintainer): Add self.
106424         * modules/utimecmp (Depends-on): Add time; remove timespec.
106425         * modules/utimens (Depends-on): Likewise.
106426         * modules/xnanosleep (Depends-on): Likewise.
106428 2007-02-11  Bruno Haible  <bruno@clisp.org>
106430         * lib/c-strstr.c: Include allocsa.h.
106431         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
106432         * lib/c-strcasestr.c: Include allocsa.h.
106433         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
106434         * lib/strcasestr.c: Include allocsa.h.
106435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
106436         * lib/mbsstr.c: Include allocsa.h.
106437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
106438         allocsa/freesa instead of malloc/free.
106439         * lib/mbscasestr.c: Include allocsa.h.
106440         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
106441         allocsa/freesa instead of malloc/free.
106442         * modules/c-strstr (Depends-on): Add allocsa.
106443         * modules/c-strcasestr (Depends-on): Likewise.
106444         * modules/strcasestr (Depends-on): Likewise.
106445         * modules/mbsstr (Depends-on): Likewise.
106446         * modules/mbscasestr (Depends-on): Likewise.
106448 2007-02-11  Bruno Haible  <bruno@clisp.org>
106450         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
106452         * modules/mbsspn-tests: New file.
106453         * tests/test-mbsspn.sh: New file.
106454         * tests/test-mbsspn.c: New file.
106456 2007-02-11  Bruno Haible  <bruno@clisp.org>
106458         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
106460         * modules/mbspbrk-tests: New file.
106461         * tests/test-mbspbrk.sh: New file.
106462         * tests/test-mbspbrk.c: New file.
106464 2007-02-11  Bruno Haible  <bruno@clisp.org>
106466         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
106467         unneeded cast.
106469         * modules/mbscspn-tests: New file.
106470         * tests/test-mbscspn.sh: New file.
106471         * tests/test-mbscspn.c: New file.
106473 2007-02-11  Bruno Haible  <bruno@clisp.org>
106475         * modules/mbscasecmp-tests: New file.
106476         * tests/test-mbscasecmp.sh: New file.
106477         * tests/test-mbscasecmp.c: New file.
106479 2007-02-11  Bruno Haible  <bruno@clisp.org>
106481         Ensure O(n) worst-case complexity of mbscasestr.
106482         * lib/mbscasestr.c: Include stdbool.h.
106483         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
106484         functions.
106485         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
106486         the bookkeeping indicates that it's worth it.
106487         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
106489         * modules/mbscasestr-tests: New file.
106490         * tests/test-mbscasestr1.c: New file.
106491         * tests/test-mbscasestr2.sh: New file.
106492         * tests/test-mbscasestr2.c: New file.
106493         * tests/test-mbscasestr3.sh: New file.
106494         * tests/test-mbscasestr3.c: New file.
106495         * tests/test-mbscasestr4.sh: New file.
106496         * tests/test-mbscasestr4.c: New file.
106497         * m4/locale-tr.m4: New file.
106499 2007-02-11  Bruno Haible  <bruno@clisp.org>
106501         Ensure O(n) worst-case complexity of mbsstr.
106502         * lib/mbsstr.c: Include stdbool.h.
106503         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
106504         functions.
106505         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
106506         bookkeeping indicates that it's worth it.
106507         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
106509         * modules/mbsstr-tests: New file.
106510         * tests/test-mbsstr1.c: New file.
106511         * tests/test-mbsstr2.sh: New file.
106512         * tests/test-mbsstr2.c: New file.
106513         * tests/test-mbsstr3.sh: New file.
106514         * tests/test-mbsstr3.c: New file.
106515         * m4/locale-fr.m4: New file.
106517 2007-02-11  Bruno Haible  <bruno@clisp.org>
106519         * lib/mbsrchr.c (mbsrchr): Fix bug.
106521         * modules/mbsrchr-tests: New file.
106522         * tests/test-mbsrchr.sh: New file.
106523         * tests/test-mbsrchr.c: New file.
106525 2007-02-11  Bruno Haible  <bruno@clisp.org>
106527         * lib/mbschr.c (mbschr): Fix bug.
106529         * modules/mbschr-tests: New file.
106530         * tests/test-mbschr.sh: New file.
106531         * tests/test-mbschr.c: New file.
106532         * m4/locale-zh.m4: New file.
106534 2007-02-11  Bruno Haible  <bruno@clisp.org>
106536         Support for copying multibyte string iterators.
106537         * lib/mbiter.h: Include <string.h>.
106538         (mbiter_multi_copy): New function.
106539         (mbi_copy): New macro.
106540         * lib/mbuiter.h: Include <string.h>.
106541         (mbuiter_multi_copy): New function.
106542         (mbui_copy): New macro.
106544 2007-02-11  Bruno Haible  <bruno@clisp.org>
106546         New module mbslen.
106547         * modules/mbslen: New file.
106548         * lib/mbslen.c: New file.
106549         * lib/string_.h (mbslen): New declaration.
106550         * m4/mbslen.m4: New file.
106551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106552         GNULIB_MBSLEN.
106553         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
106554         * MODULES.html.sh (Internationalization functions): Add mbslen.
106556 2007-02-11  Bruno Haible  <bruno@clisp.org>
106558         Ensure O(n) worst-case complexity of strcasestr substitute.
106559         * lib/strcasestr.c: Include stdbool.h.
106560         (knuth_morris_pratt): New function.
106561         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
106562         bookkeeping indicates that it's worth it.
106563         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
106565         * modules/strcasestr-tests: New file.
106566         * tests/test-strcasestr.c: New file.
106568 2007-02-11  Bruno Haible  <bruno@clisp.org>
106570         Ensure O(n) worst-case complexity of c_strcasestr.
106571         * lib/c-strcasestr.c: Include stdbool.h, string.h.
106572         (knuth_morris_pratt): New function.
106573         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
106574         the bookkeeping indicates that it's worth it.
106575         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
106577         * modules/c-strcasestr-tests: New file.
106578         * tests/test-c-strcasestr.c: New file.
106580 2007-02-11  Bruno Haible  <bruno@clisp.org>
106582         Ensure O(n) worst-case complexity of c_strstr.
106583         * lib/c-strstr.c: Include stdbool.h, string.h.
106584         (knuth_morris_pratt): New function.
106585         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
106586         bookkeeping indicates that it's worth it.
106587         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
106589         * lib/c-strstr.c: Complete rewrite for maintainability.
106591         * modules/c-strstr-tests: New file.
106592         * tests/test-c-strstr.c: New file.
106594 2007-02-11  Bruno Haible  <bruno@clisp.org>
106596         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
106597         5.2.1 and earlier, whereby \055 was treated just like the range
106598         delimiter '-'.
106599         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
106601 2007-02-08  Bruno Haible  <bruno@clisp.org>
106603         * modules/regex (Depends-on): Add stdbool.
106604         Reported by Dalibor Topic <robilad@kaffe.org>.
106606 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
106608         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
106609         Prefer returning from main to exiting from it.
106610         Remove unnecessary parens after sizeof.
106612 2007-02-05  Bruno Haible  <bruno@clisp.org>
106614         New module mbssep.
106615         * modules/mbssep: New file.
106616         * lib/mbssep.c: New file.
106617         * lib/string_.h (strsep): Add a conditional link warning.
106618         (mbssep): New declaration.
106619         * m4/mbssep.m4: New file.
106620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106621         GNULIB_MBSSEP.
106622         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
106623         * MODULES.html.sh (Internationalization functions): Add mbssep.
106625 2007-02-05  Bruno Haible  <bruno@clisp.org>
106627         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
106628         Optimize search in case of 1 delimiter.
106630 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
106632         * lib/acl.h: Include sys/types.h before sys/acl.h.
106634 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
106636         Merge upstream fix for glibc bugzilla #3957:
106638         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
106640         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
106641         bit for RE_HAT_LISTS_NOT_NEWLINE.
106642         (build_charclass_op): Remove bogus comment.
106644 2007-02-05  Simon Josefsson  <simon@josefsson.org>
106646         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
106648 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
106650         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
106651         * lib/memmem.c [!defined _LIBC]: Include config.h.
106653 2007-02-04  Bruno Haible  <bruno@clisp.org>
106655         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
106656         warning message.
106658 2007-02-04  Bruno Haible  <bruno@clisp.org>
106660         New module mbstok_r.
106661         * modules/mbstok_r: New file.
106662         * lib/mbstok_r.c: New file.
106663         * lib/string_.h (strtok_r): Change argument names to match the
106664         comments. Add a conditional link warning.
106665         (mbstok_r): New declaration.
106666         * m4/mbstok_r.m4: New file.
106667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106668         GNULIB_MBSTOK_R.
106669         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
106670         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
106672 2007-02-04  Bruno Haible  <bruno@clisp.org>
106674         New module mbsspn.
106675         * modules/mbsspn: New file.
106676         * lib/mbsspn.c: New file.
106677         * lib/string_.h (strspn): Add a conditional link warning.
106678         (mbsspn): New declaration.
106679         * m4/mbsspn.m4: New file.
106680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106681         GNULIB_MBSSPN.
106682         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
106683         * MODULES.html.sh (Internationalization functions): Add mbsspn.
106685 2007-02-04  Bruno Haible  <bruno@clisp.org>
106687         New module mbspbrk.
106688         * modules/mbspbrk: New file.
106689         * lib/mbspbrk.c: New file.
106690         * lib/string_.h (strpbrk): Add a conditional link warning.
106691         (mbspbrk): New declaration.
106692         * m4/mbspbrk.m4: New file.
106693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106694         GNULIB_MBSPBRK.
106695         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
106696         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
106698 2007-02-04  Bruno Haible  <bruno@clisp.org>
106700         New module mbscspn.
106701         * modules/mbscspn: New file.
106702         * lib/mbscspn.c: New file.
106703         * lib/string_.h (strcspn): Add a conditional link warning.
106704         (mbscspn): New declaration.
106705         * m4/mbscspn.m4: New file.
106706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106707         GNULIB_MBSCSPN.
106708         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
106709         * MODULES.html.sh (Internationalization functions): Add mbscspn.
106711 2007-02-04  Bruno Haible  <bruno@clisp.org>
106713         New module mbscasestr, reduced goal of strcasestr.
106714         * modules/mbscasestr: New file.
106715         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
106716         (mbscasestr): Renamed from strcasestr.
106717         * lib/strcasestr.c: Don't include mbuiter.h.
106718         (strcasestr): Remove support for multibyte locales.
106719         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
106720         Change the conditional link warning.
106721         (mbscasestr): New declaration.
106722         * m4/mbscasestr.m4: New file.
106723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
106724         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
106725         REPLACE_STRCASESTR.
106726         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
106727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
106728         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
106729         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
106730         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
106731         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
106732         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
106733         (Depends-on): Remove mbuiter.
106734         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
106736 2007-02-04  Bruno Haible  <bruno@clisp.org>
106738         Simplify handling of strncasecmp.
106739         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
106740         the conditional link warning.
106741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
106742         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
106743         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
106744         * modules/strcase (configure.ac): Don't invoke
106745         gl_STRING_MODULE_INDICATOR.
106746         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
106748 2007-02-04  Bruno Haible  <bruno@clisp.org>
106750         New module mbscasecmp, reduced goal of strcasecmp.
106751         * modules/mbscasecmp: New file.
106752         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
106753         (mbscasecmp): Renamed from strcasecmp.
106754         * lib/strcasecmp.c: Don't include mbuiter.h.
106755         (strcasecmp): Remove support for multibyte locales.
106756         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
106757         Change the conditional link warning.
106758         (mbscasecmp): New declaration.
106759         * m4/mbscasecmp.m4: New file.
106760         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
106761         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
106762         REPLACE_STRCASECMP.
106763         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
106764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106765         GNULIB_MBSCASECMP.
106766         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
106767         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
106768         * modules/strcase (Files): Remove m4/mbrtowc.m4.
106769         (Depends-on): Remove mbuiter.
106770         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
106772 2007-02-04  Bruno Haible  <bruno@clisp.org>
106774         New module mbsstr. Remove module strstr.
106775         * modules/mbsstr: New file.
106776         * modules/strstr: Remove file.
106777         * lib/mbsstr.c: Renamed from lib/strstr.c.
106778         (mbsstr): Renamed from strstr.
106779         * lib/string_.h (strstr): Remove declaration. Change the conditional
106780         link warning.
106781         (mbsstr): New declaration.
106782         * m4/mbsstr.m4: New file.
106783         * m4/strstr.m4: Remove file.
106784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
106785         REPLACE_STRSTR.
106786         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
106787         Don't initialize GNULIB_STRSTR.
106788         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
106789         substitute GNULIB_STRSTR and REPLACE_STRSTR.
106790         * MODULES.html.sh (Internationalization functions): Add mbsstr.
106791         (Support for systems lacking ANSI C 89): Remove strstr.
106793 2007-02-04  Bruno Haible  <bruno@clisp.org>
106795         New module mbsrchr.
106796         * modules/mbsrchr: New file.
106797         * lib/mbsrchr.c: New file.
106798         * lib/string_.h (strrchr): Add a conditional link warning.
106799         (mbsrchr): New declaration.
106800         * m4/mbsrchr.m4: New file.
106801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106802         GNULIB_MBSRCHR.
106803         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
106804         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
106806 2007-02-04  Bruno Haible  <bruno@clisp.org>
106808         New module mbschr.
106809         * modules/mbschr: New file.
106810         * lib/mbschr.c: New file.
106811         * lib/string_.h (strchr): Add a conditional link warning.
106812         (mbschr): New declaration.
106813         * m4/mbschr.m4: New file.
106814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106815         GNULIB_MBSCHR.
106816         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
106817         * MODULES.html.sh (Internationalization functions): Add mbschr.
106819 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
106821         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
106823         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
106825 2007-02-04  Bruno Haible  <bruno@clisp.org>
106827         New module description section 'configure.ac-early'.
106828         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
106829         (func_get_autoconf_early_snippet): New function.
106830         (func_import, func_create_testdir): Use it. Remove special cases for
106831         modules 'extensions' and 'lock'.
106832         * modules/extensions (configure.ac-early): Require
106833         gl_USE_SYSTEM_EXTENSIONS.
106834         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
106836 2007-02-04  Bruno Haible  <bruno@clisp.org>
106838         Make use of gcj-4.3's -fsource and -ftarget option.
106839         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
106840         and if so try the options -fsource and -ftarget.
106841         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
106842         source_version, ftarget_option, target_version arguments.
106843         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
106844         (is_envjavac_oldgcj_14_14_usable): Renamed from
106845         is_envjavac_gcj_14_14_usable.
106846         (is_envjavac_oldgcj_14_13_usable): Renamed from
106847         is_envjavac_gcj_14_13_usable.
106848         (is_gcj_present): Update.
106849         (is_gcj_43, is_gcj43_usable): New functions.
106850         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
106851         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
106852         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
106853         try the options -fsource and -ftarget.
106855 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106857         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
106858         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
106859         larger value.
106861 2007-02-03  Jim Meyering  <jim@meyering.net>
106863         Give tools a better chance to allocate space for very large buffers.
106864         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
106866         Make pwd and readlink work also when run with an unreadable parent dir
106867         on systems with openat support.
106868         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
106869         provided getcwd function, even when we have openat support.
106870         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
106872 2007-02-02  Bruno Haible  <bruno@clisp.org>
106874         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
106875         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
106876         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
106877         portability problems if one of these functions is only used on specific
106878         platforms.
106879         Reported by Paul Eggert.
106881 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
106883         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
106884         is causing more trouble than it's curing.
106885         * lib/regex_internal.h (__mempcpy): Remove.
106886         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
106887         (and make the code a tad smaller to boot).
106888         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
106890 2007-02-02  Jim Meyering  <jim@meyering.net>
106892         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
106893         section, not in the Makefile.am: one.
106895 2007-02-02  Eric Blake  <ebb9@byu.net>
106897         * lib/strchrnul.c: Always include config.h first.
106899         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
106900         gnulib strstr is not necessary here.
106902 2007-02-02  Simon Josefsson  <simon@josefsson.org>
106904         * m4/socklen.m4: Fix typo.
106906 2007-02-02  Eric Blake  <ebb9@byu.net>
106908         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
106909         * modules/netinet_in (Makefile.am): Likewise.
106911 2007-02-01  Bruno Haible  <bruno@clisp.org>
106913         * lib/string_.h (GL_LINK_WARNING): New macro.
106914         (strcasecmp, strstr, strcasestr): If provided by the system,
106915         conditionally define as a macro that leads to a warning instead of to
106916         an error.
106917         (strncasecmp): Conditionally define as a macro that leads to a warning.
106919 2007-02-01  Karl Berry  <karl@gnu.org>
106921         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
106923 2007-02-01  Bruno Haible  <bruno@clisp.org>
106925         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
106926         renamings.
106928 2007-02-01  Eric Blake  <ebb9@byu.net>
106930         * modules/regex (Depends-on): Revert dependence on mempcpy.
106931         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
106932         module's definition of mempcpy.
106933         Reported by Paul Eggert.
106935 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
106937         * lib/string_.h: If the gnulib module XYZ is not present, undefine
106938         the symbol XYZ before redefining it.  This fixes a problem with
106939         programs that don't use XYZ, when compiled on systems that define
106940         XYZ to something else.
106942 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
106944         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
106945         occurs when "mkdir -m foo" creates a setgid directory that is (1)
106946         writeable to group or other and (2) is intended to have a special
106947         mode bit that is set or cleared.  In such a case, the directory
106948         should be neither group- nor other-writeable until the special
106949         mode bits are right.
106951 2007-01-31  Eric Blake  <ebb9@byu.net>
106953         * modules/mountlist (Depends-on): Add strstr.
106955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
106956         bug.
106957         * modules/string (Makefile.am): Remove redundant replacement.
106958         * modules/regex (Depends-on): Add mempcpy.
106960 2007-01-31  Bruno Haible  <bruno@clisp.org>
106962         New module description field 'Link'.
106963         * gnulib-tool (func_usage): Document --extract-link-directive.
106964         (sed_extract_prog): Recognize 'Link' directive.
106965         (func_get_link_directive): New function.
106966         (func_import): Show summary of link directives.
106967         Handle --extract-link-directive option.
106968         * modules/acl (Link): New section.
106969         * modules/clock-time (Link): New section.
106970         * modules/euidaccess (Link): New section.
106971         * modules/gettext (Link): New section.
106972         * modules/iconv (Link): New section.
106973         * modules/lock (Link): New section.
106974         * modules/nanosleep (Link): New section.
106975         * modules/readline (Link): New section.
106977 2007-01-27  Bruno Haible  <bruno@clisp.org>
106979         Enforce the use of gnulib modules for unportable <string.h> functions.
106980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
106981         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
106982         (gl_HEADER_STRING_H_BODY): Require it.
106983         * lib/string_.h: If the gnulib module XYZ is not present, redefine
106984         the symbol XYZ to one that gives a link error.
106985         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
106986         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
106987         * modules/mempcpy (configure.ac): Likewise.
106988         * modules/memrchr (configure.ac): Likewise.
106989         * modules/stpcpy (configure.ac): Likewise.
106990         * modules/stpncpy (configure.ac): Likewise.
106991         * modules/strcase (configure.ac): Likewise.
106992         * modules/strcasestr (configure.ac): Likewise.
106993         * modules/strchrnul (configure.ac): Likewise.
106994         * modules/strdup (configure.ac): Likewise.
106995         * modules/strndup (configure.ac): Likewise.
106996         * modules/strnlen (configure.ac): Likewise.
106997         * modules/strpbrk (configure.ac): Likewise.
106998         * modules/strsep (configure.ac): Likewise.
106999         * modules/strstr (configure.ac): Likewise.
107000         * modules/strtok_r (configure.ac): Likewise.
107002 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
107004         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
107006 2007-01-30  Jim Meyering  <jim@meyering.net>
107008         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
107010 2007-01-29  Bruno Haible  <bruno@clisp.org>
107012         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
107013         * lib/execute.c: Likewise.
107014         * lib/pipe.c: Likewise.
107015         * lib/printf-args.h: Likewise.
107016         * lib/printf-args.c: Likewise.
107017         * lib/printf-parse.c: Likewise.
107018         * lib/vasnprintf.c: Likewise.
107020 2007-01-29  Eric Blake  <ebb9@byu.net>
107022         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
107023         declaration.
107025 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
107027         * lib/strptime.h (strptime): Use 'restrict' for args where
107028         POSIX requires this.
107029         * lib/strptime.c (strptime): Likewise.
107030         Change license notice from LGPL to GPL, since gnulib-tool will
107031         change this as needed.
107032         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
107033         defined.
107034         Include "strptime.h" first, to check interface.
107035         Do not #undef _LIBC and _NL_CURRENT.
107036         Do not include <stdlib.h>; no longer needed.
107037         Include "time_r.h" and declare ptime_locale_status
107038         only if _LIBC is not defined.
107039         (__P): Remove unused macro.
107040         (match_string): Bring back glibc version, but use it only if _LIBC
107041         is defined.
107042         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
107043         Remove unnecessary assertion and abort() call.
107044         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
107045         * m4/strptime.m4: Fix serial number comment.
107046         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
107047         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
107048         (Depends-on): Add time_r.
107050 2007-01-29  Bruno Haible  <bruno@clisp.org>
107052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107053         strptime.
107054         * modules/strptime (Depends-on): Add stdbool.
107055         * lib/strptime.h: Include <time.h> always. Add comments.
107057 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107059         * modules/strptime: New file.
107060         * lib/strptime.h: New file.
107061         * lib/strptime.c: New file.
107062         * m4/strptime.m4: New file.
107064 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107066         * MODULES.html.sh: New module mpsort.
107067         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
107069         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
107070         a circularity problem with HP-UX ia64 reported by Bob Proulx in
107071         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
107072         All uses changed.
107073         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
107074         All uses changed.
107075         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
107076         to _Restrict_.
107077         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
107078         the parameter matches the prototype.
107080 2007-01-28  Jim Meyering  <jim@meyering.net>
107082         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
107083         sys/time.h here, reverting that part of the previous patch:
107084         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
107086 2007-01-28  Bruno Haible  <bruno@clisp.org>
107088         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
107089         value of $(SYS_TIME_H).
107090         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
107091         remove it conditionally, too. [added by Jim Meyering]
107092         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
107093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
107094         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
107095         GETTIMEOFDAY_REPLACEMENT to 1.
107097 2007-01-28  Bruno Haible  <bruno@clisp.org>
107099         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
107100         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
107101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
107102         Set UNISTD_H instead of UNISTD_H2.
107103         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
107105 2007-01-28  Bruno Haible  <bruno@clisp.org>
107107         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
107108         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
107110 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107112         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
107113         (func_create_testdir): Ensure C locale for `grep' and `tr'
107114         character ranges.
107115         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
107116         ACLOCAL_AMFLAGS parsing state machine.
107118 2007-01-27  Bruno Haible  <bruno@clisp.org>
107120         * modules/unistr/base: Update.
107122 2007-01-27  Bruno Haible  <bruno@clisp.org>
107124         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
107125         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
107126         * modules/unistr/u32-mbtouc-unsafe: Renamed from
107127         modules/unistr/u32-mbtouc.
107128         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
107129         * lib/unistr.h: Update.
107130         * lib/linebreak.c: Update.
107131         * modules/unistr/u32-mbtouc: Renamed from
107132         modules/unistr/u32-mbtouc-safe.
107133         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
107134         * lib/unistr.h: Update.
107135         * lib/unistr/u32-to-u8.c: Update.
107136         * lib/unistr/u32-to-u16.c: Update.
107138 2007-01-27  Bruno Haible  <bruno@clisp.org>
107140         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
107141         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
107142         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
107143         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
107144         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
107145         * modules/unistr/u16-mbtouc-unsafe: Renamed from
107146         modules/unistr/u16-mbtouc.
107147         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
107148         * lib/unistr.h: Update.
107149         * lib/linebreak.c: Update.
107150         * modules/linebreak: Update.
107151         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
107152         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
107153         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
107154         * modules/unistr/u16-mbtouc: Renamed from
107155         modules/unistr/u16-mbtouc-safe.
107156         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
107157         * lib/unistr.h: Update.
107158         * lib/unistr/u16-to-u8.c: Update.
107159         * modules/unistr/u16-to-u8: Update.
107160         * lib/unistr/u16-to-u32.c: Update.
107161         * modules/unistr/u16-to-u32: Update.
107163 2007-01-27  Bruno Haible  <bruno@clisp.org>
107165         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
107166         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
107167         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
107168         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
107169         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
107170         * modules/unistr/u8-mbtouc-unsafe: Renamed from
107171         modules/unistr/u8-mbtouc.
107172         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107173         * lib/unistr.h: Update.
107174         * lib/striconveh.c: Update.
107175         * modules/striconveh: Update.
107176         * lib/linebreak.c: Update.
107177         * modules/linebreak: Update.
107178         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
107179         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
107180         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
107181         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
107182         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
107183         * lib/unistr.h: Update.
107184         * lib/striconveh.c: Update.
107185         * modules/striconveh: Update.
107186         * lib/unistr/u8-to-u16.c: Update.
107187         * modules/unistr/u8-to-u16: Update.
107188         * lib/unistr/u8-to-u32.c: Update.
107189         * modules/unistr/u8-to-u32: Update.
107191 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107193         Sync from Libtool.
107194         * lib/argz.c: Do not include strings.h nor memory.h, include
107195         string.h unconditionally.  Patch by Simon Josefsson.
107197 2007-01-27  Bruno Haible  <bruno@clisp.org>
107199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
107200         from gl_HEADER_STRING_H_BODY.
107201         (gl_HEADER_STRING_H_BODY): Require it.
107202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
107203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
107204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
107205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
107206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
107207         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
107208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
107209         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
107210         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
107211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
107212         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
107213         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
107214         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
107215         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
107216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
107218 2007-01-27  Bruno Haible  <bruno@clisp.org>
107220         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
107221         check_PROGRAMS into noinst_PROGRAMS.
107222         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
107223         check_PROGRAMS in this case.
107224         (func_import): Set for_test to false.
107225         (func_create_testdir): Set for_test to true.
107227 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107228             Bruno Haible  <bruno@clisp.org>
107230         * modules/strcasestr (Files): Remove lib/strcasestr.h.
107231         (Depends-on): Add string.
107232         (Includes): Use <string.h> instead of strcasestr.h.
107233         * modules/string (Makefile.am): Also substitute the value of
107234         REPLACE_STRCASESTR.
107235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
107236         assume strcasestr is declared in <string.h> not <strings.h>. Also
107237         set REPLACE_STRCASESTR.
107238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
107239         REPLACE_STRCASESTR.
107240         * lib/strcasestr.h: Remove file.
107241         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
107242         * lib/string_.h (strcasestr): New declaration.
107244 2007-01-27  Bruno Haible  <bruno@clisp.org>
107246         * lib/string_.h: Use 'extern'.
107248 2007-01-27  Jim Meyering  <jim@meyering.net>
107250         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
107251         of set-but-not-used local, "q".
107253         * lib/mempcpy.c: Include <config.h> before <string.h>.
107254         This fixes a compilation error on HP-UX, due to the system's
107255         "restrict"-using mempcpy prototype.
107257 2007-01-26  Bruno Haible  <bruno@clisp.org>
107259         Small optimization.
107260         * lib/javacomp.c: Include c-strstr.h.
107261          (is_envjavac_gcj): Use c_strstr instead of strstr.
107262         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
107264 2007-01-26  Bruno Haible  <bruno@clisp.org>
107266         * MODULES.html.sh (Unicode string functions): Add the new modules.
107268         * modules/uniconv/u32-strconv-to-locale: New file.
107269         * lib/uniconv/u32-strconv-to-locale.c: New file.
107271         * modules/uniconv/u16-strconv-to-locale: New file.
107272         * lib/uniconv/u16-strconv-to-locale.c: New file.
107274         * modules/uniconv/u8-strconv-to-locale: New file.
107275         * lib/uniconv/u8-strconv-to-locale.c: New file.
107277         * modules/uniconv/u32-strconv-from-locale: New file.
107278         * lib/uniconv/u32-strconv-from-locale.c: New file.
107280         * modules/uniconv/u16-strconv-from-locale: New file.
107281         * lib/uniconv/u16-strconv-from-locale.c: New file.
107283         * modules/uniconv/u8-strconv-from-locale: New file.
107284         * lib/uniconv/u8-strconv-from-locale.c: New file.
107286         * modules/uniconv/u32-strconv-to-enc: New file.
107287         * lib/uniconv/u32-strconv-to-enc.c: New file.
107288         * modules/uniconv/u32-strconv-to-enc-tests: New file.
107289         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
107291         * modules/uniconv/u16-strconv-to-enc: New file.
107292         * lib/uniconv/u16-strconv-to-enc.c: New file.
107293         * lib/uniconv/u-strconv-to-enc.h: New file.
107294         * modules/uniconv/u16-strconv-to-enc-tests: New file.
107295         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
107297         * modules/uniconv/u8-strconv-to-enc: New file.
107298         * lib/uniconv/u8-strconv-to-enc.c: New file.
107299         * modules/uniconv/u8-strconv-to-enc-tests: New file.
107300         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
107302         * modules/uniconv/u32-strconv-from-enc: New file.
107303         * lib/uniconv/u32-strconv-from-enc.c: New file.
107304         * modules/uniconv/u32-strconv-from-enc-tests: New file.
107305         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
107307         * modules/uniconv/u16-strconv-from-enc: New file.
107308         * lib/uniconv/u16-strconv-from-enc.c: New file.
107309         * modules/uniconv/u16-strconv-from-enc-tests: New file.
107310         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
107312         * modules/uniconv/u8-strconv-from-enc: New file.
107313         * lib/uniconv/u8-strconv-from-enc.c: New file.
107314         * lib/uniconv/u-strconv-from-enc.h: New file.
107315         * modules/uniconv/u8-strconv-from-enc-tests: New file.
107316         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
107318         * modules/uniconv/u32-conv-from-enc: New file.
107319         * lib/uniconv/u32-conv-from-enc.c: New file.
107320         * modules/uniconv/u32-conv-from-enc-tests: New file.
107321         * tests/uniconv/test-u32-conv-from-enc.c: New file.
107323         * modules/uniconv/u16-conv-from-enc: New file.
107324         * lib/uniconv/u16-conv-from-enc.c: New file.
107325         * lib/uniconv/u-conv-from-enc.h: New file.
107326         * modules/uniconv/u16-conv-from-enc-tests: New file.
107327         * tests/uniconv/test-u16-conv-from-enc.c: New file.
107329         * modules/uniconv/u8-conv-from-enc: New file.
107330         * lib/uniconv/u8-conv-from-enc.c: New file.
107331         * modules/uniconv/u8-conv-from-enc-tests: New file.
107332         * tests/uniconv/test-u8-conv-from-enc.c: New file.
107334         * modules/uniconv/base: New file.
107335         * lib/uniconv.h: New file.
107337 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
107339         * doc/gnulib-tool.texi (Initial import): Update to match current
107340         behavior with strdup module.
107341         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
107342         * lib/memmem.h: Remove; all uses removed.  This is now done
107343         by <string.h>.
107344         * lib/mempcpy.h: Likewise.
107345         * lib/memrchr.h: Likewise.
107346         * lib/stpcpy.h: Likewise.
107347         * lib/stpncpy.h: Likewise.
107348         * lib/strcase.h: Likewise.
107349         * lib/strchrnul.h: Likewise.
107350         * lib/strdup.h: Likewise.
107351         * lib/strndup.h: Likewise.
107352         * lib/strnlen.h: Likewise.
107353         * lib/strpbrk.h: Likewise.
107354         * lib/strsep.h: Likewise.
107355         * lib/strstr.h: Likewise.
107356         * lib/strtok_r.h: Likewise.
107357         * lib/string_.h: New file.
107358         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
107359         Rely on <string.h> instead.
107360         * lib/canon-host.c: Likewise.
107361         * lib/chdir-long.c: Likewise.
107362         * lib/concatpath.c: Likewise.
107363         * lib/exclude.c: Likewise.
107364         * lib/fchdir.c: Likewise.
107365         * lib/getaddrinfo.c: Likewise.
107366         * lib/getcwd.c: Likewise.
107367         * lib/getsubopt.c: Likewise.
107368         * lib/glob.c: Likewise.
107369         * lib/hard-locale.c: Likewise.
107370         * lib/iconvme.c: Likewise.
107371         * lib/javacomp.c: Likewise.
107372         * lib/mempcpy.c: Likewise.
107373         * lib/memrchr.c: Likewise.
107374         * lib/regex_internal.h: Likewise.
107375         * lib/stpncpy.c: Likewise.
107376         * lib/strcasecmp.c: Likewise.
107377         * lib/strchrnul.c: Likewise.
107378         * lib/strdup.c: Likewise.
107379         * lib/striconv.c: Likewise.
107380         * lib/striconveh.c: Likewise.
107381         * lib/striconveha.c: Likewise.
107382         * lib/strncasecmp.c: Likewise.
107383         * lib/strndup.c: Likewise.
107384         * lib/strnlen.c: Likewise.
107385         * lib/strsep.c: Likewise.
107386         * lib/strstr.c: Likewise.
107387         * lib/strtok_r.c: Likewise.
107388         * lib/userspec.c: Likewise.
107389         * lib/w32spawn.h: Likewise.
107390         * lib/xstrndup.c: Likewise.
107391         * lib/mountlist.c (strstr): Remove decl.
107392         * m4/string_h.m4: New file.
107393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
107394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
107395         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
107396         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
107397         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
107398         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
107399         Set REPLACE_STRCASECMP if necessary.
107400         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
107401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
107402         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
107403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
107404         HAVE_DECL_STRDUP if necessary.
107405         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
107406         since gl_FUNC_STRNDUP does that now.
107407         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
107408         Check for decl here...
107409         (gl_PREREQ_STRNLEN): ... not here.
107410         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
107411         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
107412         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
107413         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
107414         necessary.
107415         * modules/string: New file.
107416         * modules/memmem (Files): Remove special-purpose include file.
107417         (Depends-on): Add string.
107418         (Include): Include <string.h>, not the removed file.
107419         * modules/mempcpy: Likewise.
107420         * modules/memrchr: Likewise.
107421         * modules/stpcpy: Likewise.
107422         * modules/stpncpy: Likewise.
107423         * modules/strcase: Likewise.
107424         * modules/strchrnul: Likewise.
107425         * modules/strdup: Likewise.
107426         * modules/strndup: Likewise.
107427         * modules/strnlen: Likewise.
107428         * modules/strpbrk: Likewise.
107429         * modules/strsep: Likewise.
107430         * modules/strstr: Likewise.
107431         * modules/strtok_r: Likewise.
107432         * tests/test-dirname.c: Don't include "strdup.h", since
107433         <string.h> now suffices.
107434         * tests/test-memmem.c: Don't include "memmem.h", since
107435         <string.h> now suffices.
107437 2007-01-25  Bruno Haible  <bruno@clisp.org>
107439         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
107440         *resultp is 0.
107442         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
107443         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
107444         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
107445         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
107447         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
107448         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
107449         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
107450         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
107451         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
107452         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
107454 2007-01-24  Bruno Haible  <bruno@clisp.org>
107456         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
107457         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
107458         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
107459         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
107460         gl_FUNC_FTS_CORE.
107461         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
107462         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
107463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
107464         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
107465         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
107466         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
107467         gl_FUNC_FCHOWNAT.
107468         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
107469         gl_FUNC_STRFTIME.
107470         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
107471         Reported by Ralf Wildenhues.
107473 2007-01-24  Bruno Haible  <bruno@clisp.org>
107475         Drop AC_REQUIRE calls that are redundant with the module dependencies.
107476         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
107477         gl_GETADDRINFO.
107478         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
107479         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
107480         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
107482 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
107484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
107485         Don't use 'exit'; just return from 'main'.
107486         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
107488         * lib/fnmatch_.h: Readjust white space and comments to match
107489         glibc, to avoid spurious diffs.
107491 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107493         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
107494         2004-12-01 change by Jakub Jelinek, since this code won't compile
107495         if !LIBC.  Problem reported by Bob Proulx.
107497 2007-01-23  Bruno Haible  <bruno@clisp.org>
107499         * lib/striconveh.c: Include c-strcaseeq.h.
107500         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
107501         * modules/striconveh (Depends-on): Add c-strcaseeq.
107503 2007-01-23  Bruno Haible  <bruno@clisp.org>
107505         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
107507         * modules/c-strcaseeq: New file.
107508         * lib/c-strcaseeq.h: New file.
107510         * modules/streq: New file.
107511         * lib/streq.h: New file.
107513 2007-01-23  Bruno Haible  <bruno@clisp.org>
107515         * modules/striconveha-tests: New file.
107516         * tests/test-striconveha.c: New file.
107518         * lib/striconveha.h: Include <stdbool.h>.
107519         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
107520         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
107521         (mem_iconveha_notranslit): Renamed from mem_iconveha.
107522         (mem_iconveha): New function.
107523         (str_iconveha_notranslit): Renamed from str_iconveha.
107524         (str_iconveha): New function.
107525         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
107526         c-strcase.
107528 2007-01-23  Bruno Haible  <bruno@clisp.org>
107530         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
107531         encodings without forgiving before trying any encoding with handler.
107532         (str_iconveha): Try all encodings without forgiving before trying any
107533         encoding with handler.
107535 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107537         Import the following changes from libc.
107539         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
107541         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
107543         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107545         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
107546         normal_bracket label.
107548         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
107550         [BZ #361]
107551         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
107552         to normal_bracket after fetching the next character.
107554 2007-01-22  Bruno Haible  <bruno@clisp.org>
107556         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
107557         argument.
107558         * lib/striconveh.c (iconv_carefully_1): New function.
107559         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
107560         argument.
107561         (str_cd_iconveh): Update.
107562         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
107563         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
107564         * tests/test-striconveh.c (MAGIC): New macro.
107565         (new_offsets): New function.
107566         (main): Test call with and without offsets.
107568 2007-01-22  Bruno Haible  <bruno@clisp.org>
107570         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
107571         * modules/sys_select (Makefile.am): Likewise.
107572         * modules/sys_socket (Makefile.am): Likewise.
107573         * modules/sys_time (Makefile.am): Likewise.
107575 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
107577         * modules/gettimeofday (License): Change from GPL to LGPL, since
107578         gettimeofday is a library function.
107580 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107582         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
107584 2007-01-21  Bruno Haible  <bruno@clisp.org>
107586         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
107588 2007-01-21  Bruno Haible  <bruno@clisp.org>
107590         * modules/striconveha: New file.
107591         * lib/striconveha.h: New file.
107592         * lib/striconveha.c: New file.
107593         * MODULES.html.sh (Internationalization functions): Add striconveha.
107594         * lib/striconv.c (str_iconv): Optimize the case of an empty input
107595         string.
107596         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
107598 2007-01-21  Bruno Haible  <bruno@clisp.org>
107600         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
107601         * lib/striconveh.c (str_iconveh): Likewise.
107603 2007-01-21  Bruno Haible  <bruno@clisp.org>
107605         * lib/striconveh.h (mem_iconveh): New declaration.
107606         * lib/striconveh.c (mem_iconveh): New function.
107607         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
107609 2007-01-21  Bruno Haible  <bruno@clisp.org>
107611         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
107613         * lib/striconveh.h (mem_cd_iconveh): Change specification.
107614         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
107615         original result buffer.
107616         (str_cd_iconveh): Update.
107617         * tests/test-striconveh.c (main): Update.
107619         * lib/striconv.h (mem_cd_iconv): Change specification.
107620         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
107621         result buffer.
107622         (str_cd_iconv): Update.
107623         * tests/test-striconv.c (main): Update.
107625 2007-01-21  Bruno Haible  <bruno@clisp.org>
107627         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
107629 2007-01-20  Jim Meyering  <jim@meyering.net>
107631         * lib/userspec.c (parse_with_separator): If a user or group string
107632         starts with "+", skip the corresponding name-to-ID look-up, since
107633         such a look-up must fail: user and group names may not include "+".
107635 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107637         * lib/poll.c: Include sys/time.h and time.h unconditionally,
107638         since we now assume the sys_time module.
107639         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
107640         check for sys/time.h; no longer needed.
107641         * modules/poll (Depends-on): Depend on sys_time.
107643 2007-01-18  Bruno Haible  <bruno@clisp.org>
107645         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
107646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
107648         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
107649         gettimeofday.
107651         * tests/test-gettimeofday.c: Include <time.h>.
107652         (dummy): Remove variable.
107654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
107655         gl_HEADER_SYS_TIME_H.
107656         (gl_HEADER_SYS_TIME_H): New macro.
107658         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
107659         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
107660         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
107661         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
107662         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
107663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
107664         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
107665         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
107666         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
107667         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
107668         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
107670         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
107671         last change; it caused a compilation error when cross-compiling to
107672         Cygwin.
107674 2007-01-18  Jim Meyering  <jim@meyering.net>
107676         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
107677         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
107678         than the race-prone "test -d sys || mkdir sys".
107679         (configure.ac): Use AC_PROG_MKDIR_P.
107680         * modules/sys_select: Likewise.
107681         * modules/sys_socket: Likewise.
107682         * modules/sys_time: Likewise.
107684 2007-01-18  Eric Blake  <ebb9@byu.net>
107686         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
107687         replace gettimeofday.
107688         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
107689         name, to avoid infinite recursion.
107691 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
107693         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
107694         module sys_time.
107695         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
107696         assume timespec.h defines struct timeval.
107697         * lib/settime.c: Likewise.
107698         * lib/utimens.c: Likewise.
107699         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
107700         since we now assume the gettimeofday module.
107701         * lib/tempname.c (__gen_tempname): Likewise.
107702         * lib/gettimeofday.h: Remove.
107703         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
107704         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
107705         Include <time.h>, for 'time()'.
107706         (localtime_buffer_addr): Also use this workaround if
107707         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
107708         to simplify the uses.  All uses changed.
107709         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
107710         that #undef is inside {}, and 'const' follows type name consistently.
107711         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
107712         (gettimeofday): Do not use the maximum possible value for
107713         tv->tv_usec, since that might break usages other than ls.c.
107714         Instead, we'll leave ls.c alone.  This undoes today's patch
107715         by Bruno.  Add a compile-time warning for 1s-clock resolution;
107716         we've never observed the problem but might as well keep the
107717         canary.
107718         * lib/nanosleep.c: Include timespec.h first, for interface check.
107719         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
107720         now assume the sys_time module.
107721         * lib/tempname.c: Likewise.
107722         * lib/timespec.h: Likewise.
107723         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
107724         needed.
107725         * lib/strftime.c: Likewise.
107726         * lib/timespec.h: Likewise.
107727         * lib/posixtm.c: Include posixtm.h first, for interface check.
107728         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
107729         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
107730         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
107731         * lib/sys_time_.h: New file.
107732         * lib/timespec.h (struct timespec): Use long int, not long.
107733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
107734         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
107735         Remove obsolescent call to AC_HEADER_TIME.
107736         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
107737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
107738         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
107739         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
107740         Likewise.
107741         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
107742         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
107743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
107744         into the sys_time module.  Check for gettimeofday just once.
107745         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
107746         for gettimeofday signature to just check the signature.  Merely
107747         compile it, since linking doesn't test signature.  Improve test for
107748         whether gettimeofday.o is actually needed.
107749         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
107750         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
107751         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
107752         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
107753         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
107754         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
107755         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
107756         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
107757         than worrying about sys/time.h.
107758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107759         Don't bother worrying about TIME_WITH_SYS_TIME.
107760         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
107761         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
107762         * m4/sys_time_h.m4: New file.
107763         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
107764         Don't include sys/time.h.  Return from main rather than exiting.
107765         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
107766         all uses changed.
107767         * modules/gethrxtime (Depends-on): Add sys_time.
107768         * modules/gettime (Depends-on): Likewise.
107769         * modules/gettimeofday (Depends-on): Likewise.
107770         * modules/nanosleep (Depends-on): Likewise.
107771         * modules/settime (Depends-on): Likewise.
107772         * modules/tempname (Depends-on): Likewise.
107773         * modules/utimens (Depends-on): Likewise.
107774         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
107775         (Include): Change back to <sys/time.h>.
107776         (Maintainer): Add self.
107777         * modules/sys_time: New file.
107778         * modules/tempname (Depends-on): Add gettimeofday.
107779         * tests/test-gettimeofday.c: Include <sys/time.h>
107780         rather than gettimeofday.h.
107782 2007-01-17  Bruno Haible  <bruno@clisp.org>
107784         * gnulib-tool (func_get_license): Revert last patch. Instead, let
107785         the license default to GPL.
107786         (func_create_testdir): Don't complain if a module is LGPL and its
107787         tests module depends on GPLed modules.
107789 2007-01-17  Bruno Haible  <bruno@clisp.org>
107791         * lib/gettimeofday.c (gettimeofday): Add code for the case
107792         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
107793         maximum possible value for tv->tv_usec, rather than the minimum one.
107795 2005-10-08  Martin Lambers  <marlam@marlam.de>
107796 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
107797 2007-01-16  Bruno Haible  <bruno@clisp.org>
107799         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
107800         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
107801         gl_FUNC_GETTIMEOFDAY.
107802         (Include): Add gettimeofday.h.
107803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
107804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
107805         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
107806         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
107807         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
107808         * lib/gettimeofday.h: New file.
107809         * lib/gettimeofday.c: Include <sys/timeb.h>.
107810         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
107811         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
107812         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
107813         fall back on time().
107815         * tests/test-gettimeofday.c: New file.
107816         * modules/gettimeofday-tests: New file.
107818 2007-01-16  Eric Blake  <ebb9@byu.net>
107820         * modules/fnmatch (Depends-on): Depend on wchar.
107821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
107822         * m4/fnmatch.m4: Likewise.
107823         * modules/mbchar (Makefile.am): Assume <wchar.h>.
107824         * m4/mbchar.m4: Likewise.
107825         * modules/mbswidth (Depends-on): Depend on wchar.
107826         * lib/mbswidth.c: Assume <wchar.h>.
107827         * m4/mbswidth.m4: Likewise.
107828         * modules/quotearg (Depends-on): Depend on wchar.
107829         * lib/quotearg.c: Assume <wchar.h>.
107830         * m4/quotearg.m4: Likewise.
107831         * modules/regex (Depends-on): Depend on wchar.
107832         * lib/regex_internal.h: Assume <wchar.h>.
107833         * m4/regex.m4: Likewise.
107834         * modules/stdint (Depends-on): Depend on wchar.
107835         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
107836         * m4/stdint.m4: Likewise.
107837         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
107838         * modules/strftime (Depends-on): Depend on wchar.
107839         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
107840         * modules/strtol (Depends-on): Depend on wchar.
107841         * lib/strtol.c: Assume <wchar.h>.
107842         * modules/wcwidth (Depends-on): Depend on wchar.
107843         * lib/wcwidth.h: Assume <wchar.h>.
107844         * m4/wcwidth.m4: Likewise.
107846 2007-01-16  Bruno Haible  <bruno@clisp.org>
107848         * modules/csharpexec-script: New, created from...
107849         * modules/csharpexec: ... this.
107851 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
107853         * modules/javaexec-script: New, created from...
107854         * modules/javaexec: ... this.
107856 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107858         * modules/poll (Dependencies): Add sys_select.
107860 2007-01-15  Jim Meyering  <jim@meyering.net>
107862         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
107863         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
107864         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
107865         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
107867 2007-01-15  Bruno Haible  <bruno@clisp.org>
107869         * modules/striconveh: New file.
107870         * lib/striconveh.h: New file.
107871         * lib/striconveh.c: New file.
107872         * MODULES.html.sh (Internationalization functions): Add striconveh.
107874         * modules/striconveh-tests: New file.
107875         * tests/test-striconveh.c: New file.
107877 2007-01-15  Bruno Haible  <bruno@clisp.org>
107879         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
107880         not from GNU libiconv or GNU libc.
107882 2007-01-15  Bruno Haible  <bruno@clisp.org>
107884         * doc/gnulib-intro.texi (Copyright): Explain the different license
107885         terms for module descriptions, autoconf macros, tests, documentation.
107887 2007-01-14  Bruno Haible  <bruno@clisp.org>
107889         * modules/striconv-tests: New file.
107890         * tests/test-striconv.c: New file.
107892 2007-01-14  Bruno Haible  <bruno@clisp.org>
107894         * modules/iconv-tests: New file.
107895         * tests/test-iconv.c: New file.
107897 2007-01-14  Bruno Haible  <bruno@clisp.org>
107899         * gnulib-tool (func_get_license): For test modules, use the license of
107900         the main module.
107902 2007-01-14  Bruno Haible  <bruno@clisp.org>
107904         * modules/iconv (Include): Clarify that <iconv.h> can only be included
107905         if iconv is found to exist.
107907 2007-01-14  Bruno Haible  <bruno@clisp.org>
107909         * modules/c-ctype-tests: New file.
107910         * tests/test-c-ctype.c: New file.
107912 2007-01-14  Bruno Haible  <bruno@clisp.org>
107914         * modules/binary-io-tests: New file.
107915         * tests/test-binary-io.sh: New file.
107916         * tests/test-binary-io.c: New file.
107918 2007-01-14  Bruno Haible  <bruno@clisp.org>
107920         * modules/array-oset-tests: New file.
107921         * tests/test-array_oset.c: New file.
107923 2007-01-14  Bruno Haible  <bruno@clisp.org>
107925         * modules/array-list-tests: New file.
107926         * tests/test-array_list.c: New file.
107928 2007-01-14  Bruno Haible  <bruno@clisp.org>
107930         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
107931         and make.
107932         Reported by Simon Josefsson in
107933         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
107935 2007-01-14  Bruno Haible  <bruno@clisp.org>
107937         * modules/allocsa-tests: New file.
107938         * tests/test-allocsa.c: New file.
107940 2007-01-14  Bruno Haible  <bruno@clisp.org>
107942         * modules/fchdir (Depends-on): Add absolute-header.
107943         * modules/unistd (Depends-on): Likewise.
107945 2006-12-30  Bruno Haible  <bruno@clisp.org>
107947         * modules/fchdir: New file.
107948         * modules/unistd (Files): Add lib/unistd_.h.
107949         (Makefile.am): Generate unistd.h from unistd_.h.
107950         * lib/fchdir.c: New file.
107951         * lib/dirent_.h: New file.
107952         * lib/unistd_.h: New file.
107953         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
107954         * m4/fchdir.m4: New file.
107955         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
107956         (gl_HEADER_UNISTD): Invoke it.
107957         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
107958         function.
107959         * lib/backupfile.c (opendir, closedir): Undefine.
107960         * lib/chown.c (open, close): Undefine.
107961         * lib/clean-temp.c (open, close): Undefine.
107962         * lib/copy-file.c (open, close): Undefine.
107963         * lib/execute.c (open, close): Undefine.
107964         * lib/fsusage.c (open, close): Undefine.
107965         * lib/gc-gnulib.c (open, close): Undefine.
107966         * lib/getcwd.c (opendir, closedir): Undefine.
107967         * lib/glob.c (opendir, closedir): Undefine.
107968         * lib/javacomp.c (open, close): Undefine.
107969         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
107970         * lib/openat-proc.c (open, close): Undefine.
107971         * lib/pagealign_alloc.c (open, close): Undefine.
107972         * lib/pipe.c (open, close): Undefine.
107973         * lib/progreloc.c (open, close): Undefine.
107974         * lib/savedir.c (opendir, closedir): Undefine.
107975         * lib/utime.c (open, close): Undefine.
107976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
107978 2007-01-10  Bruno Haible  <bruno@clisp.org>
107980         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
107982 2007-01-12  Eric Blake  <ebb9@byu.net>
107984         Provide a robust <wchar.h>.  Further simplifications are now
107985         possible in other modules, but not included here.
107986         * modules/wchar: New module.
107987         * m4/wchar.m4: New file.
107988         * lib/wchar_.h: Likewise.
107989         * modules/mbchar (Depends-on): Depend on wchar, as the first use
107990         of the new module.
107991         * MODULES.html.sh (Extended multibyte and wide character utilities):
107992         New section.
107994 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
107996         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
107997         to a reasonable default for memory allocation.
107998         (xreadlink): Don't allocate a huge buffer, to work around a buggy
107999         file system that reports garbage st_size values for symlinks.
108000         Problem reported by Liyang Hu.
108002 2007-01-11  Simon Josefsson  <simon@josefsson.org>
108004         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
108005         Emacs .#* auto-save files).
108007 2007-01-11  Bruno Haible  <bruno@clisp.org>
108009         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
108010         directory.
108012 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108014         Use @...@ consistently in lib/wctype_.h.
108015         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
108016         on it being set to 1 or 0.
108017         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
108018         go back to AC_SUBSTing it.
108019         * modules/wctype (Makefile.am): Undo previous change.
108021 2007-01-10  Eric Blake  <ebb9@byu.net>
108023         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
108024         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
108025         * modules/wctype (Makefile.am): Likewise.
108026         Reported by Chris McGuire.
108028 2007-01-10  Jim Meyering  <jim@meyering.net>
108030         fts.c: a small readability/maintainability improvement
108031         * lib/fts.c (fts_read): Make this code slightly more readable and
108032         maintainable by hoisting the "sp->fts_cur = p" assignments to
108033         immediately follow the statements that set P.  Derived from
108034         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
108036 2007-01-10  Eric Blake  <ebb9@byu.net>
108038         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
108039         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
108040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108041         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
108042         Reported by Chris McGuire.
108044 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108046         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
108047         in sed script.
108049 2007-01-09  Bruno Haible  <bruno@clisp.org>
108051         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
108052         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
108053         variables.
108054         (func_module): Use them.
108056 2007-01-09  Bruno Haible  <bruno@clisp.org>
108058         * modules/unistr/base: New file.
108059         * lib/unistr.h: New file.
108061         * modules/unistr/u8-to-u16: New file.
108062         * lib/unistr/u8-to-u16.c: New file.
108064         * modules/unistr/u8-to-u32: New file.
108065         * lib/unistr/u8-to-u32.c: New file.
108067         * modules/unistr/u16-to-u8: New file.
108068         * lib/unistr/u16-to-u8.c: New file.
108070         * modules/unistr/u16-to-u32: New file.
108071         * lib/unistr/u16-to-u32.c: New file.
108073         * modules/unistr/u32-to-u8: New file.
108074         * lib/unistr/u32-to-u8.c: New file.
108076         * modules/unistr/u32-to-u16: New file.
108077         * lib/unistr/u32-to-u16.c: New file.
108079         * modules/unistr/u8-check: New file.
108080         * modules/unistr/u16-check: New file.
108081         * modules/unistr/u32-check: New file.
108082         * lib/unistr/u8-check.c: New file.
108083         * lib/unistr/u16-check.c: New file.
108084         * lib/unistr/u32-check.c: New file.
108086         * modules/unistr/u8-chr: New file.
108087         * modules/unistr/u16-chr: New file.
108088         * modules/unistr/u32-chr: New file.
108089         * lib/unistr/u8-chr.c: New file.
108090         * lib/unistr/u16-chr.c: New file.
108091         * lib/unistr/u32-chr.c: New file.
108093         * modules/unistr/u8-cmp: New file.
108094         * modules/unistr/u16-cmp: New file.
108095         * modules/unistr/u32-cmp: New file.
108096         * lib/unistr/u8-cmp.c: New file.
108097         * lib/unistr/u16-cmp.c: New file.
108098         * lib/unistr/u32-cmp.c: New file.
108100         * modules/unistr/u8-cpy: New file.
108101         * modules/unistr/u16-cpy: New file.
108102         * modules/unistr/u32-cpy: New file.
108103         * lib/unistr/u8-cpy.c: New file.
108104         * lib/unistr/u16-cpy.c: New file.
108105         * lib/unistr/u32-cpy.c: New file.
108106         * lib/unistr/u-cpy.h: New file.
108108         * modules/unistr/u8-cpy-alloc: New file.
108109         * modules/unistr/u16-cpy-alloc: New file.
108110         * modules/unistr/u32-cpy-alloc: New file.
108111         * lib/unistr/u8-cpy-alloc.c: New file.
108112         * lib/unistr/u16-cpy-alloc.c: New file.
108113         * lib/unistr/u32-cpy-alloc.c: New file.
108114         * lib/unistr/u-cpy-alloc.h: New file.
108116         * modules/unistr/u8-endswith: New file.
108117         * modules/unistr/u16-endswith: New file.
108118         * modules/unistr/u32-endswith: New file.
108119         * lib/unistr/u8-endswith.c: New file.
108120         * lib/unistr/u16-endswith.c: New file.
108121         * lib/unistr/u32-endswith.c: New file.
108122         * lib/unistr/u-endswith.h: New file.
108124         * modules/unistr/u8-mblen: New file.
108125         * modules/unistr/u16-mblen: New file.
108126         * modules/unistr/u32-mblen: New file.
108127         * lib/unistr/u8-mblen.c: New file.
108128         * lib/unistr/u16-mblen.c: New file.
108129         * lib/unistr/u32-mblen.c: New file.
108131         * modules/unistr/u8-mbtouc: New file.
108132         * modules/unistr/u16-mbtouc: New file.
108133         * modules/unistr/u32-mbtouc: New file.
108134         * lib/unistr/u8-mbtouc.c: New file.
108135         * lib/unistr/u16-mbtouc.c: New file.
108136         * lib/unistr/u32-mbtouc.c: New file.
108138         * modules/unistr/u8-mbtouc-safe: New file.
108139         * modules/unistr/u16-mbtouc-safe: New file.
108140         * modules/unistr/u32-mbtouc-safe: New file.
108141         * lib/unistr/u8-mbtouc-safe.c: New file.
108142         * lib/unistr/u16-mbtouc-safe.c: New file.
108143         * lib/unistr/u32-mbtouc-safe.c: New file.
108145         * modules/unistr/u8-move: New file.
108146         * modules/unistr/u16-move: New file.
108147         * modules/unistr/u32-move: New file.
108148         * lib/unistr/u8-move.c: New file.
108149         * lib/unistr/u16-move.c: New file.
108150         * lib/unistr/u32-move.c: New file.
108151         * lib/unistr/u-move.h: New file.
108153         * modules/unistr/u8-next: New file.
108154         * modules/unistr/u16-next: New file.
108155         * modules/unistr/u32-next: New file.
108156         * lib/unistr/u8-next.c: New file.
108157         * lib/unistr/u16-next.c: New file.
108158         * lib/unistr/u32-next.c: New file.
108160         * modules/unistr/u8-prev: New file.
108161         * modules/unistr/u16-prev: New file.
108162         * modules/unistr/u32-prev: New file.
108163         * lib/unistr/u8-prev.c: New file.
108164         * lib/unistr/u16-prev.c: New file.
108165         * lib/unistr/u32-prev.c: New file.
108167         * modules/unistr/u8-set: New file.
108168         * modules/unistr/u16-set: New file.
108169         * modules/unistr/u32-set: New file.
108170         * lib/unistr/u8-set.c: New file.
108171         * lib/unistr/u16-set.c: New file.
108172         * lib/unistr/u32-set.c: New file.
108173         * lib/unistr/u-set.h: New file.
108175         * modules/unistr/u8-startswith: New file.
108176         * modules/unistr/u16-startswith: New file.
108177         * modules/unistr/u32-startswith: New file.
108178         * lib/unistr/u8-startswith.c: New file.
108179         * lib/unistr/u16-startswith.c: New file.
108180         * lib/unistr/u32-startswith.c: New file.
108181         * lib/unistr/u-startswith.h: New file.
108183         * modules/unistr/u8-stpcpy: New file.
108184         * modules/unistr/u16-stpcpy: New file.
108185         * modules/unistr/u32-stpcpy: New file.
108186         * lib/unistr/u8-stpcpy.c: New file.
108187         * lib/unistr/u16-stpcpy.c: New file.
108188         * lib/unistr/u32-stpcpy.c: New file.
108189         * lib/unistr/u-stpcpy.h: New file.
108191         * modules/unistr/u8-stpncpy: New file.
108192         * modules/unistr/u16-stpncpy: New file.
108193         * modules/unistr/u32-stpncpy: New file.
108194         * lib/unistr/u8-stpncpy.c: New file.
108195         * lib/unistr/u16-stpncpy.c: New file.
108196         * lib/unistr/u32-stpncpy.c: New file.
108197         * lib/unistr/u-stpncpy.h: New file.
108199         * modules/unistr/u8-strcat: New file.
108200         * modules/unistr/u16-strcat: New file.
108201         * modules/unistr/u32-strcat: New file.
108202         * lib/unistr/u8-strcat.c: New file.
108203         * lib/unistr/u16-strcat.c: New file.
108204         * lib/unistr/u32-strcat.c: New file.
108205         * lib/unistr/u-strcat.h: New file.
108207         * modules/unistr/u8-strchr: New file.
108208         * modules/unistr/u16-strchr: New file.
108209         * modules/unistr/u32-strchr: New file.
108210         * lib/unistr/u8-strchr.c: New file.
108211         * lib/unistr/u16-strchr.c: New file.
108212         * lib/unistr/u32-strchr.c: New file.
108214         * modules/unistr/u8-strcmp: New file.
108215         * modules/unistr/u16-strcmp: New file.
108216         * modules/unistr/u32-strcmp: New file.
108217         * lib/unistr/u8-strcmp.c: New file.
108218         * lib/unistr/u16-strcmp.c: New file.
108219         * lib/unistr/u32-strcmp.c: New file.
108221         * modules/unistr/u8-strcpy: New file.
108222         * modules/unistr/u16-strcpy: New file.
108223         * modules/unistr/u32-strcpy: New file.
108224         * lib/unistr/u8-strcpy.c: New file.
108225         * lib/unistr/u16-strcpy.c: New file.
108226         * lib/unistr/u32-strcpy.c: New file.
108227         * lib/unistr/u-strcpy.h: New file.
108229         * modules/unistr/u8-strcspn: New file.
108230         * modules/unistr/u16-strcspn: New file.
108231         * modules/unistr/u32-strcspn: New file.
108232         * lib/unistr/u8-strcspn.c: New file.
108233         * lib/unistr/u16-strcspn.c: New file.
108234         * lib/unistr/u32-strcspn.c: New file.
108235         * lib/unistr/u-strcspn.h: New file.
108237         * modules/unistr/u8-strdup: New file.
108238         * modules/unistr/u16-strdup: New file.
108239         * modules/unistr/u32-strdup: New file.
108240         * lib/unistr/u8-strdup.c: New file.
108241         * lib/unistr/u16-strdup.c: New file.
108242         * lib/unistr/u32-strdup.c: New file.
108243         * lib/unistr/u-strdup.h: New file.
108245         * modules/unistr/u8-strlen: New file.
108246         * modules/unistr/u16-strlen: New file.
108247         * modules/unistr/u32-strlen: New file.
108248         * lib/unistr/u8-strlen.c: New file.
108249         * lib/unistr/u16-strlen.c: New file.
108250         * lib/unistr/u32-strlen.c: New file.
108251         * lib/unistr/u-strlen.h: New file.
108253         * modules/unistr/u8-strmblen: New file.
108254         * modules/unistr/u16-strmblen: New file.
108255         * modules/unistr/u32-strmblen: New file.
108256         * lib/unistr/u8-strmblen.c: New file.
108257         * lib/unistr/u16-strmblen.c: New file.
108258         * lib/unistr/u32-strmblen.c: New file.
108260         * modules/unistr/u8-strmbtouc: New file.
108261         * modules/unistr/u16-strmbtouc: New file.
108262         * modules/unistr/u32-strmbtouc: New file.
108263         * lib/unistr/u8-strmbtouc.c: New file.
108264         * lib/unistr/u16-strmbtouc.c: New file.
108265         * lib/unistr/u32-strmbtouc.c: New file.
108267         * modules/unistr/u8-strncat: New file.
108268         * modules/unistr/u16-strncat: New file.
108269         * modules/unistr/u32-strncat: New file.
108270         * lib/unistr/u8-strncat.c: New file.
108271         * lib/unistr/u16-strncat.c: New file.
108272         * lib/unistr/u32-strncat.c: New file.
108273         * lib/unistr/u-strncat.h: New file.
108275         * modules/unistr/u8-strncmp: New file.
108276         * modules/unistr/u16-strncmp: New file.
108277         * modules/unistr/u32-strncmp: New file.
108278         * lib/unistr/u8-strncmp.c: New file.
108279         * lib/unistr/u16-strncmp.c: New file.
108280         * lib/unistr/u32-strncmp.c: New file.
108282         * modules/unistr/u8-strncpy: New file.
108283         * modules/unistr/u16-strncpy: New file.
108284         * modules/unistr/u32-strncpy: New file.
108285         * lib/unistr/u8-strncpy.c: New file.
108286         * lib/unistr/u16-strncpy.c: New file.
108287         * lib/unistr/u32-strncpy.c: New file.
108288         * lib/unistr/u-strncpy.h: New file.
108290         * modules/unistr/u8-strnlen: New file.
108291         * modules/unistr/u16-strnlen: New file.
108292         * modules/unistr/u32-strnlen: New file.
108293         * lib/unistr/u8-strnlen.c: New file.
108294         * lib/unistr/u16-strnlen.c: New file.
108295         * lib/unistr/u32-strnlen.c: New file.
108296         * lib/unistr/u-strnlen.h: New file.
108298         * modules/unistr/u8-strpbrk: New file.
108299         * modules/unistr/u16-strpbrk: New file.
108300         * modules/unistr/u32-strpbrk: New file.
108301         * lib/unistr/u8-strpbrk.c: New file.
108302         * lib/unistr/u16-strpbrk.c: New file.
108303         * lib/unistr/u32-strpbrk.c: New file.
108304         * lib/unistr/u-strpbrk.h: New file.
108306         * modules/unistr/u8-strrchr: New file.
108307         * modules/unistr/u16-strrchr: New file.
108308         * modules/unistr/u32-strrchr: New file.
108309         * lib/unistr/u8-strrchr.c: New file.
108310         * lib/unistr/u16-strrchr.c: New file.
108311         * lib/unistr/u32-strrchr.c: New file.
108313         * modules/unistr/u8-strspn: New file.
108314         * modules/unistr/u16-strspn: New file.
108315         * modules/unistr/u32-strspn: New file.
108316         * lib/unistr/u8-strspn.c: New file.
108317         * lib/unistr/u16-strspn.c: New file.
108318         * lib/unistr/u32-strspn.c: New file.
108319         * lib/unistr/u-strspn.h: New file.
108321         * modules/unistr/u8-strstr: New file.
108322         * modules/unistr/u16-strstr: New file.
108323         * modules/unistr/u32-strstr: New file.
108324         * lib/unistr/u8-strstr.c: New file.
108325         * lib/unistr/u16-strstr.c: New file.
108326         * lib/unistr/u32-strstr.c: New file.
108327         * lib/unistr/u-strstr.h: New file.
108329         * modules/unistr/u8-strtok: New file.
108330         * modules/unistr/u16-strtok: New file.
108331         * modules/unistr/u32-strtok: New file.
108332         * lib/unistr/u8-strtok.c: New file.
108333         * lib/unistr/u16-strtok.c: New file.
108334         * lib/unistr/u32-strtok.c: New file.
108335         * lib/unistr/u-strtok.h: New file.
108337         * modules/unistr/u8-uctomb: New file.
108338         * modules/unistr/u16-uctomb: New file.
108339         * modules/unistr/u32-uctomb: New file.
108340         * lib/unistr/u8-uctomb.c: New file.
108341         * lib/unistr/u16-uctomb.c: New file.
108342         * lib/unistr/u32-uctomb.c: New file.
108344         * MODULES.html.sh (Unicode string functions): Add the new modules.
108346 2007-01-08  Bruno Haible  <bruno@clisp.org>
108348         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
108349         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
108350         subdirectories.
108352 2007-01-08  Karl Berry  <karl@gnu.org>
108354         * doc/error.texi: mention that main() fns must set program_name
108355         when progname is used.
108357 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
108359         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
108360         WCTYPE_H is empty, for the benefit of builds from non-distclean
108361         directories.  Problem reported by Eric Blake in
108362         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
108364 2007-01-08  Bruno Haible  <bruno@clisp.org>
108366         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
108367         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
108368         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
108369         PROVIDE_CANONICALIZE_FILENAME_MODE.
108370         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
108372 2007-01-08  Bruno Haible  <bruno@clisp.org>
108374         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
108375         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
108376         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
108377         * lib/fts.c: Likewise.
108378         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
108380 2006-12-25  Bruno Haible  <bruno@clisp.org>
108382         * modules/utf8-ucs4-safe: New file.
108383         * lib/utf8-ucs4-safe.h: New file.
108384         * lib/unistr/utf8-ucs4-safe.c: New file.
108386         * modules/utf16-ucs4-safe: New file.
108387         * lib/utf16-ucs4-safe.h: New file.
108388         * lib/unistr/utf16-ucs4-safe.c: New file.
108390         * MODULES.html.sh (Unicode string functions): Add the new modules.
108392 2007-01-08  Bruno Haible  <bruno@clisp.org>
108394         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
108395         (Depends-on): Add unitypes.
108396         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
108397         (u8_mbtouc_aux): Move out to separate file.
108398         (u8_mbtouc): Use ucs4_t, uint8_t types.
108399         * lib/unistr/utf8-ucs4.c: New file.
108401         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
108402         (Depends-on): Add unitypes.
108403         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
108404         (u16_mbtouc_aux): Move out to separate file.
108405         (u16_mbtouc): Use ucs4_t, uint16_t types.
108406         * lib/unistr/utf16-ucs4.c: New file.
108408         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
108409         (Depends-on): Add unitypes.
108410         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
108411         (u8_uctomb_aux): Move out to separate file.
108412         (u8_uctomb): Use ucs4_t, uint8_t types.
108413         * lib/unistr/ucs4-utf8.c: New file.
108415         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
108416         (Depends-on): Add unitypes.
108417         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
108418         (u16_uctomb_aux): Move out to separate file.
108419         (u16_uctomb): Use ucs4_t, uint16_t types.
108420         * lib/unistr/ucs4-utf16.c: New file.
108422 2006-12-25  Bruno Haible  <bruno@clisp.org>
108424         * modules/unitypes: New file.
108425         * lib/unitypes.h: New file.
108426         * MODULES.html.sh (func_all_modules): New section "Unicode string
108427         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
108428         this section. Add unitypes.
108430 2007-01-08  Bruno Haible  <bruno@clisp.org>
108432         Avoid variable names that conflict with those from libtool.
108433         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
108434         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
108435         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
108436         library_names_spec to acl_library_names_spec, hardcode_* to
108437         acl_hardcode_*.
108438         Reported by Ralf Wildenhues.
108440 2007-01-08  Bruno Haible  <bruno@clisp.org>
108442         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
108443         definition.
108444         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
108445         definition.
108446         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
108447         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
108448         definition.
108449         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
108450         definition.
108451         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
108452         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
108453         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
108454         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
108455         definition.
108456         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
108457         definition.
108458         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
108459         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
108460         GC_USE_<algorithm>.
108461         * lib/gc-libgcrypt.c: Likewise.
108462         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
108463         * modules/gc-arctwo (configure.ac): Likewise.
108464         * modules/gc-des (configure.ac): Likewise.
108465         * modules/gc-hmac-md5 (configure.ac): Likewise.
108466         * modules/gc-hmac-sha1 (configure.ac): Likewise.
108467         * modules/gc-md2 (configure.ac): Likewise.
108468         * modules/gc-md4 (configure.ac): Likewise.
108469         * modules/gc-md5 (configure.ac): Likewise.
108470         * modules/gc-random (configure.ac): Likewise.
108471         * modules/gc-rijndael (configure.ac): Likewise.
108472         * modules/gc-sha1 (configure.ac): Likewise.
108474 2007-01-08  Bruno Haible  <bruno@clisp.org>
108476         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
108477         macro definition.
108478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
108479         definition.
108480         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
108481         definition.
108482         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
108483         * modules/fcntl-safer (configure.ac): Likewise.
108484         * modules/fopen-safer (configure.ac): Likewise.
108485         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
108486         GNULIB_FWRITEERROR macro definition.
108488 2007-01-08  Bruno Haible  <bruno@clisp.org>
108490         * m4/gnulib-common.m4: New file.
108491         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
108492         (func_get_filelist): Add m4/gnulib-common.m4.
108494 2007-01-08  Bruno Haible  <bruno@clisp.org>
108496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
108497         command.
108499 2007-01-08  Jim Meyering  <jim@meyering.net>
108501         Use a more robust test for a "can't happen" condition.
108502         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
108503         narrowed the st_size value.  Presuming the "can't happen" condition
108504         is true, that narrowing could conceivably convert an invalid st_size
108505         value into a valid one.  Instead, use a change based on Matthew
108506         Woehlke's original patch.
108508         Slight readability improvement: use an assert-like macro
108509         in place of literal "abort ()" uses.
108510         * lib/fts.c (fts_assert): Define.
108511         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
108512         Use this macro instead of a bare 'abort'.
108514 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
108516         Don't worry about using IRIX 5.3's wctype.h broken definitions;
108517         simply work around them.
108518         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
108519         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
108520         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
108521         declaring.
108522         Don't bother to define as macros, since the standard doesn't require it.
108523         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
108524         longer worry about IRIX 5.3.
108525         (HAVE_WCTYPE_CTMP_BUG): Remove.
108527 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
108529         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
108530         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
108531         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
108532         Problems reported by Georg Schwarz for IRIX 5.3.
108534         * gnulib-tool (autoconf_minversion): Take the maximum version number
108535         found, not the minimum.  Problem reported by James Youngman.
108537 2007-01-03  Karl Berry  <karl@gnu.org>
108539         * doc/error.texi: new file, explaining interaction with progname.
108540         * doc/gnulib.texi: include it.  Update copyright.
108542 2007-01-03  Simon Josefsson  <simon@josefsson.org>
108544         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
108545         AC_CANONICAL_HOST, to improve autobuild outputs.
108547 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
108548             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
108550         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
108551         sockets, server sockets, and other file descriptors.  Count errors
108552         to compute the return value.  Reorder the code a bit to be easier
108553         to follow.  Don't set event bits that were not requested (except
108554         POLLERR and POLLHUP).
108556 2007-01-01  Bruno Haible  <bruno@clisp.org>
108558         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
108560 2007-01-03  Jim Meyering  <jim@meyering.net>
108562         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
108564 2007-01-02  Bruno Haible  <bruno@clisp.org>
108566         * modules/settime (Include): Require timespec.h.
108567         * modules/nanosleep (Include): Likewise.
108569 2007-01-01  Bruno Haible  <bruno@clisp.org>
108571         * gnulib-tool (func_emit_copyright_notice): Bump year.
108572         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
108574 2007-01-01  Bruno Haible  <bruno@clisp.org>
108576         Improve support for OpenBSD.
108577         * build-aux/config.rpath (libname_spec): Export.
108578         (library_names_spec): New variable. Export.
108579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
108580         library_names_spec from the config.rpath output. Locate shared library
108581         through the name pattern in library_names_spec.
108583 2007-01-01  Eric Blake  <ebb9@byu.net>
108585         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
108587 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
108589         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
108590         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
108591         assume the C locale, and avoid an "eval" that could cause trouble.
108592         Problem with SORT reported by Bob Proulx.
108594         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
108595         Define.  Trivial patch from Henning Nielsen Lund, originally
108596         sent to bug-grep@gnu.org today.
108598 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
108600         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
108601         struct stat.  Problem reported by Henning Nielsen Lund.
108602         * lib/acl.c: Include acl.h first, to check interface.  Don't
108603         bother to include sys/types.h and sys/stat.h again.
108605 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
108607         Import the following change from libc; problem reported by
108608         Sven Verdoolaege.
108610         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
108612         [BZ #1373]
108613         * lib/argp.h: Remove __NTH for __argp_usage inline function.
108615 2006-12-28  Jim Meyering  <jim@meyering.net>
108617         * build-aux/announce-gen: Do not assume that the package
108618         builds any of tar.gz, tar.bz2, and .xdelta files.
108619         Suggestion from Simon Josefsson.
108621 2006-12-28  Simon Josefsson  <simon@josefsson.org>
108623         * modules/announce-gen: New file.
108625 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
108627         * lib/mbchar.h: Just include <wctype.h>; the wctype module
108628         handles its gotchas now.
108629         * lib/mbswidth.c: Likewise.
108630         * lib/wcwidth.h: Likewise.
108631         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
108632         and iswcntrl; the wctype module does this stuff now.
108633         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108635         * modules/mbchar (Depends-on): Add wctype.
108636         * modules/mbswidth (Depends-on): Likewise.
108637         * modules/wcwidth (Depends-on): Likewise.
108639 2006-12-27  Eric Blake  <ebb9@byu.net>
108641         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
108642         module uses more than what <wctype.h> is required to provide.
108644 2006-12-26  Eric Blake  <ebb9@byu.net>
108646         * gnulib-tool (sed_extract_prog): Avoid space-tab.
108648 2006-12-26  Eric Blake  <ebb9@byu.net>
108650         * modules/absolute-header: New module.
108651         * modules/fcntl (Depends-on): Depend on it.
108652         * modules/inttypes (Depends-on): Likewise.
108653         * modules/stdint (Depends-on): Likewise.
108654         * modules/sys_stat (Depends-on): Likewise.
108655         * modules/wctype (Depends-on): Likewise.
108656         * MODULES.html.sh (Support for building libraries and
108657         executables): Document it.
108659 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
108661         * gnulib-tool (SED): Remove, undoing previous change.
108662         The problem was that it broke coreutils on Solaris, because
108663         "sed --posix" leaked into a makefile.
108664         (sed): New alias, if 'alias' and GNU sed.
108666 2006-12-24  Jim Meyering  <jim@meyering.net>
108668         Work around an fchownat bug in glibc-2.4:
108669         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
108670         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
108671         in spite of the -P option.
108672         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
108673         New macros.
108674         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
108675         * modules/openat (Files): Add lib/fchownat.c.
108676         * lib/openat.c (fchownat): Don't define here.  Move to...
108677         * lib/fchownat.c: ...this new file.
108679 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
108681         Fix bug reported by Bruno Haible in
108682         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
108683         where quotearg.c didn't compile on Mac OS X 10.2 because it
108684         lacks <wchar.h> and wint_t.
108685         * lib/wctype_.h (__wctype_wint_t): New type.
108686         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
108687         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
108688         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
108689         Arg is now of type __wctype_wint_t, not wint_t.
108690         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
108691         substitute HAVE_WINT_T.
108692         * modules/wctype (Files): Add m4/wint_t.m4.
108693         (wctype.h): Substitute HAVE_WINT_T.
108695 2006-12-23  Bruno Haible  <bruno@clisp.org>
108697         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
108699 2006-12-23  Bruno Haible  <bruno@clisp.org>
108701         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
108702         S_ISLNK.
108703         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
108704         mingw.
108706 2006-12-22  Bruno Haible  <bruno@clisp.org>
108708         * lib/copy-file.c: Include acl.h.
108709         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
108710         Close the file descriptors only after being done with copy_acl.
108711         * modules/copy-file (Depends-on): Add acl.
108713 2006-12-22  Bruno Haible  <bruno@clisp.org>
108715         * gnulib-tool (SED): New variable.
108716         Use $SED instead of sed everywhere.
108718 2006-12-22  Bruno Haible  <bruno@clisp.org>
108720         * modules/no-c++: New file.
108721         * m4/no-c++.m4: New file.
108722         * MODULES.html.sh (Support for building libraries and executables):
108723         Add no-c++.
108725 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
108727         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
108728         Include <limits.h>, and use its INT_MAX to rewrite the
108729         j loop so that it does not overflow 'int'.  Problem reported by
108730         Ralf Wildenhues in
108731         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
108732         Play it safe by shifting left by 1 rather than multiplying by 2,
108733         as GCC is less likely to optimize this away when the value
108734         is signed (when it assumes overflow leads to undefined behavior).
108735         Also, don't assume time_t uses two's complement.
108737 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
108739         * MODULES.html.sh: New module wctype.
108740         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
108741         * lib/fnmatch.c: Don't bother to include <wchar.h> before
108742         <wctype.h>, since the new wctype module should fix this.
108743         * lib/quotearg.c: Include <wctype.h> unconditionally, since
108744         the wctype module should arrange for it.
108745         * lib/regex_internal.h: Likewise.
108746         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
108747         since the wctype module should handle this now.
108748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
108749         * modules/fnmatch (Depends-on): Add wctype.
108750         * modules/quotearg (Depends-on): Likewise.
108751         * modules/regex (Depends-on): Likewise.
108753 2006-12-19  Bruno Haible  <bruno@clisp.org>
108755         * lib/strdup.h [C++]: Wrap definitions in extern "C".
108756         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
108758 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108760         * modules/savewd (Depends-on): Fix dependency on fcntl.
108762 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
108764         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
108765         conforms to C99, rather than relying on the user's environment
108766         setting of STDINT_H.
108768 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
108769         and Eric Blake  <ebb9@byu.net>
108771         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
108772         This is more consistent with the other defines here.
108773         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
108774         Port to z/OS.  Problem reported by Paul Gilmartin.
108775         Change local vars to use gl_ prefix rather than ac_.
108776         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
108777         with other defines.
108778         * modules/double-slash-root: New module.
108779         * modules/dirname (Files): Remove m4/double-slash-root.m4.
108780         (Depends-on): Add double-slash-root.
108781         * MODULES.html.sh (File system functions): Mention new module.
108783 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
108785         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
108786         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
108787         This is for the benefit of gzip, which doesn't do i18n.
108789 2006-12-12  Jim Meyering  <jim@meyering.net>
108791         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
108792         Reported by Andreas Schwab <schwab@suse.de>.
108794 2006-12-12  Bruno Haible  <bruno@clisp.org>
108796         Merge these changes.
108797         2006-09-05  Bruno Haible  <bruno@clisp.org>
108798         * lib/iconvme.c (iconv_string): No need to save and restore errno when
108799         iconv_alloc succeeded.
108800         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
108801         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
108802         test for " && dest " at the end - dest is always != NULL there. Call
108803         iconv with 4xNULL arguments initially, to reset the state. Call iconv
108804         with 2xNULL arguments, also to flush the state storage. Handle the
108805         IRIX iconv behaviour. Realloc the final result, to throw away unused
108806         memory.
108808 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
108810         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
108811         and fchmodat unconditionally, since glibc 2.4 has them.
108812         Problem reported by Arkadiusz Miskiewicz.
108814 2006-12-10  Bruno Haible  <bruno@clisp.org>
108816         * gnulib-tool (func_import): Show the include files only for those
108817         modules that are copied and specified.
108818         Reported by Karl Berry.
108820 2006-12-08  Jim Meyering  <jim@meyering.net>
108822         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
108823         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
108825         * build-aux/announce-gen: Add two new options, both optional:
108826         --bootstrap-tools=TOOL_LIST
108827               a comma-separated list of tools, e.g.,
108828               autoconf,automake,bison,gnulib
108829         --gnulib-snapshot-date=DATE
108830               if gnulib is in the bootstrap tool list,
108831               then report this as the snapshot date.
108832               If not specified, use the current date/time.
108833               If you specify a date here, be sure it's UTC.
108835 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108837         * tests/test-argp-2.sh: Fix test to match actual output.
108838         (func_compare): Fix sed script to be portable.
108840 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
108842         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
108843         workaround for this case.  It is not autoconfigured now; offhand
108844         it's hard to see how to autoconfigure it.
108846 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
108848         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
108849         a directory that is about to be chowned.  Such a directory's
108850         initial file permissions should permit the owner only and this
108851         should not be changed until after the chown, since the group and
108852         other bits would be incorrect if they granted permission before
108853         the chown.
108855         Fix porting problem for iswctype reported by Georg Schwarz in:
108856         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
108857         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
108858         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
108859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
108860         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
108862 2006-12-03  Jim Meyering  <jim@meyering.net>
108864         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
108865         p->fts_statp may not yet be defined.
108866         (fts_read): Instead, set it in the caller, once p->fts_statp is
108867         sure to be defined, and corresponds to a top-level directory.
108868         This bug made du -x fail.  Here's the coreutils test case:
108869         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
108870         Reported by Mike Frysinger.
108872 2006-12-01  Jim Meyering  <jim@meyering.net>
108874         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
108875         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
108876         Reported by Simon Josefsson.
108878 2006-11-30  Jim Meyering  <jim@meyering.net>
108880         * m4/warning.m4: Use the all-permissive copyright notice
108881         recommended by RMS (rather than LGPL).
108882         * m4/vararrays.m4: Likewise.
108883         * m4/flexmember.m4: Likewise.
108885 2006-11-29  Bruno Haible  <bruno@clisp.org>
108887         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
108888         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
108889         using +=.
108890         Reported by Simon Josefsson <simon@josefsson.org>.
108892 2006-11-28  James Youngman  <jay@gnu.org>
108894         * README: Advise users that they might find the bug-gnulib@gnu.org
108895         and autotools-announce@gnu.org mailing lists useful.
108897 2006-11-28  Bruno Haible  <bruno@clisp.org>
108899         * m4/ptrdiff_max.m4: Remove file.
108901 2006-11-21  Bruno Haible  <bruno@clisp.org>
108903         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
108904         _AC_COMPUTE_INT.
108905         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108906         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
108907         _AC_COMPUTE_INT.
108908         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108909         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
108910         _AC_COMPUTE_INT.
108911         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108913 2006-11-28  Jim Meyering  <jim@meyering.net>
108915         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
108916         warning from "gcc -Wshadow" about shadowing the builtin.
108918 2006-11-27  Bruno Haible  <bruno@clisp.org>
108920         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
108921         _AC_COMPUTE_INT.
108922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108924 2006-11-27  Bruno Haible  <bruno@clisp.org>
108925             Paul Eggert  <eggert@cs.ucla.edu>
108927         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
108929 2006-11-26  Bruno Haible  <bruno@clisp.org>
108931         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
108932         noinst_LTLIBRARIES.
108934 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
108935             Bruno Haible  <bruno@clisp.org>
108937         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
108938         if compiling with "gcc -ansi".
108940 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
108942         Fix some incompatibilities with gcc -ansi -pedantic.
108943         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
108944         if compiling pedantically with GCC, unless it's C99 or later.
108945         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
108946         it mishandles gcc -ansi -pedantic as well.
108947         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
108948         if gcc -pedantic.
108949         * lib/regexec.c (check_node_accept_bytes): Don't use auto
108950         initializers for struct if -pedantic, unless it's C99 or later.
108952 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
108954         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
108955         Don't close an fd more than once. Identical atimes indicate
108956         success, not failure.
108958 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
108960         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
108962 2006-11-23  Jim Meyering  <jim@meyering.net>
108964         * build-aux/announce-gen: New file.  From coreutils.
108966 2006-11-22  Jim Meyering  <jim@meyering.net>
108968         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
108969         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
108970         (fts_read): Use a temporary to narrow the overused st_size member
108971         before using it in a switch statement.  Reported by Matthew Woehlke.
108973         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
108974         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
108976 2006-11-20  Bruno Haible  <bruno@clisp.org>
108978         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
108979         changequote instead of pairs of brackets.
108980         Reported by Andreas Schwab <schwab@suse.de>.
108982 2006-11-21  Jim Meyering  <jim@meyering.net>
108984         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
108985         so as to remain compatible with older compilers.
108986         Patch from Michael Deutschmann.
108988 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
108990         * MODULES.html.sh (File system functions): Add openat.
108992         * lib/openat.h (rpl_fstatat): New macro, if
108993         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
108994         (fstatat): Define to rpl_fstatat under the same conditions,
108995         unless COMPILING_FSTATAT.
108996         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
108997         seems to have the bug.
108998         * lib/fstatat.c: New file.
108999         * modules/openat (Files): Add it.
109001 2006-11-20  Bruno Haible  <bruno@clisp.org>
109003         * Makefile: New file.
109005 2006-11-20  Jim Meyering  <jim@meyering.net>
109007         The beginnings of syntax-related checks for gnulib.
109008         * lib/Makefile: New file.
109009         * lib/t-idcache: New script.  Ensure that the two halves of
109010         idcache.c stay in sync.
109012         * lib/idcache.c: Adjust comments in user- and group- portions to
109013         be more accurate, and to be consistent with one another.
109015 2006-11-20  Jim Meyering  <jim@meyering.net>
109017         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
109018         continue using the flexible array member (thus, this module performs
109019         half as many malloc calls), with the addition that...
109020         (getgroup, getuser): Consistently record a non-match via an empty
109021         "name" string, and map an empty string match to a NULL return value.
109022         * modules/idcache (Depends-on): Re-add flexmember.
109024         * lib/idcache.c (getuser): Remove all uses of the register keyword.
109025         (getuidbyname, getgroup, getgidbyname): Likewise.
109027         Use cleaner syntax: NULL rather than 0.
109028         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
109030 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109032         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
109033         It mishandled the case where the group was missing.
109034         Problem reported by Greg Schafer.
109035         * modules/idcache: Likewise.
109037 2006-11-18  Jim Meyering  <jim@meyering.net>
109039         * check-module (%exempt_header): Add exception for some
109040         conditionally-included headers.
109042         * modules/i-ring (Depends-on): Add verify.
109043         (License): Change to LGPL.
109045 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
109047         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
109048         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
109049         and inttostr.h.  Use snprintf rather than uinttostr, so that
109050         LGPLed code doesn't depend on GPLed.
109052 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
109054         * modules/inline (License): Change from GPL to LGPL.
109056 2006-11-17  Jim Meyering  <jim@meyering.net>
109058         * modules/d-type (License): Switch to LGPL.
109060 2006-11-15  Bruno Haible  <bruno@clisp.org>
109062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
109064 2006-11-15  Eric Blake  <ebb9@byu.net>
109066         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
109067         the module dependency.
109069 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109070             Bruno Haible  <bruno@clisp.org>
109072         * gnulib-tool (func_create_testdir): Add license consistency check.
109074 2006-11-15  Eric Blake  <ebb9@byu.net>
109076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
109077         random "(cached)" in configure output.
109079 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109081         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
109082         test for conforming inttypes.h is both announced and cached.
109084         * MODULES.html.sh (seen_modules, seen_files): New variables.
109085         (func_module): Rewrite to use a few less gnulib-tool and sed
109086         invocations.  Avoid a couple of quadratic algorithms for ...
109087         (missed_modules, missed_files): ... these, with ...
109088         (func_append, func_tmpdir): ... these new functions, from
109089         gnulib-tool.  Analogously, install traps for cleanup.
109091         * tests/test-gc.c (main): Remove unused variables.
109092         * tests/test-read-file.c: Include stdlib.h, for 'free'.
109094 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
109096         * modules/inttostr (License): Change to LGPL.
109098 2006-11-14  Eric Blake  <ebb9@byu.net>
109100         * modules/tempname (License): Change to LGPL.
109102 2006-11-14  Eric Blake  <ebb9@byu.net>
109104         * doc/functions.texi (Function Portability): *printf functions on
109105         Cygwin now understand all POSIX size specifiers.
109107 2006-11-14  Bruno Haible  <bruno@clisp.org>
109109         * modules/c-ctype (License): Change to LGPL.
109111 2006-11-12  Bruno Haible  <bruno@clisp.org>
109113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
109114         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
109115         for GNOME libraries, for which the include files are installed in
109116         subdirectories of $prefix/include.
109118 2006-11-12  Bruno Haible  <bruno@clisp.org>
109120         * m4/lib-link.m4: Require at least autoconf-2.54.
109121         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
109122         name to underscores for the --with option.
109124 2006-11-13  Bruno Haible  <bruno@clisp.org>
109126         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
109127         the tests directory.
109128         Reported by Ralf Wildenhues.
109130 2006-11-13  Bruno Haible  <bruno@clisp.org>
109132         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
109133         (func_emit_initmacro_end): Undo the override here.
109134         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
109135         Works around the famous automake error in coreutils.
109137 2006-11-13  Eric Blake  <ebb9@byu.net>
109139         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
109140         element, not its node.
109142 2006-11-12  Bruno Haible  <bruno@clisp.org>
109144         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
109145         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
109147 2006-11-12  Bruno Haible  <bruno@clisp.org>
109149         * gnulib-tool: New option --local-symlink.
109150         (func_usage): Document it.
109151         (lsymbolic): New variable.
109152         (func_import, func_create_testdir): If --symlink was not specified,
109153         test whether --local-symlink was specified and the file comes from
109154         the local_gnulib_dir.
109156 2006-11-12  Bruno Haible  <bruno@clisp.org>
109158         * gnulib-tool (func_ln): New function.
109159         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
109161 2006-11-12  Bruno Haible  <bruno@clisp.org>
109163         Finish support for source files in subdirectories.
109164         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
109165         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
109166         AUTOMAKE_OPTIONS.
109167         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
109169 2006-11-12  Bruno Haible  <bruno@clisp.org>
109171         * gnulib-tool (func_get_automake_snippet): Synthesize also an
109172         EXTRA_lib_SOURCES augmentation.
109173         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
109175 2006-11-12  Jim Meyering  <jim@meyering.net>
109177         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
109178         file descriptors.  This also averts a failure on systems with
109179         native openat support when a traversed directory lacks "x" access.
109180         * lib/fts_.h: Include "i-ring.h"
109181         (struct FTS) [fts_fd_ring]: New member.
109182         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
109183         (FCHDIR): Add parentheses.
109184         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
109185         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
109186         When descending, rather than simply closing the previous
109187         fts_cwd_fd value, push that file descriptor onto the ring.
109188         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
109189         (fts_open): Initialize the new fd_ring member.
109190         (fts_close): Clear the ring.
109191         (fts_safe_changedir): When possible, use our new fd_ring to skip
109192         the diropen and fstat and dev/ino comparison that would normally
109193         accompany a virtual `chdir ("..")'.
109195         * modules/fts (Depends-on): Add i-ring.
109196         * modules/i-ring: New module.
109197         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
109198         * m4/i-ring.m4: New file.
109200 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109202         * gnulib-tool (func_create_testdir): Fix replacement of
109203         `build-aux' in configure.ac.  Run autotools in gltests
109204         subdirectory.
109205         (func_create_testdir, func_create_megatestdir, test): There is
109206         no need for '--force' in most autotool invocations in a new
109207         tree.  Actually fail the whole test if any of the tools, or the
109208         configure or make stages fail.
109210         Sync from Automake.
109211         * build-aux/gnupload: Revert last change.  Add pointer to upload
109212         instructions of the GNU Maintenance Instructions.
109213         Suggestion by Karl Berry.
109215 2006-11-10  Jim Meyering  <jim@meyering.net>
109217         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
109219 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109221         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
109222         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
109223         (bind_textdomain_codeset) [! ENABLE_NLS]:
109224         Evaluate all the arguments.  That way, callers get compatible behavior
109225         if the arguments have side effects.  Also, it avoids some GCC
109226         diagnostics in some cases; Joel E. Denny reported problems when Bison
109227         was configured with --enable-gcc-warnigs.
109229 2006-11-10  Jim Meyering  <jim@meyering.net>
109231         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
109232         relevant options in CFLAGS (like -O, -fno-inline) are taken into
109233         account.
109235 2006-11-10  Jim Meyering  <jim@meyering.net>
109237         * modules/inline: New file/module.
109238         * modules/xalloc (Files): Remove m4/inline.m4.
109239         (Depends-on): Add inline, instead.
109240         * modules/oset: Likewise.
109241         * modules/list: Likewise.
109243 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109245         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
109246         Problem reported by Matthew Woehlke.
109248 2006-11-09  Bruno Haible  <bruno@clisp.org>
109250         * lib/tempname.c (gen_tempname): Remove variant that invokes
109251         __gen_tempname.
109252         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
109253         __gen_tempname.
109255 2006-11-08  Bruno Haible  <bruno@clisp.org>
109257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
109258         to 'yes' instead of 'cross-compiling'.
109260 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
109262         * lib/quotearg.h (quotearg_free): New decl.
109263         * lib/quotearg.c (quotearg_free): New function.
109264         (slot0, nslots, slotvec0, slotvec):
109265         Now file-scope so that quotearg_free can get at them.
109267 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109269         Sync from Automake.
109270         * build-aux/gnupload: Add missing 'gnu' to example URL.
109271         Report by Karl Berry.
109273 2006-11-08  Bruno Haible  <bruno@clisp.org>
109275         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
109276         Suggested by Paul Eggert.
109278 2006-11-08  Jim Meyering  <jim@meyering.net>
109280         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
109281         It's already included if !_LIBC.
109282         (fts_safe_changedir): Add a comment.
109284 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
109286         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
109287         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
109288         Matthew Woehlke.
109290         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
109291         definitions up, to avoid colliding with change below.
109292         (static_inline) [HAVE_INLINE]: New macro.
109293         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
109294         Provide extern decls when !HAVE_INLINE.  Do not define unless
109295         static_inline is defined, either by us or by xmalloc.c.  Use
109296         static_inline rather than static inline.
109297         (XCALLOC): Optimize sizeof(T) = 1 case.
109298         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
109300 2006-11-07  Bruno Haible  <bruno@clisp.org>
109302         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
109303         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
109304         AC_C_INLINE.
109305         * modules/xalloc (Files): Add m4/inline.m4.
109307 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109309         * README: Fix typo.
109310         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
109311         (Miscellanous Notes): ...from this.
109313 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
109315         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
109316         Mention that offsetof should be used instead of sizeof.
109317         From Bruno Haible.
109319 2006-11-07  Bruno Haible  <bruno@clisp.org>
109321         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
109323 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
109325         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
109326         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
109327         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
109328         (gl_tree_add_before, gl_tree_add_after):
109329         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
109330         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
109331         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
109332         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
109333         (gl_linked_add_after, gl_linked_add_at): Likewise.
109334         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
109335         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
109336         (gl_tree_add_before, gl_tree_add_after): Likewise.
109337         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
109338         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
109339         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
109341 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109343         * lib/gl_oset.h: Use C comment style, not C++ comment style.
109345 2006-11-06  Bruno Haible  <bruno@clisp.org>
109347         * m4/inline.m4: New file.
109348         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
109349         * modules/list (Files): Add m4/inline.m4.
109350         * modules/oset (Files): Likewise.
109352 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
109354         * lib/idcache.c: Include <stddef.h>, for offsetof.
109355         (struct userid.name): Change from char * to a flexible array member.
109356         All uses changed.
109357         * modules/idcache (Depends-on): Add flexmember.
109359         * MODULES.html.sh (Core language properties): New module flexmember.
109360         * modules/flexmember, m4/flexmember.m4: New files.
109362         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
109363         inline functions that are identical with the old xnmalloc_inline,
109364         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
109365         that we can avoid some unnecessary integer multiplications and
109366         divisions in the common case where the element size is known at
109367         compile time.
109368         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
109369         needed.
109370         (xnboundedmalloc): Remove.
109371         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
109372         arguments, for consistency with rest of this header.
109373         (xcharalloc): Rewrite using XNMALLOC.
109374         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
109375         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
109376         versions have been moved to lib/xalloc.h and renamed to be the
109377         non-*_inline versions.
109378         (xmalloc, xrealloc): Implement without reference to the xnmalloc
109379         and xnrealloc functions, since those functions are now inline and
109380         now call us.
109381         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
109382         renaming described above.
109383         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
109384         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
109385         captures the dependency in AC_C_INLINE.
109387         New module canonicalize-lgpl, proposed by Charles Wilson in
109388         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
109389         with a few small changes afterwards.
109390         * MODULES.html.sh (File system functions): New module
109391         canonicalize-lgpl.
109392         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
109393         and canonicalize_file_name.
109394         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
109395         * modules/canonicalize-lgpl: New files.
109397 2006-11-05  Bruno Haible  <bruno@clisp.org>
109399         * gnulib-tool (func_import, func_create_testdir): Create directories
109400         also for files in subdirectories of lib/.
109402 2006-11-05  Bruno Haible  <bruno@clisp.org>
109404         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
109405         ANSI C compliant.
109407 2006-11-03  Bruno Haible  <bruno@clisp.org>
109409         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
109410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
109411         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
109412         (xnboundedmalloc): New inline function.
109413         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
109414         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
109415         xmalloc.
109416         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
109417         xmalloc.
109418         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
109419         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
109420         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
109421         xmalloc.
109422         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
109423         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
109424         xmalloc.
109425         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
109426         gl_tree_add_after): Use XMALLOC instead of xmalloc.
109427         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
109428         xmalloc.
109429         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
109430         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
109431         gl_tree_add_after): Use XMALLOC instead of xmalloc.
109432         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
109433         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
109434         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
109435         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
109437 2006-11-03  Bruno Haible  <bruno@clisp.org>
109439         * lib/c-ctype.h [C++]: Define functions without name mangling.
109440         * lib/fwriteerror.h [C++]: Likewise.
109441         * lib/gcd.h [C++]: Likewise.
109442         * lib/linebreak.h [C++]: Likewise.
109444 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
109446         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
109447         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
109448         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
109449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
109450         Check for functions and headers just once.
109451         Check for declaration of canonicalize_file_name.
109452         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
109454 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
109456         * gnulib-tool (func_import): Fix typo in actioncmd.
109458 2006-11-02  Bruno Haible  <bruno@clisp.org>
109460         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
109461         newline sequence in the Makefile.am snippet as a space, like "make"
109462         does.
109463         Reported by Roger Persson <perrog@gmail.com>.
109465 2006-11-01  Bruno Haible  <bruno@clisp.org>
109467         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
109468         already declared in <string.h>.
109469         * lib/strcase.h (strncasecmp): Don't declare it if yes.
109471 2006-11-01  Bruno Haible  <bruno@clisp.org>
109473         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
109474         * lib/strcase.h: Include <string.h>.
109475         (strcasecmp): Define to rpl_strcasecmp here.
109477 2006-11-01  Bruno Haible  <bruno@clisp.org>
109479         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
109481 2006-11-01  Eric Blake  <ebb9@byu.net>
109483         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
109485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
109487 2006-10-29  Bruno Haible  <bruno@clisp.org>
109489         Make it compile in C++ mode.
109490         * lib/full-write.c (full_rw): Add a cast.
109492 2006-11-01  Bruno Haible  <bruno@clisp.org>
109494         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
109495         be POSIX compliant.
109496         Reported by Roger Persson <perrog@gmail.com>.
109498 2006-11-01  Eric Blake  <ebb9@byu.net>
109500         * lib/getopt_.h: Fix comments.
109502 2006-10-31  Eric Blake  <ebb9@byu.net>
109504         * modules/tmpdir (Depends-on): Add sys_stat.
109505         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
109506         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
109507         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
109508         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
109509         tempname.
109511 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
109513         Avoid some C++ diagnostics reported by Bruno Haible.
109514         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
109515         xmalloc.
109516         (quotearg_alloc): Use xcharalloc rather than xmalloc.
109517         (struct slotvec): Move to top level.
109518         (quotearg_n_options): Rewrite to avoid xmalloc.
109519         * lib/xalloc.h (xcharalloc): New function.
109520         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
109521         [defined __cplusplus]: Add function template that provides result
109522         type propagation.  This part of the change is from Bruno Haible.
109524 2006-10-29  Bruno Haible  <bruno@clisp.org>
109526         Make it compile in C++ mode.
109527         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
109528         * lib/strnlen1.c (strnlen1): Cast memchr result.
109529         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
109530         * lib/clean-temp.c (string_equals, string_hash): Add casts.
109531         (create_temp_dir): Rename local variable 'template'.
109532         (compile_csharp_using_sscli): Add cast.
109533         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
109534         * lib/findprog.c (find_in_path): Likewise.
109535         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
109536         * lib/wait-process.c (register_slave_subprocess): Likewise.
109538 2006-10-22  Bruno Haible  <bruno@clisp.org>
109540         * modules/tsearch: New file.
109541         * lib/tsearch.h: New file.
109542         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
109543         * m4/tsearch.m4: New file.
109544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
109546 2006-10-29  Eric Blake  <ebb9@byu.net>
109548         * lib/arcfour.c: Assume config.h.
109549         * lib/arctwo.c: Likewise.
109550         * lib/base64.c: Likewise.
109551         * lib/check-version.c: Likewise.
109552         * lib/crc.c: Likewise.
109553         * lib/des.c: Likewise.
109554         * lib/gc-gnulib.c: Likewise.
109555         * lib/gc-libgcrypt.c: Likewise.
109556         * lib/gc-pbkdf2-sha1.c: Likewise.
109557         * lib/getaddrinfo.c: Likewise.
109558         * lib/getdelim.c: Likewise.
109559         * lib/getline.c: Likewise.
109560         * lib/hmac-md5.c: Likewise.
109561         * lib/hmac-sha1.c: Likewise.
109562         * lib/iconvme.c: Likewise.
109563         * lib/md2.c: Likewise.
109564         * lib/md4.c: Likewise.
109565         * lib/memxor.c: Likewise.
109566         * lib/read-file.c: Likewise.
109567         * lib/readline.c: Likewise.
109568         * lib/rijndael-alg-fst.c: Likewise.
109569         * lib/rijndael-api-fst.c: Likewise.
109570         * lib/xgetdomainname.c: Likewise.
109572 2006-10-28  Eric Blake  <ebb9@byu.net>
109574         * lib/xstrndup.c: Assume config.h.
109576 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
109578         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
109579         stat-macros.h is now for our own macros, whereas stat_h is for
109580         macros in the <sys/stat.h> name space.
109581         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
109582         (STAT_MACROS_H): Remove.
109583         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
109584         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
109585         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
109586         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
109587         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
109588         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
109589         Move these macros to ...
109590         * lib/stat_.h: here.  Don't include stat-macros.h.
109591         * lib/canonicalize.c: Don't include stat-macros.h.
109592         * lib/chown.c: Likewise.
109593         * lib/euidaccess.c: Likewise.
109594         * lib/file-type.c: Likewise.
109595         * lib/filemode.c: Likewise.
109596         * lib/glob.c: Likewise.
109597         * lib/isapipe.c: Likewise.
109598         * lib/lchown.c: Likewise.
109599         * lib/lstat.c: Likewise.
109600         * lib/mkdir-p.c: Likewise.
109601         * lib/rmdir.c: Likewise.
109602         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
109603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
109604         unless mkdir isn't declared, to speed up 'configure'.
109605         Always create sys/stat.h, since it's unlikely any real sys/stat.h
109606         would define all the S_* symbols.
109607         * modules/canonicalize (Depends-on):
109608         Depend on sys_stat, not stat-macros.
109609         * modules/chown: Likewise.
109610         * modules/euidaccess: Likewise.
109611         * modules/filemode: Likewise.
109612         * modules/file-type: Likewise.
109613         * modules/glob: Likewise.
109614         * modules/isapipe: Likewise.
109615         * modules/lchown: Likewise.
109616         * modules/lstat: Likewise.
109617         * modules/mkancesdirs: Likewise.
109618         * modules/rmdir: Likewise.
109619         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
109620         * modules/modechange: Likewise.
109621         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
109622         (configure.ac): Remove gl_STAT_MACROS.
109623         * modules/sys_stat (Depends-on): Remove stat-macros.
109625 2006-10-27  Bruno Haible  <bruno@clisp.org>
109627         * m4/signed.m4: Remove file.
109628         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
109629         invocation.
109630         * modules/vasnprintf (Files): Remove m4/signed.m4.
109632 2006-10-27  Bruno Haible  <bruno@clisp.org>
109634         Update to GNU gettext 0.16.
109635         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
109636         m4/inttypes-h.m4, m4/signed.m4.
109637         * m4/gettext.m4: Update to GNU gettext 0.16.
109638         * m4/intl.m4: New file, from GNU gettext.
109639         * m4/intldir.m4: New file, from GNU gettext.
109640         * config/srclist.txt: Update
109642 2006-10-27  Eric Blake  <ebb9@byu.net>
109644         * MODULES.html.sh: Document tempname.
109645         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
109646         dependencies.
109647         (Files): Move lib/tempname.c...
109648         * modules/tempname: ...to this new module.
109649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
109650         (gl_PREREQ_TEMPNAME): Move...
109651         * m4/tempname.m4: ...to this new file.
109652         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
109653         * modules/sys_stat (Depends-on): Add stat-macros.
109654         * lib/stat_.h (includes): Pick up stat macros.
109655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
109656         if stat macros are broken.
109657         * lib/tempname.c (includes): No need to include "stat-macros.h".
109658         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
109659         (direxists, __path_search) [!_LIBC]: Don't compile these in
109660         gnulib; the tmpdir module covers that.
109661         * lib/tempname.h: New file.
109663 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
109665         * COPYING: Explain how gnulib-tool converts licence headers.
109666         Almost all wording by Eric Blake.
109668 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
109670         * lib/mbchar.h (is_basic_table): Make read-only.
109671         * lib/mbchar.c (is_basic_table): Likewise.
109672         Reported by John Darrington.
109674 2006-10-25  Bruno Haible  <bruno@clisp.org>
109676         * lib/progname.h (set_program_name): Undefine before defining.
109678 2006-10-25  Bruno Haible  <bruno@clisp.org>
109680         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
109681         false for non-gcc C++ compilers.
109682         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
109684 2006-10-24  Bruno Haible  <bruno@clisp.org>
109686         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
109687         iconv implementations like Irix iconv.
109689 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
109691         * modules/vararrays: New file.
109692         * m4/vararrays.m4: New file, taken from diffutils.
109693         * MODULES.html.sh: New module vararrays.
109695 2006-10-24  Karl Berry  <karl@gnu.org>
109697         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
109698         Don't call GNU Unix.
109700 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109702         * users.txt: Add Libtool.
109704         Sync from Libtool:
109706         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
109708         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
109709         to gnulib's policy of including config.h unconditionally.
109711 2006-10-24  Bruno Haible  <bruno@clisp.org>
109713         * modules/wcwidth (Files): Add m4/wint_t.m4.
109714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
109715         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
109717 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
109719         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
109720         to pacify GCC with some -W flags enabled.  Problem reported by
109721         Bruno Haible.
109723 2006-10-24  Jim Meyering  <jim@meyering.net>
109725         * MODULES.html.sh: Remove uinttostr.  It's not a module.
109726         Reported by Karl Berry.
109728 2006-10-23  Bruno Haible  <bruno@clisp.org>
109730         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
109732 2006-10-24  Bruno Haible  <bruno@clisp.org>
109734         * lib/gl_list.h: Use C comment style, not C++ comment style.
109736 2006-10-23  Eric Blake  <ebb9@byu.net>
109738         * lib/getaddrinfo.c (includes): Add missing include.
109740 2006-10-23  Bruno Haible  <bruno@clisp.org>
109741             Paul Eggert  <eggert@cs.ucla.edu>
109743         Ability to rename obstack_free.
109744         * lib/obstack.h (__obstack_free): New macro. Declare instead of
109745         obstack_free.
109746         (obstack_free): Invoke the __obstack_free macro.
109747         * lib/obstack.c (obstack_free): Use __obstack_free macro.
109749 2006-10-23  Bruno Haible  <bruno@clisp.org>
109750             Paul Eggert  <eggert@cs.ucla.edu>
109752         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
109753         __argc, __argv from the declaration. (They are defined as macros on
109754         mingw.)
109756 2006-10-22  Bruno Haible  <bruno@clisp.org>
109758         * doc/gnulib-intro.texi: New file.
109759         * doc/gnulib.texi: Include it.
109761 2006-10-21  Bruno Haible  <bruno@clisp.org>
109763         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
109764         "Introduction", "Miscellanous Notes", "Particular Modules".
109766 2006-10-21  Bruno Haible  <bruno@clisp.org>
109768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109769         Change mostlyclean-local rule to avoid sh syntax error from bash
109770         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
109772 2006-10-23  Jim Meyering  <jim@meyering.net>
109774         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
109775         in place of snprintf.
109777         * modules/inttostr (Files): Add lib/uinttostr.c.
109778         * lib/uinttostr.c (inttostr): New file/function.
109779         * lib/inttostr.h (uinttostr): Declare.
109780         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
109781         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
109782         Add uinttostr.
109783         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
109785 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
109787         * lib/canonicalize.c (ELOOP): Define if not already defined.
109788         Problem reported by Bruno Haible in
109789         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
109791 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
109793         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
109794         Problem reported by Perry Smith and Ville Laurikari.
109796         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
109797         uses.
109799 2006-10-19  Bruno Haible  <bruno@clisp.org>
109801         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
109802         for mingw.
109804 2006-10-19  Bruno Haible  <bruno@clisp.org>
109806         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
109807         Needed for mingw.
109809 2006-10-19  Bruno Haible  <bruno@clisp.org>
109811         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
109813 2006-10-19  Bruno Haible  <bruno@clisp.org>
109815         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
109816         it.
109818 2006-10-19  Bruno Haible  <bruno@clisp.org>
109820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
109821         invocation.
109823 2006-10-19  Bruno Haible  <bruno@clisp.org>
109825         * gnulib-tool (func_create_testdir): Don't include ftruncate and
109826         mountlist by default.
109828 2006-10-16  Bruno Haible  <bruno@clisp.org>
109830         * lib/c-strstr.c: Include c-strstr.h.
109832 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
109834         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
109835         in a slash.
109837 2006-10-18  Bruno Haible  <bruno@clisp.org>
109839         * lib/lock.h [C++]: Wrap definitions in extern "C".
109841 2006-10-18  Bruno Haible  <bruno@clisp.org>
109843         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
109844         gl_LIBOBJS list.
109846 2006-10-18  Bruno Haible  <bruno@clisp.org>
109848         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
109850 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
109852         * lib/xstrtol.h: Include gettext.h.
109853         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
109854         Problem reported by Eric Blake.
109855         * modules/xstrtol (Depends-on): Add gettext-h.
109857 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
109859         * lib/strftime.c (advance): New macro.
109860         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
109861         incomplete type, so you can't add 0 to it.  Problem and patch
109862         reported by Eelco Dolstra for dietlibc.
109864 2006-10-18  Jim Meyering  <jim@meyering.net>
109866         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
109867         type for a local, and rename it: s/up/user_proc/.
109869 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
109871         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
109872         READ_UTMP_USER_PROCESS.
109873         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
109875 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
109877         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
109878         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
109880 2006-10-17  Eric Blake  <ebb9@byu.net>
109882         * lib/sigprocmask.c (sigprocmask): Fix typo.
109884         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
109886         * modules/clean-temp (Makefile.am): Don't add to make output...
109887         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
109888         config.h.
109890 2006-10-17  Bruno Haible  <bruno@clisp.org>
109892         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
109893         differently if DEFAULT_TEXT_DOMAIN is set.
109895 2006-10-16  Bruno Haible  <bruno@clisp.org>
109897         * lib/clean-temp.c: Include fwriteerror.h.
109899 2006-10-16  Bruno Haible  <bruno@clisp.org>
109901         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
109903 2006-10-16  Bruno Haible  <bruno@clisp.org>
109905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
109906         * lib/sigprocmask.h: Include <sys/types.h>.
109907         (sigset_t): Use the system's definition if present.
109909 2006-10-17  Eric Blake  <ebb9@byu.net>
109911         * lib/xvasprintf.c (includes): Assume config.h.
109912         * lib/xasprintf.c (includes): Likewise.
109914 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
109916         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
109917         at least as wide as intmax_t.
109919 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
109921         (Imported from Automake.)
109922         * build-aux/gnupload: Update to version 1.1 of directive file.
109924 2006-10-16  Eric Blake  <ebb9@byu.net>
109926         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
109927         match Automake 1.10a.
109929 2006-10-14  Bruno Haible  <bruno@clisp.org>
109931         * modules/sigprocmask: New file.
109932         * lib/sigprocmask.h: New file.
109933         * lib/sigprocmask.c: New file.
109934         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
109935         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
109936         request sigprocmask.o.
109937         (gl_PREREQ_SIGPROCMASK): New macro.
109938         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
109939         (Depends-on): Add sigprocmask.
109940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
109941         gt_SIGNALBLOCKING. Test for 'raise' only once.
109942         * lib/fatal-signal.c: Include sigprocmask.h.
109943         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
109944         unblock_fatal_signals): Define always.
109945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109946         sigprocmask.
109948 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
109950         Sync from Automake.
109951         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
109952         which incorrectly sets the mode of an existing destination
109953         directory.  In some cases the unpatched install-sh could do the
109954         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
109955         system.  We hope this is rare in practice, but it's clearly worth
109956         fixing.  Problem reported by Alex Unleashed in
109957         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
109958         Also, don't bother to check for -m bugs unless we're using -m;
109959         suggested by Stepan Kasal.
109961 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109963         Sync from Automake.
109964         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
109965         `-c' flag, so they appear at the same position as in %FASTDEP%
109966         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
109967         which ignores unknown options only after the first non-option.
109968         Bug report against M4 by Nelson H. F. Beebe.
109970 2006-10-13  Jim Meyering  <jim@meyering.net>
109972         Fix a bug in yesterday's change.
109973         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
109974         p->fts_statp->st_dev would be used uninitialized.
109975         Ensures that we always call fts_stat on the very first entry.
109976         Miklos Szeredi reported that find -xdev stopped working.
109978 2006-10-12  Bruno Haible  <bruno@clisp.org>
109980         * gnulib-tool (func_get_automake_snippet): Append an automatically
109981         computed EXTRA_DIST augmentation.
109982         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
109983         * modules/alloca-opt (Makefile.am): Likewise.
109984         * modules/allocsa (Makefile.am): Likewise.
109985         * modules/arcfour (Makefile.am): Likewise.
109986         * modules/arctwo (Makefile.am): Likewise.
109987         * modules/argmatch (Makefile.am): Likewise.
109988         * modules/argz (Makefile.am): Likewise.
109989         * modules/atexit (Makefile.am): Likewise.
109990         * modules/backupfile (Makefile.am): Likewise.
109991         * modules/byteswap (Makefile.am): Likewise.
109992         * modules/c-strtod (Makefile.am): Likewise.
109993         * modules/c-strtold (Makefile.am): Likewise.
109994         * modules/calloc (Makefile.am): Likewise.
109995         * modules/canon-host (Makefile.am): Likewise.
109996         * modules/canonicalize (Makefile.am): Likewise.
109997         * modules/chdir-long (Makefile.am): Likewise.
109998         * modules/chdir-safer (Makefile.am): Likewise.
109999         * modules/check-version (Makefile.am): Likewise.
110000         * modules/chown (Makefile.am): Likewise.
110001         * modules/cloexec (Makefile.am): Likewise.
110002         * modules/close-stream (Makefile.am): Likewise.
110003         * modules/closeout (Makefile.am): Likewise.
110004         * modules/crc (Makefile.am): Likewise.
110005         * modules/csharpexec (Makefile.am): Likewise.
110006         * modules/cycle-check (Makefile.am): Likewise.
110007         * modules/des (Makefile.am): Likewise.
110008         * modules/dev-ino (Makefile.am): Likewise.
110009         * modules/dirfd (Makefile.am): Likewise.
110010         * modules/dirname (Makefile.am): Likewise.
110011         * modules/dup2 (Makefile.am): Likewise.
110012         * modules/eealloc (Makefile.am): Likewise.
110013         * modules/error (Makefile.am): Likewise.
110014         * modules/euidaccess (Makefile.am): Likewise.
110015         * modules/exclude (Makefile.am): Likewise.
110016         * modules/exitfail (Makefile.am): Likewise.
110017         * modules/fcntl-safer (Makefile.am): Likewise.
110018         * modules/fcntl (Makefile.am): Likewise.
110019         * modules/file-type (Makefile.am): Likewise.
110020         * modules/fileblocks (Makefile.am): Likewise.
110021         * modules/filemode (Makefile.am): Likewise.
110022         * modules/filenamecat (Makefile.am): Likewise.
110023         * modules/fnmatch (Makefile.am): Likewise.
110024         * modules/fopen-safer (Makefile.am): Likewise.
110025         * modules/fpending (Makefile.am): Likewise.
110026         * modules/fprintftime (Makefile.am): Likewise.
110027         * modules/free (Makefile.am): Likewise.
110028         * modules/fsusage (Makefile.am): Likewise.
110029         * modules/ftruncate (Makefile.am): Likewise.
110030         * modules/fts (Makefile.am): Likewise.
110031         * modules/gc-arcfour (Makefile.am): Likewise.
110032         * modules/gc-des (Makefile.am): Likewise.
110033         * modules/gc-hmac-md5 (Makefile.am): Likewise.
110034         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
110035         * modules/gc-md4 (Makefile.am): Likewise.
110036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110037         * modules/gc-sha1 (Makefile.am): Likewise.
110038         * modules/gc (Makefile.am): Likewise.
110039         * modules/getaddrinfo (Makefile.am): Likewise.
110040         * modules/getcwd (Makefile.am): Likewise.
110041         * modules/getdelim (Makefile.am): Likewise.
110042         * modules/getdomainname (Makefile.am): Likewise.
110043         * modules/getgroups (Makefile.am): Likewise.
110044         * modules/gethostname (Makefile.am): Likewise.
110045         * modules/gethrxtime (Makefile.am): Likewise.
110046         * modules/getline (Makefile.am): Likewise.
110047         * modules/getloadavg (Makefile.am): Likewise.
110048         * modules/getlogin_r (Makefile.am): Likewise.
110049         * modules/getndelim2 (Makefile.am): Likewise.
110050         * modules/getopt (Makefile.am): Likewise.
110051         * modules/getpagesize (Makefile.am): Likewise.
110052         * modules/getpass-gnu (Makefile.am): Likewise.
110053         * modules/getpass (Makefile.am): Likewise.
110054         * modules/getsubopt (Makefile.am): Likewise.
110055         * modules/gettime (Makefile.am): Likewise.
110056         * modules/gettimeofday (Makefile.am): Likewise.
110057         * modules/getugroups (Makefile.am): Likewise.
110058         * modules/getusershell (Makefile.am): Likewise.
110059         * modules/glob (Makefile.am): Likewise.
110060         * modules/group-member (Makefile.am): Likewise.
110061         * modules/hard-locale (Makefile.am): Likewise.
110062         * modules/hash (Makefile.am): Likewise.
110063         * modules/hmac-md5 (Makefile.am): Likewise.
110064         * modules/hmac-sha1 (Makefile.am): Likewise.
110065         * modules/human (Makefile.am): Likewise.
110066         * modules/idcache (Makefile.am): Likewise.
110067         * modules/imaxabs (Makefile.am): Likewise.
110068         * modules/imaxdiv (Makefile.am): Likewise.
110069         * modules/inet_ntop (Makefile.am): Likewise.
110070         * modules/inet_pton (Makefile.am): Likewise.
110071         * modules/intprops (Makefile.am): Likewise.
110072         * modules/inttostr (Makefile.am): Likewise.
110073         * modules/inttypes (Makefile.am): Likewise.
110074         * modules/isapipe (Makefile.am): Likewise.
110075         * modules/javaversion (Makefile.am): Likewise.
110076         * modules/lchmod (Makefile.am): Likewise.
110077         * modules/lchown (Makefile.am): Likewise.
110078         * modules/localcharset (Makefile.am): Likewise.
110079         * modules/long-options (Makefile.am): Likewise.
110080         * modules/lstat (Makefile.am): Likewise.
110081         * modules/malloc (Makefile.am): Likewise.
110082         * modules/mathl (Makefile.am): Likewise.
110083         * modules/mbchar (Makefile.am): Likewise.
110084         * modules/md2 (Makefile.am): Likewise.
110085         * modules/md4 (Makefile.am): Likewise.
110086         * modules/md5 (Makefile.am): Likewise.
110087         * modules/memcasecmp (Makefile.am): Likewise.
110088         * modules/memchr (Makefile.am): Likewise.
110089         * modules/memcmp (Makefile.am): Likewise.
110090         * modules/memcoll (Makefile.am): Likewise.
110091         * modules/memcpy (Makefile.am): Likewise.
110092         * modules/memmem (Makefile.am): Likewise.
110093         * modules/memmove (Makefile.am): Likewise.
110094         * modules/mempcpy (Makefile.am): Likewise.
110095         * modules/memrchr (Makefile.am): Likewise.
110096         * modules/memset (Makefile.am): Likewise.
110097         * modules/memxor (Makefile.am): Likewise.
110098         * modules/mkancesdirs (Makefile.am): Likewise.
110099         * modules/mkdir-p (Makefile.am): Likewise.
110100         * modules/mkdir (Makefile.am): Likewise.
110101         * modules/mkdtemp (Makefile.am): Likewise.
110102         * modules/mkstemp (Makefile.am): Likewise.
110103         * modules/mktime (Makefile.am): Likewise.
110104         * modules/modechange (Makefile.am): Likewise.
110105         * modules/mountlist (Makefile.am): Likewise.
110106         * modules/nanosleep (Makefile.am): Likewise.
110107         * modules/obstack (Makefile.am): Likewise.
110108         * modules/openat (Makefile.am): Likewise.
110109         * modules/pagealign_alloc (Makefile.am): Likewise.
110110         * modules/pathmax (Makefile.am): Likewise.
110111         * modules/physmem (Makefile.am): Likewise.
110112         * modules/poll (Makefile.am): Likewise.
110113         * modules/posixtm (Makefile.am): Likewise.
110114         * modules/posixver (Makefile.am): Likewise.
110115         * modules/putenv (Makefile.am): Likewise.
110116         * modules/quote (Makefile.am): Likewise.
110117         * modules/quotearg (Makefile.am): Likewise.
110118         * modules/raise (Makefile.am): Likewise.
110119         * modules/read-file (Makefile.am): Likewise.
110120         * modules/readline (Makefile.am): Likewise.
110121         * modules/readlink (Makefile.am): Likewise.
110122         * modules/readtokens (Makefile.am): Likewise.
110123         * modules/readutmp (Makefile.am): Likewise.
110124         * modules/realloc (Makefile.am): Likewise.
110125         * modules/regex (Makefile.am): Likewise.
110126         * modules/rename-dest-slash (Makefile.am): Likewise.
110127         * modules/rename (Makefile.am): Likewise.
110128         * modules/rijndael (Makefile.am): Likewise.
110129         * modules/rmdir (Makefile.am): Likewise.
110130         * modules/rpmatch (Makefile.am): Likewise.
110131         * modules/safe-read (Makefile.am): Likewise.
110132         * modules/safe-write (Makefile.am): Likewise.
110133         * modules/same-inode (Makefile.am): Likewise.
110134         * modules/same (Makefile.am): Likewise.
110135         * modules/save-cwd (Makefile.am): Likewise.
110136         * modules/savedir (Makefile.am): Likewise.
110137         * modules/setenv (Makefile.am): Likewise.
110138         * modules/settime (Makefile.am): Likewise.
110139         * modules/sha1 (Makefile.am): Likewise.
110140         * modules/sig2str (Makefile.am): Likewise.
110141         * modules/snprintf (Makefile.am): Likewise.
110142         * modules/stat-macros (Makefile.am): Likewise.
110143         * modules/stat-time (Makefile.am): Likewise.
110144         * modules/stdbool (Makefile.am): Likewise.
110145         * modules/stdint (Makefile.am): Likewise.
110146         * modules/stdlib-safer (Makefile.am): Likewise.
110147         * modules/stpcpy (Makefile.am): Likewise.
110148         * modules/stpncpy (Makefile.am): Likewise.
110149         * modules/strcase (Makefile.am): Likewise.
110150         * modules/strcasestr (Makefile.am): Likewise.
110151         * modules/strchrnul (Makefile.am): Likewise.
110152         * modules/strcspn (Makefile.am): Likewise.
110153         * modules/strdup (Makefile.am): Likewise.
110154         * modules/strerror (Makefile.am): Likewise.
110155         * modules/strftime (Makefile.am): Likewise.
110156         * modules/strndup (Makefile.am): Likewise.
110157         * modules/strnlen (Makefile.am): Likewise.
110158         * modules/strpbrk (Makefile.am): Likewise.
110159         * modules/strsep (Makefile.am): Likewise.
110160         * modules/strstr (Makefile.am): Likewise.
110161         * modules/strtod (Makefile.am): Likewise.
110162         * modules/strtoimax (Makefile.am): Likewise.
110163         * modules/strtok_r (Makefile.am): Likewise.
110164         * modules/strtol (Makefile.am): Likewise.
110165         * modules/strtoll (Makefile.am): Likewise.
110166         * modules/strtoul (Makefile.am): Likewise.
110167         * modules/strtoull (Makefile.am): Likewise.
110168         * modules/strtoumax (Makefile.am): Likewise.
110169         * modules/strverscmp (Makefile.am): Likewise.
110170         * modules/sys_socket (Makefile.am): Likewise.
110171         * modules/sys_stat (Makefile.am): Likewise.
110172         * modules/sysexits (Makefile.am): Likewise.
110173         * modules/time_r (Makefile.am): Likewise.
110174         * modules/timegm (Makefile.am): Likewise.
110175         * modules/timespec (Makefile.am): Likewise.
110176         * modules/tmpfile-safer (Makefile.am): Likewise.
110177         * modules/trim (Makefile.am): Likewise.
110178         * modules/unistd-safer (Makefile.am): Likewise.
110179         * modules/unlinkdir (Makefile.am): Likewise.
110180         * modules/unlocked-io (Makefile.am): Likewise.
110181         * modules/userspec (Makefile.am): Likewise.
110182         * modules/utime (Makefile.am): Likewise.
110183         * modules/utimecmp (Makefile.am): Likewise.
110184         * modules/utimens (Makefile.am): Likewise.
110185         * modules/vasnprintf (Makefile.am): Likewise.
110186         * modules/vasprintf (Makefile.am): Likewise.
110187         * modules/vsnprintf (Makefile.am): Likewise.
110188         * modules/xalloc (Makefile.am): Likewise.
110189         * modules/xgetcwd (Makefile.am): Likewise.
110190         * modules/xnanosleep (Makefile.am): Likewise.
110191         * modules/xreadlink (Makefile.am): Likewise.
110192         * modules/xstrtod (Makefile.am): Likewise.
110193         * modules/xstrtol (Makefile.am): Likewise.
110194         * modules/xstrtold (Makefile.am): Likewise.
110195         * modules/yesno (Makefile.am): Likewise.
110196         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
110198 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
110200         * modules/error (Makefile.am): Distribute files through
110201         EXTRA_DIST, not lib_SOURCES.
110203 2006-10-12  Eric Blake  <ebb9@byu.net>
110205         * modules/error (Makefile.am): Distribute files in /lib.
110206         * modules/obstack (Makefile.am): Likewise.
110208 2006-10-12  Bruno Haible  <bruno@clisp.org>
110210         * modules/acl (Makefile.am): Distribute all files in lib/ through
110211         EXTRA_DIST.
110212         * modules/arcfour (Makefile.am): Likewise.
110213         * modules/arctwo (Makefile.am): Likewise.
110214         * modules/argmatch (Makefile.am): Likewise.
110215         * modules/argz (Makefile.am): Likewise.
110216         * modules/atexit (Makefile.am): Likewise.
110217         * modules/backupfile (Makefile.am): Likewise.
110218         * modules/c-strtod (Makefile.am): Likewise.
110219         * modules/c-strtold (Makefile.am): Likewise.
110220         * modules/calloc (Makefile.am): Likewise.
110221         * modules/canon-host (Makefile.am): Likewise.
110222         * modules/canonicalize (Makefile.am): Likewise.
110223         * modules/chdir-long (Makefile.am): Likewise.
110224         * modules/chdir-safer (Makefile.am): Likewise.
110225         * modules/check-version (Makefile.am): Likewise.
110226         * modules/chown (Makefile.am): Likewise.
110227         * modules/cloexec (Makefile.am): Likewise.
110228         * modules/close-stream (Makefile.am): Likewise.
110229         * modules/closeout (Makefile.am): Likewise.
110230         * modules/crc (Makefile.am): Likewise.
110231         * modules/cycle-check (Makefile.am): Likewise.
110232         * modules/des (Makefile.am): Likewise.
110233         * modules/dirfd (Makefile.am): Likewise.
110234         * modules/dirname (Makefile.am): Likewise.
110235         * modules/dup2 (Makefile.am): Likewise.
110236         * modules/euidaccess (Makefile.am): Likewise.
110237         * modules/exclude (Makefile.am): Likewise.
110238         * modules/exitfail (Makefile.am): Likewise.
110239         * modules/fcntl-safer (Makefile.am): Likewise.
110240         * modules/file-type (Makefile.am): Likewise.
110241         * modules/fileblocks (Makefile.am): Likewise.
110242         * modules/filemode (Makefile.am): Likewise.
110243         * modules/filenamecat (Makefile.am): Likewise.
110244         * modules/fnmatch (Makefile.am): Likewise.
110245         * modules/fopen-safer (Makefile.am): Likewise.
110246         * modules/fpending (Makefile.am): Likewise.
110247         * modules/fprintftime (Makefile.am): Likewise.
110248         * modules/free (Makefile.am): Likewise.
110249         * modules/fsusage (Makefile.am): Likewise.
110250         * modules/ftruncate (Makefile.am): Likewise.
110251         * modules/fts (Makefile.am): Likewise.
110252         * modules/gc (Makefile.am): Likewise.
110253         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110254         * modules/getaddrinfo (Makefile.am): Likewise.
110255         * modules/getcwd (Makefile.am): Likewise.
110256         * modules/getdelim (Makefile.am): Likewise.
110257         * modules/getdomainname (Makefile.am): Likewise.
110258         * modules/getgroups (Makefile.am): Likewise.
110259         * modules/gethostname (Makefile.am): Likewise.
110260         * modules/gethrxtime (Makefile.am): Likewise.
110261         * modules/getline (Makefile.am): Likewise.
110262         * modules/getloadavg (Makefile.am): Likewise.
110263         * modules/getlogin_r (Makefile.am): Likewise.
110264         * modules/getopt (Makefile.am): Likewise.
110265         * modules/getpass (Makefile.am): Likewise.
110266         * modules/getpass-gnu (Makefile.am): Likewise.
110267         * modules/getsubopt (Makefile.am): Likewise.
110268         * modules/gettime (Makefile.am): Likewise.
110269         * modules/gettimeofday (Makefile.am): Likewise.
110270         * modules/getugroups (Makefile.am): Likewise.
110271         * modules/getusershell (Makefile.am): Likewise.
110272         * modules/glob (Makefile.am): Likewise.
110273         * modules/group-member (Makefile.am): Likewise.
110274         * modules/hard-locale (Makefile.am): Likewise.
110275         * modules/hash (Makefile.am): Likewise.
110276         * modules/hmac-md5 (Makefile.am): Likewise.
110277         * modules/hmac-sha1 (Makefile.am): Likewise.
110278         * modules/human (Makefile.am): Likewise.
110279         * modules/idcache (Makefile.am): Likewise.
110280         * modules/imaxabs (Makefile.am): Likewise.
110281         * modules/imaxdiv (Makefile.am): Likewise.
110282         * modules/inet_ntop (Makefile.am): Likewise.
110283         * modules/inet_pton (Makefile.am): Likewise.
110284         * modules/inttostr (Makefile.am): Likewise.
110285         * modules/isapipe (Makefile.am): Likewise.
110286         * modules/lchown (Makefile.am): Likewise.
110287         * modules/long-options (Makefile.am): Likewise.
110288         * modules/lstat (Makefile.am): Likewise.
110289         * modules/malloc (Makefile.am): Likewise.
110290         * modules/mathl (Makefile.am): Likewise.
110291         * modules/mbchar (Makefile.am): Likewise.
110292         * modules/md2 (Makefile.am): Likewise.
110293         * modules/md4 (Makefile.am): Likewise.
110294         * modules/md5 (Makefile.am): Likewise.
110295         * modules/memcasecmp (Makefile.am): Likewise.
110296         * modules/memchr (Makefile.am): Likewise.
110297         * modules/memcmp (Makefile.am): Likewise.
110298         * modules/memcoll (Makefile.am): Likewise.
110299         * modules/memcpy (Makefile.am): Likewise.
110300         * modules/memmem (Makefile.am): Likewise.
110301         * modules/memmove (Makefile.am): Likewise.
110302         * modules/mempcpy (Makefile.am): Likewise.
110303         * modules/memrchr (Makefile.am): Likewise.
110304         * modules/memset (Makefile.am): Likewise.
110305         * modules/memxor (Makefile.am): Likewise.
110306         * modules/mkancesdirs (Makefile.am): Likewise.
110307         * modules/mkdir (Makefile.am): Likewise.
110308         * modules/mkdir-p (Makefile.am): Likewise.
110309         * modules/mkdtemp (Makefile.am): Likewise.
110310         * modules/mkstemp (Makefile.am): Likewise.
110311         * modules/mktime (Makefile.am): Likewise.
110312         * modules/modechange (Makefile.am): Likewise.
110313         * modules/mountlist (Makefile.am): Likewise.
110314         * modules/nanosleep (Makefile.am): Likewise.
110315         * modules/openat (Makefile.am): Likewise.
110316         * modules/pagealign_alloc (Makefile.am): Likewise.
110317         * modules/physmem (Makefile.am): Likewise.
110318         * modules/poll (Makefile.am): Likewise.
110319         * modules/posixtm (Makefile.am): Likewise.
110320         * modules/posixver (Makefile.am): Likewise.
110321         * modules/putenv (Makefile.am): Likewise.
110322         * modules/quote (Makefile.am): Likewise.
110323         * modules/quotearg (Makefile.am): Likewise.
110324         * modules/raise (Makefile.am): Likewise.
110325         * modules/read-file (Makefile.am): Likewise.
110326         * modules/readline (Makefile.am): Likewise.
110327         * modules/readlink (Makefile.am): Likewise.
110328         * modules/readtokens (Makefile.am): Likewise.
110329         * modules/readutmp (Makefile.am): Likewise.
110330         * modules/realloc (Makefile.am): Likewise.
110331         * modules/regex (Makefile.am): Likewise.
110332         * modules/rename (Makefile.am): Likewise.
110333         * modules/rename-dest-slash (Makefile.am): Likewise.
110334         * modules/rijndael (Makefile.am): Likewise.
110335         * modules/rmdir (Makefile.am): Likewise.
110336         * modules/rpmatch (Makefile.am): Likewise.
110337         * modules/safe-read (Makefile.am): Likewise.
110338         * modules/safe-write (Makefile.am): Likewise.
110339         * modules/same (Makefile.am): Likewise.
110340         * modules/save-cwd (Makefile.am): Likewise.
110341         * modules/savedir (Makefile.am): Likewise.
110342         * modules/setenv (Makefile.am): Likewise.
110343         * modules/settime (Makefile.am): Likewise.
110344         * modules/sha1 (Makefile.am): Likewise.
110345         * modules/sig2str (Makefile.am): Likewise.
110346         * modules/snprintf (Makefile.am): Likewise.
110347         * modules/stdlib-safer (Makefile.am): Likewise.
110348         * modules/stpcpy (Makefile.am): Likewise.
110349         * modules/stpncpy (Makefile.am): Likewise.
110350         * modules/strcase (Makefile.am): Likewise.
110351         * modules/strcasestr (Makefile.am): Likewise.
110352         * modules/strchrnul (Makefile.am): Likewise.
110353         * modules/strcspn (Makefile.am): Likewise.
110354         * modules/strdup (Makefile.am): Likewise.
110355         * modules/strerror (Makefile.am): Likewise.
110356         * modules/strftime (Makefile.am): Likewise.
110357         * modules/strndup (Makefile.am): Likewise.
110358         * modules/strnlen (Makefile.am): Likewise.
110359         * modules/strpbrk (Makefile.am): Likewise.
110360         * modules/strsep (Makefile.am): Likewise.
110361         * modules/strstr (Makefile.am): Likewise.
110362         * modules/strtod (Makefile.am): Likewise.
110363         * modules/strtoimax (Makefile.am): Likewise.
110364         * modules/strtok_r (Makefile.am): Likewise.
110365         * modules/strtol (Makefile.am): Likewise.
110366         * modules/strtoll (Makefile.am): Likewise.
110367         * modules/strtoul (Makefile.am): Likewise.
110368         * modules/strtoull (Makefile.am): Likewise.
110369         * modules/strtoumax (Makefile.am): Likewise.
110370         * modules/strverscmp (Makefile.am): Likewise.
110371         * modules/time_r (Makefile.am): Likewise.
110372         * modules/timegm (Makefile.am): Likewise.
110373         * modules/tmpfile-safer (Makefile.am): Likewise.
110374         * modules/unistd-safer (Makefile.am): Likewise.
110375         * modules/unlinkdir (Makefile.am): Likewise.
110376         * modules/userspec (Makefile.am): Likewise.
110377         * modules/utime (Makefile.am): Likewise.
110378         * modules/utimecmp (Makefile.am): Likewise.
110379         * modules/utimens (Makefile.am): Likewise.
110380         * modules/vasnprintf (Makefile.am): Likewise.
110381         * modules/vasprintf (Makefile.am): Likewise.
110382         * modules/vsnprintf (Makefile.am): Likewise.
110383         * modules/xalloc (Makefile.am): Likewise.
110384         * modules/xgetcwd (Makefile.am): Likewise.
110385         * modules/xnanosleep (Makefile.am): Likewise.
110386         * modules/xreadlink (Makefile.am): Likewise.
110387         * modules/xstrtod (Makefile.am): Likewise.
110388         * modules/xstrtol (Makefile.am): Likewise.
110389         * modules/xstrtold (Makefile.am): Likewise.
110390         * modules/yesno (Makefile.am): Likewise.
110392 2006-10-12  Jim Meyering  <jim@meyering.net>
110394         * m4/getloadavg.m4: Revert the change below.
110396         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
110397         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
110398         fail with a symlink, which is what coreutils' ./bootstrap now
110399         creates by default.
110401 2006-10-12  Bruno Haible  <bruno@clisp.org>
110403         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
110404         mingw.
110405         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
110406         MSVC and mingw explicitly.
110408 2006-10-11  Simon Josefsson  <jas@extundo.com>
110409             Bruno Haible  <bruno@clisp.org>
110411         Add support for multiple gnulib-tool invocations in the scope of a
110412         single configure.ac file.
110413         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
110414         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
110415         with the same contents as the _LIBADD variable.
110416         (func_emit_initmacro_start, func_emit_initmacro_end,
110417         func_emit_initmacro_done): New functions.
110418         (func_import, func_create_testdir): Invoke them. Allow the identifiers
110419         gl_LIBOBJS and gl_LTLIBOBJS.
110421 2006-10-11  Bruno Haible  <bruno@clisp.org>
110423         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
110424         (func_create_testdir): Don't create po/Makefile.am, don't invoke
110425         autoreconf. Instead, invoke autopoint explicitly but move back the
110426         *.m4 files from gnulib.
110428 2006-10-11  Bruno Haible  <bruno@clisp.org>
110430         * gnulib-tool (func_usage): Make module names after --create-testdir
110431         optional.
110432         (func_create_testdir): If no module was specified, use nearly all
110433         modules.
110435 2006-10-12  Jim Meyering  <jim@meyering.net>
110437         Big performance improvement for fts-based tools that use FTS_NOSTAT.
110438         Avoid spurious inode-mismatch problems on non-POSIX file systems.
110439         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
110440         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
110441         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
110442         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
110443         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
110444         (fts_set_stat_required): New function.
110445         (fts_open): Defer the calls to fts_stat, if possible or requested.
110446         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
110447         into fts_stat itself.
110448         (fts_read): Perform any required (deferred) fts_stat call.
110449         (fts_build): Likewise, for the directory we're about to open and read.
110450         In the readdir loop, carefully decide whether each entry will require
110451         an eventual call to fts_stat, using dirent.d_type info if available.
110452         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
110453         a command line argument into this function.  Update all callers.
110454         Map a return value of FTS_DOT to FTS_D for a command line argument.
110455         * modules/fts (Depends-on): Add d-type.  Alphabetize.
110456         Thanks to Miklos Szeredi for his tenacity and for the initial
110457         bug report about "find" failing on a FUSE-based file system.
110459         * lib/fts.c (fts_open): Use consistent indentation.
110461 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
110463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
110464         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
110465         reported by Jim Meyering.  All uses of cache variables renamed
110466         to match Autoconf's.
110467         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
110468         the other one.
110470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
110471         Fix misspelling in diagnostic.
110473 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
110475         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
110476         defined.  Problem reported by Matthew Woehlke.
110478         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
110479         Add support for Tandem NonStop R series.
110480         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
110481         Use new macro.
110483         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
110484         (has_trailing_slash): Omit size arg; all callers changed.
110485         Omit 'inline', since it doesn't help performance and we'd
110486         need to configure it.
110487         Don't count //, ///, etc. as having a trailing slash.
110488         As a side effect, this removes a C99ism reported by Matthew Woehlke.
110489         (rpl_rename_dest_slash): On failure, use rename's errno rather
110490         than (in some cases) an incorrect or junk errno.
110491         Simplify code by removing need to compute length; this does
110492         cause it to make two passes instead of one over the file name,
110493         but it's worth it.
110495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
110496         change, since Autoconf's version may no longer be appropriate now
110497         that we are using CVS Autoconf's version.  Add support for Tandem.
110499 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
110500             Bruno Haible  <bruno@clisp.org>
110502         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
110503         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
110504         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
110505         gl_AC_TYPE_LONG_LONG.
110507         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
110508         instead of HAVE_LONG_LONG.
110509         * lib/printf-args.c (printf_fetchargs): Likewise.
110510         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
110511         * lib/vasnprintf.c (VASNPRINTF): Likewise.
110512         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
110513         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
110514         gl_AC_TYPE_LONG_LONG.
110516 2006-10-11  Bruno Haible  <bruno@clisp.org>
110518         * m4/longlong.m4: Add comments.
110519         * m4/ulonglong.m4: Likewise.
110521 2006-10-10  Bruno Haible  <bruno@clisp.org>
110523         Make it possible to #define stpcpy, strdup to aliases.
110524         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
110525         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
110527 2006-10-10  Bruno Haible  <bruno@clisp.org>
110529         Make it possible to #define gcd to an alias.
110530         * lib/gcd.c: Include config.h.
110532 2006-10-10  Bruno Haible  <bruno@clisp.org>
110534         Make it possible to #define c_isascii to an alias.
110535         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
110536         defined. Undefine the macros before defining them, to avoid gcc
110537         warnings.
110538         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
110539         define NO_C_CTYPE_MACROS early.
110541 2006-10-10  Bruno Haible  <bruno@clisp.org>
110543         Make it possible to #define set_program_name to an alias.
110544         * lib/progname.c: Don't undefine set_program_name; instead, undefine
110545         ENABLE_RELOCATABLE early.
110547 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
110549         Port to Tandem NSK OSS, which has 64-bit signed int but at most
110550         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
110551         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
110552         More generally, don't assume that 64-bit signed int is available
110553         if unsigned int is, and vice versa.
110554         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
110555         unsigned symbols, not on their signed counterparts.
110556         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
110557         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
110558         (UINT64_C, UINTMAX_C):
110559         Likewise.
110560         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
110561         unsigned counterparts.
110562         (Have_long_long, Unsigned): New macros.
110563         (Int): Renamed from INT.
110564         (strtoimax): Use the new macros.
110565         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
110566         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
110567         * modules/inttypes (inttypes.h): Substitute
110568         HAVE_UNSIGNED_LONG_LONG_INT.
110569         * modules/stdint (stdint.h): Likewise.
110570         (Files): Add m4/ulonglong.m4.
110572 2006-10-10  Bruno Haible  <bruno@clisp.org>
110574         Fix a gcc -Wshadow warning.
110575         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
110576         to 'bucket'.
110577         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
110578         gl_linked_indexof_from_to): Likewise.
110579         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
110580         Likewise.
110581         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
110582         Likewise.
110583         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
110584         Reported by Eric Blake.
110586 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
110588         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
110589         for NetBSD.  Problem reported by Bruno Haible.
110591 2006-10-09  Jim Meyering  <jim@meyering.net>
110593         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
110594         Patch from Bruno Haible.
110596 2006-10-09  Jim Meyering  <jim@meyering.net>
110598         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
110599         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
110600         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
110602 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110604         Don't include <config.h> twice; this doesn't work in some cases,
110605         e.g., when config.h has "#define intmax_t long long int" and
110606         we include <config.h>, <inttypes.h>, <config.h> in that order.
110607         Problem reported by Matthew Woehlke in:
110608         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
110609         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
110610         * lib/fts-cycle.c: Don't include config.h.
110611         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
110612         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
110613         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
110614         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
110615         inttypes.h.
110616         * lib/xstrtoumax.c: Likewise.
110617         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
110618         __strtol and the like, so that this module is more like its siblings.
110619         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
110620         Remove; no longer needed now that we assume gnulib inttypes.h.
110622 2006-10-08  Bruno Haible  <bruno@clisp.org>
110624         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
110625         option.
110627 2006-10-07  Jim Meyering  <jim@meyering.net>
110629         * modules/inttypes (inttypes.h): Revert what seems to have been
110630         an inadvertent part of today's change: use "|", not "/" in the
110631         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
110633 2006-10-07  Bruno Haible  <bruno@clisp.org>
110635         * modules/sublist: New file.
110637 2006-10-07  Bruno Haible  <bruno@clisp.org>
110639         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
110640         * modules/argz (argz.h): Likewise.
110641         * modules/arpa_inet (arpa/inet.h): Likewise.
110642         * modules/byteswap (byteswap.h): Likewise.
110643         * modules/configmake (configmake.h): Likewise.
110644         * modules/fcntl (fcntl.h): Likewise.
110645         * modules/fnmatch (fnmatch.h): Likewise.
110646         * modules/getopt (getopt.h): Likewise.
110647         * modules/glob (glob.h): Likewise.
110648         * modules/inttypes (inttypes.h): Likewise.
110649         * modules/netinet_in (netinet/in.h): Likewise.
110650         * modules/poll (poll.h): Likewise.
110651         * modules/stdbool (stdbool.h): Likewise.
110652         * modules/stdint (stdint.h): Likewise.
110653         * modules/sys_select (sys/select.h): Likewise.
110654         * modules/sys_socket (sys/socket.h): Likewise.
110655         * modules/sys_stat (sys/stat.h): Likewise.
110656         * modules/sysexits (sysexits.h): Likewise.
110657         * modules/unistd (unistd.h): Likewise.
110658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110659         Add a "DO NOT EDIT" comment to the generated file.
110660         (func_import): Likewise for gnulib-comp.m4.
110662 2006-10-07  Bruno Haible  <bruno@clisp.org>
110664         * lib/gl_sublist.h: New file.
110665         * lib/gl_sublist.c: New file.
110667 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
110669         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
110670         name (relative to the original working directory) and the file
110671         name component (relative to the temporary working directory).  All
110672         callers changed.
110673         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
110674         * lib/mkdir-p.c (make_dir_parents): Likewise.
110675         * lib/mkdir-p.h (make_dir_parents): Likewise.
110677 2006-10-06  Eric Blake  <ebb9@byu.net>
110679         Define several macros for use by the clean-temp module.
110680         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
110681         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
110682         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
110684         * lib/clean-temp.h (close_stream_temp): New declaration.
110685         * lib/clean-temp.c (includes): Pull in headers according to what
110686         other modules are in use.
110687         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
110689 2006-10-06  Bruno Haible  <bruno@clisp.org>
110691         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
110692         instead of fopen, fwriteerror.
110694 2006-10-06  Bruno Haible  <bruno@clisp.org>
110696         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
110697         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
110698         int.
110699         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
110700         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
110701         Return an error indicator.
110702         Suggested by Eric Blake.
110704 2006-10-06  Bruno Haible  <bruno@clisp.org>
110706         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
110707         Reported by Eric Blake.
110709 2006-10-06  Bruno Haible  <bruno@clisp.org>
110711         * modules/closeout (Description): Mention stderr too.
110713 2006-10-06  Bruno Haible  <bruno@clisp.org>
110714         and Paul Eggert  <eggert@cs.ucla.edu>
110716         * lib/closeout.c (close_stdout): Also close stderr.
110717         * lib/closeout.h: Update comment.
110719 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
110721         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
110722         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
110723         * lib/dirchownmod.c: Include lchown.h.
110724         * lib/lchown.c: Don't include files that lchown.h now includes.
110725         Don't declare chown, since lchown.h now does that.
110726         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
110727         (lchown): Define to rpl_chown if lchown is declared but
110728         does not exist.  Declare using a prototype if lchown is not
110729         declared.  Add a copyright notice.
110730         * lib/mkstemp.h: Include <unistd.h>.
110731         * lib/openat.c: Include lchown.h.
110733         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
110734         we now test for that separately.
110735         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
110736         rather than O_NOFOLLOW, when testing whether it's possible to
110737         avoid a race condition reliably.
110738         * lib/savewd.c (savewd_chdir): Likewise.
110740         Remove macros that are no longer needed now that stdint.h is
110741         reliable.
110742         * lib/fsusage.c (UINTMAX_MAX): Remove.
110743         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
110744         * lib/utimecmp.c (SIZE_MAX): Remove.
110746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
110748         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
110749         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
110750         O_NOATIME works.
110752 2006-10-05  Bruno Haible  <bruno@clisp.org>
110754         * lib/gl_list.h (gl_sortedlist_search_from_to,
110755         gl_sortedlist_indexof_from_to): New declarations.
110756         (gl_list_implementation): New fields sortedlist_search_from_to,
110757         sortedlist_indexof_from_to.
110758         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
110759         inline functions.
110760         * lib/gl_list.c (gl_sortedlist_search_from_to,
110761         gl_sortedlist_indexof_from_to): New functions.
110762         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
110763         function.
110764         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
110765         (gl_array_sortedlist_search_from_to): New function.
110766         (gl_array_list_implementation): Update.
110767         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
110768         function.
110769         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
110770         (gl_carray_sortedlist_search_from_to): New function.
110771         (gl_carray_list_implementation): Update.
110772         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
110773         gl_linked_sortedlist_indexof_from_to): New functions.
110774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
110775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
110776         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
110777         gl_tree_sortedlist_indexof_from_to): New functions.
110778         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
110779         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
110780         Update.
110781         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
110782         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
110783         Update.
110785 2006-10-05  Bruno Haible  <bruno@clisp.org>
110787         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
110788         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
110789         (struct gl_list_implementation): Add fields search_from_to,
110790         indexof_from_to. Remove fields search, indexof.
110791         (gl_list_search): Use the search_from_to method.
110792         (gl_list_search_from, gl_list_search_from_to): New functions.
110793         (gl_list_indexof): Use the indexof_from_to method.
110794         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
110795         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
110796         (gl_list_search_from, gl_list_search_from_to): New functions.
110797         (gl_list_indexof): Use the indexof_from_to method.
110798         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
110799         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
110800         gl_array_indexof. Add start_index, end_index arguments.
110801         (gl_array_search_from_to): Renamed from gl_array_search. Add
110802         start_index, end_index arguments.
110803         (gl_array_remove, gl_array_list_implementation): Update.
110804         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
110805         gl_carray_indexof. Add start_index, end_index arguments.
110806         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
110807         start_index, end_index arguments.
110808         (gl_carray_remove, gl_carray_list_implementation): Update.
110809         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
110810         gl_linked_search. Add start_index, end_index arguments.
110811         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
110812         start_index, end_index arguments.
110813         (gl_linked_remove): Update.
110814         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
110815         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
110816         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
110817         field to 'size_t'.
110818         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
110819         gl_tree_search. Add start_index, end_index arguments.
110820         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
110821         start_index, end_index arguments.
110822         (gl_tree_remove): Update.
110823         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
110824         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
110825         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
110826         function.
110827         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
110828         gl_tree_search. Add start_index, end_index arguments.
110829         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
110830         start_index, end_index arguments.
110831         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
110832         Update.
110833         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
110835 2006-10-05  Bruno Haible  <bruno@clisp.org>
110837         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
110839         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
110840         fwriteerror_temp): New declarations.
110841         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
110842         (descriptors): New variable.
110843         (cleanup): First, close the descriptors.
110844         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
110845         fclose_temp, fwriteerror_temp): New functions.
110847 2006-10-04  Jim Meyering  <jim@meyering.net>
110849         * lib/fts.c (fts_open): Tiny comment change.
110851 2006-10-04  Bruno Haible  <bruno@clisp.org>
110853         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
110854         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
110855         gl_LOCK_BODY.
110856         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
110857         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
110858         gl_LOCK_EARLY_BODY.
110859         (gl_LOCK): Require gl_LOCK_BODY.
110861 2006-10-04  Bruno Haible  <bruno@clisp.org>
110863         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
110864         (gl_oset_search_atleast): New declaration.
110865         (struct gl_oset_implementation): Add field 'search_atleast'.
110866         (gl_oset_search_atleast): New inline function.
110867         * lib/gl_oset.c (gl_oset_search_atleast): New function.
110868         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
110869         (gl_array_oset_implementation): Update.
110870         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
110871         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
110872         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
110874 2006-10-04  Bruno Haible  <bruno@clisp.org>
110876         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
110878 2006-10-03  Bruno Haible  <bruno@clisp.org>
110880         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
110881         from gl_avltreehash_list_implementation.
110883 2006-10-03  Bruno Haible  <bruno@clisp.org>
110885         * lib/gl_oset.c (gl_oset_add): Fix return type.
110887 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
110889         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
110891 2006-10-02  Eric Blake  <ebb9@byu.net>
110893         * modules/strnlen (Depends-on): Add extensions.
110895 2006-10-02  Eric Blake  <ebb9@byu.net>
110897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
110898         definition in 2.60+.
110900 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
110902         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
110903         checks.
110905 2006-10-02  Bruno Haible  <bruno@clisp.org>
110907         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
110908         to the AUTOMAKE_OPTIONS.
110909         Reported by Jim Meyering.
110911 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
110913         Work around bug in Solaris 10 /proc file system:
110914         /proc/self/fd/NNN/.. isn't the parent directory of
110915         the directory whose file descriptor is NNN.  This needs to
110916         be worked around at run time, not compile time, since a
110917         program might be built on Solaris 8, where things work, and
110918         run on Solaris 10.
110919         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
110920         to use the following interface instead:
110921         (OPENAT_BUFFER_SIZE): New macro.
110922         (openat_proc_name): New function.
110923         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
110924         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
110925         Likewise.
110926         * lib/openat-proc.c: New file.
110927         * modules/openat (Files): Add lib/openat-proc.c.
110928         (Depends-on): Add same-inode, stdbool.
110929         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
110931 2006-09-29  Bruno Haible  <bruno@clisp.org>
110933         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
110934         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
110935         argument. Set stdout_closed before testing for ferror, not after.
110936         (fwriteerror, fwriteerror_no_ebadf): New functions.
110938 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110940         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
110942 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
110944         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
110945         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
110947 2006-09-28  Jim Meyering  <jim@meyering.net>
110949         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
110950         Include <unistd.h>.
110952 2006-09-28  Bruno Haible  <bruno@clisp.org>
110954         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
110955         * modules/linkedhash-list (Depends-on): Likewise.
110956         * modules/rbtreehash-list (Depends-on): Likewise.
110958 2006-09-28  Bruno Haible  <bruno@clisp.org>
110960         * lib/strndup.h: Simplify the redefinition of strndup.
110961         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
110962         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
110964 2006-09-28  Bruno Haible  <bruno@clisp.org>
110966         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
110967         * lib/gl_linkedhash_list.c: Likewise.
110968         * lib/gl_rbtreehash_list.c: Likewise.
110970 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
110972         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
110973         getaddrinfo.
110975         * lib/__fpending.h: Don't include <stdio_ext.h> unless
110976         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
110977         it causes <stdio_ext.h> to cause a compile-time error.
110978         Problem reported by Nelson H. F. Beebe.
110979         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
110980         of HAVE_DECL___PENDING.
110982         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
110983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
110984         declaration.
110986 2006-09-27  Jim Meyering  <jim@meyering.net>
110988         This file could end up with a definition for a function
110989         named __strndup, rather than rpl_strndup on a system with
110990         incomplete weak_alias support.
110991         * lib/strndup.c (strndup): Rename from __strndup.
110992         Remove #defines that used to map __strndup to strndup.
110993         Don't use K&R prototypes.
110994         Remove LIBC-related code, since this file is not sync'd with glibc.
110995         * lib/strndup.h: Revamp, accordingly.
110996         * m4/strndup.m4: Modernize.
110998 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111000         * modules/savewd (Depends-on): Add 'raise'.
111001         * lib/savewd.c: Include <signal.h>, for 'raise'.
111003 2006-09-26  Jim Meyering  <jim@meyering.net>
111005         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
111006         when we detect Darwin 8.7.0's acl_get_file bug.
111007         Rearrange to perform the new (below) run-test while $LIBS
111008         contains any acl-related library.  Set USE_ACL at the end.
111009         (gl_ACL_GET_FILE): New function.
111011 2006-09-26  Eric Blake  <ebb9@byu.net>
111013         * lib/verror.c: Include <config.h> unconditionally.
111015 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
111017         * modules/clock-time (Maintainer): Add self.
111018         * modules/getlogin_r (Depends-on): Add extensions.
111020 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111022         * modules/clock-time: New module.
111023         * modules/nanosleep (Depends-on): Add clock-time.
111024         * modules/gethrxtime (Depends-on): Likewise.
111025         * modules/gettime (Depends-on): Likewise.
111026         * modules/settime (Depends-on): Likewise.
111028         * modules/fts-lgpl: Depend on openat.
111029         * modules/mkancesdirs: Depend on savewd.
111030         * modules/mkdir-p: Likewise.
111032 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111034         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
111036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
111037         `gl_have_arbitrary_file_name_length_limit' to
111038         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
111039         actually works between configure runs.
111041 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111042             Bruno Haible  <bruno@clisp.org>
111044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
111046 2006-09-25  Jim Meyering  <jim@meyering.net>
111048         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
111049         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
111051 2006-09-25  Eric Blake  <ebb9@byu.net>
111053         * gnulib-tool (func_import, func_create_testdir): Fix typos in
111054         exec's in 2006-09-18 patch when shuffling fds.
111056 2006-09-25  Bruno Haible  <bruno@clisp.org>
111058         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
111059         Reported by Jim Meyering.
111061 2006-09-24  Jim Meyering  <jim@meyering.net>
111063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
111064         compare a pointer against a literal "0".  That caused failures with
111065         at least HP-UX's hpcc.
111067 2006-09-22  Simon Josefsson  <jas@extundo.com>
111069         * modules/gc-sha1:
111070         * modules/gc-md4:
111071         * modules/gc-hmac-sha1:
111072         * modules/gc-hmac-md5:
111073         * modules/gc-des:
111074         * modules/gc-arcfour: Distribute more files.
111076 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111078         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
111079         (gl_linked_iterator_from_to): Initialize struct completely.
111080         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
111081         (gl_tree_iterator_from_to): Likewise
111082         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
111083         * lib/gl_array_list.c [lint] (gl_array_iterator)
111084         (gl_array_iterator_from_to): Likewise.
111085         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
111086         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
111087         (gl_carray_iterator_from_to): Likewise.
111089         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
111090         * lib/md4.c (md4_process_block): Remove unused variable.
111091         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
111092         parentheses for clarity.
111094 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111096         * modules/bison-i18n (Depends-on): Add gettext.
111098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111100         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
111101         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
111102         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
111103         also add missing comma that caused broken test.
111104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
111105         stdlib.h, for `abort'.
111106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
111107         variables.
111108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
111109         include unistd.h if present, for `rmdir'.
111110         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
111111         variables.
111112         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
111113         in the process include standard headers for prototypes.
111114         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
111115         gets declared on GNU/Linux.
111116         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
111117         unistd.h, for `rmdir'.
111118         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
111120         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
111121         always true.
111122         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
111124         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
111126 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111128         * gnulib-tool (func_version): Create output all at once.  This
111129         may help avoid triggering unnecessary SIGPIPEs, and at any
111130         rate it doesn't hurt.
111132 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111133             Bruno Haible  <bruno@clisp.org>
111135         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
111136         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111137         * m4/signed.m4 (bh_C_SIGNED): Likewise.
111139         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
111140         (gl_FUNC_VASPRINTF): Invoke it.
111142 2006-09-22  Bruno Haible  <bruno@clisp.org>
111144         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
111145         getloadavg.c as first argument.
111147 2006-09-22  Bruno Haible  <bruno@clisp.org>
111149         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
111150         at the beginning of the gl_INIT macro.
111151         * modules/getloadavg (configure.ac): Pass $gl_source_base to
111152         gl_GETLOADAVG.
111154 2006-09-22  Bruno Haible  <bruno@clisp.org>
111156         * gnulib-tool (func_create_megatestdir): Don't include the config-h
111157         module.
111158         Suggested by Ralf Wildenhues.
111160 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
111162         Import this patch from libc:
111164         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
111166         * lib/regex_internal.c (re_string_reconstruct): Handle
111167         offset < pstr->valid_raw_len && pstr->offsets_needed case.
111168         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
111169         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
111170         re_string_context_at.
111172         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
111173         now requires it.
111174         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
111175         gl_REGEX now does it for us.
111176         (gl_REGEX): Add test taken from
111177         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
111179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
111180         Check that large offsets work.  Modernize Autoconf usages.
111181         Prefer "yes" to mean a good thing rather than a bad.
111182         Don't put "#define mkstemp" in config.h, as this might interfere
111183         with standard system headers that "#define mkstemp mkstemp64".
111185         * modules/mkstemp (Depends-on): Add extensions, so that
111186         mkstemp is visible on some platforms.
111187         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
111188         (Include): Change to "mkstemp.h" from <stdlib.h>.
111189         (Files): Add mkstemp.h.
111191         * lib/mkstemp.h: New file, since some standard headers
111192         #define mkstemp.
111193         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
111194         Include "mkstemp.h".
111195         Make the _LIBC code resemble glibc original more,
111196         e.g., use K&R style.
111197         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
111198         (mkstemp): Remove, since mkstemp.h does this for us.
111199         * lib/stdlib--.h: Include mkstemp.h.
111201         Import this patch from libc:
111203         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111205         * lib/tempname.c (__gen_tempname): Change attempts_min
111206         into a macro.  Use preprocessor to decide how to initialize
111207         attempts [Coverity CID 67].
111209 2006-09-20  Bruno Haible  <bruno@clisp.org>
111211         * lib/mkdtemp.c: Import from libc.
111212         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111213                 * sysdeps/posix/tempname.c (__gen_tempname): Change
111214                 attempts_min into a macro.  Use preprocessor to decide how to
111215                 initialize attempts [Coverity CID 67].
111216         2001-11-27  Paul Eggert  <eggert@twinsun.com>
111217                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
111218                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
111220 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111222         * gnulib-tool (func_exit): New function, to allow to pass the
111223         exit status portably through the trap.  Use everywhere.
111224         (--help, --version): Signal a write error.
111225         (trap): catch SIGPIPE, for write errors.
111226         Exit at the end of the trap, with the correct exit status.
111228 2006-09-19  Karl Berry  <karl@gnu.org>
111230         * doc/gnulib.texi: note about the license texinfo files.
111232 2006-09-19  Eric Blake  <ebb9@byu.net>
111234         * gnulib-tool: Avoid space-tab.
111236 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111238         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
111239         that prevented coreutils 6.1 from building.  Problem reported
111240         by Petter Reinholdtsen.
111242 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111244         * gnulib-tool (avoidlist): Fix typo that broke options like
111245         --avoid=lock that are used by coreutils bootstrap.
111247 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
111249         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
111250         more systematically.
111252 2006-09-18  Jim Meyering  <jim@meyering.net>
111254         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
111256 2006-09-18  Bruno Haible  <bruno@clisp.org>
111258         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
111260 2006-09-18  Bruno Haible  <bruno@clisp.org>
111262         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
111263         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
111264         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
111265         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
111266         * m4/gettext.m4: Require autoconf >= 2.52.
111267         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
111268         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
111269         of gl_cv_header_inttypes_h.
111271 2006-09-18  Bruno Haible  <bruno@clisp.org>
111273         * lib/javaversion.c: Include configmake.h.
111275 2006-09-18  Bruno Haible  <bruno@clisp.org>
111277         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
111278         avoid that the while loops be executed in a subshell.
111280 2006-09-18  Bruno Haible  <bruno@clisp.org>
111282         * MODULES.html.sh (func_module): Break long lines.
111283         Suggested by Bruce Korb <bkorb@gnu.org>.
111285 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111287         Speed up by a factor of 1.12.
111288         * gnulib-tool (nl): New variable.
111289         (func_import): Rewrite include directive extraction to only read each
111290         directive once.
111292 2006-09-17  Bruno Haible  <bruno@clisp.org>
111294         * modules/javaversion (Makefile.am): Remove DEFS setting.
111295         (Depends-on): Add configmake, for PKGDATADIR definition.
111297 2006-09-17  Bruno Haible  <bruno@clisp.org>
111299         * gnulib-tool (func_create_testdir): Rewrite all files at once.
111301 2006-09-17  Bruno Haible  <bruno@clisp.org>
111303         * gnulib-tool (func_append): New function, stolen from libtool.m4.
111304         (func_modules_transitive_closure, func_modules_add_dummy,
111305         func_modules_to_filelist, func_import, func_create_testdir,
111306         func_create_megatestdir, ...): Use it wherever possible.
111307         Suggested by Ralf Wildenhues.
111309 2006-09-16  Karl Berry  <karl@gnu.org>
111311         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
111312         to avoid sectioning errors.
111313         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
111314         [ifinfo]: blank line after @center-ed titles.
111315         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
111316         Spell FSF address consistently with others.
111317         (These changes approved by rms.)
111319 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111321         Speed up by a factor of 1.61.
111322         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
111323         already checked module names again.
111325 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111327         Speed up by a factor of 1.13.
111328         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
111329         for new_files, and the input to func_add_or_update.
111331 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111333         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
111334         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
111336 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111338         * modules/mkancesdirs (Depends-on): Add fcntl.
111339         * modules/savewd: New file.
111340         * MODULES.html.sh (File system functions): Add savewd.
111342         * modules/configmake (Makefile.am): Add support for the
111343         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
111345 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111347         * m4/savewd.m4: New file.
111349 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111351         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
111352         (dirchownmod): New arg FD.  All callers changed.
111353         Use FD rather than opening the directory ourself, as opening is
111354         now the caller's responsibility.
111355         * lib/dirchownmod.h: Likewise.
111356         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
111357         hosts that require <sys/types.h> before <sys/stat.h>.  Include
111358         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
111359         (test_dir): Remove.
111360         (mkancesdirs): Return length of prefix of FILE that has already
111361         been made, or -2 if there is a child doing the work.  Redo
111362         algorithm so that it is O(N) rather than O(N**2).  Optimize away
111363         ".", and treat ".." specially since it might stray back into
111364         already-created areas.  Use a subprocess if necessary.  New arg
111365         WD; all users changed.  MAKE_DIR function should now return 1
111366         if it creates a directory that is not readable.  Return -2 if
111367         a child process is spun off.
111368         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
111369         Adjust signature to match code.
111370         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
111371         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
111372         all users changed.
111373         * lib/savewd.c, lib/savewd.h: New files.
111375 2006-09-15  Jim Meyering  <jim@meyering.net>
111377         * modules/rename-dest-slash: New module.
111378         * MODULES.html.sh (posix_compat): Add it here.
111380         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
111382 2006-09-15  Jim Meyering  <jim@meyering.net>
111384         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
111385         file.
111387         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
111389 2006-09-15  Jim Meyering  <jim@meyering.net>
111391         * lib/rename-dest-slash.c (has_trailing_slash): Use
111392         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
111393         (rpl_rename_dest_slash): Perform the cheaper trailing slash
111394         test before testing whether SRC is a directory.
111395         Suggestions from Bruno Haible.
111397         Avoid a warning about an unused variable.
111398         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
111399         into the #ifdef block where it's used.
111401         * lib/rename-dest-slash.c: New file.
111403 2006-09-14  Bruno Haible  <bruno@clisp.org>
111405         * lib/allocsa.c: Include <config.h> unconditionally.
111406         * lib/asnprintf.c: Likewise.
111407         * lib/asprintf.c: Likewise.
111408         * lib/c-strcasecmp.c: Likewise.
111409         * lib/c-strcasestr.c: Likewise.
111410         * lib/c-strncasecmp.c: Likewise.
111411         * lib/c-strstr.c: Likewise.
111412         * lib/classpath.c: Likewise.
111413         * lib/clean-temp.c: Likewise.
111414         * lib/concatpath.c: Likewise.
111415         * lib/copy-file.c: Likewise.
111416         * lib/csharpcomp.c: Likewise.
111417         * lib/csharpexec.c: Likewise.
111418         * lib/execute.c: Likewise.
111419         * lib/fatal-signal.c: Likewise.
111420         * lib/findprog.c: Likewise.
111421         * lib/fwriteerror.c: Likewise.
111422         * lib/gl_array_list.c: Likewise.
111423         * lib/gl_array_oset.c: Likewise.
111424         * lib/gl_avltree_list.c: Likewise.
111425         * lib/gl_avltree_oset.c: Likewise.
111426         * lib/gl_avltreehash_list.c: Likewise.
111427         * lib/gl_carray_list.c: Likewise.
111428         * lib/gl_linked_list.c: Likewise.
111429         * lib/gl_linkedhash_list.c: Likewise.
111430         * lib/gl_list.c: Likewise.
111431         * lib/gl_oset.c: Likewise.
111432         * lib/gl_rbtree_list.c: Likewise.
111433         * lib/gl_rbtree_oset.c: Likewise.
111434         * lib/gl_rbtreehash_list.c: Likewise.
111435         * lib/imaxabs.c: Likewise.
111436         * lib/imaxdiv.c: Likewise.
111437         * lib/javacomp.c: Likewise.
111438         * lib/javaexec.c: Likewise.
111439         * lib/javaversion.c: Likewise.
111440         * lib/linebreak.c: Likewise.
111441         * lib/localcharset.c: Likewise.
111442         * lib/lock.c: Likewise.
111443         * lib/mbchar.c: Likewise.
111444         * lib/mbswidth.c: Likewise.
111445         * lib/mkdtemp.c: Likewise.
111446         * lib/pipe.c: Likewise.
111447         * lib/printf-args.c: Likewise.
111448         * lib/printf-parse.c: Likewise.
111449         * lib/progname.c: Likewise.
111450         * lib/progreloc.c: Likewise.
111451         * lib/readlink.c: Likewise.
111452         * lib/sh-quote.c: Likewise.
111453         * lib/stpcpy.c: Likewise.
111454         * lib/stpncpy.c: Likewise.
111455         * lib/strcasecmp.c: Likewise.
111456         * lib/strcasestr.c: Likewise.
111457         * lib/strcspn.c: Likewise.
111458         * lib/striconv.c: Likewise.
111459         * lib/strncasecmp.c: Likewise.
111460         * lib/strnlen1.c: Likewise.
111461         * lib/strstr.c: Likewise.
111462         * lib/strtok_r.c: Likewise.
111463         * lib/tls.c: Likewise.
111464         * lib/tmpdir.c: Likewise.
111465         * lib/unicodeio.c: Likewise.
111466         * lib/unsetenv.c: Likewise.
111467         * lib/vasnprintf.c: Likewise.
111468         * lib/vasprintf.c: Likewise.
111469         * lib/wait-process.c: Likewise.
111470         * lib/xallocsa.c: Likewise.
111471         * lib/xsetenv.c: Likewise.
111472         * lib/xstriconv.c: Likewise.
111474 2006-09-13  Simon Josefsson  <jas@extundo.com>
111476         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
111477         that internally, suggested by Ralf Wildenhues
111478         <Ralf.Wildenhues@gmx.de>.
111480 2006-09-13  Simon Josefsson  <jas@extundo.com>
111482         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
111483         @LIBOBJS@.
111484         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111486 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
111488         * lib/_fpending.c: Include <config.h> unconditionally, since we no
111489         longer worry about uses that don't define HAVE_CONFIG_H.
111490         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
111491         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
111492         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
111493         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
111494         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
111495         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
111496         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
111497         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
111498         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
111499         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
111500         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
111501         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
111502         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
111503         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
111504         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
111505         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
111506         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
111507         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
111508         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
111509         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
111510         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
111511         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
111512         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
111513         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
111514         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
111515         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
111516         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
111517         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
111518         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
111519         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
111520         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
111521         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
111522         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
111523         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
111524         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
111525         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
111526         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
111527         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
111528         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
111529         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
111530         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
111531         Likewise.
111533 2006-09-13  Eric Blake  <ebb9@byu.net>
111535         * lib/getopt.c: Fix typo in last commit.
111537 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
111539         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
111540         dgettext.
111542 2006-09-12  Jim Meyering  <jim@meyering.net>
111544         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
111545         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
111546         Reported by Nelson H. F. Beebe.
111548 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
111550         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
111551         program_invocation_name and program_invocation_short_name are
111552         initialized.
111553         * lib/argp-namefrob.h: Move declarations of program_invocation_name
111554         and program_invocation_short_name to argp.h, so they are visible
111555         to user programs.
111556         * lib/argp.h: Likewise
111558 2006-09-10  Bruno Haible  <bruno@clisp.org>
111560         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
111561         m4/inttypes_h.m4, m4/uintmax_t.m4.
111563 2006-09-10  Bruno Haible  <bruno@clisp.org>
111565         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
111566         gl_AC_TYPE_UINTMAX_T.
111568 2006-09-10  Bruno Haible  <bruno@clisp.org>
111570         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
111572 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
111574         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
111575         convention.  Text proposed by Bruno Haible.
111576         (struct argp_option): Document the use of N_() wrappers.
111578         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
111579         '\v', and translate the two parts separately, instead of feeding
111580         the whole string to gettext.  This allows to exclude
111581         '\v' from the strings visible to the translator by writing doc
111582         strings as N_("..") "\v" N_("..").
111584 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
111586         * config/srclist.txt: Undo latest change; the bug was fixed.
111588 2006-09-09  Bruno Haible  <bruno@clisp.org>
111590         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
111591         assignments if building a library without libtool.
111592         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
111593         in func_emit_lib_Makefile_am.
111594         (func_import): When building a static library libfoo.a, arrange to
111595         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
111596         (func_create_testdir): Likewise.
111597         * modules/gc (configure.ac, Makefile.am): If building statically,
111598         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
111599         * modules/iconvme (configure.ac, Makefile.am): Likewise.
111600         * modules/striconv (configure.ac, Makefile.am): Likewise.
111601         Based on a suggestion by Ralf Wildenhues.
111603 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111605         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
111606         Check for unistd.h too, since Autoconf doesn't assume POSIX.
111607         Also:
111609         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111610         Add year_2050_test to catch glibc bug 2821
111611         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
111613         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111614         Prefer #ifdef to #if.
111616         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
111617         Return from 'main' instead of calling 'exit'.
111619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111621         * lib/mktime.c (guess_time_tm): Fix bug where mktime
111622         returned the maximum time_t value rather than (time_t) -1.
111623         Problem originally reported by William Bardwell
111624         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
111626         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
111627         Moved to here ...
111628         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
111629         ... from here.
111631 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111633         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
111634         2821 is fixed.
111636 2006-09-08  Jim Meyering  <jim@meyering.net>
111638         Don't make generated files read-only.  That would bother too many
111639         people.  However, do retain the ability to work when targets are
111640         read-only: remove the destination and temporary files before writing
111641         them (when generated via sed or echo), or by using the -f option for
111642         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
111643         * modules/alloca-opt, modules/argz, modules/arpa_inet:
111644         * modules/byteswap, modules/configmake, modules/fcntl:
111645         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
111646         * modules/localcharset, modules/netinet_in, modules/poll:
111647         * modules/stdbool, modules/stdint, modules/sys_select:
111648         * modules/sys_socket, modules/sys_stat, modules/sysexits:
111650 2006-09-08  Jim Meyering  <jim@meyering.net>
111652         Avoid new build failure on FreeBSD 6.0.
111653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
111654         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
111655         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
111657 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
111661 2006-09-07  Jim Meyering  <jim@meyering.net>
111663         Fix global typo in last change: use chmod u-w, not chmod u-x.
111664         Spotted by Paul Eggert and Bruce Korb.
111665         * modules/alloca-opt, modules/argz, modules/arpa_inet:
111666         * modules/byteswap, modules/configmake, modules/fcntl:
111667         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
111668         * modules/localcharset, modules/netinet_in, modules/poll:
111669         * modules/stdbool, modules/stdint, modules/sys_select:
111670         * modules/sys_socket, modules/sys_stat, modules/sysexits:
111672 2006-09-06  Jim Meyering  <jim@meyering.net>
111674         Make generated files be read-only.
111675         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
111676         Ensure that each generated file is now read-only.
111677         * modules/argz: Likewise.
111678         * modules/arpa_inet: Likewise.
111679         * modules/byteswap: Likewise.
111680         * modules/configmake: Likewise.
111681         * modules/fcntl: Likewise.
111682         * modules/fnmatch: Likewise.
111683         * modules/getopt: Likewise.
111684         * modules/glob: Likewise.
111685         * modules/inttypes: Likewise.
111686         * modules/netinet_in: Likewise.
111687         * modules/poll: Likewise.
111688         * modules/stdbool: Likewise.
111689         * modules/stdint: Likewise.
111690         * modules/sys_select: Likewise.
111691         * modules/sys_socket: Likewise.
111692         * modules/sys_stat: Likewise.
111693         * modules/sysexits: Likewise.
111694         * modules/localcharset: Same as above, but continue using temporary
111695         file named "t-$@" (why different?) rather than the "$@-t" used
111696         everywhere else.
111698         * modules/sysexits (Makefile.am): Replace literal occurrences
111699         of "sysexit.h" more readable, and more consistent, "$@".
111701 2006-09-06  Bruno Haible  <bruno@clisp.org>
111703         * modules/striconv: New file.
111704         * modules/xstriconv: New file.
111705         * MODULES.html.sh (Internationalization functions): Add striconv,
111706         xstriconv.
111708 2006-09-06  Bruno Haible  <bruno@clisp.org>
111710         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
111711         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
111712         not using libtool correctly.
111714 2006-09-06  Bruno Haible  <bruno@clisp.org>
111716         * lib/striconv.h: New file.
111717         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
111718         iconvstring.c.
111719         * lib/xstriconv.h: New file.
111720         * lib/xstriconv.c: New file.
111722 2006-09-06  Bruno Haible  <bruno@clisp.org>
111724         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111725         lib_..._LDFLAGS.
111727 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111729         * lib/argz_.h: Sync from Libtool.
111731         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
111732                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111734         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
111736 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
111738         * modules/trim: New file.
111740 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
111742         * lib/trim.h: New file.
111743         * lib/trim.c: New file.
111745 2006-09-05  Bruno Haible  <bruno@clisp.org>
111747         * MODULES.html.sh (String handling): Add trim.
111749 2006-09-04  Karl Berry  <karl@gnu.org>
111751         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
111752         until next release.
111754 2006-09-03  Bruno Haible  <bruno@clisp.org>
111756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
111757         correctly.
111759 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
111761         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
111762         not gl_GETLOADAVG.  Omit unneeded semicolons.
111763         Problems reported by Ralf Wildenhues in
111764         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
111765         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
111766         at the end, which is the usual gnulib style.
111768         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
111769         of doing all the work ourselves.
111770         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
111771         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
111773 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
111775         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
111776         Problem reported by Ralf Wildenhues in
111777         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
111779         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
111780         HAVE_STRUCT_STATFS_F_FSTYPENAME.
111782 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
111784         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
111785         yesterday's patch by changing test -n to test -z.
111787 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111789         * modules/getloadavg (Files): Add m4/getloadavg.m4.
111790         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
111791         the former is now obsolescent.
111793         * modules/chdir-long (Depends-on): Add fcntl.
111795 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111797         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
111798         obsolescent, and programs should use gnulib instead.
111799         * m4/getloadavg.m4: New file, with contents taken from Autoconf
111800         but with prefixes changed.
111802 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111804         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
111805         or stdbool.h, because they might not exist while configuring.
111807         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
111808         Don't include unistd.h or limits.h; not needed, since chdir-long.h
111809         does that for us.
111810         (O_DIRECTORY): Remove.
111812 2006-08-31  Eric Blake  <ebb9@byu.net>
111814         * gnulib-tool: Don't let emacs change spaces to TAB.
111816 2006-08-31  Bruno Haible  <bruno@clisp.org>
111818         * gnulib-tool: When calling func_import more than once, do it in a
111819         subshell.
111820         Reported by Eric Blake <ebb9@byu.net>.
111822 2006-08-31  Bruno Haible  <bruno@clisp.org>
111824         * gnulib-tool (nl): Remove variable.
111825         (sed_transform_lib_file): Use more robust test for config-h module.
111826         (func_import): Fix typo in 2006-08-25 patch.
111828 2006-08-31  Bruno Haible  <bruno@clisp.org>
111830         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
111831         specified, augment Makefile.am variables instead of assigning them.
111833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111835         Work around a bug in both the Linux and SunOS 64-bit kernels:
111836         nanosleep mishandles sleeps for longer than 2**31 seconds.
111837         Problem reported by Frank v Waveren in
111838         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
111839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
111840         Check for nanosleep bug.
111841         (LIB_NANOSLEEP): Append clock_gettime library if needed.
111843 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111845         Work around a bug in both the Linux and SunOS 64-bit kernels:
111846         nanosleep mishandles sleeps for longer than 2**31 seconds.
111847         Problem reported by Frank v Waveren in
111848         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
111849         * lib/nanosleep.c (BILLION): New constant.
111850         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
111851         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
111852         implementation.
111854 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111856         * modules/nanosleep (Depends-on): Add gettime.
111858 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111859         and Simon Josefsson  <jas@extundo.com>
111860         and Oskar Liljeblad  <oskar@osk.mine.nu>
111862         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
111863         * gnulib-tool (func_import): New license type 'unmodifiable license
111864         text'.
111865         * modules/fdl: Use it.  Longer description.
111866         * module/gpl, module/lgpl: New files.
111868 2006-08-30  Jim Meyering  <jim@meyering.net>
111870         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
111871         shadowing the parameter.
111873 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111875         Sync from Libtool:
111877         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111879         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
111880         sharing with gnulib.  Report by Eric Blake.
111882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111884         * modules/isapipe: New file.
111885         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
111887 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111889         * modules/configmake (Makefile.am): Add a comment, and omit
111890         the CONFIGMAKE_ prefix from generated macro names.  Suggested
111891         by Bruno Haible.
111893 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111895         * m4/isapipe.m4: New file.
111897 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111899         * lib/isapipe.c, lib/isapipe.h: New files.
111901 2006-08-29  Jim Meyering  <jim@meyering.net>
111903         * modules/configmake (Makefile.am): Make configmake.h depend on
111904         Makefile.  Otherwise, a stale configmake.h could hang around.
111906 2006-08-29  Eric Blake  <ebb9@byu.net>
111908         * lib/error.c (error_at_line, print_errno_message): Match libc, after
111909         resolution of upstream bug 3044.
111911 2006-08-29  Bruno Haible  <bruno@clisp.org>
111913         * modules/localcharset (Depends-on): Add configmake.
111914         (Makefile.am): Remove setting of LIBDIR through DEFS.
111916 2006-08-29  Bruno Haible  <bruno@clisp.org>
111918         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
111919         defined.
111921 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111923         * modules/fcntl: New file.
111924         * modules/chdir-safer (Depends-on): Add fcntl.
111925         * modules/fts: Likewise.
111926         * modules/mkdir-p: Likewise.
111928         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
111929         This undoes the most recent change, since we're now addressing the
111930         problem in a different way.
111932         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
111933         into output, since the output might be called Makefile.am even
111934         if $makefile_name is something different.
111935         (func_import): Use $makefile_am rather than
111936         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
111937         empty.
111939         * modules/inttypes (Files): Add m4/inttypes-h.m4.
111941 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111943         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
111944         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
111945         recent change to stdint.m4, since we're now addressing the problem in a
111946         different way.
111948 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111950         * m4/fcntl_h.m4: New file.
111952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111954         * lib/fcntl_.h: New file.
111955         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
111956         the fcntl module.
111957         * lib/dirchownmod.c: Likewise.
111958         * lib/fts.c: Likewise.
111960         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
111961         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
111962         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
111963         just before including <inttypes.h>, to avoid circular inclusion.
111965 2006-08-28  Jim Meyering  <jim@meyering.net>
111967         * doc/visibility.texi: Actually read and correct the grammar of the
111968         sentence affected by yesterday's change.
111970 2006-08-28  Eric Blake  <ebb9@byu.net>
111972         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
111973         needs wrapper.
111975 2006-08-28  Eric Blake  <ebb9@byu.net>
111977         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
111979 2006-08-28  Eric Blake  <ebb9@byu.net>
111981         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
111983 2006-08-28  Bruno Haible  <bruno@clisp.org>
111985         * modules/c-strstr: New file, from GNU gettext.
111986         * MODULES.html.sh (String handling): Add c-strstr.
111988 2006-08-28  Bruno Haible  <bruno@clisp.org>
111990         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
111991         macros.
111992         Reported by Eric Blake.
111994 2006-08-28  Bruno Haible  <bruno@clisp.org>
111996         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
111997         (VASNPRINTF): Return a string of length > INT_MAX without failing.
111998         * lib/vasprintf.c: Include errno.h, limits.h.
111999         (EOVERFLOW): New fallback definition.
112000         (vasprintf): Test here whether the string length is > INT_MAX.
112001         * lib/vsnprintf.c: Include errno.h, limits.h.
112002         (EOVERFLOW): New fallback definition.
112003         (vsnprintf): Fix bug when generated string was too long for the buffer.
112004         Test here whether the string length is > INT_MAX.
112006 2006-08-28  Bruno Haible  <bruno@clisp.org>
112008         * lib/inttypes_.h (SCNX*): Remove definitions.
112009         Reported by Eric Blake.
112011 2006-08-28  Bruno Haible  <bruno@clisp.org>
112013         * lib/c-strstr.h: New file, from GNU gettext.
112014         * lib/c-strstr.c: New file, from GNU gettext.
112016 2006-08-28  Bruno Haible  <bruno@clisp.org>
112018         * gnulib-tool: Reorder some statements.
112020 2006-08-28  Bruno Haible  <bruno@clisp.org>
112022         * gnulib-tool: New option --makefile-name.
112023         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
112024         $makefile_name.
112025         (func_import): Write $makefile_name to the cache file, and read it from
112026         there unless explicitly specified. Use $makefile_name as file name
112027         instead of Makefile.am. Adjust the recommendations accordingly.
112029 2006-08-28  Bruno Haible  <bruno@clisp.org>
112031         * gnulib-tool (func_verify_module): Check against misapplying patch.
112033 2006-08-28  Bruno Haible  <bruno@clisp.org>
112035         * gnulib-tool (func_relativize, func_relconcat): New functions.
112036         Give an error if --local-dir is given with --update.
112037         Remove trailing slashes from $local_gnulib_dir.
112038         (func_import): Store the relativized $local_gnulib_dir in
112039         gnulib-cache.m4, and read it from there if not specified explicitly.
112041 2006-08-28  Bruno Haible  <bruno@clisp.org>
112043         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
112044         is the current directory. Respect also $local_gnulib_dir.
112046 2006-08-28  Bruno Haible  <bruno@clisp.org>
112047             Simon Josefsson  <jas@extundo.com>
112049         BeOS portability.
112050         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
112052 2006-08-27  Jim Meyering  <jim@meyering.net>
112054         * doc/visibility.texi: Remove duplicate word: "pointer".
112056 2006-08-26  Bruno Haible  <bruno@clisp.org>
112058         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
112059         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
112060         (Makefile.am): Create inttypes.h from inttypes_.h.
112061         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
112063         * modules/imaxabs: New file.
112065         * modules/imaxdiv: New file.
112067 2006-08-26  Bruno Haible  <bruno@clisp.org>
112069         * m4/inttypes.m4: New file.
112070         * m4/_inttypes_h.m4: Remove file.
112071         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
112072         PRI_MACROS_BROKEN.
112073         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
112075         * m4/imaxabs.m4: New file.
112077         * m4/imaxdiv.m4: New file.
112079 2006-08-26  Bruno Haible  <bruno@clisp.org>
112081         * lib/inttypes_.h: New file.
112082         * lib/inttypes.h: Remove file.
112083         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
112085         * lib/imaxabs.c: New file.
112087         * lib/imaxdiv.c: New file.
112089 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112091         New config-h module, so that "make" output needn't be cluttered
112092         by -DHAVE_CONFIG_H.
112093         * MODULES.html.sh (Support for building libraries and executables):
112094         Add config-h.
112095         * modules/config-h: New file.
112096         * gnulib-tool (nl, sed_transform_lib_file): New vars.
112097         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
112098         the config-h module is used.
112100         New configmake module, so that "make" output needn't be cluttered
112101         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
112102         * MODULES.html.sh (Support for building libraries and executables):
112103         Add configmake.
112104         * modules/configmake: New file.
112106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112108         * m4/config-h.m4: New file.
112110 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112112         * config/srclist.txt: Add elisp-comp.
112114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112116         * MODULES.html.sh (Support for building libraries and executables):
112117         Add elisp-comp.
112118         * build-aux/elisp-comp: New file.
112119         * modules/elisp-comp: New file.
112121 2006-08-24  Bruno Haible  <bruno@clisp.org>
112123         * gnulib-tool (func_create_testdir): Use non-default values of
112124         sourcebase and m4base.
112126 2006-08-24  Bruno Haible  <bruno@clisp.org>
112128         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
112129         HTML structure.
112131 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112133         * modules/openat (Depends-on): Add lchown.
112135 2006-08-23  Bruno Haible  <bruno@clisp.org>
112137         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
112138         of gl_LOCK_EARLY instead of gl_LOCK.
112140 2006-08-23  Bruno Haible  <bruno@clisp.org>
112142         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
112143         on OSF/1 to no.
112144         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
112146 2006-08-23  Bruno Haible  <bruno@clisp.org>
112148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
112149         as unusable.
112151         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
112152         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
112153         (gl_LOCK): New macro.
112155 2006-08-22  Simon Josefsson  <jas@extundo.com>
112157         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
112158         to md5 module.
112160 2006-08-22  Simon Josefsson  <jas@extundo.com>
112162         * MODULES.html.sh: Add "Support for maintaining and release
112163         projects".
112165         * build-aux/gnupload: New file, from coreutils.
112167 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112169         Avoid the need for AC_LIBSOURCES in m4 macros.
112170         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
112171         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
112172         * modules/check-version (EXTRA_DIST): Add check-version.h.
112173         * modules/crc (EXTRA_DIST): Add crc.h.
112174         * modules/des (EXTRA_DIST): Add des.h.
112175         * modules/gc (EXTRA_DIST): Add gc.h.
112176         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
112177         * modules/getline (EXTRA_DIST): Add getline.h.
112178         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
112179         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
112180         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
112181         * modules/md2 (EXTRA_DIST): Add md2.h.
112182         * modules/md4 (EXTRA_DIST): Add md4.h.
112183         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
112184         * modules/read-file (EXTRA_DIST): Add read-file.h.
112185         * modules/readline (EXTRA_DIST): Add readline.h.
112186         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
112187         rijndael-api-fst.h.
112189 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112191         * m4/rijndael.m4 (gl_ARCFOUR):
112192         * m4/arctwo.m4 (gl_ARCTWO):
112193         * m4/check-version.m4 (gl_CHECK_VERSION):
112194         * m4/crc.m4 (gl_CRC):
112195         * m4/des.m4 (gl_DES):
112196         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
112197         * m4/gc.m4 (gl_GC):
112198         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
112199         * m4/getline.m4 (gl_FUNC_GETLINE):
112200         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
112201         * m4/hmac-md5.m4 (gl_HMAC_MD5):
112202         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
112203         * m4/md2.m4 (gl_MD2):
112204         * m4/md4.m4 (gl_MD4):
112205         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
112206         * m4/read-file.m4 (gl_FUNC_READ_FILE):
112207         * m4/readline.m4 (gl_FUNC_READLINE):
112208         * m4/rijndael.m4 (gl_RIJNDAEL):
112209         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
112210         to get the necessary .h files and whatnot.
112212 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112214         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
112215         gnulib rather than the other way around.
112216         * config/srclistvars.sh (COREUTILS): Remove.
112218 2006-08-22  Jim Meyering  <jim@meyering.net>
112220         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
112222         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
112224 2006-08-22  Eric Blake  <ebb9@byu.net>
112226         * modules/regexprops-generic: New file.
112227         * MODULES.html.sh (Support for building documentation): List it.
112229 2006-08-22  Eric Blake  <ebb9@byu.net>
112231         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
112232         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
112233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
112234         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
112236 2006-08-22  Bruno Haible  <bruno@clisp.org>
112238         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
112239         and lib_LTLIBRARIES like the other lib_* variables.
112241 2006-08-22  Bruno Haible  <bruno@clisp.org>
112243         * build-aux/x-to-1.in: New file, from GNU gettext.
112245 2006-08-22  Bruno Haible  <bruno@clisp.org>
112247         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
112248         <utmpx.h> exists.
112250 2006-08-22  Bruno Haible  <bruno@clisp.org>
112252         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
112253         <utmpx.h> exists.
112255 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112257         BeOS portability.
112258         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
112259         exist.
112260         Problem reported by Bruno Haible.
112262 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112264         Avoid the need for AC_LIBSOURCES in m4 macros.
112265         * modules/acl (EXTRA_DIST): Add acl.h.
112266         * modules/argmatch (Files): Add m4/argmatch.m4.
112267         (configure.ac): Add gl_ARGMATCH.
112268         (EXTRA_DIST): Renamed from lib_SOURCES, for
112269         consistency with the other modules.  Remove argmatch.c.
112270         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
112271         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
112272         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
112273         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
112274         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
112275         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
112276         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
112277         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
112278         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
112279         * modules/closeout (EXTRA_DIST): Add closeout.h.
112280         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
112281         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
112282         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
112283         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
112284         dirname.h; remove basename.c and stripslash.c.
112285         * modules/exclude (EXTRA_DIST): Add exclude.h.
112286         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
112287         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
112288         * modules/file-type (EXTRA_DIST): Add file-type.h.
112289         * modules/filemode (EXTRA_DIST): Add filemode.h.
112290         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
112291         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
112292         * modules/fpending (EXTRA_DIST): Add __fpending.h.
112293         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
112294         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
112295         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
112296         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
112297         * modules/getdate (EXTRA_DIST): Add getdate.c.
112298         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
112299         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
112300         * modules/getpass (EXTRA_DIST): Add getpass.h.
112301         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
112302         * modules/group-member (EXTRA_DIST): Add group-member.h.
112303         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
112304         * modules/hash (EXTRA_DIST): Add hash.h.
112305         * modules/human (EXTRA_DIST): Add human.h.
112306         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
112307         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
112308         * modules/lchown (EXTRA_DIST): Add lchown.h.
112309         * modules/long-options (EXTRA_DIST): Add long-options.h.
112310         * modules/lstat (EXTRA_DIST): Add lstat.h.
112311         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
112312         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
112313         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
112314         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
112315         * modules/memxor (EXTRA_DIST): Add memxor.h.
112316         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
112317         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
112318         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
112319         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
112320         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
112321         * modules/physmem (EXTRA_DIST): Add physmem.h.
112322         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
112323         * modules/posixver (EXTRA_DIST): Add posixver.h.
112324         * modules/quote (EXTRA_DIST): Add quote.h.
112325         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
112326         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
112327         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
112328         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
112329         regex_internal.h regexec.c.
112330         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
112331         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
112332         * modules/same (EXTRA_DIST): Add same.h.
112333         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
112334         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
112335         * modules/savedir (EXTRA_DIST): Add savedir.h.
112336         * modules/sha1 (EXTRA_DIST): Add sha1.h.
112337         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
112338         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
112339         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
112340         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
112341         * modules/strdup (EXTRA_DIST): Add strdup.h.
112342         * modules/strftime (EXTRA_DIST): Add strftime.h.
112343         * modules/strndup (EXTRA_DIST): Add strndup.h.
112344         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
112345         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
112346         * modules/time_r (EXTRA_DIST): Add time_r.h.
112347         * modules/timespec (EXTRA_DIST): Add timespec.h.
112348         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
112349         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
112350         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
112351         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
112352         * modules/userspec (EXTRA_DIST): Add userspec.h.
112353         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
112354         * modules/utimens (EXTRA_DIST): Add utimens.h.
112355         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
112356         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
112357         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
112358         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
112359         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
112360         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
112361         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
112362         * modules/yesno (EXTRA_DIST): Add yesno.h.
112364 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
112368         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
112369         * m4/dev-ino.m4, same-inode.m4: Remove.
112371         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
112372         * m4/acl.m4 (AC_FUNC_ACL):
112373         * m4/backupfile.m4 (gl_BACKUPFILE):
112374         * m4/c-strtod.m4 (gl_C99_STRTOLD):
112375         * m4/canon-host.m4 (gl_CANON_HOST):
112376         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
112377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
112378         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
112379         * m4/cloexec.m4 (gl_CLOEXEC):
112380         * m4/close-stream.m4 (gl_CLOSE_STREAM):
112381         * m4/closeout.m4 (gl_CLOSEOUT):
112382         * m4/dirfd.m4 (gl_FUNC_DIRFD):
112383         * m4/dirname.m4 (gl_DIRNAME):
112384         * m4/exclude.m4 (gl_EXCLUDE):
112385         * m4/exitfail.m4 (gl_EXITFAIL):
112386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
112387         * m4/file-type.m4 (gl_FILE_TYPE):
112388         * m4/filemode.m4 (gl_FILEMODE):
112389         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
112390         * m4/fpending.m4 (gl_FUNC_FPENDING):
112391         * m4/fprintftime.m4 (gl_FPRINTFTIME):
112392         * m4/fts.m4 (gl_FUNC_FTS):
112393         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
112394         * m4/getdate.m4 (gl_GETDATE):
112395         * m4/gethrxtime.m4 (gl_GETHRXTIME):
112396         * m4/getpagesize.m4 (gl_GETPAGESIZE):
112397         * m4/getpass.m4 (gl_FUNC_GETPASS):
112398         * m4/gettime.m4 (gl_GETTIME):
112399         * m4/getugroups.m4 (gl_GETUGROUPS):
112400         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
112401         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
112402         * m4/hard-locale.m4 (gl_HARD_LOCALE):
112403         * m4/hash.m4 (gl_HASH):
112404         * m4/idcache.m4 (gl_IDCACHE):
112405         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
112406         * m4/lchown.m4 (gl_FUNC_LCHOWN):
112407         * m4/long-options.m4 (gl_LONG_OPTIONS):
112408         * m4/lstat.m4 (gl_FUNC_LSTAT):
112409         * m4/md5.m4 (gl_MD5):
112410         * m4/memcasecmp.m4 (gl_MEMCASECMP):
112411         * m4/memcoll.m4 (gl_MEMCOLL):
112412         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
112413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
112414         * m4/memxor.m4 (gl_MEMXOR):
112415         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
112416         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
112417         * m4/modechange.m4 (gl_MODECHANGE):
112418         * m4/mountlist.m4 (gl_MOUNTLIST):
112419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
112420         * m4/openat.m4 (gl_FUNC_OPENAT):
112421         * m4/pathmax.m4 (gl_PATHMAX):
112422         * m4/physmem.m4 (gl_PHYSMEM):
112423         * m4/posixtm.m4 (gl_POSIXTM):
112424         * m4/posixver.m4 (gl_POSIXVER):
112425         * m4/quote.m4 (gl_QUOTE):
112426         * m4/quotearg.m4 (gl_QUOTEARG):
112427         * m4/readtokens.m4 (gl_READTOKENS):
112428         * m4/readutmp.m4 (gl_READUTMP):
112429         * m4/regex.m4 (gl_REGEX):
112430         * m4/safe-read.m4 (gl_SAFE_READ):
112431         * m4/safe-write.m4 (gl_SAFE_WRITE):
112432         * m4/same.m4 (gl_SAME):
112433         * m4/save-cwd.m4 (gl_SAVE_CWD):
112434         * m4/savedir.m4 (gl_SAVEDIR):
112435         * m4/settime.m4 (gl_SETTIME):
112436         * m4/sha1.m4 (gl_SHA1):
112437         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
112438         * m4/stat-macros.m4 (gl_STAT_MACROS):
112439         * m4/stat-time.m4 (gl_STAT_TIME):
112440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
112441         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
112442         * m4/strdup.m4 (gl_FUNC_STRDUP):
112443         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
112444         * m4/strndup.m4 (gl_FUNC_STRNDUP):
112445         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
112446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
112447         * m4/time_r.m4 (gl_TIME_R):
112448         * m4/timespec.m4 (gl_TIMESPEC):
112449         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
112450         * m4/unlinkdir.m4 (gl_UNLINKDIR):
112451         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
112452         * m4/userspec.m4 (gl_USERSPEC):
112453         * m4/utimecmp.m4 (gl_UTIMECMP):
112454         * m4/utimens.m4 (gl_UTIMENS):
112455         * m4/xalloc.m4 (gl_XALLOC):
112456         * m4/xgetcwd.m4 (gl_XGETCWD):
112457         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
112458         * m4/xreadlink.m4 (gl_XREADLINK):
112459         * m4/xstrtod.m4 (gl_XSTRTOD):
112460         * m4/yesno.m4 (gl_YESNO):
112461         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
112462         to get the necessary .h files and whatnot.
112464 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
112465             Bruno Haible  <bruno@clisp.org>
112467         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
112468         /bin/sh understanding of '!' conditional negation.
112470 2006-08-21  Jim Meyering  <jim@meyering.net>
112472         * modules/openat (Depends-on): Really alphabetize.
112474         * modules/acl (Depends-on): Add error and quote.
112476         * check-module (find_included_lib_files): Add at-func.c to the
112477         ok-to-include-more-than-once white list.
112479         * modules/openat (Depends-on): Add lstat.  Alphabetize.
112481 2006-08-21  Bruno Haible  <bruno@clisp.org>
112483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112484         Emit a pkgdata_DATA variable only if some snippets add contents to it.
112485         Reported by Martin Lambers <marlam@marlam.de>.
112487 2006-08-21  Bruno Haible  <bruno@clisp.org>
112489         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
112490         specify an installation location, don't emit a noinst_LIBRARIES or
112491         noinst_LTLIBRARIES assignment.
112493 2006-08-21  Bruno Haible  <bruno@clisp.org>
112495         BeOS portability.
112496         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
112497         BeOS has mbrtowc() but no <wctype.h>.
112499 2006-08-21  Bruno Haible  <bruno@clisp.org>
112501         BeOS portability.
112502         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
112503         exist.
112505 2006-08-21  Bruno Haible  <bruno@clisp.org>
112507         BeOS portability.
112508         * lib/mbchar.h: Include <wctype.h> only if it exists.
112510 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112512         Remove files that are no longer needed by their respective modules.
112513         * m4/obstack.m4: Remove.
112514         * m4/strerror_r.m4: Remove.
112515         * m4/uint32_t.m4: Remove.
112516         * m4/uintptr_t.m4: Remove.
112517         * m4/ullong_max.m4: Remove.
112518         * m4/xstrtoimax.m4: Remove.
112519         * m4/xstrtoumax.m4: Remove.
112521         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
112522         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
112523         dependencies now capture this.
112525         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
112526         Do not use AC_LIBSOURCES, since gnulib modules now do this.
112527         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
112528         * m4/human.m4 (gl_HUMAN): Likewise.
112529         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
112530         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
112532         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
112534         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
112535         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
112536         stdint.
112537         * m4/human.m4 (gl_HUMAN): Likewise.
112538         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
112539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
112540         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
112541         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
112542         * m4/xstrtol (gl_XSTRTOL): Likewise.
112544         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
112545         AC_TYPE_LONG_LONG_INT.
112546         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
112547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
112548         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
112549         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
112551         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
112552         on stdbool.
112554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
112555         (gl_PREREQ_XSTRTOUL): Remove.
112557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
112559         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
112560         mode.
112562 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112564         Add and change modules to make it easier for coreutils to use
112565         gnulib-tool.
112566         * modules/backupfile (Files): Remove m4/d-ino.m4.
112567         (Depends-on): Add d-ino.
112568         * modules/cycle-check (Depends-on): Add stdint.
112569         (lib_SOURCES): Add cycle-check.h.
112570         * modules/d-ino: New module.
112571         * modules/d-type: New module.
112572         * modules/error (Files): Remove m4/strerror_r.m4.
112573         * modules/filemode (Files): Add m4/st_dm_mode.m4.
112574         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112575         m4/inttypes_h.m4, m4/uintmax_t.m4.
112576         (Depends-on): Add stdint.
112577         (lib_SOURCES): Add fsusage.h.
112578         * modules/getcwd (Files): Remove d-ino.m4.
112579         (Depends-on): Add d-ino.
112580         * modules/getndelim2 (Depends-on): Add stdint.
112581         * modules/glob (Files): Remove m4/d-type.m4.
112582         (Depends-on): Add d-type.
112583         * modules/host-os: New module.
112584         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
112585         m4/inttypes_h.m4, m4/uintmax_t.m4.
112586         * Depends-on: Add stdint.
112587         (lib_SOURCES): Add human.h.
112588         * modules/inttostr (Files): Remove m4/intmax_t.m4,
112589         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
112590         m4/uintmax_t.m4, m4/ulonglong.m4.
112591         (Depends-on): Add stdint.
112592         (EXTRA_DIST): Add inttostr.h.
112593         * modules/lchmod: New module.
112594         * modules/link-follow: New module.
112595         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
112596         (Depends-on): Add lchmod.
112597         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
112598         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
112599         (Depends-on): Add stdint.
112600         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
112601         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
112602         (Depends-on): Add stdint.
112603         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
112604         * modules/perl: New module.
112605         * modules/regex (Depends-on): Add stdint.
112606         * modules/rmdir-errno: New module.
112607         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
112608         m4/intmax_t.m4.
112609         (Depends-on): Add stdint.
112610         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
112611         m4/uintmax_t.m4.
112612         (Depends-on): Add stdint.
112613         * modules/unlink-busy: New module.
112614         * modules/utimecmp (Depends-on): Add stdint.
112615         * modules/uptime: New module.
112616         * modules/winsz-ioctl: New module.
112617         * modules/winsz-termios: New module.
112618         * modules/xnanosleep (Depends-on): Add nanosleep.
112619         * modules/ullong_max: Remove.
112620         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
112621         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
112622         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
112623         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
112624         (Depends-on): Add inttypes.
112625         (lib_SOURCES): Add xstrtol.h.
112626         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
112627         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
112628         * MODULES.html.sh: Move 'assert' into the assert section.
112629         Move 'dummy' into the linking section.
112630         Remove ullong_max.
112631         Add section for compatibility checks for POSIX:2001 functions,
112632         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
112633         winsz-ioctl, and winsz-termios into it.
112634         Add lchmod.
112635         Add top-level Misc section and put host-os, perl, and uptime
112636         into it.
112638 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112640         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
112641         now assume the stdint module.  Do not include inttypes.h.
112642         * lib/fsusage.h: Likewise.
112643         * lib/getndelim2.c: Likewise.
112644         * lib/human.h: Likewise.
112645         * lib/inttostr.h: Likewise.
112646         * lib/obstack.c: Likewise.
112647         * lib/regex_internal.h: Likewise.
112648         * lib/tempname.c: Likewise.
112649         * lib/utimecmp.c: Likewise.
112650         * lib/xstrtol.h: Likewise.
112652         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
112654         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
112655         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
112656         * lib/xtime.h: Likewise.
112658 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112660         * modules/openat (Files): Add lib/fchmodat.c.
112661         Fixes problem reported by Jay Youngman.
112663 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112665         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
112666         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
112668 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
112669             Bruno Haible  <bruno@clisp.org>
112671         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
112672         and is a script that invokes bison. Tighten the code. Add comments.
112674 2006-08-18  Jim Meyering  <jim@meyering.net>
112676         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
112677         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
112678         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
112679         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
112681 2006-08-18  Bruno Haible  <bruno@clisp.org>
112683         * modules/bison-i18n: New file.
112684         * MODULES.html.sh (Internationalization functions): Add it.
112686 2006-08-18  Bruno Haible  <bruno@clisp.org>
112688         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
112689         sys/statvfs.h. When getmntinfo was found, check its declaration and
112690         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
112692 2006-08-18  Bruno Haible  <bruno@clisp.org>
112694         * m4/bison-i18n.m4: New file, from bison.
112696 2006-08-18  Bruno Haible  <bruno@clisp.org>
112698         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
112699         (ME_DUMMY): Treat "kernfs" as a dummy.
112700         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
112702 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
112704         Update from coreutils.
112706         2006-08-15  Jim Meyering  <jim@meyering.net>
112708         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
112710         2006-01-17  Jim Meyering  <jim@meyering.net>
112712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
112714         2006-01-11  Jim Meyering  <jim@meyering.net>
112716         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
112717         Check for the lchmod function.
112719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
112721         Update from coreutils.
112723         * lib/__fpending.h: Add copyright notice.
112724         * lib/fprintftime.h: Likewise.
112725         * lib/savedir.c: Use (C) in copyright notice.
112726         * lib/savedir.h: Likewise.
112728         2006-08-15  Jim Meyering  <jim@meyering.net>
112730         * lib/at-func.c: New file, with the logic of all emulated at-functions.
112731         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
112732         in support of the EXPECTED_ERRNO macro.
112733         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
112734         definitions.  Instead, define the appropriate symbols and include
112735         "at-func.c".
112736         * lib/mkdirat.c (mkdirat): Likewise.
112737         * lib/fchmodat.c (fchmodat): Likewise.
112738         (ENOSYS): Remove definition.
112739         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
112740         it.  Don't include "unistd--.h" -- it wasn't ever used.
112742         2006-01-17  Jim Meyering  <jim@meyering.net>
112744         Rewrite fts.c not to change the current working directory,
112745         by using openat, fstatat, fdopendir, etc..
112747         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
112748         (HAVE_OPENAT_SUPPORT): Define.
112749         [_LIBC] (fchdir): Don't undef or define; no longer used.
112750         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
112751         Now, this `function' always succeeds, and consumes its file descriptor
112752         parameter -- so callers must not close such FDs.  Update callers.
112753         (diropen_fd, opendirat, cwd_advance_fd): New functions.
112754         (diropen): Add parameter, SP.  Adjust all callers.
112755         Implement using diropen_fd, rather than open.
112756         (fts_open): Initialize new member, fts_cwd_fd.
112757         Remove fts_rft-setting code.
112758         (fts_close): Close fts_cwd_fd, if necessary.
112759         (__opendir2): Define in terms of opendir or opendirat,
112760         depending on whether the FST_NOCHDIR flag is set.
112761         (fts_build): Since fts_safe_changedir consumes its FD, and since
112762         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
112763         and close the dup'd file descriptor upon failure.
112764         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
112765         (fts_safe_changedir): Tweak semantics to reflect that this function
112766         now calls cwd_advance_fd and hence consumes its FD argument.
112767         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
112768         [struct FTS] (fts_rft): Remove now-unused member.
112769         [struct FTS] (fts_cycle.state): Improve comment.
112771         * lib/openat.c (openat_needs_fchdir): New function.
112772         * lib/openat.h (openat_needs_fchdir): Declare it.
112774 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
112776         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
112777         Problem and fix reported by Pádraig Brady in
112778         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
112780 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112782         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
112784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112786         * lib/memcoll.c (memcoll): Optimize for the common case where the
112787         arguments are bytewise equal.
112789 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112791         * doc/regexprops-generic.texi: Add a copyright notice.
112793 2006-08-15  Bruno Haible  <bruno@clisp.org>
112795         * modules/tmpdir (License): Change to LGPL.
112797 2006-08-15  Bruno Haible  <bruno@clisp.org>
112799         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
112800         module.
112802 2006-08-14  Simon Josefsson  <jas@extundo.com>
112804         * config/srclist.txt: Add gnupload.
112806 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112808         Change copyright notice from LGPL 2 to GPL 2, since that's the
112809         standard form used in the gnulib repository.
112810         * tests/test-lock.c: Likewise.
112811         * tests/test-stdint.c: Likewise.
112812         * tests/test-tls.c: Likewise.
112814         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
112815         prelude-manager.  User shorter URLs for GNU projects, without '?'.
112816         Add copyright notice.
112818         * check-module: Add copyright notice.  Output a copyright
112819         notice if "--version" is specified.
112820         * modules/COPYING: New file.
112821         * tests/test-getaddrinfo.c: Add copyright notice.
112822         * tests/test-verify.c: Likewise.
112824 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112826         Change copyright notice from LGPL 2 to GPL 2, since that's the
112827         standard form used in the gnulib repository.
112828         * lib/lock.c: LGPL -> GPL.
112829         * lib/lock.h: Likewise.
112830         * lib/strnlen1.c: Likewise.
112831         * lib/strnlen1.h: Likewise.
112832         * lib/tls.c: Likewise.
112833         * lib/tls.h: Likewise.
112834         * lib/tmpdir.c: Likewise.
112836         * lib/TODO: Remove; this belongs only in coreutils.
112838 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112840         Add copyright notices to long-enough files that lack them, since
112841         otherwise the files aren't clearly free.  Use the same notice that
112842         getdate.texi already uses.
112843         * doc/alloca-opt.texi: Add copyright notice.
112844         * doc/alloca.texi: Likewise.
112845         * doc/ctime.texi: Likewise.
112846         * doc/functions.texi: Likewise.
112847         * doc/gcd.texi: Likewise.
112848         * doc/gnulib-tool.texi: Likewise.
112849         * doc/inet_ntoa.texi: Likewise.
112850         * doc/visibility.texi: Likewise.
112852         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
112853         * doc/quote.texi: Add copyright notice.
112855         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
112856         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
112857         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
112858         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
112859         is now obsolete, and give a pointer to the Sun list.
112860         Add copyright notice.
112862 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112864         * config/srclistvars.sh: Add copyright notice.
112866 2006-08-14  Eric Blake  <ebb9@byu.net>
112868         Import the following change from libc:
112870         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
112872         Upstream bug 2997.
112873         * lib/misc/error.c: Add space between program name and message if file
112874         name is missing.
112876 2006-08-12  Karl Berry  <karl@gnu.org>
112878         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
112879         remove, these originate in gnulib now.
112881 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112883         * doc/Makefile (standards.info standards.html standards.dvi):
112884         Also depend on make-stds.texi.
112886 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
112888         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
112889         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
112891         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
112892         in wchar_t.  Problem reported by Eric Blake.
112894         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
112895         LEN is smaller than SIZE.  Suggested by Bruno Haible.
112896         Also, help the compiler to keep LEN in a register.
112898 2006-08-11  Eric Blake  <ebb9@byu.net>
112900         * users.txt: Sort.  Add tar.
112902 2006-08-11  Bruno Haible  <bruno@clisp.org>
112904         * users.txt: New file.
112906 2006-08-11  Bruno Haible  <bruno@clisp.org>
112908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
112909         before <wchar.h>. Needed for OSF/1 and BSD/OS.
112911 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
112913         * modules/snprintf (Depends-on): Remove minmax.
112914         (Maintainer): Add self and Bruno.
112916 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
112918         * lib/.cppi-disable: Add snprintf.h, socket_.h.
112919         * lib/snprintf.c: Include <errno.h> and <limits.h>.
112920         (EOVERFLOW): Define if the system does not.
112921         Do not include "minmax.h"; it wasn't used.
112922         (snprintf): Don't assume size_t promotes to an unsigned type.
112923         Fix bug when generated string was too long for the buffer: the
112924         buffer's contents are supposed to be the initial prefix of the
112925         output.  Don't assume vasnprintf returns EOVERFLOW if the size
112926         exceeds INT_MAX; do the check ourselves.
112928         Import the following changes from libc:
112930         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
112932         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
112933         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
112934         set wc to the byte which couldn't be converted.
112935         (re_string_reconstruct): Don't clear valid_raw_len before calling
112936         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
112937         tip_context using re_string_context_at.
112939         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
112941         * lib/posix/regex.h: g++ still cannot handled [restrict].
112943         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
112945         * lib/posix/regex.h: Remove special handling for VMS.
112947 2006-08-10  Jim Meyering  <jim@meyering.net>
112949         * modules/same-inode: New module.
112950         * modules/dev-ino: New module.
112951         * modules/cycle-check: Depend on these modules, rather than simply
112952         including their .h files.
112953         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
112954         required via m4/cycle-check.m4.
112955         * modules/same: Depend on new same-inode module, rather than
112956         including same-inode.h.
112957         * modules/chdir-safer: New file.
112959         * modules/chown (Depends-on): Add stat-macros.
112961 2006-08-10  Jim Meyering  <jim@meyering.net>
112963         * m4/cycle-check.m4: New file.
112964         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
112965         * m4/dev-ino.m4, m4/same-inode.m4: New files.
112967 2006-08-10  Eric Blake  <ebb9@byu.net>
112969         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
112970         in from original proposal.
112972 2006-08-10  Eric Blake  <ebb9@byu.net>
112973         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112975         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
112976         namespace.
112978 2006-08-10  Bruno Haible  <bruno@clisp.org>
112980         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
112981         as well.
112983 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
112985         Sync from coreutils.
112987         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
112989         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
112990         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
112992 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
112994         * modules/restrict: Remove; no longer needed now that we assume
112995         Autoconf 2.59 or later.
112996         * MODULES.html.sh: Remove 'restrict'.
112997         * modules/argp (Depends-on): Remove 'restrict'.
112998         * modules/base64 (Depends-on): Likewise.
112999         * modules/gc (Depends-on): Likewise.
113000         * modules/getaddrinfo (Depends-on): Likewise.
113001         * modules/glob (Depends-on): Likewise.
113002         * modules/inet_ntop (Depends-on): Likewise.
113003         * modules/inet_pton (Depends-on): Likewise.
113004         * modules/memxor (Depends-on): Likewise.
113005         * modules/regex (Depends-on): Likewise.
113006         * modules/strtok_r (Depends-on): Likewise.
113007         * modules/time_r (Depends-on): Likewise.
113009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113011         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
113012         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
113013         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113014         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
113015         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
113016         * m4/memxor.m4 (gl_MEMXOR): Likewise.
113017         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
113018         gl_C_RESTRICT replaced by AC_C_RESTRICT.
113020         Merge from coreutils.
113021         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
113022         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
113023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
113024         * m4/time_r.m4 (gl_TIME_R): Likewise.
113026 2006-08-09  Karl Berry  <karl@gnu.org>
113028         * config/srclist.txt: no more gettext-tools, per Bruno.
113030 2006-08-08  Eric Blake  <ebb9@byu.net>
113032         * modules/verror: New module.
113033         * MODULES.html.sh: Document it.
113035 2006-08-08  Eric Blake  <ebb9@byu.net>
113037         * lib/verror.h, lib/verror.c: New files.
113039 2006-08-08  Eric Blake  <ebb9@byu.net>
113041         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
113042         verror_at_line output complies with GNU Coding Standards even when
113043         file is NULL.
113045 2006-08-07  Bruno Haible  <bruno@clisp.org>
113047         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
113048         versions of AIX.
113049         Reported by Ralf Wildenhues.
113051 2006-08-07  Bruno Haible  <bruno@clisp.org>
113053         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
113054         in an AC_DEFUN. Needed so that the autoconf snippets can use
113055         AC_REQUIRE.
113057 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113060         Initialize pkgdata_DATA.
113061         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
113062         overriding it.
113064 2006-08-06  Eric Blake  <ebb9@byu.net>
113066         * lib/error.h: Fold in some upstream changes from glibc.
113067         * lib/error.c: Likewise.
113069 2006-08-04  Bruno Haible  <bruno@clisp.org>
113071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113072         Make the mostlyclean-local rule depend on mostlyclean-generic.
113073         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
113075 2006-07-31  Bruno Haible  <bruno@clisp.org>
113077         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
113078         <stdlib.h>, <string.h>.
113080 2006-07-30  Bruno Haible  <bruno@clisp.org>
113082         * modules/readlink (License): Change to LGPL.
113084 2006-07-30  Bruno Haible  <bruno@clisp.org>
113086         * modules/javaversion (Makefile.am): Distribute javaversion.java and
113087         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
113088         set PKGDATADIR to point to it.
113090 2006-07-30  Bruno Haible  <bruno@clisp.org>
113092         * modules/csharpexec (configure.ac): Comment out macro invocation.
113093         * modules/javaexec (configure.ac): Likewise.
113094         * modules/javacomp-script (configure.ac): Likewise.
113096         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
113098 2006-07-30  Bruno Haible  <bruno@clisp.org>
113100         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
113101         linked-list.
113103 2006-07-30  Bruno Haible  <bruno@clisp.org>
113105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
113107 2006-07-30  Bruno Haible  <bruno@clisp.org>
113109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113110         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
113111         get removed.
113113 2006-07-29  Bruno Haible  <bruno@clisp.org>
113115         Make it possible for gnulib-tool to work with locally modified or
113116         augmented gnulib repositories.
113117         * gnulib-tool (func_usage): Document --local-dir option.
113118         (local_gnulib_dir): New variable.
113119         Handle --local-dir option.
113120         (func_lookup_file): New function.
113121         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
113122         (func_get_description, func_get_filelist, func_get_description,
113123         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
113124         func_get_automake_snippet, func_get_include_directive,
113125         func_get_license, func_get_maintainer): Use func_lookup_file.
113126         (func_import, func_create_testdir): Use func_lookup_file.
113128 2006-07-29  Bruno Haible  <bruno@clisp.org>
113130         * modules/setenv (Depends-on): Add unistd.
113132 2006-07-29  Bruno Haible  <bruno@clisp.org>
113134         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
113136 2006-07-29  Bruno Haible  <bruno@clisp.org>
113138         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
113140 2006-07-29  Bruno Haible  <bruno@clisp.org>
113142         * gnulib-tool (import, update): If there is no Makefile.am, look at
113143         aclocal.m4, instead of bailing out.
113145 2006-07-29  Bruno Haible  <bruno@clisp.org>
113147         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
113148         Categorize the options by when they are useful.
113150 2006-07-29  Bruno Haible  <bruno@clisp.org>
113152         * gnulib-tool (func_usage): Document option --no-libtool.
113153         Handle option --no-libtool.
113154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
113155         for changed semantics of $libtool variable.
113156         (func_import): Likewise. If libtool is not used, show this through
113157         an option --no-libtool.
113158         (func_create_testdir): Update.
113160 2006-07-29  Bruno Haible  <bruno@clisp.org>
113162         * gnulib-tool (func_import): Extend error message about missing
113163         --doc-base.
113165 2006-07-29  Bruno Haible  <bruno@clisp.org>
113167         * gnulib-tool (func_import): Don't create the $docbase directory if
113168         there is no file to store there.
113170 2006-07-29  Bruno Haible  <bruno@clisp.org>
113172         * gnulib-tool (autoconf_minversion): If a --dir option is given and
113173         relevant, look for configure.ac there, not in the current directory.
113174         Also use a simple search for AC_PREREQ, not "autoconf --trace".
113176 2006-07-29  Bruno Haible  <bruno@clisp.org>
113178         * gnulib-tool (SORT): New variable.
113179         (func_usage): Undocument --assume-autoconf option.
113180         Remove --assume-autoconf option handling.
113181         (autoconf_minversion): Determine from the contents of configure.ac.
113182         (func_import): Remove autoconf_minversion handling.
113183         Suggested by Eric Blake.
113185 2006-07-29  Bruno Haible  <bruno@clisp.org>
113187         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
113189 2006-07-29  Bruno Haible  <bruno@clisp.org>
113191         * config/srclist.txt (*setenv.[ch]): Remove rules.
113193 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113195         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
113197 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113199         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
113200         arpa/inet.h.
113202 2006-07-28  Simon Josefsson  <jas@extundo.com>
113204         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
113205         * modules/inet_pton (Depends-on): Likewise.
113207 2006-07-28  Simon Josefsson  <jas@extundo.com>
113209         * m4/netinet_in_h.m4: New file.
113211 2006-07-28  Simon Josefsson  <jas@extundo.com>
113213         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
113214         #include's.
113216 2006-07-28  Simon Josefsson  <jas@extundo.com>
113218         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
113219         #include's.
113221 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
113223         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
113224         setgid on directories only if they set these bits.
113225         * lib/modechange.h: Remove obsolete comment about masks.
113227 2006-07-28  Eric Blake  <ebb9@byu.net>
113229         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
113230         macro expansion.
113232 2006-07-28  Bruno Haible  <bruno@clisp.org>
113234         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
113236 2006-07-28  Bruno Haible  <bruno@clisp.org>
113238         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
113240 2006-07-28  Bruno Haible  <bruno@clisp.org>
113242         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
113243         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
113244         Define fallbacks.
113245         Avoids link error on FreeBSD 4.x.
113246         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
113248         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
113249         encoding.
113250         * lib/mbswidth.c (iswcntrl): Likewise.
113252 2006-07-27  Bruno Haible  <bruno@clisp.org>
113254         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
113255         test.
113257 2006-07-27  Bruno Haible  <bruno@clisp.org>
113259         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
113260         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
113261         defined.
113263 2006-07-26  Eric Blake  <ebb9@byu.net>
113265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
113267 2006-07-26  Eric Blake  <ebb9@byu.net>
113269         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
113270         like mingw that lack mkstemp.
113271         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
113272         avoid compilation warning on mingw.
113274 2006-07-26  Bruno Haible  <bruno@clisp.org>
113276         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
113277         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
113278         INT_FAST*_MIN, INTPTR_MIN.
113280 2006-07-25  Bruno Haible  <bruno@clisp.org>
113282         * modules/version-etc (Depends-on): Add stdarg.
113284 2006-07-25  Bruno Haible  <bruno@clisp.org>
113286         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
113287         complex commands.
113289 2006-07-25  Bruno Haible  <bruno@clisp.org>
113291         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
113292         defined in <stdarg.h> or config.h.
113294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
113296         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
113297         (gl_STDIO_SAFER): Remove.
113299 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
113301         * MODULES.html.sh (File stream based Input/Output):
113302         Add fopen-safer, tmpfile-safer; remove stdio-safer.
113303         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
113304         * modules/fopen-safer, modules/tmpfile-safer: New files.
113305         * modules/stdio-safer: Remove.
113307 2006-07-24  Bruno Haible  <bruno@clisp.org>
113309         * modules/tmpdir: New file.
113310         * MODULES.html.sh (File system functions): Add it.
113312 2006-07-24  Bruno Haible  <bruno@clisp.org>
113314         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
113315         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
113317 2006-07-24  Bruno Haible  <bruno@clisp.org>
113319         * modules/clean-temp: New file.
113321 2006-07-24  Bruno Haible  <bruno@clisp.org>
113323         * m4/tmpdir.m4: New file, from GNU gettext.
113325 2006-07-24  Bruno Haible  <bruno@clisp.org>
113327         * lib/tmpdir.h: New file, from GNU gettext.
113328         * lib/tmpdir.c: New file, from GNU gettext.
113330 2006-07-24  Bruno Haible  <bruno@clisp.org>
113332         * lib/clean-temp.h: New file, from GNU gettext.
113333         * lib/clean-temp.c: New file, from GNU gettext.
113335 2006-07-23  Eric Blake  <ebb9@byu.net>
113337         * modules/stdio-safer (Files): Add tmpfile-safer.c.
113338         (Depends-on): Add binary-io.
113340 2006-07-23  Eric Blake  <ebb9@byu.net>
113342         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
113344 2006-07-23  Eric Blake  <ebb9@byu.net>
113346         * lib/tmpfile-safer.c: New file.
113347         * lib/stdio-safer.h (fopen_safer): Add prototype.
113348         * lib/stdio--.h (tmpfile): Make safer.
113350 2006-07-23  Bruno Haible  <bruno@clisp.org>
113352         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
113353         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
113354         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
113355         gl_linked_remove_at): Use it.
113357 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113358         and Simon Josefsson <jas@extundo.com>
113360         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
113362         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
113364 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113366         * modules/close-stream: New file.
113367         * modules/closeout (Description): Make it clear that it exits
113368         with a diagnostic on error.
113369         (Depends-on): Add close-stream.  Remove fpending, stdbool.
113370         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
113372 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113374         * m4/close-stream.m4: New file.
113376 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113378         * lib/close-stream.c, lib/close-stream.h: New files.
113380 2006-07-22  Bruno Haible  <bruno@clisp.org>
113382         Merge from GNU gettext 0.15.
113384         2006-05-01  Bruno Haible  <bruno@clisp.org>
113386                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
113388         2006-07-22  Bruno Haible  <bruno@clisp.org>
113390                 * modules/javaversion: New file.
113391                 * MODULES.html.sh (Java): Add javaversion.
113393         2006-03-12  Bruno Haible  <bruno@clisp.org>
113395                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
113397         2005-12-04  Bruno Haible  <bruno@clisp.org>
113399                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
113400                 (untested).
113402         2006-06-21  Bruno Haible  <bruno@clisp.org>
113404                 Avoid warnings from recent versions of mcs.
113405                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
113406                 -o, -L, -r any more. Use options documented since mcs-1.0
113407                 instead. Similarly for -g.
113409         2005-12-04  Bruno Haible  <bruno@clisp.org>
113411                 * build-aux/csharpcomp.sh.in: Suffix for resources is
113412                 .resources, not .resource.
113414         2005-07-09  Bruno Haible  <bruno@clisp.org>
113416                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
113417                 add a .dll suffix.
113418                 Reported by Mark Junker <mjscod@gmx.de>.
113420         2006-07-22  Bruno Haible  <bruno@clisp.org>
113422                 * modules/gettext: Upgrade to gettext-0.15.
113423                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
113424                 m4/visibility.m4.
113425                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
113427 2006-07-22  Bruno Haible  <bruno@clisp.org>
113429         Merge from GNU gettext 0.15.
113431         2006-03-25  Bruno Haible  <bruno@clisp.org>
113433                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
113435         2006-07-21  Bruno Haible  <bruno@clisp.org>
113437                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
113438                 "1.1".
113440         2006-05-09  Bruno Haible  <bruno@clisp.org>
113442                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
113443                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
113444                 for the conftestver execution.
113446         2006-05-01  Bruno Haible  <bruno@clisp.org>
113448                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
113449                 optional target-version argument. Verify that the compiler
113450                 groks source of the specified source-version, or add -source
113451                 option as necessary. Verify that the compiler produces
113452                 bytecode in the specified target-version, or add -target and
113453                 -source options as necessary. Make the result of the test
113454                 available as variable CONF_JAVAC. Also log error output in
113455                 config.log.
113457         2006-03-11  Bruno Haible  <bruno@clisp.org>
113459                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
113461         2006-05-09  Bruno Haible  <bruno@clisp.org>
113463                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
113464                 CLASSPATH_SEPARATOR to a semicolon.
113466         2006-03-12  Bruno Haible  <bruno@clisp.org>
113468                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
113469                 available as variable CONF_JAVA, for subsequent autoconf
113470                 tests. Also log error output in config.log.
113472         2006-07-19  Bruno Haible  <bruno@clisp.org>
113474                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
113475                 that getline works on glibc2 systems. Needed to avoid trouble
113476                 in relocatable.c.
113477                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
113479         2005-12-04  Bruno Haible  <bruno@clisp.org>
113481                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
113482                 launcher (untested).
113484         2005-12-04  Bruno Haible  <bruno@clisp.org>
113486                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
113488         2006-07-22  Bruno Haible  <bruno@clisp.org>
113490                 * gettext.m4: Update from GNU gettext-0.15.
113491                 * nls.m4: Likewise.
113492                 * po.m4: Likewise.
113493                 * inttypes-pri.m4: Likewise.
113494                 * inttypes-h.m4: Renamed from inttypes.m4.
113495                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
113497 2006-07-22  Bruno Haible  <bruno@clisp.org>
113499         Merge from GNU gettext 0.15.
113501         2005-07-05  Bruno Haible  <bruno@clisp.org>
113503                 * printf-args.c (printf_fetchargs): Work around broken
113504                 definition of wint_t on mingw.
113506         2005-02-12  Bruno Haible  <bruno@clisp.org>
113508                 * xallocsa.h: Add extern "C" for C++.
113510         2006-05-17  Bruno Haible  <bruno@clisp.org>
113512                 Cygwin portability.
113513                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
113515         2006-04-30  Bruno Haible  <bruno@clisp.org>
113517                 * progreloc.c: Include <mach-o/dyld.h> if available.
113518                 (find_executable): Use _NSGetExecutablePath when possible.
113520         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
113522                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
113523                 function.
113525         2005-12-29  Bruno Haible  <bruno@clisp.org>
113527                 * progreloc.c (set_program_name_and_installdir): Fix
113528                 compilation error.
113530         2005-12-04  Bruno Haible  <bruno@clisp.org>
113532                 Cygwin portability.
113533                 * progreloc.c: Include <windows.h> also on Cygwin.
113534                 (find_executable): Add support for Cygwin.
113535                 (set_program_name_and_installdir): Handle also platforms with
113536                 nonempty EXEEXT.
113538         2006-07-11  Bruno Haible  <bruno@clisp.org>
113540                 * javacomp.c: Fix a comment.
113541                 Reported by Jim Meyering.
113543         2006-04-30  Bruno Haible  <bruno@clisp.org>
113545                 * javacomp.h (compile_java_class): Add source_version,
113546                 target_version arguments.
113547                 * javacomp.c: Rewritten to choose only a compiler that
113548                 respects the specified source_version and target_version.
113550         2006-06-27  Bruno Haible  <bruno@clisp.org>
113552                 Assume correct S_ISDIR macro.
113553                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
113555         2006-07-22  Bruno Haible  <bruno@clisp.org>
113557                 * javaversion.h: New file, from GNU gettext.
113558                 * javaversion.c: New file, from GNU gettext.
113559                 * javaversion.java: New file, from GNU gettext.
113560                 * javaversion.class: New file, from GNU gettext.
113562         2006-05-17  Bruno Haible  <bruno@clisp.org>
113564                 Cygwin portability.
113565                 * javaexec.c (execute_java_class): Test for jview program
113566                 also on Cygwin.
113568         2006-04-09  Bruno Haible  <bruno@clisp.org>
113570                 * fatal-signal.c: Don't include string.h.
113571                 (at_fatal_signal): Use a copying loop instead of memcpy.
113573         2005-12-04  Bruno Haible  <bruno@clisp.org>
113575                 * csharpexec.c: Add support for 'clix' launcher (untested).
113576                 (execute_csharp_using_sscli): New function.
113577                 (execute_csharp_program): Call it.
113579         2006-06-21  Bruno Haible  <bruno@clisp.org>
113581                 Avoid warnings from recent versions of mcs.
113582                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
113583                 -o, -L, -r any more. Use options documented since mcs-1.0
113584                 instead. Similarly for -g.
113586         2005-07-09  Bruno Haible  <bruno@clisp.org>
113588                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
113589                 add a .dll suffix.
113590                 Reported by Mark Junker <mjscod@gmx.de>.
113592         2006-06-17  Bruno Haible  <bruno@clisp.org>
113594                 * config.charset: Update for NetBSD 3.0.
113596         2006-05-17  Bruno Haible  <bruno@clisp.org>
113598                 Cygwin portability.
113599                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
113601         2006-05-16  Bruno Haible  <bruno@clisp.org>
113603                 * localcharset.c [CYGWIN]: Include <windows.h>.
113604                 (get_charset_aliases): For Cygwin, return the same CPxxx
113605                 aliases list as under WIN32.
113606                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
113607                 the environment variables. Fall back to GetACP().
113609         2006-04-05  Bruno Haible  <bruno@clisp.org>
113611                 * config.charset: Update Juan Manuel Guerrero's address.
113613         2005-02-12  Bruno Haible  <bruno@clisp.org>
113615                 * allocsa.h: Add extern "C" for C++.
113617         2005-02-10  Bruno Haible  <bruno@clisp.org>
113619                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
113620                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
113622         2006-07-22  Bruno Haible  <bruno@clisp.org>
113624                 * gettext.h: Update to GNU gettext-0.15.
113626 2006-07-22  Bruno Haible  <bruno@clisp.org>
113628         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
113629         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
113630         lib-prefix.m4, longdouble.m4, ssize_t.m4.
113632 2006-07-21  Eric Blake  <ebb9@byu.net>
113634         * modules/stdlib-safer: New file.
113635         * MODULES.html.sh (File stream based Input/Output): Add
113636         stdlib-safer.
113638 2006-07-21  Eric Blake  <ebb9@byu.net>
113640         * lib/stdlib-safer.h: New file from coreutils, required by
113641         stdlib--.h.
113643 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
113645         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
113647 2006-07-20  Bruno Haible  <bruno@clisp.org>
113649         * gnulib-tool: Recognize new option --assume-autoconf.
113650         (autoconf_minversion): New variable.
113651         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
113653 2006-07-20  Bruno Haible  <bruno@clisp.org>
113655         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
113657 2006-07-19  Derek R. Price  <derek@ximbiot.com>
113659         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
113660         Reindent and repaginate.
113662 2006-07-19  Derek Price  <derek@ximbiot.com>
113664         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
113665         Correct grammar.
113667 2006-07-17  Bruno Haible  <bruno@clisp.org>
113669         * modules/list: New file.
113670         * modules/array-list: New file.
113671         * modules/carray-list, modules/carray-list-tests: New files.
113672         * modules/linked-list, modules/linked-list-tests: New files.
113673         * modules/avltree-list, modules/avltree-list-tests: New files.
113674         * modules/rbtree-list, modules/rbtree-list-tests: New files.
113675         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
113676         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
113677         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
113678         * modules/oset: New file.
113679         * modules/array-oset: New file.
113680         * modules/avltree-oset, modules/avltree-oset-tests: New files.
113681         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
113682         * tests/test-carray_list.c: New file.
113683         * tests/test-linked_list.c: New file.
113684         * tests/test-avltree_list.c: New file.
113685         * tests/test-rbtree_list.c: New file.
113686         * tests/test-linkedhash_list.c: New file.
113687         * tests/test-avltreehash_list.c: New file.
113688         * tests/test-rbtreehash_list.c: New file.
113689         * tests/test-avltree_oset.c: New file.
113690         * tests/test-rbtree_oset.c: New file.
113691         * MODULES.html.sh (Container data structures): New section.
113693 2006-07-17  Bruno Haible  <bruno@clisp.org>
113695         * m4/gl_list.m4: New file.
113697 2006-07-17  Bruno Haible  <bruno@clisp.org>
113699         * lib/gl_list.h: New file.
113700         * lib/gl_list.c: New file.
113701         * lib/gl_array_list.h: New file.
113702         * lib/gl_array_list.c: New file.
113703         * lib/gl_carray_list.h: New file.
113704         * lib/gl_carray_list.c: New file.
113705         * lib/gl_linked_list.h: New file.
113706         * lib/gl_linked_list.c: New file.
113707         * lib/gl_anylinked_list1.h: New file.
113708         * lib/gl_anylinked_list2.h: New file.
113709         * lib/gl_avltree_list.h: New file.
113710         * lib/gl_avltree_list.c: New file.
113711         * lib/gl_anyavltree_list1.h: New file.
113712         * lib/gl_anyavltree_list2.h: New file.
113713         * lib/gl_rbtree_list.h: New file.
113714         * lib/gl_rbtree_list.c: New file.
113715         * lib/gl_anyrbtree_list1.h: New file.
113716         * lib/gl_anyrbtree_list2.h: New file.
113717         * lib/gl_anytree_list1.h: New file.
113718         * lib/gl_anytree_list2.h: New file.
113719         * lib/gl_linkedhash_list.h: New file.
113720         * lib/gl_linkedhash_list.c: New file.
113721         * lib/gl_anyhash_list1.h: New file.
113722         * lib/gl_anyhash_list2.h: New file.
113723         * lib/gl_avltreehash_list.h: New file.
113724         * lib/gl_avltreehash_list.c: New file.
113725         * lib/gl_rbtreehash_list.h: New file.
113726         * lib/gl_rbtreehash_list.c: New file.
113727         * lib/gl_anytreehash_list1.h: New file.
113728         * lib/gl_anytreehash_list2.h: New file.
113730         * lib/gl_oset.h: New file.
113731         * lib/gl_oset.c: New file.
113732         * lib/gl_array_oset.h: New file.
113733         * lib/gl_array_oset.c: New file.
113734         * lib/gl_avltree_oset.h: New file.
113735         * lib/gl_avltree_oset.c: New file.
113736         * lib/gl_rbtree_oset.h: New file.
113737         * lib/gl_rbtree_oset.c: New file.
113738         * lib/gl_anytree_oset.h: New file.
113740 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
113742         * m4/mkancesdirs.m4: New file.
113743         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
113744         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
113745         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
113746         it.
113748 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
113750         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
113751         * lib/mkancesdirs.h: New files.
113752         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
113753         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
113754         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
113755         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
113756         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
113757         callers changed.  Revamp internals significantly, by not
113758         attempting to create directories that are temporarily more
113759         permissive than the final results.  Do not attempt to use
113760         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
113761         This removes some race conditions, fixes some bugs, and simplifies
113762         things.  Use new dirchownmod function to do owner and mode changes.
113763         * lib/mkdir-p.h: Likewise.
113764         * lib/modechange.c (octal_to_mode): New function.
113765         (struct mode_change): New member mentioned.
113766         (make_node_op_equals): New arg mentioned.  All callers changed.
113767         (mode_compile): Keep track of which mode bits the user has explicitly
113768         mentioned.
113769         (mode_adjust): New arg DIR, so that we implement the X op correctly.
113770         New arg PMODE_BITS, to keep track of which mode bits the user
113771         mentioned; it treats S_ISUID and S_ISGID speciall.
113772         All callers changed.
113773         * lib/modechange.h: Likewise.
113775 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
113777         * MODULES.html.sh: Add mkancestors.
113778         * modules/mkancesdirs: New module.
113779         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
113780         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
113781         The chdir-safer and afs files are now orphans; I'll remove them
113782         unless someone speaks up.
113783         Add lib/dirchownmod.c, lib/dirchownmod.h.
113784         (Depends-on): Remove alloca, chown, save-cwd, dirname.
113785         Add lchown, mkancesdirs.
113786         (Maintainer): Add self.
113788 2006-07-15  Karl Berry  <karl@gnu.org>
113790         * gnulib-tool: help message wording/arrangement.
113792 2006-07-14  Simon Josefsson  <jas@extundo.com>
113794         * doc/gnulib.texi (Libtool and Windows): New section.
113796 2006-07-12  Simon Josefsson  <jas@extundo.com>
113798         * modules/gendocs (License): Fix license, approved by Karl.
113800 2006-07-12  Eric Blake  <ebb9@byu.net>
113802         * MODULES.html.sh: Add gendocs.
113804 2006-07-11  Eric Blake  <ebb9@byu.net>
113806         * modules/fdl: New module, to install doc/fdl.texi.
113807         * MODULES.html.sh: Add new section for documentation modules.
113808         * gnulib-tool: Avoid space-tab.
113809         (--doc-base): New option, to manage files from doc.
113811 2006-07-11  Eric Blake  <ebb9@byu.net>
113813         * m4/absolute-header.m4: Fix comments to match recent change.
113815 2006-07-11  Eric Blake  <ebb9@byu.net>
113817         * gnulib-tool: List --doc-base before --tests-base.
113819 2006-07-11  Derek R. Price  <derek@ximbiot.com>
113821         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
113823 2006-07-11  Bruno Haible  <bruno@clisp.org>
113825         * README: Mention where to put documentation.
113827 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113829         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
113831 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
113833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
113834         to stdint.m4.
113836 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
113838         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
113839         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
113840         "no/such/file/stdint.h" when there is no such file, so that
113841         the resulting C code can be parsed by dodgy compilers.
113842         Problems reported by Bob Proulx.
113844 2006-07-10  Derek R. Price  <derek@ximbiot.com>
113846         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
113847         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
113848         macros into the GNU _D_EXACT_NAMLEN.
113849         * lib/savedir.c:  Likewise.
113850         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
113852 2006-07-10  Derek R. Price  <derek@ximbiot.com>
113853         and Paul Eggert  <eggert@cs.ucla.edu>
113855         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
113856         * m4/savedir.m4:
113857         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
113858         macros into the GNU _D_EXACT_NAMLEN.
113860 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
113863         around the absolute name, to work around a problem with the HP-UX
113864         11.23 native C compiler, reported by Bob Proulx.
113866 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113868         * doc/maintain.texi, make-stds.texi: Sync from
113869         <http://savannah.gnu.org/projects/gnustandards>.
113871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113873         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
113875 2006-07-09  Jim Meyering  <jim@meyering.net>
113877         * m4/glob.m4: Remove a doubled word in a comment.
113879 2006-07-09  Jim Meyering  <jim@meyering.net>
113881         * lib/argp-pv.c: Remove a doubled word in a comment.
113882         * lib/check-version.c (check_version): Likewise.
113883         * lib/javacomp.c (compile_java_class): Likewise.
113885 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
113887         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
113888         for the benefit of people using Autoconf 2.60.  If you want to
113889         support older Autoconf versions you can copy m4/onceonly_2_57.m4
113890         (or m4/onceonly.m4, if pre-2.57) manually.
113892 2006-07-08  Jim Meyering  <jim@meyering.net>
113894         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
113895         comment.
113896         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
113897         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
113898         comment.
113900 2006-07-08  Jim Meyering  <jim@meyering.net>
113902         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
113904 2006-07-07  Simon Josefsson  <jas@extundo.com>
113906         * tests/test-crc.c: Change expected crc value, the test vector
113907         were probably computed using the old broken crc.c?
113909 2006-07-06  Simon Josefsson  <jas@extundo.com>
113911         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
113912         now the canonical place for the M4 file).
113914         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
113915         from the sys_socket dependency now.
113917         * modules/inet_pton (Files): Ditto.
113919         * modules/inet_ntop (Files): Ditto.
113921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113923         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
113924         not gl_PREREQ_GETUSERSHELL.
113926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113928         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
113929         with only one argument, for Autoconf 2.60.
113930         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
113931         expand to nothing, so add a shell command to avoid syntax error.
113932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113934 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113936         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
113938 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
113941         no longer needed.  Check for isblank decl.
113942         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
113943         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
113944         of existence.
113946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113948         * lib/getloadavg.c: Use __VMS, not VMS.
113949         * lib/getopt.c: Likewise.
113950         * lib/getpagesize.h: Likewise.
113951         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
113952         and probably does not work.
113954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113956         * lib/.cppi-disable: Add wcwidth.
113957         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
113958         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
113959         (ISGRAPH): Remove.  All uses changed to isgraph.
113960         (FOLD) [!defined _LIBC]: Remove special case.
113961         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
113962         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
113963         HAVE_ISBLANK.
113964         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
113965         case.
113967 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
113969         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
113970         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
113971         brackets.  Other minor changes to suppress some compiler
113972         warnings.
113974 2006-07-06  Derek R. Price  <derek@ximbiot.com>
113975         and Paul Eggert  <eggert@cs.ucla.edu>
113977         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
113978         of invoking obsolescent AC_HEADER_DIRENT macro.
113979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
113980         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
113981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
113982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
113983         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
113984         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113985         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
113986         * m4/readdir.m4: Remove; no longer needed.
113988 2006-07-06  Derek R. Price  <derek@ximbiot.com>
113989         and Paul Eggert  <eggert@cs.ucla.edu>
113991         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
113992         Don't worry about this obsolete case any more.
113993         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
113994         directories.
113995         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
113996         worry about this obsolete case any more.
113997         * lib/fts.c: Likewise.
113998         * lib/getcwd.c: Likewise.
113999         * lib/glob.h: Likewise.
114000         * lib/savedir.c: Likewise.
114002 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
114005         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
114006         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
114007         needed.
114008         All uses removed.
114009         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114010         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114011         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
114012         needed.
114013         * m4/getdate.m4 (gl_GETDATE): Likewise.
114014         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114015         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114016         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114017         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114018         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114019         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114020         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
114021         needed.
114023 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114025         * lib/memcasecmp.c: Include <limits.h>.
114026         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
114027         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
114028         Don't assume isdigit succeeds only on '0' through '9'.
114030 2006-07-05  Eric Blake  <ebb9@byu.net>
114032         * modules/getaddrinfo (Depends-on): Add snprintf.
114034 2006-07-05  Eric Blake  <ebb9@byu.net>
114036         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
114037         to avoid 'header present but could not be compiled' on cygwin.
114039 2006-07-05  Eric Blake  <ebb9@byu.net>
114041         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
114042         missing from netdb.h.
114043         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
114045 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114047         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
114048         no longer needed.
114049         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
114050         * m4/getdate.m4 (gl_GETDATE): Likewise.
114051         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114052         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114053         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114054         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114057 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114059         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
114060         All uses of is_space replaced by isspace.
114061         * lib/exit.h: Don't talk about STDC_HEADERS.
114062         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
114063         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
114064         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
114065         replaced by isprint etc.
114066         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
114067         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114068         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
114069         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
114070         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
114071         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114073 2006-07-05  Bruno Haible  <bruno@clisp.org>
114075         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
114076         the function exists, before testing against AIX.
114077         Reported by Martin Lambers <marlam@marlam.de>.
114079 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114081         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
114082         From Mark D. Baushke.
114084 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
114087         to the absolute name, not just one, to bypass Sun C 5.8's
114088         "warning: #include of /usr/include/... may be non-portable".
114090 2006-07-04  Eric Blake  <ebb9@byu.net>
114092         * modules/dirname-tests: New test module.
114093         * tests/test-dirname.c: New file, replacing dirname.c
114094         TEST_DIRNAME section that was recently deleted.
114096 2006-07-04  Bruno Haible  <bruno@clisp.org>
114098         Assume ANSI C header files and <ctype.h> functions.
114099         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
114100         (mbsnwidth): Use isprint, iscntrl instead.
114102 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114104         Merge from coreutils.
114105         * MODULES.html.sh: Add xstrtold.
114106         * modules/xstrtold: New file.
114107         * modules/cycle-check (Files): Add lib/same-inode.h.
114108         * modules/dirname (Files): Add m4/double-slash-root.m4.
114109         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
114110         * modules/mkdir-p (Files): Add lib/same-inode.h.
114111         * modules/same (Files): Add lib/same-inode.h.
114113 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114115         * m4/absolute-header.m4: Renamed from full-header-path.m4.
114116         This is to keep the terminology clean; POSIX talks about
114117         "absolute pathnames", not "full pathnames", but the GNU
114118         Coding Standards say to use "path" for something else;
114119         so use "absolute" to keep both sides happy.
114120         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
114121         Set gl_absolute_header, not gl_full_header_path.
114122         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
114123         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
114124         All uses changed.
114126         Merge from coreutils.
114128         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114130         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
114131         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
114132         want to require the building of c-strtod.o.
114133         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
114134         needs -lm directly.
114135         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
114137         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
114139         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
114140         --as-needed option if available.  Problem reported by Albert Chin in
114141         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
114142         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
114143         cc merely issues a bunch of annoying warnings for --as-needed
114144         (this problem was reported by Bob Proulx).  Also, try linking with
114145         -lm to detect a bug in binutils 2.16 (this problem was reported
114146         by Ralf Wildenhues).
114148         2006-06-18  Jim Meyering  <jim@meyering.net>
114150         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
114151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
114152         macro.
114153         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
114154         also check for glibc-2.4's abort-inducing bug.
114156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
114157         Low-probability clean-up should be to use rmdir to get rid of
114158         the just-created directory, not unlink.
114160         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
114161         configure fail, and request a bug report to inform us about it.
114162         Add a comment that, barring reports to the contrary, in 2007 we'll
114163         assume ftruncate is universally available.
114165         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114167         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
114169         2006-03-12  Jim Meyering  <jim@meyering.net>
114171         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
114172         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
114173         * m4/same.m4 (gl_SAME): Likewise.
114174         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
114176         2006-03-11  Eric Blake  <ebb9@byu.net>
114178         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
114179         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
114180         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
114181         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
114183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114185         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
114186         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
114187         reported by Mark D. Baushke, one in
114188         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
114190         Merge from coreutils.
114192         * lib/.cppi-disable: Add stdint_.h.
114193         * lib/.cvsignore: Add stdint.h.
114195         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114197         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
114198         both double and long double versions.
114199         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
114200         * lib/xstrtold.c: New file.
114201         * lib/xstrtod.h (xstrtold): New decl.
114203         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
114205         * lib/filemode.c (setst): Remove.
114206         (strmode): Rewrite to avoid setst.  This makes the code shorter,
114207         (arguably) clearer, and the generated code is a bit smaller on my
114208         Debian GNU/Linux stable x86 host.
114210         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114212         * lib/filemode.c: Include "filemode.h" first, to test the interface.
114213         Assume that filemode.h includes sys/types.h and sys/stat.h.
114214         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
114215         (ftypelet): Reorder to put common cases first, for efficiency.
114216         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
114217         to do 'M'.
114218         (strmode): Renamed from mode_string, and now stores 12 bytes instead
114219         of 10, for compatibility with FreeBSD.  All callers changed.
114220         (filemodestring): Now stores 12 bytes instead of 10, and sets file
114221         types that can't be deduced solely from st_mode.  First arg is now a
114222         const pointer.
114223         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
114224         (strmode): Renamed from mode_string.
114225         (filemodestring): New decl.
114226         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
114227         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
114228         needed.
114229         (S_ISPORT, S_ISWHT): New macros, if not already defined.
114231         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
114233         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
114234         fsusage.h now does that.  Include fsusage.h first, to test interface.
114235         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
114236         at most one method (the old code could have generated decls that
114237         didn't conform to C89, not that this was ever exercised).
114238         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
114240         2006-03-19  Jim Meyering  <jim@meyering.net>
114242         Work even in a chroot where d_ino values for entries in "/"
114243         don't match the stat.st_ino values for the same names.
114244         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
114245         number, iterate through all entries again, using lstat instead.
114246         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
114247         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
114249         * lib/getcwd.c (__getcwd): Clarify a comment.
114250         Use memcpy in place of a call to strcpy.
114252         2006-03-12  Jim Meyering  <jim@meyering.net>
114254         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
114255         matches that of the current directory (which we're about to chdir ".."
114256         out of), then save the dev-ino of the parent, instead.
114258         * lib/same-inode.h (SAME_INODE): New file/macro.
114259         * lib/chdir-safer.c (SAME_INODE): Remove definition.
114260         Include "same-inode.h", instead.
114261         * lib/same.c: Likewise.
114262         * lib/cycle-check.h: Include "same-inode.h".
114263         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
114264         * lib/cycle-check.c (SAME_INODE): Remove definition.
114265         * lib/root-dev-ino.h: Include "same-inode.h".
114267         2006-03-11  Eric Blake  <ebb9@byu.net>
114269         * lib/same.c (same_name): s/base_name/last_component/
114270         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
114271         * lib/filenamecat.c (file_name_concat): Likewise.
114273         2006-03-11  Eric Blake  <ebb9@byu.net>,
114274                     Paul Eggert  <eggert@cs.ucla.edu>
114276         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
114277         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
114278         drive prefix.
114279         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
114280         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
114281         (last_component): New method.
114282         * lib/dirname.c (dir_len): Determine when drive letters need a
114283         subsequent slash.  Preserve // when it is special.
114284         (dir_name): Don't append dot when drive letter is absolute.
114285         [TEST_DIRNAME]: Move into a full-blown gnulib test.
114286         * lib/basename.c (base_name): New semantics - malloc the result.
114287         Preserve // when it is special.  Preserve relative files that look
114288         like drive letters.
114289         (base_len): Preserve // when it is special.
114290         (last_component): New method, similar to old base_name semantics.
114291         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
114292         base_name.  Strip redundant slashes from ///.
114294 2006-07-03  Jim Meyering  <jim@meyering.net>
114296         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
114297         macro is used before the first cycle_check call.
114299 2006-07-03  Eric Blake  <ebb9@byu.net>
114301         * modules/dirname (Depends-on): Add xstrndup.
114303 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
114305         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
114306         test cases, so that config.log is a bit easier to follow.
114308 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
114310         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
114311         both are 64 bits, since this seems to be the tradition, and this
114312         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
114313         we ever run into a host that prefers long long to long in this
114314         case, we'll need another configure-time test.  Problem reported by
114315         Jim Meyering.
114317 2006-07-02  Eric Blake  <ebb9@byu.net>
114319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
114321 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114323         * modules/inttypes (Depends-on): No longer depends on stdint.
114324         * modules/stdint (Description): Say more about assumptions.
114325         Say that the fast types might differ.  Say macros are used.
114326         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
114327         (Makefile.am): Revise list of substituted symbols to match
114328         new stdint.m4.
114329         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
114330         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
114331         * tests/test-stdint.c (verify_same_types)
114332         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
114333         the code conforms to C99/C89.
114334         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
114335         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
114337 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
114340         but fix a bug, by requiring at least 64 bits.
114341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
114342         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
114343         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
114344         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
114346         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
114347         changes.  Make 2.59 a prerequisite.  Check and substitute for
114348         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
114349         inttypes.h.  Do not use special include files; just use the
114350         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
114351         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
114352         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
114353         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
114354         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
114355         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
114356         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
114357         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
114358         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
114359         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
114360         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
114361         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
114362         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
114363         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
114364         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
114365         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
114366         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
114367         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
114368         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
114369         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
114370         WINT_MAX.  Check for C99 conformance more strictly, by detecting
114371         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
114372         not check for things that C99 does not require, e.g., int8_t.  If
114373         a test isn't needed unless <stdint.h> isn't working, and is
114374         unlikely to be needed for any other reason, then don't do it
114375         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
114376         size_t, since we assume C89 freestanding at least.  Do not check
114377         for sig_atomic_t, wchar_t, or wint_t, since the code now does
114378         the right thing even if the types are not defined.  Instead use:
114379         (gl_STDINT_TYPE_PROPERTIES): New macro.
114380         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
114381         testing whether <sys/types.h> clashes, as Autoconf does this for
114382         us now.  All uses removed.
114383         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
114384         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
114385         (gl_CHECK_TYPE_SAME):
114386         Remove; no longer needed.
114387         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
114388         exists, since we'll return 0 anyway in that case.
114389         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
114391 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114393         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
114394         possible collision with system files.
114395         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
114396         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
114397         WCHAR_MIN and WCHAR_MAX in this case.
114398         (<stddef.h>): Do not include; no longer needed.
114399         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
114400         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
114401         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
114402         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
114403         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
114404         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
114405         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
114406         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
114407         !defined(__c99))]: Include in this case too, since it's harmless
114408         now.
114409         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
114410         dangerous to do so.
114411         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
114412         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
114413         (_STDINT_MIN, _STDINT_MAX): New macros.
114414         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
114415         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
114416         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
114417         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
114418         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
114419         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
114420         macros, not typedefs; this simplifies things quite a bit.
114421         Use long int for all types narrower than int64_t.
114422         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
114423         Define in terms of long long int or int64_t or long int,
114424         not int64_t or int32_t.  This saves some compile-time testing.
114425         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
114426         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
114427         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
114428         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
114429         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
114430         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
114431         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
114432         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
114433         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
114434         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
114435         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
114436         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
114437         undef any previous version and define our own version, for
114438         simplicity and consistency with the new macros for types.
114439         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
114440         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
114441         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
114442         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
114443         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
114444         @WINT_T_SUFFIX@ to keep things simple here.
114445         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
114446         Simplify by assuming typical 8/16/32/64 host, since we're
114447         already doing that elsewhere anyway.
114448         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
114449         and assume long long int is 64 bits if available.  This
114450         speeds up 'configure'.
114452 2006-07-01  Eric Blake  <ebb9@byu.net>
114454         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
114455         Reported by Andreas Buening.
114457 2006-07-01  Eric Blake  <ebb9@byu.net>
114459         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
114461 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114463         * lib/getaddrinfo.c: fixed typo
114465 2006-06-29  Jim Meyering  <jim@meyering.net>
114467         * modules/strftime (Maintainer): Add my name, since with the
114468         FPRINTFTIME changes strftime.c has forked from glibc.
114470 2006-06-29  Eric Blake  <ebb9@byu.net>
114472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
114474 2006-06-29  Eric Blake  <ebb9@byu.net>
114476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
114478 2006-06-29  Eric Blake  <ebb9@byu.net>
114480         * lib/stat_.h: New file.
114482 2006-06-29  Eric Blake  <ebb9@byu.net>
114484         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
114485         unused static function.
114487 2006-06-29  Eric Blake  <ebb9@byu.net>
114489         * doc/functions.texi (Function Portability): Document missing lstat
114490         on mingw.
114492 2006-06-29  Eric Blake  <ebb9@byu.net>
114494         * MODULES.html.sh: Add sys_stat.
114495         * modules/sys_stat: New module.
114496         * modules/mkstemp (Depends-on): Add sys_stat.
114498 2006-06-29  Derek R. Price  <derek@ximbiot.com>
114500         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
114502 2006-06-29  Derek R. Price  <derek@ximbiot.com>
114504         * m4/c-bs-a.m4: Removed.
114506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
114508         * lib/strftime.c: Assume strftime() exists.
114510 2006-06-29  Derek Price  <derek@ximbiot.com>
114512         * modules/c-bs-a: Removed - \a is C89.
114513         * MODULES.html.sh: Remove c-bs-a.
114515 2006-06-29  Bruno Haible  <bruno@clisp.org>
114517         * modules/wcwidth (License): Change to LGPL.
114519 2006-06-28  Simon Josefsson  <jas@extundo.com>
114521         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
114522         on _WIN32.
114524         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
114525         getnameinfo.
114527 2006-06-28  Simon Josefsson  <jas@extundo.com>
114529         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
114531 2006-06-28  Simon Josefsson  <jas@extundo.com>
114533         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
114534         functions there.  It will succeed on Windows XP, but on Windows
114535         2000 and (presumably) earlier, it will fail, and use the internal
114536         re-implementation.
114537         (use_win32_p): New function.
114538         (getaddrinfo): Use strtoul on servname, to support numeric ports.
114539         Support AI_NUMERICSERV to disable getservbyname.
114540         (getnameinfo): New function, only supports
114541         NI_NUMERICHOST|NI_NUMERICSERV for now.
114543         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
114544         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
114545         getnameinfo.
114547 2006-06-28  Eric Blake  <ebb9@byu.net>
114549         * modules/wcwidth: New file.
114550         * modules/mbchar (Depends-on): Add wcwidth.
114551         * modules/mbswidth (Depends-on): Add wcwidth.
114552         * MODULES.html.sh: Add wcwidth.
114554 2006-06-28  Eric Blake  <ebb9@byu.net>
114556         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
114557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
114559 2006-06-28  Eric Blake  <ebb9@byu.net>
114561         * lib/xvasprintf.h: Fix comments.
114563 2006-06-28  Eric Blake  <ebb9@byu.net>
114565         * lib/mbchar.h (wcwidth): Include wcwidth.h.
114566         * lib/mbswidth.c (wcwidth): Move from here...
114567         * lib/wcwidth.h: ...to this new file.
114569 2006-06-28  Derek R. Price  <derek@ximbiot.com>
114571         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
114573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
114574         it's obsolete.
114575         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
114577 2006-06-28  Derek R. Price  <derek@ximbiot.com>
114579         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
114580         Autoconf 2.60 says this stuff was obsolete.
114582 2006-06-28  Bruno Haible  <bruno@clisp.org>
114584         * modules/wcwidth (Files): Add m4/wchar_t.m4.
114586 2006-06-28  Bruno Haible  <bruno@clisp.org>
114588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
114589         gt_TYPE_WCHAR_T.
114591 2006-06-28  Bruno Haible  <bruno@clisp.org>
114593         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
114594         declaration for wcwidth.
114595         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
114597 2006-06-28  Bruno Haible  <bruno@clisp.org>
114599         * lib/mkdtemp.c [MINGW]: Include <io.h>.
114600         (mkdir): Define using _mkdir.
114602 2006-06-28  Bruno Haible  <bruno@clisp.org>
114604         * lib/getaddrinfo.h: Fix POSIX URL.
114605         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
114606         _WIN32.
114607         (use_win32_p): Make static.
114608         (getaddrinfo): Reject service name if it is empty or does not consist
114609         solely of decimal digits, or if its value is > 65535.
114610         (getnameinfo): Remove useless casts.
114612 2006-06-27  Simon Josefsson  <jas@extundo.com>
114614         * modules/sys_select: New file, suggested by Bruno Haible, Paul
114615         Eggert and Martin Lambers.
114617 2006-06-27  Simon Josefsson  <jas@extundo.com>
114619         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
114620         Eggert and Martin Lambers.
114622 2006-06-27  Bruno Haible  <bruno@clisp.org>
114624         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
114625         result to 0, not to empty.
114626         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
114628 2006-06-27  Bruno Haible  <bruno@clisp.org>
114630         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
114632 2006-06-26  Simon Josefsson  <jas@extundo.com>
114634         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
114635         present.
114637 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
114639         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
114640         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
114641         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
114643 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
114645         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
114647 2006-06-26  Bruno Haible  <bruno@clisp.org>
114649         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
114651 2006-06-26  Bruno Haible  <bruno@clisp.org>
114653         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
114655 2006-06-26  Bruno Haible  <bruno@clisp.org>
114657         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
114658         SGI C compiler in pre-C99 mode.
114659         Suggested by Mark D. Baushke and Larry Jones.
114661 2006-06-26  Bruno Haible  <bruno@clisp.org>
114663         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
114664         WCHAR_MAX.
114665         Reported by Mark D. Baushke and Larry Jones.
114667 2006-06-26  Bruno Haible  <bruno@clisp.org>
114669         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
114670         in pre-C99 mode.
114671         Suggested by Mark D. Baushke and Larry Jones.
114673 2006-06-23  Simon Josefsson  <jas@extundo.com>
114674             Bruno Haible  <bruno@clisp.org>
114676         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
114677         Emit mostlyclean-local rule.
114678         (func_emit_tests_Makefile_am): Likewise.
114679         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
114681 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
114683         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
114685 2006-06-23  Bruno Haible  <bruno@clisp.org>
114687         * tests/test-stdint.c: Update to match ISO C 99 Technical
114688         Corrigendum 1.
114690 2006-06-23  Bruno Haible  <bruno@clisp.org>
114692         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
114694 2006-06-23  Bruno Haible  <bruno@clisp.org>
114696         * lib/stdint_.h: Treat IRIX like OpenBSD.
114698 2006-06-23  Bruno Haible  <bruno@clisp.org>
114700         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
114701         ISO C 99 Technical Corrigendum 1.
114703 2006-06-22  Simon Josefsson  <jas@extundo.com>
114705         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
114706         MinGW.
114708 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
114710         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
114711         needed.  Some compiler complained about some of them.  Problem reported
114712         by Larry Jones in
114713         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
114715 2006-06-21  Simon Josefsson  <jas@extundo.com>
114717         * tests/test-getaddrinfo.c: New file.
114719         * modules/getaddrinfo-tests: New file.
114721         * MODULES.html.sh: Add inet_pton.
114723         * modules/inet_pton: New file.
114725 2006-06-21  Simon Josefsson  <jas@extundo.com>
114727         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
114728         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
114729         of using the (limited) gnulib implementation on Windows XP.
114731         * m4/inet_pton.m4: New file.
114733 2006-06-21  Simon Josefsson  <jas@extundo.com>
114735         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
114736         variable.
114738         * lib/socket_.h: Don't define WINVER.
114740         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
114741         slightly modified to work in gnulib.
114743 2006-06-21  Simon Josefsson  <jas@extundo.com>
114745         * doc/gnulib.texi (Windows sockets): Add.
114747 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
114749         * lib/read-file.c (fread_file): Start with buffer allocation of
114750         0 bytes rather than 1 byte; this simplifies the code.
114751         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
114752         code to free buffer and save/restore errno.
114753         (internal_read_file): Remove unused local.
114755 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
114757         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
114758         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
114759         Problem reported by Denis Excoffier in
114760         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
114762 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114764         * modules/sys_socket, modules/socklen: Include sys/types since
114765         FreeBSD 4.x's sys/socket.h needs it.
114767 2006-06-19  Simon Josefsson  <jas@extundo.com>
114769         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
114771 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
114773         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
114775 2006-06-19  Bruno Haible  <bruno@clisp.org>
114777         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
114778         and FULL_PATH_INTTYPES_H in angle brackets.
114779         Reported by Mark D. Baushke <mdb@gnu.org>.
114781 2006-06-17  Eric Blake  <ebb9@byu.net>
114783         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
114784         errno.
114786 2006-06-17  Bruno Haible  <bruno@clisp.org>
114788         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
114789         <sys/inttypes.h>.
114791 2006-06-17  Bruno Haible  <bruno@clisp.org>
114793         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
114794         whether errno is declared. Assume <errno.h> declares errno.
114796 2006-06-17  Bruno Haible  <bruno@clisp.org>
114798         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
114800 2006-06-17  Bruno Haible  <bruno@clisp.org>
114802         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
114803         problem on Solaris 2.5.1.
114805 2006-06-16  Eric Blake  <ebb9@byu.net>
114807         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
114808         * lib/unicodeio.c [!defined errno]: Likewise.
114809         * lib/strtol.c [!defined errno]: Likewise.
114810         * lib/strtod.c [!defined errno]: Likewise.
114812 2006-06-15  Eric Blake  <ebb9@byu.net>
114814         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
114816 2006-06-15  Eric Blake  <ebb9@byu.net>
114818         * config/srclist.txt (ssize_t.m4): Lose sync.
114820 2006-06-15  Bruno Haible  <bruno@clisp.org>
114822         * modules/stdint (Files): Include m4/full-header-path.m4,
114823         m4/size_max.m4, m4/wchar_t.m4.
114824         (Makefile.am): Many more substitutions.
114825         * modules/stdint-tests: New file.
114826         * tests/test-stdint.c: New file.
114828 2006-06-15  Bruno Haible  <bruno@clisp.org>
114830         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
114831         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
114832         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
114833         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
114834         gl_CHECK_TYPE_SAME): New macros.
114836 2006-06-15  Bruno Haible  <bruno@clisp.org>
114838         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
114840 2006-06-15  Bruno Haible  <bruno@clisp.org>
114842         * lib/stdint_.h: Rewritten to be fully auto-configured.
114843         Fixes bug on HP-UX/IA64.
114845 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
114847         * lib/getdate.y (__attribute__): Don't define if already defined.
114848         Problem reported by Larry Jones.
114849         * lib/utimens.c (__attribute__): Likewise.
114851 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
114853         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
114854         reported by Andreas Schwab.
114856 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114857             Bruno Haible  <bruno@clisp.org>
114859         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
114860         check for the declaration of strnlen and a run test that exposes the
114861         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
114862         rpl_strndup.
114864 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114865             Bruno Haible  <bruno@clisp.org>
114867         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
114869 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114871         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
114872         compile test, for Tru64 4.0D.
114874 2006-05-28  Karl Berry  <karl@gnu.org>
114876         * config/srclist.txt (printf-args.c): lose sync.
114878 2006-05-26  Martin Lambers  <marlam@marlam.de>
114880         * lib/getpass.c: Updates the test for the native W32 API, and adds
114881         missing includes, thus fixing compilation warnings.
114883 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114885         * lib/exclude.c (exclude_fnmatch): New function.
114886         (excluded_file_name): Call exclude_fnmatch.
114887         * lib/exclude.h (excluded_file_name): New prototype
114889 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
114891         * lib/tempname.c (small_open, large_open): New macros.
114892         (__open, __open64) [!_LIBC]: Remove.
114893         (__gen_tempname): Use small_open and large_open instead of __open
114894         and __open64.  This fixes a portability bug on HP-UX 11.11i
114895         reported by Simon Wing-Tang in
114896         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
114898 2006-05-24  Bruno Haible  <bruno@clisp.org>
114900         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
114901         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
114902         Reported by Thorsten Maerz <torte@netztorte.de> via
114903         Aaron Stone <aaron@serendipity.cx>.
114905 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
114908         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
114909         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
114910         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
114911         not really conditional on the cache.
114912         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
114914 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114916         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
114917         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
114918         (my_usleep): Don't mishandle maximum value.
114920 2006-05-19  Jim Meyering  <jim@meyering.net>
114922         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
114924 2006-05-17  Bruno Haible  <bruno@clisp.org>
114926         Cygwin portability.
114927         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
114929 2006-05-17  Bruno Haible  <bruno@clisp.org>
114931         * lib/stdint_.h: Fix recognition of Cygwin.
114933 2006-05-15  Bruno Haible  <bruno@clisp.org>
114935         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
114936         on libtool patch by Ralf Wildenhues.
114938 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
114941         test for C99 conformance; (bool) 0.5 is an integer constant
114942         expression, but (bool) -0.5 is not.  Problem reported by Fedor
114943         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
114945 2006-05-11  Simon Josefsson  <jas@extundo.com>
114947         * m4/xvasprintf.m4: Fix obvious typo.
114949 2006-05-11  Jim Meyering  <jim@meyering.net>
114951         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
114952         James Lemley.
114954 2006-05-10  Simon Josefsson  <jas@extundo.com>
114956         * lib/md4.c: Typo fix, update copyright years.
114957         (K1, K2): Don't use L because it turn computations into 64-bit on
114958         64-bit platforms.
114960 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
114962         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
114963         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
114964         unwanted sign propagation, e.g., on hosts with 64-bit int.
114965         There still are some problems with reeelly weird theoretical hosts
114966         (e.g., 33-bit int) but it's not worth worrying about now.
114967         * lib/sha1.c (rol): Likewise.
114968         (K1, K2, K3, K4): Remove unnecessary L suffix.
114970 2006-05-10  Bruno Haible  <bruno@clisp.org>
114972         * lib/des.c: Cast to avoid warnings.
114974 2006-05-09  Bruno Haible  <bruno@clisp.org>
114976         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
114977         (Depends-on): Depend also on xsize, stdarg.
114978         (configure.ac): Add gl_XVASPRINTF.
114980 2006-05-09  Bruno Haible  <bruno@clisp.org>
114982         * m4/xvasprintf.m4: New file.
114984 2006-05-09  Bruno Haible  <bruno@clisp.org>
114986         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
114987         (EOVERFLOW): Define fallback value.
114988         (xstrcat): New function.
114989         (xvasprintf): Recognize the special case of a string concatenation.
114991 2006-05-08  Eric Blake  <ebb9@byu.net>
114993         * gnulib-tool (func_version): Base copyright year on CVS date.
114994         (func_emit_copyright_notice): New function.
114995         (func_emit_lib_Makefile_am): Use it.
114996         (func_emit_tests_Makefile_am): Likewise.
114997         (func_import): Likewise.
114999 2006-05-08  Bruno Haible  <bruno@clisp.org>
115001         * modules/stdarg: New file.
115002         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
115004 2006-05-08  Bruno Haible  <bruno@clisp.org>
115006         * m4/stdarg.m4: New file, from GNU gettext.
115008 2006-05-08  Bruno Haible  <bruno@clisp.org>
115010         * config/srclist.txt (build-aux/config.rpath): different from latest
115011         release.
115013 2006-05-08  Bruno Haible  <bruno@clisp.org>
115015         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
115017 2006-05-05  Jim Meyering  <jim@meyering.net>
115019         * m4/warning.m4: New file, derived from bison's file by the same name.
115021 2006-05-03  Bruno Haible  <bruno@clisp.org>
115023         * lib/stdint_.h: Shorter URL.
115024         * lib/inttypes.h: Likewise.
115026 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115028         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
115030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115032         * lib/verify.h: Document the internals better.  Most of this change
115033         was written by Bruno Haible.
115035 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115037         * doc/verify.texi: New file, partly based on a proposal by
115038         Bruno Haible.
115040 2006-05-02  Bruno Haible  <bruno@clisp.org>
115042         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
115043         test from here...
115044         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
115046 2006-04-29  Bruno Haible  <bruno@clisp.org>
115048         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
115049         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
115051 2006-04-29  Bruno Haible  <bruno@clisp.org>
115053         * gnulib-tool: Make --update option actually work.
115055 2006-04-29  Bruno Haible  <bruno@clisp.org>
115057         * doc/gcd.texi: New file.
115058         * doc/gnulib.texi: Include it.
115060 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
115062         * lib/getdate.y (get_date): When adding relative date, start with the
115063         initial time, not with the result of the first mktime call.
115065 2006-04-25  Bruno Haible  <bruno@clisp.org>
115067         * gnulib-tool (func_import): Output the include directives in three
115068         blocks, sorted separately.
115069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115071 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
115074         to define main with arguments, for C++.  Reported by Eric Blake.
115075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
115076         Prefer 'int main ()' to 'int main (void)', for C++.
115077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
115078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
115079         for 'main', for C99 and C++.
115081 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
115084         Don't assume that exit status -1 is valid.
115085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
115086         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
115087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
115088         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
115089         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
115090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
115091         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
115092         functions can be used without declaring them, or that you can
115093         exit with status -1.
115094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
115096 2006-04-24  Karl Berry  <karl@gnu.org>
115098         * config/srclist.txt (longdouble.m4): sync lost.
115100 2006-04-24  Eric Blake  <ebb9@byu.net>
115102         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
115104 2006-04-24  Bruno Haible  <bruno@clisp.org>
115106         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
115107         poll() implementation in AIX.
115108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115110 2006-04-24  Bruno Haible  <bruno@clisp.org>
115112         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
115113         assigned exactly once.
115115 2006-04-23  Claudio Fontana  <claudio@gnu.org>
115116             Bruno Haible  <bruno@clisp.org>
115118         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
115119         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
115120         for AM_CPPFLAGS.
115122 2006-04-23  Bruno Haible  <bruno@clisp.org>
115124         * modules/copy-file: Depend on unistd.
115125         * modules/execute: Likewise.
115126         * modules/fatal-signal: Likewise.
115127         * modules/findprog: Likewise.
115128         * modules/mkdtemp : Likewise.
115129         * modules/pipe: Likewise.
115130         * modules/wait-process: Likewise.
115132 2006-04-23  Bruno Haible  <bruno@clisp.org>
115134         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
115135         condition was already detected.
115136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115138 2006-04-23  Bruno Haible  <bruno@clisp.org>
115140         * lib/copy-file.c: Include <unistd.h> unconditionally.
115141         * lib/execute.c: Likewise.
115142         * lib/fatal-signal.c: Likewise.
115143         * lib/findprog.c: Likewise.
115144         * lib/mkdtemp.c: Likewise.
115145         * lib/pipe.h: Likewise.
115146         * lib/pipe.c: Likewise.
115147         * lib/wait-process.h: Likewise.
115149 2006-04-23  Bruno Haible  <bruno@clisp.org>
115151         * gnulib-tool (func_usage): Fix --import description. Document
115152         --update.
115153         (func_import): Create temporary file in a temporary directory, if
115154         --dry-run is specified. Silence errors from 'grep' when there are no
115155         m4 files in $m4dir.
115156         (func_create_testdir): Silence errors from 'grep' when there are no
115157         m4 files in $m4dir.
115158         Reported by Karl Berry <karl@freefriends.org>.
115160 2006-04-20  Bruno Haible  <bruno@clisp.org>
115162         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
115163         one argument, so that the code will be portable to Autoconf 2.60.
115164         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
115165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115166         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
115168 2006-04-19  Derek Price  <derek@ximbiot.com>
115169             Eric Blake  <ebb9@byu.net>
115171         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
115172         rather than "/full/path.h".  Update comment to match.  Shorten &
115173         generalize m4_translit call via AS_TR_CPP.
115175 2006-04-19  Derek Price  <derek@ximbiot.com>
115176             Eric Blake  <ebb9@byu.net>
115178         * lib/inttypes.h: Correct grammar in comment.
115180 2006-04-18  Derek Price  <derek@ximbiot.com>
115181             Paul Eggert  <eggert@cs.ucla.edu>
115183         * modules/inttypes: New file.
115184         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
115186 2006-04-18  Derek Price  <derek@ximbiot.com>
115187             Paul Eggert  <eggert@cs.ucla.edu>
115189         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
115190         New files.
115192 2006-04-18  Derek Price  <derek@ximbiot.com>
115193             Paul Eggert  <eggert@cs.ucla.edu>
115195         * lib/inttypes.h: New file.
115196         * lib/strtoimax.c: Assume <inttypes.h>.
115198 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
115200         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
115201         isn't mounted.  Problem reported by Kir Kolyshkin.
115203 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
115205         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
115206         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
115207         Derek R. Price.
115208         * lib/regex.h (RE_DUP_MAX): Update comment to match current
115209         implementation.
115211 2006-04-12  Eric Blake  <ebb9@byu.net>
115213         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
115214         is now done automatically by the corresponding Autoconf macro.
115216 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
115218         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
115219         time_r.h.
115221 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115223         Merge regex changes from libc, removing some of our
115224         POSIX-conformance changes that were rejected and redoing them in a
115225         less-intrusive way.
115227         * lib/regcomp.c (re_compile_internal, init_dfa):
115228         Length arg is now size_t, not Idx.  All uses changed.
115229         (peek_token): Forward decl now says internal_function.
115230         (__re_error_msgid, __re_error_msgid_idx):
115231         Now static rather than extern with attribute_hidden.
115232         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
115233         For some reason libc prefers K&R style defns for external functions.
115234         (regerror) [!defined _LIBC]: Likewise.
115235         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
115236         (seek_collating_symbol_entry, lookup_collation_sequence_value):
115237         (build_range_exp, build_collating_symbol):
115238         Use K&R-style defn.
115239         (re_compile_fastmap): Use '\0' to memset, not 0.
115240         (utf8_sb_map): Make the calculations more obvious.
115241         (init_dfa, parse_bracket_exp, build_charclass_op):
115242         Call calloc and cast result, as glibc does.
115243         (init_word_char, fetch_token, peek_token, peek_token_bracket):
115244         (build_range_exp, build_collating_symbol):
115245         Now internal functions.
115247         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
115249         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
115250         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
115251         Don't depend on VMS; depend on __VMS instead, for POSIX
115252         namespace cleanness.
115253         (regoff_t): Define to ssize_t, not long int.
115255         Remove the REG_ macros named below.  Instead, make the old names
115256         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
115257         __USE_GNU_REGEX.
115258         (REG_BACKSLASH_ESCAPE_IN_LISTS):
115259         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
115260         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
115261         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
115262         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
115263         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
115264         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
115265         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
115266         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
115267         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
115268         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
115269         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
115270         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
115271         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
115272         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
115273         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
115274         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
115275         (REG_NREGS):
115276         Remove.  All uses replaced by the old RE_* names.
115277         (RE_BACKSLASH_ESCAPE_IN_LISTS):
115278         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
115279         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
115280         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
115281         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
115282         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
115283         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
115284         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
115285         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
115286         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
115287         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
115288         Don't bother having these macros be independent of each others'
115289         values, since they no longer exist in the POSIX name space.
115291         Rename the following member names back to their old names,
115292         unless !__USE_GNU_REGEX.  All uses changed back.
115293         (buffer): Renamed from re_buffer.
115294         (allocated): Renamed from re_allocated.
115295         (used): Renamed from re_used.
115296         (syntax): Renamed from re_syntax.
115297         (fastmap): Renamed from re_fastmap.
115298         (translate): Renamed from re_translate.
115299         (can_be_null): Renamed from re_can_be_null.
115300         (regs_allocated): Renamed from re_regs_allocated.
115301         (fastmap_accurate): Renamed from re_fastmap_accurate.
115302         (no_sub): Renamed from re_no_sub.
115303         (not_bol): Renamed from re_not_bol.
115304         (not_eol): Renamed from re_not_eol.
115305         (newline_anchor): Renamed from re_newline_anchor.
115306         (num_regs): Renamed from rm_num_regs.
115307         (start): Renamed from rm_start.
115308         (end): Renamed from rm_end.
115310         (free_state): Move up a bit.
115312         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
115313         #define to be empty.
115314         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
115315         when that is what is intended.
115316         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
115317         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
115318         (MAX): New macro.
115319         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
115320         All uses changed back to re_malloc, etc.  It's now the caller's
115321         responsibility to check for overflow; all callers changed.
115322         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
115323         (re_x2nrealloc): Remove.
115324         (free_state): Remove decl.
115326         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
115327         (re_set_registers, re_exec):
115328         Use K&R-style defn.
115330         2006-01-31  Roland McGrath  <roland@redhat.com>
115332         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
115333         Reported by Mike Frysinger <vapier@gentoo.org>.
115335         2006-01-15  Andreas Jaeger  <aj@suse.de>
115337         [BZ #1950]
115338         * lib/regex_internal.c (re_string_reconstruct): Adjust for
115339         build_wcs_upper_buffer change.
115340         (build_wcs_upper_buffer): Change return type.
115342         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
115344         * lib/regex_internal.h: Include <stdint.h> if available.
115346         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
115348         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
115350         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
115352         * lib/regcomp.c: Adjust for changed secondary hash function.
115354         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
115356         * lib/regex.h: Pretty printing.
115357         Clean up namespace a bit.
115359         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
115361         * lib/regexec.c (update_cur_sifted_state, check_arrival,
115362         check_arrival_add_next_nodes): Avoid using uninitialized variable.
115364         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115365                     Ulrich Drepper  <drepper@redhat.com>
115367         [BZ #1302]
115368         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
115369         changed.
115370         (bitset_word_t): Renamed from bitset_word.  All uses changed.
115372         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
115374         [BZ #281]
115375         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
115376         * lib/regcomp.c: Remove unnecessary uses of
115377         unsigned RE_TRANSLATE_TYPE.
115378         * lib/regex_internal.h: Likewise.
115379         * lib/regex_internal.c: Likewise.
115380         * lib/regexec.c: Likewise.
115381         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
115383         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
115385         * lib/regexec.c (find_recover_state): Remove unnecessary
115386         initialization.
115387         (transit_state_bkref): Make DFA a const pointer.
115388         (get_subexp): Likewise.
115389         (check_arrival): Likewise.
115390         (update_cur_sifted_state): Likewise.
115391         (re_search_internal): Likewise.
115392         (prune_impossible_nodes): Likewise.
115393         (acquire_init_state_context): Likewise.
115394         (proceed_next_node): Likewise.
115395         (set_regs): Likewise.
115396         (free_fail_stack_return): Likewise.
115397         (check_arrival_expand_ecl): Mark DFA parameter as const.
115398         (check_arrival_expand_ecl_sub): Likewise.
115399         (check_subexp_limits): Likewise.
115400         (sub_epsilon_src_nodes):  Likewise.
115401         (add_epsilon_src_nodes):  Likewise.
115402         (merge_state_array): Likewise.
115403         (update_regs): Likewise.
115404         (build_trtable): Likewise.
115405         (sift_states_backward): Mark MCTX parameter as const.
115406         (build_sifted_states): Likewise.
115407         (update_cur_sifted_state): Likewise.
115408         (sift_states_mkref): Likewise.
115409         (check_arrival_expand_ecl): Mark eclosure as const.
115410         (check_dst_limits_calc_pos_1): Likewise.
115411         * lib/regex_internal.h (re_match_context_t): Make dfa a const
115412         pointer.
115414         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
115416         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
115417         (transit_state_sb): Likewise.
115418         (transit_state_mb): Likewise.
115419         (sift_states_iter_mb): Likewise.
115420         (check_arrival_add_next_nodes): Likewise.
115421         (check_node_accept_bytes): Change first parameter to pointer-to-const.
115422         [_LIBC] (re_search_2_stub): Use mempcpy.
115424         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
115425         mbrtowc for very simple UTF-8 case.
115427         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
115428         a pointer-to-const.
115429         (re_acquire_state_context): Likewise.
115430         * lib/regex_internal.h: Adjust prototypes.
115432         * lib/regex.c: Prevent using C++ compilers.
115434         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
115435         (re_acquire_state_context): Likewise.
115437 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115439         * modules/regex (Depends-on): Add ssize_t.
115441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115443         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
115444         translation table.
115446 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115448         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
115450 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
115451             Bruno Haible  <bruno@clisp.org>
115453         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
115454         <sys/types.h> and <inttypes.h>.
115456 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115458         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
115459         `__error_t_defined', so argp.h will not typedef the former.
115461 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
115463         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
115464         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
115465         glibc names.  Even if glibc is changed to conform to POSIX, the
115466         traditional names will be available anyway, since regex depends on
115467         the extensions module.  Also, fix a longstanding typo in the
115468         implementation of Spencer ERE test #75 from grep 2.3.  Problems
115469         reported by Emanuele Giaquinta.  Also, change sense of cached
115470         variable, so that the message makes sense.
115472 2006-03-24  Simon Josefsson  <jas@extundo.com>
115474         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
115475         including some doc fixes.
115476         (base64_encode_alloc): Fix +1 bug on allocation failures.
115478 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115480         * lib/base64.c (base64_encode): Do not read past end of array with
115481         unsanitized input on systems with CHAR_BIT > 8.
115483 2006-03-24  Eric Blake  <ebb9@byu.net>
115485         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
115487 2006-03-22  Karl Berry  <karl@gnu.org>
115489         * config/srclist.txt (*setenv.[ch]): get from coreutils.
115490         * config/srclistvars.sh (COREUTILS): new var.
115492 2006-03-17  Jim Meyering  <jim@meyering.net>
115494         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
115495         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
115497 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
115499         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
115500         no longer needs it.  Instead, check that regoff_t is as least
115501         as wide as ptrdiff_t.
115503         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
115504         so that our regex.h stays compatible with the installed regex.
115505         This is helpful for installers who configure --without-included-regex.
115506         Problem reported by Emanuele Giaquinta.
115508 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
115510         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
115511         Typedef to long int, not to off_, as POSIX will likely change
115512         in that direction.
115514 2006-03-15  Eric Blake  <ebb9@byu.net>
115516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
115518 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
115520         * lib/argp-help.c (validate_uparams): Fix typo
115521         * lib/argp-parse.c (argp_default_options): Consistently begin help
115522         messages with a lowercase letter.
115524 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
115526         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
115527         overrun buffers and shouldn't be used (much as gets shouldn't be
115528         used).
115529         * lib/time_r.c (asctime_r, ctime_r): Likewise.
115531 2006-03-08  Simon Josefsson  <jas@extundo.com>
115533         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
115534         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115536 2006-03-08  Simon Josefsson  <jas@extundo.com>
115538         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
115539         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115541 2006-03-08  Simon Josefsson  <jas@extundo.com>
115543         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
115544         signal that configure disabled the device.
115546 2006-03-08  Simon Josefsson  <jas@extundo.com>
115548         * build-aux/maint.mk: Fix refresh-po, to handle no translated
115549         languages.
115551 2006-03-07  Simon Josefsson  <jas@extundo.com>
115553         * modules/getopt (Depends-on): Add unistd.
115555         * modules/unistd: New file.
115557 2006-03-07  Simon Josefsson  <jas@extundo.com>
115559         * modules/gc-random: New file.
115561 2006-03-07  Simon Josefsson  <jas@extundo.com>
115563         * m4/unistd_h.m4: New file.
115565 2006-03-07  Simon Josefsson  <jas@extundo.com>
115567         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
115568         test to be side-effect free by storing the result in the cache
115569         variable gl_cv_lib_readline, and moving the assignment of
115570         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
115571         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115573 2006-03-07  Simon Josefsson  <jas@extundo.com>
115575         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
115576         error on missing devices (the functions will return an error).
115578         * m4/gc.m4: Move random stuff to gc-random.m4
115580 2006-03-07  Simon Josefsson  <jas@extundo.com>
115582         * lib/unistd_.h: New file.
115584 2006-03-07  Simon Josefsson  <jas@extundo.com>
115586         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
115588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
115590         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
115591         Problem reported by Juan Manuel Guerrero.
115593 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
115595         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
115596         the unistd module.
115597         * lib/getlogin_r.c: Likewise.
115598         * lib/getlogin_r.h: Likewise.
115599         * lib/glob.c: Likewise.
115600         * lib/pagealign_alloc.c: Likewise.
115601         * lib/unistd_.h: Remove; no longer needed.
115603 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
115605         * MODULES.html.sh (Support for systems lacking POSIX:2001):
115606         Add unistd.
115607         * modules/c-stack (Depends-on): Add unistd.
115608         * modules/getlogin_r: Likewise.
115609         * modules/glob: Likewise.
115610         * modules/pagealign_alloc: Likewise.
115611         * modules/unistd (Files): Remove lib/unistd_.h.
115612         (EXTRA_DIST): Remove.
115613         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
115614         need unistd_.h.
115615         (MOSTLYCLEANFILES): Remove unistd.h-t.
115617 2006-03-03  Simon Josefsson  <jas@extundo.com>
115619         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
115621 2006-03-03  Simon Josefsson  <jas@extundo.com>
115623         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
115624         libidn and bison.
115626 2006-03-03  Simon Josefsson  <jas@extundo.com>
115628         * build-aux/maint.mk: Add indent target.
115630 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
115632         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
115633         our replacement poll.h in any case, to avoid a differing
115634         declaration from a system header.  Seen on AIX.
115636 2006-03-01  Simon Josefsson  <jas@extundo.com>
115638         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
115639         <kasal@ucw.cz>.
115641 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
115643         * modules/gettime (Depends-on): Add extensions module.
115644         * modules/nanosleep (Depends-on): Likewise.
115645         * modules/settime (Depends-on): Likewise.
115647 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
115649         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
115650         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
115651         pedantically.
115652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
115653         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
115655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
115656         not "==".  Reported by Ralf Wildenhues.
115658 2006-03-01  Karl Berry  <karl@gnu.org>
115660         * doc/Copyright/request-*: new files, synced from gnuorg.
115662 2006-03-01  Karl Berry  <karl@gnu.org>
115664         * config/srclist.txt (Copyright/*): new entries.
115666 2006-02-28  Simon Josefsson  <jas@extundo.com>
115668         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
115670 2006-02-27  Simon Josefsson  <jas@extundo.com>
115672         * lib/base64.h: Indent #define's.  From Jim Meyering
115673         <jim@meyering.net>.
115675 2006-02-27  Jim Meyering  <jim@meyering.net>
115677         Revert the change of 2006-02-24, so these files can continue
115678         to be sync'd from gettext.
115679         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
115680         of `config.h'.
115682 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
115684         * modules/intprops: New file.
115685         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
115686         Add intprops.
115687         * modules/getloadavg (Files): Remove lib/intprops.h.
115688         (Depends-on): Add intprops.
115689         * modules/human: Likewise.
115690         * modules/inttostr: Likewise.
115691         * modules/openat: Likewise.
115692         * modules/sig2str: Likewise.
115693         * modules/userspec: Likewise.
115694         * modules/utimecmp: Likewise.
115695         * modules/xnanosleep: Likewise.
115696         * modules/xstrtol: Likewise.
115698 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
115700         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
115701         * modules/lock-tests (TESTS): Use $(EXEEXT).
115702         * modules/tls-tests: Likewise.
115703         * modules/argp-tests: Likewise.
115704         (check_PROGRAMS): New var, replacing...
115705         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
115707 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115709         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
115710         `config.h'.
115712 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
115714         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
115716 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115718         Sync from coreutils.
115719         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
115720         gl_CHDIR_SAFER.
115722 2006-02-22  Jim Meyering  <jim@meyering.net>
115724         Sync from coreutils.
115725         * m4/chdir-safer.m4: New file.
115727 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
115729         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
115730         AT_FDCWD exceeds INT_MAX.
115731         * lib/openat.h (AT_FDCWD): Likewise.
115733 2006-02-17  Eric Blake  <address@hidden>
115735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
115737 2006-02-16  Simon Josefsson  <jas@extundo.com>
115739         * modules/getaddrinfo (Depends-on): Add sys_socket.
115741 2006-02-15  Simon Josefsson  <jas@extundo.com>
115743         * build-aux/maint.mk: Add dsyntax-check rule.
115745 2006-02-15  Eric Blake  <ebb9@byu.net>
115747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
115748         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
115749         'present but cannot compile' warnings on cygwin.
115750         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
115751         use ws2tcpip.h if sys/socket.h works.
115752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
115753         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
115755 2006-02-14  Simon Josefsson  <jas@extundo.com>
115757         * modules/maintainer-makefile (Files): Rename.
115759         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
115760         and (the local) Makefile.cfg to maint-cfg.mk.
115762         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
115763         to the latter.
115765         * modules/maintainer-makefile: New module.
115767         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
115768         severaly stripped to make it possible to build it up from scratch
115769         with reliable tests.
115771         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
115772         fixes to permit overriding the default actions when configure and
115773         makefile are not available.
115775 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
115777         Sync from coreutils.
115778         * modules/lstat (Depends-on): Don't depend on xalloc.
115779         (License): Change from GPL to LGPL, since this is now simply a
115780         replacement for a libc function.
115782 2006-02-14  Jim Meyering  <jim@meyering.net>
115784         Sync from coreutils.
115786         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
115787         failure on deficient systems, and simplify gnulib lgpl dependencies.
115788         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
115789         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
115791         * lib/xalloc-die.c: Remove unused definition of N_.
115793 2006-02-14  Jim Meyering  <jim@meyering.net>
115795         Sync from coreutils.
115796         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
115797         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
115798         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
115799         double-quote uses of that variable, to accommodate the rare case in
115800         which getmntent is available in none of the libraries checked.  This
115801         happens at least on FreeBSD 5.0.
115803 2006-02-13  Simon Josefsson  <jas@extundo.com>
115805         * gnulib-tool (Usage): Fix --import, from
115806         karl@freefriends.org (Karl Berry).
115808 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
115810         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
115812 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
115814         * lib/argp-namefrob.h: Restore changes accidentally lost during the
115815         "autoupdate" on 2005-12-12.
115817 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
115819         * modules/closeout (Depends-on): Remove atexit.
115821 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
115823         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
115824         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
115826 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
115828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
115829         __EXTENSIONS__ if this causes compilation to fail.  Problem
115830         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
115831         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
115833 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
115835         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
115836         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
115837         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
115838         All uses changed.
115840 2006-01-26  Simon Josefsson  <jas@extundo.com>
115842         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
115843         prototype is visible on mingw32.
115845         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
115846         for mingw32.
115848         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
115849         mingw32).
115851 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
115853         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
115854         attempt to open for write; this always fails, at least on POSIX
115855         hosts.  This reinstates the 2006-01-09 change, which was
115856         inadvertently removed.
115858 2006-01-26  Bruno Haible  <bruno@clisp.org>
115860         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
115861         Reported by Paul Eggert.
115863 2006-01-26  Bruno Haible  <bruno@clisp.org>
115864             Paul Eggert  <eggert@cs.ucla.edu>
115866         * lib/stdbool_.h (_Bool)
115867         [(! (defined __cplusplus || defined __BEOS__)
115868           && !defined __GNUC__
115869           && !(defined __HP_cc || defined __xlc__
115870                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
115871                || defined __sgi))]:
115872         #define to signed char in these cases too; this simplifies
115873         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
115874         etc., separately) and makes it more conservative.
115876 2006-01-25  Simon Josefsson  <jas@extundo.com>
115878         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
115879         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
115880         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
115882 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115884         * lib/argp-namefrob.h: Bugfix. Remove stray #
115886 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
115888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
115889         so that we test the test.
115890         Check for yet another HP-UX cc bug involving *bool |= bool.
115892 2006-01-25  Karl Berry  <karl@gnu.org>
115894         * config/srclist.txt (vasnprintf.c): sync lost.
115896 2006-01-25  Jim Meyering  <jim@meyering.net>
115898         Sync from the stable (b5) branch of coreutils:
115900         * lib/fts.c (fts_children): Don't let close() clobber errno from
115901         failed fchdir().
115903         * lib/fts.c (fts_stat): When following a symlink-to-directory,
115904         don't necessarily interpret stat-fails+lstat-succeeds as indicating
115905         a dangling symlink.  That can also happen at least for ELOOP.
115906         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
115907         FYI, this bug predates the inclusion of fts.c in coreutils.
115909         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
115910         in their own block, so pre-c99 compilers don't object.
115912         Avoid the double-free (first in fts_read, second in fts_close) that
115913         would occur when an `active' directory is made inaccessible (e.g.,
115914         via chmod a-x) during a traversal.
115915         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
115916         before returning.  Reproduce this failure by
115917         mkdir -p a/b; cd a; chmod a-x . b
115918         Reported by Stavros Passas.
115920 2006-01-25  Jim Meyering  <jim@meyering.net>
115922         * lib/fileblocks.c: Remove more useless parentheses.
115923         * lib/readutmp.h: Likewise.
115925 2006-01-25  Bruno Haible  <bruno@clisp.org>
115927         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
115928         warnings.
115929         Reported by Paul Eggert.
115931 2006-01-25  Bruno Haible  <bruno@clisp.org>
115933         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
115934         rid of a trap command. For Solaris sh.
115935         Reported by Mark D. Baushke <mdb@gnu.org>.
115937 2006-01-24  Simon Josefsson  <jas@extundo.com>
115939         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
115940         Bruno.
115942 2006-01-24  Karl Berry  <karl@gnu.org>
115944         * config/srclist.txt (argp-namefrob.h): sync lost.
115946 2006-01-24  Jim Meyering  <jim@meyering.net>
115948         * modules/openat (Files): Add lib/intprops.h.
115949         From Mark D. Baushke.
115951 2006-01-24  Jim Meyering  <jim@meyering.net>
115953         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
115954         Reported by Mark D. Baushke.
115956 2006-01-24  Jim Meyering  <jim@meyering.net>
115958         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
115960 2006-01-24  Bruno Haible  <bruno@clisp.org>
115962         * modules/strnlen (Maintainer): Change from glibc to all.
115964 2006-01-24  Bruno Haible  <bruno@clisp.org>
115966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
115967         Patch by Paul Eggert.
115969 2006-01-24  Bruno Haible  <bruno@clisp.org>
115971         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
115972         already has it.
115973         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
115974         2005-11-26.
115976         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
115977         'signed char' to avoid problems with the built-in _Bool type.
115978         Reported by Paul Eggert on 2005-11-26.
115980 2006-01-24  Bruno Haible  <bruno@clisp.org>
115982         * gnulib-tool (func_import): Avoid constructing complicated sed
115983         expressions inside backquote.
115984         Report and solution by Mark D. Baushke <mdb@gnu.org>.
115986 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
115988         These changes imported from libc.
115989         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
115990         test and two separate function calls.
115991         * lib/strndup.c (__strndup): Add libc_hidden_def.
115993 2006-01-23  Simon Josefsson  <jas@extundo.com>
115995         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
115996         Remove the test_*_SOURCES variable: automake infers it by default.
115997         * modules/tls-tests: Likewise.
115999 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116001         Work around porting bugs reported by Dieter in
116002         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
116003         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
116004         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
116005         Include "getopt.h" first, to check interface.
116006         (getenv): Declare only if defined HAVE_DECL_GETENV &&
116007         !HAVE_DECL_GETENV.
116008         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
116009         (__strndup): Revert to K&R-style function dfns, the glibc style.
116010         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
116011         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
116012         Include strnlen.h first, to get prototype properly.
116013         (strnlen): Renamed from __strnlen.
116014         Remove weak alias.
116016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116018         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
116020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116022         * config/srclist.txt: Adjust to reflect glibc reorganization.
116023         This affects only comments.
116025 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116027          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
116028          Reported by Bruce Korb <bkorb@gnu.org>.
116030 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
116032         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
116033         to pacify gcc -Wswitch-default.
116035 2006-01-22  Bruno Haible  <bruno@clisp.org>
116037         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
116038         temporary buffer for sprintf, take into account the precision also
116039         for 'd', 'i', 'u', 'o', 'x', 'X'.
116041 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116043         * modules/argp-tests: New module
116044         * tests/test-argp.c: New file
116045         * tests/test-argp-2.sh: New file
116047 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116049         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
116050         (__argp_base_name): Removed
116051         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
116052         typo.
116053         (__argp_base_name): Provide macro definition or extern declaration
116054         depending on the configuration
116056 2006-01-20  Simon Josefsson  <jas@extundo.com>
116058         * modules/inet_ntop (Depends-on): Depend on sys_socket.
116060 2006-01-20  Simon Josefsson  <jas@extundo.com>
116062         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
116064 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
116066         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
116067         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
116068         Suggested by Bruno Haible.
116070 2006-01-20  Karl Berry  <karl@gnu.org>
116072         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
116073         until changes propagate, I guess.
116075 2006-01-19  Simon Josefsson  <jas@extundo.com>
116077         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
116079 2006-01-19  Simon Josefsson  <jas@extundo.com>
116081         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
116083 2006-01-19  Simon Josefsson  <jas@extundo.com>
116085         * gnulib-tool: Set check_PROGRAMS.
116087         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116088         modules/des-tests, modules/gc-arcfour-tests,
116089         modules/gc-arctwo-tests, modules/gc-des-tests,
116090         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116091         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116092         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116093         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116094         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116095         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
116096         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
116097         test_*_SOURCES.
116099 2006-01-18  Simon Josefsson  <jas@extundo.com>
116101         * modules/socklen (Depends-on): Depend on sys_socket.
116103 2006-01-18  Simon Josefsson  <jas@extundo.com>
116105         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116106         modules/des-tests, modules/gc-arcfour-tests,
116107         modules/gc-arctwo-tests, modules/gc-des-tests,
116108         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116109         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116110         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116111         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116112         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116113         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
116114         $(EXEEXT) to automake TESTS variable, for mingw32.
116116 2006-01-17  Simon Josefsson  <jas@extundo.com>
116118         * modules/socklen (Include): Need sys/socket.h.
116120 2006-01-17  Bruno Haible  <bruno@clisp.org>
116122         * modules/ssize_t (Include): Add <sys/types.h>.
116124 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
116126         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
116127         it's not portable and it doesn't work with cross-compiles.
116128         Problem reported by Bruno Haible.  Fix missing-$ typo in
116129         'test "gl_cv_ignore_unused_libraries" ...' that prevented
116130         -zignore from being used with Sun's C compiler.
116132 2006-01-12  Simon Josefsson  <jas@extundo.com>
116134         * lib/base64.c: Fix warning, reported by Bruno Haible
116135         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
116137 2006-01-12  Bruno Haible  <bruno@clisp.org>
116139         * modules/ldd: New file.
116140         * build-aux/ldd.sh.in: New file.
116141         * MODULES.html.sh (Support for building libraries and executables): Add
116142         ldd.
116144 2006-01-12  Bruno Haible  <bruno@clisp.org>
116146         * m4/ldd.m4: New file.
116148 2006-01-12  Bruno Haible  <bruno@clisp.org>
116150         * gnulib-tool (func_import, func_create_testdir): Don't go into an
116151         endless loop while replacing $auxdir with build-aux.
116153 2006-01-11  Simon Josefsson  <jas@extundo.com>
116155         * lib/stdint_.h (SIZE_MAX): Add missing (.
116157 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
116159         Sync from coreutils.
116160         * lib/md5.c: Fix commentary typos.
116161         (alignof, UNALIGNED_P): No need for a GCC-specific version.
116162         * lib/md5.h (__attribute__): Remove; unused.
116163         * lib/sha1.c: Fix commentary to match md5 better.
116164         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
116165         so that we don't need to worry about alignment.  All uses changed.
116166         This merges the 2005-10-28 md5 change into sha1.
116168 2006-01-11  Jim Meyering  <jim@meyering.net>
116170         Sync from coreutils.
116171         * lib/md5.c (OP): Fix spacing.
116173 2006-01-11  Bruno Haible  <bruno@clisp.org>
116175         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116176         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
116177         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
116179 2006-01-11  Bruno Haible  <bruno@clisp.org>
116181         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116182         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
116183         the "early" section as well.
116185 2006-01-11  Bruno Haible  <bruno@clisp.org>
116187         Avoid "ar: no archive members specified" error on MacOS X.
116188         * gnulib-tool (func_modules_add_dummy): New function.
116189         (func_import, func_create_testdir): Invoke it.
116191 2006-01-11  Bruno Haible  <bruno@clisp.org>
116193         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
116194         with $auxdir in AC_CONFIG_FILES statements.
116196 2006-01-11  Bruno Haible  <bruno@clisp.org>
116198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
116199         Initialize also noinst_HEADERS to empty.
116201 2006-01-11  Bruno Haible  <bruno@clisp.org>
116203         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
116204         variables.
116205         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
116206         autoreconf.
116208 2006-01-11  Bruno Haible  <bruno@clisp.org>
116210         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
116211         overridable by the user.
116212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116214 2006-01-10  Simon Josefsson  <jas@extundo.com>
116216         * modules/sys_socket: New file.
116218 2006-01-10  Simon Josefsson  <jas@extundo.com>
116220         * m4/sys_socket_h.m4: New file.
116222 2006-01-10  Simon Josefsson  <jas@extundo.com>
116224         * lib/socket_.h: New file.
116226 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116228         * modules/readutmp (Maintainer): Add myself.
116230 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116232         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
116233         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
116234         People who are still concerned with buggy memcmp implementations
116235         can invoke gl_FUNC_MEMCMP themselves.
116237 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116239         * lib/regex_internal.h (BITSET_WORD_BITS):
116240         Work around a bug in 64-bit PGC (before version 6.1-2), where the
116241         preprocessor mishandles large unsigned values as if they were signed.
116242         Problem reported by Claudio Fontana in
116243         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
116245 2006-01-10  Jim Meyering  <jim@meyering.net>
116247         Avoid the double-free (first in fts_read, second in fts_close) that
116248         would occur when an `active' directory is made inaccessible (e.g.,
116249         via chmod a-x) during a traversal.
116250         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116251         before returning.  Reproduce this failure by
116252         mkdir -p a/b; cd a; chmod a-x . b
116253         Reported by Stavros Passas.
116255         Sync from coreutils.
116256         * lib/sha1.c: Tweak grammar in a comment.
116258 2006-01-10  Jim Meyering  <jim@meyering.net>
116260         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
116261         Patch by Joerg Sonnenberger.
116263 2006-01-10  Bruno Haible  <bruno@clisp.org>
116265         * modules/readutmp: Depend on module free.
116266         * modules/strtok_r: Depend on module restrict.
116268 2006-01-10  Bruno Haible  <bruno@clisp.org>
116270         * modules/gettext (configure.ac): Add an invocation of
116271         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
116273 2006-01-10  Bruno Haible  <bruno@clisp.org>
116275         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
116276         Reported by Werner Lemberg <wl@gnu.org>.
116278 2006-01-10  Bruno Haible  <bruno@clisp.org>
116280         * lib/localcharset.c: Update from GNU gettext.
116282 2006-01-10  Bruno Haible  <bruno@clisp.org>
116284         * lib/argp.h (__const): Remove macro. Use const instead.
116285         * lib/argp-fmtstream.h (__const): Likewise.
116286         * lib/glob_.h (__const): Remove macro.
116287         * lib/glob-libc.h: Use const instead of __const.
116289 2006-01-10  Bruno Haible  <bruno@clisp.org>
116291         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
116292         variable.
116293         Needed to avoid an automake error regarding the 'gettext' module.
116295 2006-01-09  Simon Josefsson  <jas@extundo.com>
116297         * modules/inet_ntop (Depends-on): Add restrict.
116299 2006-01-09  Simon Josefsson  <jas@extundo.com>
116301         * modules/gc-rijndael-tests (License): Put under LGPL.
116303         * modules/gc-des-tests (License): Likewise.
116305         * modules/gc-arcfour-tests (License): Likewise.
116307         * modules/gc-arctwo-tests (License): Likewise.
116309         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
116311         * modules/gc-hmac-sha1-tests (Files): Likewise.
116313         * modules/gc-hmac-md5-tests (License): Likewise.
116315         * modules/gc-sha1-tests (License): Likewise.
116317         * modules/gc-md5-tests (License): Likewise.
116319         * modules/gc-md4-tests (License): Likewise.
116321         * modules/gc-md2-tests (License): Likewise.
116323         * modules/gc-tests (License): Likewise.
116325         * modules/des-tests (License): Likewise.
116327         * modules/md4-tests (License): Likewise.
116329         * modules/md2-tests (License): Likewise.
116331 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116333         Sync from coreutils:
116335         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
116336         * modules/lib-ignore: New file.
116337         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
116338         chdir-safer.m4, lchmod.m4.
116339         * modules/openat: Add mkdirat.c, openat-priv.h.
116341 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116343         Sync from coreutils.
116344         * m4/lib-ignore.m4: New file.
116345         * m4/lchmod.m4: New file.
116347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116349         Sync from coreutils.
116350         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
116351         for write access: POSIX says that must fail.
116352         * lib/fts.c (diropen): Likewise.
116353         * lib/save-cwd.c (save_cwd): Likewise.
116354         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
116355         well, for minor improvements on hosts that lack O_DIRECTORY.
116356         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
116357         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
116358         Fall back on chown if open failed with EACCES.
116360         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
116361         Report an error at compile-time if only a 1-second nominal clock
116362         resolution is found.
116364         * lib/lchmod.h: New file.
116365         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
116366         (make_dir_parents): Use lchown rather than chown, and
116367         lchmod rather than chmod.
116369         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
116370         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
116371         "proc" reported by n0dalus.
116373         * lib/mountlist.c: Include <limits.h>.
116374         (dev_from_mount_options)
116375         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
116376         New function.  It no longer assumes "dev=" has the System V meaning
116377         on Linux (since it doesn't).  It also parses "dev=" more carefully.
116378         (read_file_system_list)
116379         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
116380         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
116381         dev= in that case.
116383         * lib/posixtm.h (PDS_PRE_2000): New macro.
116384         * lib/posixtm.c (year): Arg is now syntax_bits rather than
116385         allow_century.  All usages changed.  Reject dates outside the range
116386         1969-1999 if PDS_PRE_2000 is used.
116388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116390         Sync from coreutils.
116391         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
116392         (Time of day items): Mention the possibility of leap seconds.
116393         Problem reported by Dr. David Alan Gilbert.
116395 2006-01-09  Jim Meyering  <jim@meyering.net>
116397         Sync from coreutils.
116399         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
116401         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
116403         * lib/modechange.c (mode_compile): Reject an invalid mode string
116404         that starts with an octal digit.  From Andreas Gruenbacher.
116406         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
116407         and dup to open_safer and dup_safer, respectively.
116408         (openat_permissive): Fix typo in comment.
116410         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
116411         "gettext.h"; either no longer needed or are guaranteed by openat.h.
116412         (_): Remove; no longer needed.
116413         (openat): Renamed from rpl_openat; no need for rpl_openat
116414         since openat.h renames openat for us.
116415         Replace most of the body with a call to openat_permissive,
116416         to avoid duplicate code.
116417         Port to (probably hypothetical) environments were mode_t is
116418         wider than int.
116419         (openat_permissive): Require mode arg, so that we can check
116420         types better.  Put it just after flags.  Change cwd failure
116421         indicator from pointer-to-bool to pointer-to-errno-value.
116422         All callers changed.
116423         Invoke openat_save_fail and/or openat_restore_fail if
116424         cwd_errno is null, so that openat can call us.
116425         (openat_permissive, fdopendir, fstatat, unlinkat):
116426         Simplify errno handling to avoid some duplicate code,
116427         as it's OK to set errno on success.
116428         * lib/openat.h: Revamp code so that function macros depend on
116429         __OPENAT_PREFIX only, not also on AT_FDCWD.
116430         (openat_ro): Remove.  Caller changed to use openat_permissive.
116431         (openat_permissive): Now a macro, if not a function.
116432         (openat_restore_fail, openat_save_fail): Now always functions,
116433         since mkdirat needs them even if __OPENAT_PREFIX is defined.
116435         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
116436         and openat.c.
116437         * lib/mkdirat.c: Include openat-priv.h.
116438         Remove definitions of macros defined therein.
116439         * lib/openat.c: Likewise.
116441         * lib/mkdirat.c (mkdirat): New file and function.
116442         * lib/openat.h (mkdirat): Declare.
116444         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
116446         * lib/openat.h (openat_permissive): Declare.
116447         (openat_ro): Define.
116449         * lib/openat.c (EXPECTED_ERRNO): New macro.
116450         (openat_permissive): New function -- used in remove.c rewrite.
116451         (all functions): Set errno just before returning, only if there
116452         was an actual failure.
116453         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
116455         Emulate openat-family functions using Linux's procfs, if possible.
116456         Idea and some code based on Ulrich Drepper's glibc changes.
116458         * lib/openat.c: (BUILD_PROC_NAME): New macro.
116459         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
116460         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
116461         before falling back on save_cwd and restore_cwd.
116462         (fdopendir, fstatat, unlinkat): Likewise.
116464         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
116465         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
116467         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
116468         as second argument to va_arg.  Otherwise, some versions of gcc
116469         warn that `if this code is reached, the program will abort'.
116471 2006-01-09  Jim Meyering  <jim@meyering.net>
116473         Sync from coreutils.
116474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
116475         Require openat-priv.h.
116477 2006-01-09  Bruno Haible  <bruno@clisp.org>
116479         * modules/strnlen (Include): Use strnlen.h.
116481 2006-01-09  Bruno Haible  <bruno@clisp.org>
116483         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
116485 2006-01-09  Bruno Haible  <bruno@clisp.org>
116487         * lib/sysexit_.h (EX_OK): New macro.
116488         Suggested by Martin Lambers <marlam@marlam.de>.
116490 2006-01-09  Bruno Haible  <bruno@clisp.org>
116492         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
116493         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
116495 2006-01-09  Bruno Haible  <bruno@clisp.org>
116497         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
116498         numbers.
116500 2006-01-09  Bruno Haible  <bruno@clisp.org>
116502         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
116503         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
116504         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
116505         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
116507 2006-01-09  Bruno Haible  <bruno@clisp.org>
116509         * build-aux/javacomp.sh.in: New file, moved from lib/.
116510         * modules/javacomp-script (Files): Update.
116511         (configure.ac): Add AC_CONFIG_FILES invocation.
116512         (EXTRA_DIST): Remove variable.
116514         * build-aux/javaexec.sh.in: New file, moved from lib/.
116515         * modules/javaexec (Files): Update.
116516         (configure.ac): Add AC_CONFIG_FILES invocation.
116517         (EXTRA_DIST): Remove javaexec.sh.in.
116519         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
116520         * modules/csharpcomp-script (Files): Update.
116521         (configure.ac): Add AC_CONFIG_FILES invocation.
116522         (EXTRA_DIST): Remove variable.
116524         * build-aux/csharpexec.sh.in: New file, moved from lib/.
116525         * modules/csharpexec (Files): Update.
116526         (configure.ac): Add AC_CONFIG_FILES invocation.
116527         (EXTRA_DIST): Remove csharpexec.sh.in.
116529 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
116531         Sync from coreutils.
116533         Add POSIX ACL support
116534         * lib/acl.h (copy_acl, set_acl): Add declarations.
116535         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
116536         systems other than Linux.
116537         (chmod_or_fchmod): New function: use fchmod when possible,
116538         and chmod otherwise.
116539         (file_has_acl): Add a POSIX ACL implementation, with a
116540         Linux-specific subcase.
116541         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
116542         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
116543         acls are unsupported.
116544         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
116545         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
116546         are unsupported.
116548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
116550         Sync from coreutils.
116551         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
116553 2006-01-07  Bruno Haible  <bruno@clisp.org>
116555         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
116556         gl_EARLY.
116558 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
116560         * lib/strftime.c (tzname): Don't declare if it is already #defined.
116561         Problem reported for Mingw by Mark Junker.
116563 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
116565         * README: Gnulib normally doesn't generate a tarball.
116567 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
116569         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
116570         long int, not int, for nanosecond counts, so that people who are
116571         used to POSIX struct timespec won't be surprised.  Reported by Jim
116572         Meyering.
116574 2005-12-28  Bruno Haible  <bruno@clisp.org>
116576         * build-aux/config.rpath: Update from GNU gettext.
116578 2005-12-16  Jim Meyering  <jim@meyering.net>
116580         * modules/fprintftime: New module.
116581         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
116583 2005-12-16  Jim Meyering  <jim@meyering.net>
116585         * m4/fprintftime.m4: New file.
116587 2005-12-16  Jim Meyering  <jim@meyering.net>
116589         * lib/fprintftime.c, lib/fprintftime.h: New files.
116591 2005-12-15  Simon Josefsson  <jas@extundo.com>
116593         * modules/socklen (configure.ac): Fix M4 macro name, to align with
116594         new m4/socklen.m4.
116596 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
116598         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
116599         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
116601 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
116603         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
116604         * lib/argp-help.c (fill_in_uparams): Check if the constructed
116605         struct uparams is valid. Fall back to the default values if it is
116606         not.
116608 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
116610         * modules/argp (Files): Add argp-pin.c
116611         (Depends-on): dirname
116612         (lib_SOURCES): Add argp-pin.c
116614 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
116616         * m4/argp.m4:  Check if program_invocation_name and
116617         program_invocation_short_name are declared and define appropriate
116618         macros if they are not.
116620 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
116622         * lib/argp-help.c (__argp_base_name): New function
116623         (__argp_short_program_name): Rewrite using __argp_base_name
116624         * lib/argp-namefrob.h: Define program_invocation_name and
116625         program_invocation_short_name if requested
116626         (__argp_base_name): Add prototype
116627         * lib/argp-parse.c (argp_def): Use gettext wrappers
116628         (argp_default_parser): Use __argp_base_name
116629         * lib/argp-pin.c: New file. Defines program_invocation_name and
116630         program_invocation_short_name on systems that lack them.
116632 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
116634         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
116635         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
116636         porting problem reported by Georg Schwarz in
116637         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
116639 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
116641         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
116642         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
116643         porting problem reported by Georg Schwarz in
116644         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
116646 2005-12-05  Bruno Haible  <bruno@clisp.org>
116648         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
116649         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
116650         Reported by Mark Junker <mjscod@gmx.de>.
116652 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
116654         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
116655         Use implementation from Albert Chin, with some
116656         comments/corrections by Stepan Kasal and myself.
116658 2005-12-02  Bruno Haible  <bruno@clisp.org>
116660         * gnulib-tool (func_import): Accept GPLed build tool modules when
116661         --lgpl is given.
116662         * modules/csharpcomp-script: New file.
116663         * modules/csharpcomp: Depend on it.
116664         * modules/javacomp-script: New file.
116665         * modules/javacomp: Depend on it.
116666         Suggested by Simon Josefsson.
116668 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
116670         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
116671         statement, to work around an HP-UX 10.20 compiler bug reported by
116672         Peter O'Gorman.
116674 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
116676         * modules/savedir (Depends-on): Add openat.
116678 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
116680         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
116681         (uintmax_t) [defined uintmax_t]: Do not declare.
116682         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
116683         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
116684         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
116685         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
116686         sake of portability to weird hosts that C allows (though we don't
116687         know of any practical examples).
116689         * lib/savedir.h (fdsavedir): New decl.
116690         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
116691         contains most of the former guts of savedir.
116692         (savedir): Use savedirstream.
116693         Include "openat.h".
116695 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
116697         * modules/obstack (Files): Add m4/ulonglong.m4.
116698         Problem reported by Davide Angelocola.
116700 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
116702         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
116703         coreutils no longer futzes with rounding modes.
116705 2005-11-14  Jim Meyering  <jim@meyering.net>
116707         * lib/mkstemp-safer.c: Include <config.h>, required for possible
116708         replacement of mkstemp.
116710 2005-11-10  Simon Josefsson  <jas@extundo.com>
116712         * lib/readline.c: Remove EOL.
116714 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
116716         * modules/gethrxtime (Depends-on): Add gettime.
116718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
116720         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
116721         or gettimeofday; no longer needed.
116723 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
116725         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
116726         time business.
116727         (gethrxtime) [! (HAVE_NANOUPTIME
116728         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
116729         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
116730         our own approximation.
116732 2005-11-08  Eric Blake  <ebb9@byu.net>
116734         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
116736 2005-11-08  Eric Blake  <ebb9@byu.net>
116738         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
116740 2005-11-04  Bruno Haible  <bruno@clisp.org>
116742         * gnulib-tool: Implement --update mode.
116744 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
116746         Fix porting problem reported by Theodoros V. Kalamatianos.
116747         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
116748         Don't assume that futimes failing means we must fail.
116750 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
116752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
116753         variables to suggest the intended function of the PATH_MAX check.
116755 2005-10-30  Kean Johnston  <jkj@sco.com>
116757         Trivial changes to support SCO systems.
116758         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
116759         as PATH_MAX.
116760         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
116761         where __ptr is null when no I/O is pending.
116763 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
116765         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
116766         leave errno alone.  Problem reported by Dmitry V. Levin.
116768 2005-10-28  Simon Josefsson  <jas@extundo.com>
116770         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
116771         Test more.
116773         * tests/test-gc-md2.c, tests/test-md2.c: New files.
116775         * modules/md2, modules/md2-tests: New files.
116777 2005-10-28  Simon Josefsson  <jas@extundo.com>
116779         * m4/inet_ntop.m4: More tests.
116781         * m4/gc-md2.m4, md2.m4: New file.
116783 2005-10-28  Simon Josefsson  <jas@extundo.com>
116785         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
116786         "restrict" keywords, as per POSIX.  Protect the function
116787         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
116788         Don't use K&R prototypes.  Check the sprintf return values.
116789         Re-define EAFNOSUPPORT if not present.  Indent.
116791         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
116792         suggested by Bruno Haible <bruno@clisp.org>.
116794         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
116796         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
116798         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
116799         libgcrypt).
116801         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
116803         * lib/md2.h, lib/md2.c: New files.
116805 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
116807         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
116808         errno alone.  Problem reported by Frederic Jolliton.
116810 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
116812         * modules/verify (License): Change from GPL to LGPL.  This is a
116813         tiny module and there are apparently near-equivalents that are
116814         under the BSD license.
116816 2005-10-24  Simon Josefsson  <jas@extundo.com>
116818         * modules/sha1: Relicense to LGPL.
116820 2005-10-24  Simon Josefsson  <jas@extundo.com>
116822         * lib/md4.h: Shrink buffer size, now that we changed the type.
116824 2005-10-23  Simon Josefsson  <jas@extundo.com>
116826         * gnulib-tool (func_import): Fix --tests-base.
116828 2005-10-22  Simon Josefsson  <jas@extundo.com>
116830         * modules/arcfour (Depends-on): Need stdint.
116832 2005-10-22  Simon Josefsson  <jas@extundo.com>
116834         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
116835         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
116837 2005-10-22  Simon Josefsson  <jas@extundo.com>
116839         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
116840         suggested by Bruno Haible <bruno@clisp.org>.
116842 2005-10-22  Simon Josefsson  <jas@extundo.com>
116844         * lib/crc.h: Include stddef.h, for size_t.
116846 2005-10-22  Simon Josefsson  <jas@extundo.com>
116848         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
116849         arcfour_context struct (simplify test vector testing in GNU
116850         Shishi).
116852 2005-10-21  Simon Josefsson  <jas@extundo.com>
116854         * modules/des, modules/des-tests: New files.
116856         * modules/gc-des, modules/gc-des-tests: New files.
116858         * tests/test-des.c, tests/test-gc-des.c: New file.
116860 2005-10-21  Simon Josefsson  <jas@extundo.com>
116862         * modules/arctwo, modules/arctwo-tests: New files.
116864         * tests/test-arctwo.c: New file.
116866         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
116868         * tests/test-gc-arctwo.c: New file.
116870 2005-10-21  Simon Josefsson  <jas@extundo.com>
116872         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
116873         Bruno Haible <bruno@clisp.org>.
116875         * m4/gc-des.m4: New file.
116877 2005-10-21  Simon Josefsson  <jas@extundo.com>
116879         * m4/arctwo.m4: New file.
116881         * m4/gc-arctwo.m4: New file.
116883 2005-10-21  Simon Josefsson  <jas@extundo.com>
116885         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
116886         block.
116888 2005-10-21  Simon Josefsson  <jas@extundo.com>
116890         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
116891         <bruno@clisp.org>.
116893         * lib/hmac-sha1.c (hmac_sha1): Likewise.
116895         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
116896         Bruno Haible <bruno@clisp.org>.
116898         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
116899         <bruno@clisp.org>.
116901 2005-10-21  Simon Josefsson  <jas@extundo.com>
116903         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
116905 2005-10-21  Simon Josefsson  <jas@extundo.com>
116907         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
116909 2005-10-21  Simon Josefsson  <jas@extundo.com>
116911         * lib/des.h, lib/des.c: New files.
116913         * lib/gc-gnulib.c: Support DES.c
116915 2005-10-21  Simon Josefsson  <jas@extundo.com>
116917         * lib/arctwo.h, lib/arctwo.c: New files.
116919         * lib/gc-gnulib.c: Support ARCTWO.
116921 2005-10-21  Simon Josefsson  <jas@extundo.com>
116923         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
116924         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116926 2005-10-21  Simon Josefsson  <jas@extundo.com>
116928         * gnulib-tool (func_import, func_create_testdir): Define automake
116929         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
116930         Makefile.am snippet),
116931         suggested by Bruno Haible <bruno@clisp.org>.
116933         * modules/gc (Makefile.am): Use it.
116935 2005-10-21  Bruno Haible  <bruno@clisp.org>
116937         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
116938         patch.
116940 2005-10-19  Simon Josefsson  <jas@extundo.com>
116942         * tests/test-gc-rijndael.c: New file.
116944         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
116946 2005-10-19  Simon Josefsson  <jas@extundo.com>
116948         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
116949         interface too.
116951 2005-10-19  Simon Josefsson  <jas@extundo.com>
116953         * tests/test-gc-arcfour.c: New file.
116955         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
116957 2005-10-19  Simon Josefsson  <jas@extundo.com>
116959         * modules/gc-md4, modules/gc-md4-tests: New file.
116961         * tests/test-gc-md4.c: New file.
116963 2005-10-19  Simon Josefsson  <jas@extundo.com>
116965         * m4/gc-md4.m4: New file.
116967 2005-10-19  Simon Josefsson  <jas@extundo.com>
116969         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
116970         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
116971         <kasal@ucw.cz>.
116973 2005-10-19  Simon Josefsson  <jas@extundo.com>
116975         * m4/gc-arcfour.m4: New file.
116977         * m4/gc-rijndael.m4: New file.
116979 2005-10-19  Simon Josefsson  <jas@extundo.com>
116981         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
116983 2005-10-19  Simon Josefsson  <jas@extundo.com>
116985         * lib/gc-gnulib.c: Support ARCFOUR.
116987 2005-10-19  Simon Josefsson  <jas@extundo.com>
116989         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
116990         support.
116992         * lib/gc.h: Add ECB enum type.
116994         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
116996 2005-10-18  Simon Josefsson  <jas@extundo.com>
116998         * tests/test-md5.c: New file.
117000         * modules/md5-tests: New file.
117002 2005-10-18  Simon Josefsson  <jas@extundo.com>
117004         * tests/test-md4.c: New file.
117006         * modules/md4, modules/md4-tests: New files.
117008 2005-10-18  Simon Josefsson  <jas@extundo.com>
117010         * m4/md4.m4: New file.
117012 2005-10-18  Simon Josefsson  <jas@extundo.com>
117014         * lib/md4.h, lib/md4.c: New files, based on md5.?.
117016 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
117018         * gnulib-tool (func_create_testdir): Omit the second check whether
117019         BUILT_SOURCES in nonempty.
117021 2005-10-17  Simon Josefsson  <jas@extundo.com>
117023         * tests/test-rijndael.c: New file.
117025 2005-10-17  Simon Josefsson  <jas@extundo.com>
117027         * modules/sha1: Depend on stdint instead of md5.
117029         * modules/md5: Depend on stdint, remove uint32_t.
117031 2005-10-17  Simon Josefsson  <jas@extundo.com>
117033         * modules/gc-sha1-tests: New file.
117035         * tests/test-gc-sha1.c: New file.
117037 2005-10-17  Simon Josefsson  <jas@extundo.com>
117039         * m4/md5.m4: Remove call to uint32_t.m4.
117041 2005-10-17  Simon Josefsson  <jas@extundo.com>
117043         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
117045         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
117046         md5.h.
117048         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
117050         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
117052 2005-10-17  Simon Josefsson  <jas@extundo.com>
117054         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
117056 2005-10-17  Simon Josefsson  <jas@extundo.com>
117058         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
117060 2005-10-17  Simon Josefsson  <jas@extundo.com>
117062         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
117064         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
117066 2005-10-17  Bruno Haible  <bruno@clisp.org>
117068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
117069         that it can also be used in a test.
117071 2005-10-16  Bruno Haible  <bruno@clisp.org>
117073         * gnulib-tool (func_emit_tests_Makefile_am): Also define
117074         TESTS_ENVIRONMENT, so that individual tests can augment it.
117076         * gnulib-tool (func_create_testdir): Use an intermediate target for
117077         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
117078         macros, like $(ALLOCA_H), which cannot be passed through the command
117079         line.
117081 2005-10-15  Simon Josefsson  <jas@extundo.com>
117083         * modules/rijndael-tests: New file.
117085         * modules/rijndael: New file.
117087 2005-10-15  Simon Josefsson  <jas@extundo.com>
117089         * m4/rijndael.m4: New file.
117091 2005-10-15  Simon Josefsson  <jas@extundo.com>
117093         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
117095         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
117097 2005-10-14  Simon Josefsson  <jas@extundo.com>
117099         * tests/test-arcfour.c: New file.
117101         * modules/arcfour, modules/arcfour-tests: New files.
117103 2005-10-14  Simon Josefsson  <jas@extundo.com>
117105         * m4/arcfour.m4: New file.
117107 2005-10-14  Simon Josefsson  <jas@extundo.com>
117109         * lib/arcfour.h, lib/arcfour.c: New files.
117111 2005-10-14  Roland McGrath  <roland@redhat.com>
117113         Import from libc.  [BZ #1331]
117114         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
117115         macro argument.
117116         Reported by Matej Vela <vela@debian.org>.
117118 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117120         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
117121         include <wchar.h>; no longer needed.
117123 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117125         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
117127 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
117128         and  Ulrich Drepper  <drepper@redhat.com>
117130         Import from libc.
117131         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
117132         instead of inline stream orientation test and two separate
117133         function calls.  Pay no attention to USE_IN_LIBIO.
117135 2005-10-13  Simon Josefsson  <jas@extundo.com>
117137         * modules/gc-hmac-md5-tests: New file.
117139         * tests/test-gc-hmac-sha1.c: New file.
117141         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
117143         * modules/gc-hmac-md5-tests: New file.
117145         * tests/test-gc-md5.c: New file.
117147         * modules/gc-md5-tests: New file.
117149 2005-10-13  Simon Josefsson  <jas@extundo.com>
117151         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
117152         Move memory allocation outside of loop.
117154 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
117156         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
117157         intermediate directory is in a read-only file system.  Problem
117158         reported by Eric Blake.
117160 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
117162         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
117164 2005-10-12  Simon Josefsson  <jas@extundo.com>
117166         * tests/test-hmac-sha1.c: New file.
117168         * modules/hmac-sha1-tests: New file.
117170         * modules/hmac-sha1: New file.
117172 2005-10-12  Simon Josefsson  <jas@extundo.com>
117174         * modules/gc-sha1: New file.
117176 2005-10-12  Simon Josefsson  <jas@extundo.com>
117178         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
117180         * tests/test-gc-pbkdf2-sha1.c: New file.
117182 2005-10-12  Simon Josefsson  <jas@extundo.com>
117184         * modules/gc-md5, modules/gc-hmac-md5: New files.
117186         * modules/gc (Files): Remove md5, memxor and hmac files.
117188 2005-10-12  Simon Josefsson  <jas@extundo.com>
117190         * m4/gc-pbkdf2-sha1.m4: New file.
117192         * m4/gc-hmac-sha1.m4: New file.
117194         * m4/gc-sha1: New file.
117196         * m4/hmac-sha1.m4: New file.
117198 2005-10-12  Simon Josefsson  <jas@extundo.com>
117200         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
117202         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
117204 2005-10-12  Simon Josefsson  <jas@extundo.com>
117206         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
117207         suggested by Bruno Haible <bruno@clisp.org>.
117209 2005-10-12  Simon Josefsson  <jas@extundo.com>
117211         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
117213 2005-10-12  Simon Josefsson  <jas@extundo.com>
117215         * lib/gc-pbkdf2-sha1.c: New file.
117217         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
117219 2005-10-12  Simon Josefsson  <jas@extundo.com>
117221         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
117223         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
117225 2005-10-12  Simon Josefsson  <jas@extundo.com>
117227         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
117228         GC_USE_HMAC_MD5, respectively.
117230         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
117231         (gc_md5): Fix typo.
117233         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
117235         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
117237         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
117239 2005-10-12  Bruno Haible  <bruno@clisp.org>
117241         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
117242         Reported by Stepan Kasal <kasal@ucw.cz>.
117244 2005-10-11  Simon Josefsson  <jas@extundo.com>
117246         * tests/test-crc.c: New file.
117248         * modules/crc, modules/crc-tests: New files.
117250 2005-10-11  Simon Josefsson  <jas@extundo.com>
117252         * m4/crc.m4: New file.
117254 2005-10-11  Simon Josefsson  <jas@extundo.com>
117256         * lib/gc.h: Add gc_hash and gc_hash_buffer.
117258         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
117260         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
117262 2005-10-11  Simon Josefsson  <jas@extundo.com>
117264         * lib/crc.h, lib/crc.c: New files.
117266         * lib/gc.h (gc_hash_buffer): Add doc.
117268 2005-10-11  Bruno Haible  <bruno@clisp.org>
117270         * modules/c-strcasestr: New file.
117271         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
117273 2005-10-11  Bruno Haible  <bruno@clisp.org>
117275         * modules/c-strcase: New file.
117276         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
117278 2005-10-11  Bruno Haible  <bruno@clisp.org>
117280         * lib/strcasecmp.c: Include limits.h.
117281         (strcasecmp): Avoid integer overflow on exotic platforms.
117282         * lib/strncasecmp.c: Include limits.h.
117283         (strncasecmp): Avoid integer overflow on exotic platforms.
117284         Reported by Paul Eggert.
117286 2005-10-11  Bruno Haible  <bruno@clisp.org>
117288         * lib/c-strcasestr.h: New file, from GNU gettext.
117289         * lib/c-strcasestr.c: New file, from GNU gettext.
117291 2005-10-11  Bruno Haible  <bruno@clisp.org>
117293         * lib/c-strcase.h: New file, from GNU gettext.
117294         * lib/c-strcasecmp.c: New file, from GNU gettext.
117295         * lib/c-strncasecmp.c: New file, from GNU gettext.
117297 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
117299         * modules/mempcpy (License): GPL -> LGPL.
117300         * modules/strchrnul (License): Likewise.
117301         * modules/sysexits (License): Likewise.
117303 2005-10-08  Simon Josefsson  <jas@extundo.com>
117305         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
117307 2005-10-07  Simon Josefsson  <jas@extundo.com>
117309         * m4/memxor.m4: Remove gl_C_RESTRICT call.
117311 2005-10-06  Simon Josefsson  <jas@extundo.com>
117313         * tests/test-hmac-md5.c: New file.
117315         * modules/hmac-md5-tests: New file.
117317         * modules/hmac-md5: New file.
117319 2005-10-06  Simon Josefsson  <jas@extundo.com>
117321         * m4/hmac-md5.m4: New file.
117323         * m4/memxor.m4: Require gl_C_RESTRICT.
117325 2005-10-06  Simon Josefsson  <jas@extundo.com>
117327         * lib/memxor.c (memxor): Avoid casts and warnings.
117329 2005-10-06  Simon Josefsson  <jas@extundo.com>
117331         * lib/hmac-md5.c: New file.
117333         * lib/hmac.h: New file.
117335 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
117337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
117338         promotes to int, not unsigned int, to catch the AIX 5.3
117339         compiler bug.
117341 2005-10-05  Simon Josefsson  <jas@extundo.com>
117343         * modules/memxor: New file.
117345         * modules/iconv (Files): Move config.rpath to havelib, it is used
117346         there.
117348         * modules/havelib (Files): Add config.rpath.
117350 2005-10-05  Simon Josefsson  <jas@extundo.com>
117352         * m4/memxor.m4: New file.
117354 2005-10-05  Simon Josefsson  <jas@extundo.com>
117356         * lib/memxor.c (memxor): Fix compiler error.
117358         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
117359         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
117361         * lib/memxor.h, lib/memxor.c: New files.
117363         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
117364         we assume all systems have it, suggested by Jim Meyering
117365         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
117366         any systems lack sys/socket.h; mingw32 is known to lack it, but we
117367         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
117368         same reasons.
117370 2005-10-05  Simon Josefsson  <jas@extundo.com>
117372         * config/srclist.txt: Add glibc bug 1423 for md5.h.
117374 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
117376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
117377         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
117378         needed, since the source code now assumes these .h files.
117380 2005-10-05  Derek Price  <derek@ximbiot.com>
117382         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
117384 2005-10-05  Bruno Haible  <bruno@clisp.org>
117386         * modules/stdint (License): Change to LGPL.
117388 2005-10-04  Simon Josefsson  <jas@extundo.com>
117390         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
117391         D. Baushke" <mdb@gnu.org>.
117393 2005-10-04  Bruno Haible  <bruno@clisp.org>
117395         * lib/verify.h (verify_true): Provide alternative definition for C++.
117397 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
117399         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
117400         (SSIZE_MAX): New macro, if not already defined.
117401         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
117402         than 2 GiB.
117404 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
117406         Sync from coreutils.
117407         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
117408         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
117409         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
117410         ULLONG_MAX doesn't work with 2.7.2.1.
117412 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
117414         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
117415         From Ben Pfaff.
117417         * modules/exclude (Depends-on): Depend on verify.
117418         * modules/strtoimax (Depends-on): Likewise.
117419         * modules/utimecmp (Depends-on): Likewise.
117421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
117423         * lib/exclude.c: Include verify.h.
117424         (verify): Remove.  All callers changed to use verify.h's version.
117425         * lib/strtoimax.c: Likewise.
117426         * lib/utimecmp.c: Likewis.e
117428         Sync from coreutils.
117429         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
117430         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
117431         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
117432         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
117433         bother returning ENOSYS if settimeofday or stime fails; just let
117434         them return whatever errno they want to return.
117435         * lib/utimens.c: Include unistd.h, for dup2.
117436         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
117437         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
117439 2005-10-02  Jim Meyering  <jim@meyering.net>
117441         Sync from coreutils.
117442         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
117443         from glibc-2.2.5 that fails for read-only files.
117445 2005-10-02  Jim Meyering  <jim@meyering.net>
117447         Sync from coreutils.
117448         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
117449         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
117450         `#if HAVE_CONFIG_H'.
117451         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
117452         Remove AT_FDCWD test.
117453         Do not consume the fd unless successful.
117454         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
117455         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
117456         block, so that we don't even try to compile it if settimeofday is
117457         available.  This works around a compilation failure on OSF1 V5.1,
117458         due to stime requiring a `long int*' while tv_sec is `int'.
117460 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
117462         Sync from coreutils.
117463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
117464         against `yes', rather than just testing for nonempty.
117466 2005-10-01  Simon Josefsson  <jas@extundo.com>
117468         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
117469         and Darwin.
117471         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
117472         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
117473         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
117474         freeaddrinfo and gai_strerror are declared by the POSIX headers.
117475         Check if struct addrinfo is declared.
117477 2005-10-01  Simon Josefsson  <jas@extundo.com>
117479         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
117480         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
117481         AI_* and EAI_* definitions.  Protect function declarations.
117483 2005-10-01  Jim Meyering  <jim@meyering.net>
117485         Sync from coreutils.
117487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
117488         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
117489         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
117490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
117491         in the inet and nsl libraries.  Required on Solaris 5.7.
117493 2005-10-01  Jim Meyering  <jim@meyering.net>
117495         Sync from coreutils.
117496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
117497         in the inet and nsl libraries.  Required on Solaris 5.7.
117499 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
117501         * lib/getdelim.c (getdelim): Remove unused variables.
117503 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
117505         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
117506         so that the code works even with ancient cpp.  Portability problem
117507         with GCC 2.7.2.1 reported by Thomas M.Ott.
117509 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
117511         * modules/regex (Depends-on): Add strcase.
117513         * modules/gethostname (Licence): Change from GPL to LGPL, since
117514         gethostname.c is a trivial implementation of a standard library
117515         function.
117516         * modules/poll (License): Change from GPL to LGPL, since it's
117517         derived from LGPL code.
117519 2005-09-27  Jim Meyering  <jim@meyering.net>
117521         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
117522         HAVE_CONFIG_H.
117524         * lib/intprops.h (signed_type_or_expr__): Define.
117525         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
117526         for unsigned types.
117528 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
117530         * lib/verify.h (verify_expr): Remove, replacing with:
117531         (verify_true): New macro that returns true instead of void.
117532         (verify_type__): Remove.
117533         (verify): Use verify_true rather than verify_type__.
117535 2005-09-26  Bruno Haible  <bruno@clisp.org>
117537         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
117538         is necessary.
117539         (lib_SOURCES): Remove mbchar.c.
117540         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
117541         (Files): Add m4/mbrtowc.m4.
117542         * modules/mbiter: Likewise.
117543         * modules/mbuiter: Likewise.
117545 2005-09-26  Bruno Haible  <bruno@clisp.org>
117547         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
117548         compile mbchar.c if they are not both present.
117549         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
117550         * m4/mbiter.m4 (gl_MBITER): Likewise.
117551         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
117552         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
117553         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
117555 2005-09-25  Jim Meyering  <jim@meyering.net>
117557         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
117558         also uses socklen_t.
117560 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
117562         * lib/utimens.c (ENOSYS): Define if not already defined.
117563         (futimens): Support having a null PATH if the file descriptor
117564         is nonnegative.
117566         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
117567         Remove.
117568         (__attribute): Define to empty unless GCC 3.1 or later.
117569         This works around a core dump on OpenBSD 3.4, which has GCC
117570         2.95.3, which dumps core when given __attribute__(()).  It also
117571         simplifies other tests, since we really don't want to bother with
117572         worrying about which ancient version of GCC supported what.
117573         Original problem reported by Yoann Vandoorselaere, with part of
117574         the fix suggested by Derek Price.
117576 2005-09-24  Jim Meyering  <jim@meyering.net>
117578         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
117579         so we can once again use a positive bitfield width of 1 -- now we
117580         don't have to explain why we were using a bitfield width of 2.
117582 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
117584         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
117585         and similarly for the other external symbols.  Problem reported
117586         by James Gallager.
117588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
117589         bug reported by Jim Meyering.
117591         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
117592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
117593         not needed, since socklen is a prerequisite module.
117595 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
117597         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
117598         Problem reported by Eric Blake.
117599         (getaddrinfo): Initialize se so that it's not garbage.
117600         Redo internal storage allocation so that it doesn't make unportable
117601         assumptions about alignment.
117602         Fix a memory leak.
117604         * lib/utimens.c (futimens): Use futimesat if available.
117605         Prefer it to futimes since it doesn't have the futimes bug.
117607         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
117608         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
117609         Instead, declare a function that returns a pointer to an array,
117610         and use verify_type__ to declare the size of the array.
117611         Problem and germ of a solution reported by Bruno Haible.
117612         (verify_type__): Use 2, not 1, for bitfield size, to avoid
117613         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
117615 2005-09-23  Jim Meyering  <jim@meyering.net>
117617         Sync from coreutils.
117618         Correct build failure (socklen_t not defined) on at least
117619         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
117620         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
117622 2005-09-23  Jim Meyering  <jim@meyering.net>
117624         * modules/getaddrinfo (Depends-on): Add socklen.
117626 2005-09-23  Bruno Haible  <bruno@clisp.org>
117628         * tests/test-verify.c: New file.
117630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
117632         Sync from coreutils.
117634         * modules/argmatch (Depends-on): Add verify.
117635         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
117636         unistd-safer.
117637         * modules/save-cwd (Depends-on): Likewise.
117639         * modules/openat (Files): Add lib/openat-die.c.
117640         (Depends-on): Remove error, exitfail.
117641         Add dirname.
117643         * modules/verify: New file.
117644         * MODULES.html.sh (Diagnostics <assert.h>): New section,
117645         with "verify" module.
117647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
117649         Sync from coreutils.
117651         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
117652         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
117653         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
117654         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
117655         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
117656         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
117657         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
117658         Don't bother checking for string.h, stdlib.h, unistd.h.
117659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
117660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
117661         module's job.
117662         * m4/jm-macros.m4 (gl_MACROS): Likewise.
117663         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
117665         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
117666         (gl_GETDATE): Use it.
117668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
117670 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
117672         Sync from coreutils.
117674         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
117675         stat-time.h.
117676         * lib/argmatch.h: Include verify.h
117677         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
117678         (ARGMATCH_ASSERT): Remove; unused.
117679         * lib/canonicalize.c: Assume STDC_HEADERS.
117680         * lib/exclude.c: Include "strcase.h".
117681         * lib/regex_internal.h [!defined _LIBC]: Likewise.
117682         * lib/getusershell.c: Include stdio--.h rather than stdio.h
117683         and stdio-safer.h.
117684         (getusershell): Call fopen, not fopen_safer.
117685         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
117686         Do not include unistd-safer.h.
117687         (save_cwd): Don't call fd_safer; no longer needed
117688         now that we include fcntl--.h.
117690         * lib/getdate.y (relative_time): New type.
117691         (RELATIVE_TIME_0): New constant.
117692         (parser_control): Use relative_time instead of doing it ourselves.
117693         (%union): Add new relative_time rel member.
117694         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
117695         Now typeless.
117696         (relunit, relunit_snumber): Now of type rel.
117697         (zone, rel, relunit, get_date): Adjust to above changes.
117699         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
117700         Do not include unistd-safer.h.
117701         (getloadavg): Don't call fd_safer; no longer needed
117702         now that we include fcntl--.h.
117704         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
117705         (make_dir_parents): Treat ENOSYS like EEXIST.
117707         Improve quality of diagnostics on restore_cwd failure.
117708         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
117709         (make_dir_parents): Last arg is now int * (for errno), not bool *.
117710         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
117711         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
117712         each time through the loop.  Do not diagnose restore_cwd failure;
117713         that is the caller's job (and perhaps the caller does not care).
117715         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
117716         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
117717         If the file already exists but is not a directory, don't bother
117718         to try to make its parents.
117719         Close potential file descriptor leak if we can't chdir("/") (!).
117720         Don't always return true if chdir($PWD) fails; return true only
117721         if the requested action was done successfully (except for the
117722         chdir($PWD)).
117723         Don't log final directory unless we actually made it.
117724         Refactor to avoid duplicate code to fix up permissions.
117725         Don't attempt to fix up parent permissions if chdir($PWD) fails.
117727         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
117728         to make it a bit faster and (I hope) clearer.
117729         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
117730         Fix bug in formats like %2N.
117732         * lib/verify.h: New file.
117734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
117736         Sync from coreutils.
117737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
117739 2005-09-22  Jim Meyering  <jim@meyering.net>
117741         Sync from coreutils.
117743         * m4/lstat.m4 (gl_FUNC_LSTAT):
117744         Use AC_LIBSOURCES to require lstat.c and lstat.h.
117745         Remove obsolete comment.
117746         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
117747         * m4/xstrtod.m4: Likewise.
117749         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
117751 2005-09-22  Jim Meyering  <jim@meyering.net>
117753         Sync from coreutils.
117755         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
117757         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
117758         the .tm_year member, since otherwise gcc-4.0 would now warn about
117759         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
117761         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
117762         order to avoid an unsuppressible warning from gcc on 64-bit systems.
117764         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
117765         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
117766         when run in a time zone for which daylight savings time is in effect
117767         for the starting date.
117769         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
117770         stop us from restricting permissions of just-created absolute-named
117771         directories.
117772         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
117773         to restore initial working directory.
117774         * lib/mkdir-p.c (make_dir_parents): New parameter:
117775         different_working_dir, to tell caller if/when we change the working
117776         directory and are unable to return to the initial one.
117777         * lib/mkdir-p.h (make_dir_parents): Update prototype.
117778         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
117779         `return false'.  This fixes a bug introduced on 2004-07-30.
117781         * lib/openat.c (fdopendir): Be sure to close the supplied
117782         file descriptor before returning.  This makes our replacement
117783         implementation a little closer to Solaris's, where fdopendir
117784         ties the file descriptor to the returned DIR* pointer.
117785         * lib/openat.c (unlinkat): New function.
117786         * lib/openat.h (unlinkat): Add prototype.
117787         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
117788         (openat_restore_fail): Rename from openat_restore_die.
117789         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
117791         Provide an alternative to exiting immediately upon save_cwd or
117792         restore_cwd failure.  Now, an application can arrange e.g.,
117793         to perform a longjump in that case.
117794         * lib/openat.c: Include dirname.h.
117795         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
117796         (rpl_openat, fdopendir, fstatat): Call openat_save_die
117797         and openat_restore_die rather than calling error directly.
117798         Don't include "error.h" or "exitfail.h"; they're no longer needed.
117800         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
117801         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
117802         define.
117804         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
117805         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
117806                             int utc, int nanoseconds);
117807         Background:
117808         date should not have to allocate a megabyte of virtual memory to
117809         handle a format argument like +%1048575T.  When implemented with
117810         strftime, it must allocate such a buffer, use strftime to fill it
117811         in, print it, then free it.
117812         With fprintftime, it simply prints everything and exits.
117813         With no need for memory allocation, that's one fewer way to fail.
117814         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
117815         optional field width, not before, so we accept %9:z, not %:9z.
117816         (my_strftime): Be sure to use L_('x') for literals.
117818         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
117819         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
117820         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
117821         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
117822         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
117823         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
117824         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
117825         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
117826         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
117827         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
117828         * lib/xgethostname.c, lib/xreadlink.c:
117829         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
117831         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
117832         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
117833         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
117834         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117835         and don't include <sys/file.h>).
117837 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
117839         Sync from coreutils.
117841         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
117842         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
117843         [!LDAV_DONE]: Avoid unused variable warning.
117845 2005-09-21  Bruno Haible  <bruno@clisp.org>
117847         * lib/unicodeio.h (unicode_to_mb): New declaration.
117849 2005-09-20  Derek Price  <derek@ximbiot.com>
117851         * lib/getaddrinfo.c: Don't include <netdb.h> included from
117852         getaddrinfo.h.
117854 2005-09-20  Bruno Haible  <bruno@clisp.org>
117856         * gnulib-tool: Remove trailing slashes from the values specified for
117857         --source-base, --m4-base, --tests-base, --aux-dir.
117858         Suggested by Simon Josefsson <jas@extundo.com>.
117860 2005-09-20  Bruno Haible  <bruno@clisp.org>
117862         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
117863         func_modules_to_filelist, func_import, func_create_testdir): Make all
117864         sorting results locale-independent, so that gnulib-cache.m4 doesn't
117865         change when gnulib-tool is invoked in a different locale.
117867 2005-09-19  Simon Josefsson  <jas@extundo.com>
117869         * m4/socklen.m4: Fix typo.
117871 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117873         Use a consistent style for including <config.h>.
117874         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
117875         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
117876         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
117877         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
117878         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
117879         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
117880         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
117881         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
117882         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
117883         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
117884         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
117885         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
117886         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
117887         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
117888         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
117889         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
117890         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
117891         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
117892         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
117893         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
117894         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
117895         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
117896         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
117897         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
117898         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
117899         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
117900         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
117901         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
117902         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
117903         lib/xstrtoumax.c, lib/yesno.c:
117904         Standardize inclusion of config.h.
117905         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
117906         lib/inttostr.h:  Removed inclusion of config.h from header files.
117907         * lib/inttostr.c:  Adjusted in-tree users.
117908         * lib/timespec.h: Remove superfluous warning to include config.h.
117909         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
117910         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
117911         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
117912         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
117913         config.h with HAVE_CONFIG_H.
117915 2005-09-19  Jim Meyering  <jim@meyering.net>
117917         * modules/pathmax (License): Change to LGPL.
117919 2005-09-19  Derek Price  <derek@ximbiot.com>
117921         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
117923 2005-09-19  Bruno Haible  <bruno@clisp.org>
117925         * gnulib-tool (import): Provide default for --tests-base.
117927 2005-09-19  Bruno Haible  <bruno@clisp.org>
117929         * doc/quote.texi: New file, extracted from gnulib.texi.
117930         * doc/ctime.texi: New file, extracted from gnulib.texi.
117931         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
117932         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
117933         * doc/gnulib.texi: Include them.
117935 2005-09-18  Bruno Haible  <bruno@clisp.org>
117937         Portability fix.
117938         * gnulib-tool (func_readlink): New function.
117939         (func_ln_if_changed): Use it.
117941 2005-09-18  Bruno Haible  <bruno@clisp.org>
117943         * gnulib-tool: Support --with-tests also with --import.
117944         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
117945         (func_import): Use variables $testsbase and $inctests. Emit a
117946         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
117947         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
117948         SUBDIRS += $testsdir.
117949         (func_create_testdir): Update.
117951 2005-09-18  Bruno Haible  <bruno@clisp.org>
117953         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
117954         instead of $dry_run.
117955         (func_cp_if_changed, func_mv_if_changed): Remove functions.
117956         (func_ln_if_changed): Don't handle dry-run here.
117957         (func_import): In dry-run mode, detect more precisely which actions
117958         would be performed, and don't use "...ing" verbs.
117960 2005-09-18  Bruno Haible  <bruno@clisp.org>
117962         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
117963         (func_import): Use join on two temporary files instead of three nested
117964         loops, in order to determine which files are new or old.
117966 2005-09-18  Bruno Haible  <bruno@clisp.org>
117968         * gnulib-tool (func_import): Comment out code that spits out the
117969         new files with --dry-run.
117971 2005-09-18  Bruno Haible  <bruno@clisp.org>
117973         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
117975 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
117977         * lib/stat-time.h: New file.
117978         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
117979         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
117980         in a different way.
117981         (timespec_cmp): New function.
117982         * lib/utimecmp.c: Include stat-time.h.
117983         (SYSCALL_RESOLUTION): Depend on whether various struct stat
117984         members exist, not on the obsolescent ST_MTIM_NSEC.
117985         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
117987 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
117989         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
117991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
117993         * MODULES.html.sh (File system functions): Add stat-time.
117994         * modules/stat-time: New file.
117995         * modules/timespec (Files): Remove m4/st_mtim.m4; this
117996         is now done in a different way, by the stat-time module.
117997         * modules/utimecmp (Depends-on): Add stat-time.
117999 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
118001         * m4/st_mtim.m4: Remove.  Superseded by...
118002         * m4/stat-time.m4: New file.
118003         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
118004         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
118006 2005-09-15  Derek Price  <derek@ximbiot.com>
118008         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
118010 2005-09-15  Derek Price  <derek@ximbiot.com>
118012         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
118013         * lib/regex_internal.c: Ditto, using this...
118014         (__GNUC_PREREQ): ...new macro.
118015         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
118016         using...
118017         (__GNUC_PREREQ): ...this new macro.
118019         * lib/strstr.h: Include string.h. Define strstr as a macro here.
118021 2005-09-15  Derek Price  <derek@ximbiot.com>
118022             Paul Eggert  <eggert@cs.ucla.edu>
118024         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
118025         changes, consolidating in...
118026         * lib/regex_internal.h: ...this file.
118028 2005-09-13  Jim Meyering  <jim@meyering.net>
118030         * lib/canon-host.c: Filter through gnu indent and reword comments
118031         slightly.
118032         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
118034 2005-09-13  Derek Price  <derek@ximbiot.com>
118036         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
118037         failure.
118038         Reported by Jim Meyering  <jim@meyering.net>.
118040 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118042         * lib/base64.c: Typo.
118043         (base64_encode): Put b64str in initialized data section.
118045 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
118047         Merge glibc and coreutils changes into gnulib, plus a few
118048         extra fixes.
118049         * lib/md5.c: Use #error rather than a string.
118050         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
118051         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
118052         (__attribute__): Define to empty for non recent-GCC.
118053         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
118054         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
118055         Renamed from their non-__ counterparts, with new macros replacing
118056         them if not _LIBC.  Add __THROW attribute.
118057         (rol): Remove.
118058         (struct md5_ctx): Align buffer if using GCC.
118059         * lib/sha1.h (struct sha1_ctx): Likewise.
118060         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
118061         The old name was backwards.
118062         (NOTSWAP): Remove; not used.
118063         (rol): New macro, moved here from md5.h.
118064         (sha1_process_block): Remove a FIXME that doesn't make sense.
118066 2005-09-12  Derek Price  <derek@ximbiot.com>
118068         Return usable errors from canon-host.
118069         * lib/canon-host.h: New file.
118070         * lib/canon-host.c (canon_host): Wrap...
118071         (canon_host_r): ...this new function, which now relies exclusively on
118072         getaddrinfo.
118073         (ch_strerror): New function.
118074         (last_cherror): New global.
118075         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
118076         interface.
118077         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
118078         void *.
118079         (freeaddrinfo): Free ai->ai_canonname when set.
118081 2005-09-12  Derek Price  <derek@ximbiot.com>
118083         Make canon-host require getaddrinfo.
118084         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
118085         AC_LIBSOURCE canon-host.h.  Call...
118086         (gl_PREREQ_CANON_HOST): ...this new function, which requires
118087         gl_GETADDRINFO.
118088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
118090 2005-09-12  Derek Price  <derek@ximbiot.com>
118092         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
118093         LGPL.
118094         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
118096 2005-09-12  Derek Price  <derek@ximbiot.com>
118098         * lib/gai_strerror.c: Include config.h when available.  Include
118099         getaddrinfo.h before other headers to test interface.
118100         Reported by Larry Jones <lawrence.jones@ugs.com>.
118102 2005-09-12  Derek Price  <derek@ximbiot.com>
118103             Paul Eggert  <eggert@cs.ucla.edu>
118105         * modules/glob (Files): Add glob-libc.h.
118107 2005-09-12  Derek Price  <derek@ximbiot.com>
118108             Paul Eggert  <eggert@cs.ucla.edu>
118110         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
118111         glob_.h, glob-libc.h.
118112         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
118114 2005-09-12  Derek Price  <derek@ximbiot.com>
118115             Paul Eggert  <eggert@cs.ucla.edu>
118117         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
118118         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
118119         protecting things that should be done only in gnulib contexts.
118120         * lib/glob_.h: New file, containing only the glob things needed for
118121         gnulib.
118122         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
118123         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
118124         (glob, globfree, glob_pattern_p): Now defined simply in terms of
118125         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
118126         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
118127         and to respect the namespace rules better.
118129 2005-09-08  Simon Josefsson  <jas@extundo.com>
118131         * modules/socklen: New file.
118133 2005-09-08  Simon Josefsson  <jas@extundo.com>
118135         * m4/socklen.m4: New file.
118137 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118139         * modules/utimens (Files): Add m4/utimbuf.m4, since
118140         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
118141         Reported by Sergey Poznyakoff.
118143 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118145         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
118146         definitions, since that's the preferred style in glibc.
118147         Fix a minor spacing issue, and update copyright notice to match
118148         glibc's.
118150 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118152         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
118154 2005-09-06  Simon Josefsson  <jas@extundo.com>
118156         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
118157         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
118159 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118161         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
118162         warning.
118164 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118166         * config/srclist.txt: Add glibc bug 1302.
118168 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
118170         Change bitset word type from unsigned int to unsigned long int,
118171         as this has better performance on typical 64-bit hosts.
118172         Port bitset code to hosts with unusual word sizes.
118173         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
118174         (build_collating_symbol):
118175         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
118176         argument is a bitset.  This is merely a style issue, but it makes
118177         it clearer that an entire array is expected.
118178         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
118179         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
118180         Port to the case where bitset_word is not the same as unsigned int.
118181         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118182         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
118183         Likewise.
118184         * lib/regexec.c (check_dst_limits_calc_pos_1,
118185         check_subexp_matching_top):
118186         (build_trtable, group_nodes_into_DFAstates):
118187         Likewise.
118188         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
118189         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
118190         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
118191         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
118192         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
118193         * lib/regcomp.c (optimize_subexps, lower_subexp):
118194         Work even if bitset_word has holes in its bitwise representation.
118195         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
118196         * lib/regexec.c (check_dst_limits_calc_pos_1,
118197         check_subexp_matching_top):
118198         Likewise.
118199         * lib/regex_internal.c (re_string_reconstruct):
118200         Don't assume UCHAR_MAX == 255.
118201         * lib/regex_internal.h (bitset_set_all): Likewise.
118202         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
118203         All uses changed.
118204         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
118205         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
118206         All uses changed.
118207         (BITSET_WORD_MAX): New macro.
118208         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
118209         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
118210         (bitset_empty, bitset_copy):
118211         Prefer sizeof (bitset) to multiplying it out ourselves.
118212         (bitset_not_merge): Remove; unused.
118213         (bitset_contain): Return bool, not unsigned int with one bit on.
118214         All callers changed.
118215         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
118216         alignment than re_node_set; do this by defining a new internal
118217         type struct dests_alloc and using it to allocate memory.
118219 2005-09-05  Bruno Haible  <bruno@clisp.org>
118221         * gnulib-tool (func_import): Fix comparison in handling of symbolic
118222         links.
118224 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
118226         * modules/size_max (Makefile.am): Add size_max.h
118228 2005-09-04  Derek Price  <derek@ximbiot.com>
118230         * gnulib-tool (func_import): Fix reversed $symbolic logic.
118232 2005-09-03  Simon Josefsson  <jas@extundo.com>
118234         * gnulib-tool: Fix typo.
118236 2005-09-03  Simon Josefsson  <jas@extundo.com>
118238         * config/srclist.txt: Add glibc bug 1293.
118240 2005-09-03  Derek Price  <derek@ximbiot.com>
118242         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
118243         From Larry Jones <lawrence.jones@ugs.com>.
118245 2005-09-02  Simon Josefsson  <jas@extundo.com>
118247         * modules/socklen: New file.
118249 2005-09-02  Simon Josefsson  <jas@extundo.com>
118251         * modules/havelib: New module.
118253         * modules/gettext, modules/iconv, modules/lock, modules/readline:
118254         Use havelib.
118256 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118258         Check for arithmetic overflow when calculating sizes, to prevent
118259         some buffer-overflow issues.  These patches are conservative, in the
118260         sense that when I couldn't determine whether an overflow was possible,
118261         I inserted a run-time check.
118262         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
118263         macros.
118264         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
118265         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
118266         (re_xnrealloc, re_x2nrealloc): New inline functions.
118267         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
118268         parse_bracket_exp):
118269         (build_equiv_class, build_charclass): Check for arithmetic overflow
118270         in size expression calculations.
118271         * lib/regex_internal.c (re_string_realloc_buffers):
118272         (build_wcs_upper_buffer, re_node_set_add_intersect):
118273         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
118274         (re_dfa_add_node, register_state): Likewise.
118275         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
118276         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
118277         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
118278         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
118280 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118282         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
118283         m4/ulonglong.m4.  Problem reported by Martin Lambers.
118285 2005-09-02  Bruno Haible  <bruno@clisp.org>
118287         Support for lib vs. lib64 distinction on biarch platforms.
118288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
118289         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
118290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
118292 2005-09-02  Bruno Haible  <bruno@clisp.org>
118294         * gnulib-tool (import): In the other first-use case, provide defaults
118295         as well.
118297 2005-09-02  Bruno Haible  <bruno@clisp.org>
118299         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
118300         patches not yet found in the latest gettext release.
118302 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
118304         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
118305         to avoid a collision with bits/local_lim.h in glibc.
118306         All uses changed.  Problem reported by Dmitry V. Levin in
118307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
118309         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
118310         bugs in int versus size_t comparisons.
118311         (re_string_context_at): Fix bug where the code assumed that
118312         Idx is signed.
118314         Use bool where appropriate.
118315         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
118316         All callers changed.
118317         (calc_eclosure_iter): Likewise, for ROOT arg.
118318         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
118319         (build_charclass_op): Likewise, for NON_MATCH arg.
118320         * lib/regex_internal.c (re_string_allocate, re_string_construct):
118321         (re_string_construct_common): Likewise, for ICASE arg.
118322         * lib/regexec.c (re_search_2_stub, re_search_stub):
118323         Likewise, for RET_LEN arg.
118324         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
118325         (set_regs): Likewise, for FL_BACKTRACK arg.
118326         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
118327         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
118328         (calc_eclosure_iter, parse_bracket_exp):
118329         Use bool for internal variables that are booleans.
118330         * lib/regexec.c (re_search_internal, check_matching,
118331         proceed_next_node):
118332         (set_regs, build_sifted_states, sift_states_bkref):
118333         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
118334         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
118335         (find_collation_sequence_value):
118336         Likewise.
118337         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
118338         (re_node_set_compare):
118339         Return bool, not int. All callers changed.
118340         * lib/regexec.c (check_halt_node_context, check_dst_limits):
118341         (build_trtable, check_node_accept): Likewise.
118342         * lib/regex_internal.h: Include stdbool.h.
118344         Fix bugs uncovered when converting to bool.
118345         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
118346         failure instead of charging ahead blindly.
118347         * lib/regex_internal.c (register_state): Likewise.
118348         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
118349         for freeing internal storage.
118350         (group_nodes_into_DFA_states): Use unsigned int, not int, for
118351         bitset pieces used as boolean, to avoid undefined behavior
118352         on hosts that do int overflow checking.
118354 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
118356         * config/srclist.txt: Add glibc bugs 1285-1287.
118358 2005-09-01  Jim Meyering  <jim@meyering.net>
118360         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
118361         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
118362         Require gl_STAT_MACROS, too.
118364 2005-09-01  Bruno Haible  <bruno@clisp.org>
118366         * gnulib-tool (import): In the first-use case, provide defaults.
118368 2005-09-01  Bruno Haible  <bruno@clisp.org>
118370         * gnulib-tool (func_import): Remove the .tmp files.
118372 2005-09-01  Bruno Haible  <bruno@clisp.org>
118374         * gnulib-tool (func_import): Fix handling of symbolic links.
118376 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118378         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
118379         old glibc regex code mishandles strings longer than 2**31 bytes.
118380         This patch fixes this when the regex code is used in gnulib
118381         (i.e., outside glibc).
118383         This patch should not affect the use of the regex code inside
118384         glibc.  No doubt this problem also needs to be handled for glibc
118385         as well, but the result will be an incompatible change to the
118386         glibc ABI, and the old ABI will have to be supported too.  That
118387         can be the subject for another patch.
118389         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
118390         governing whether the rest of this patch is active.  By default,
118391         the macro is disabled and the patch has no effect.
118392         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
118393         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
118394         (struct re_pattern_buffer, re_search, re_search_2, re_match):
118395         (re_match_2, re_set_registers): Use the new types.
118396         * lib/regex_internal.h (Idx, re_hashval_t): New types.
118397         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
118398         New macros.
118399         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
118400         (re_string_context_at, bin_tree_t, re_dfastate_t):
118401         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
118402         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
118403         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
118404         (re_string_char_size_at, re_string_wchar_at):
118405         (re_string_elem_size_at):
118406         Use the new types and macros to port to 64-bit hosts.
118407         Use unsigned types for internal values, so that the code
118408         mostly works even for arrays larger than SSIZE_MAX.
118409         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
118410         (search_duplicated_node, calc_eclosure_iter, fetch_number):
118411         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
118412         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
118413         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
118414         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
118415         (calc_inveclosure, parse_dup_op, build_range_exp):
118416         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
118417         (fetch_number, create_token_tree, mark_opt_subexp):
118418         Likewise.
118419         * lib/regex_internal.c (re_string_construct_common,
118420         create_ci_newstate):
118421         (create_cd_newstate, re_string_allocate, re_string_construct):
118422         (re_string_realloc_buffers, build_wcs_upper_buffer):
118423         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
118424         (re_string_reconstruct, re_string_peek_byte_case):
118425         (re_string_fetch_byte_case, re_string_context_at):
118426         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
118427         (re_node_set_init_copy, re_node_set_add_intersect):
118428         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
118429         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
118430         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
118431         (re_acquire_state, re_acquire_state_context, register_state):
118432         Likewise.
118433         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
118434         search_cur_bkref_entry):
118435         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
118436         (re_search_internal, re_search_2_stub, re_search_stub)
118437         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
118438         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
118439         (update_cur_sifted_state, check_dst_limits):
118440         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
118441         (check_subexp_limits, sift_states_bkref, merge_state_array):
118442         (check_subexp_matching_top, get_subexp, get_subexp_sub):
118443         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
118444         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
118445         (expand_bkref_cache, check_node_accept_bytes):
118446         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
118447         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
118448         (acquire_init_state_context, check_halt_node_context):
118449         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
118450         (sift_states_backward, clean_state_log_if_needed):
118451         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
118452         (find_recover_state, transit_state_sb, transit_state_mb):
118453         (transit_state_bkref, build_trtable, match_ctx_clean):
118454         Likewise.
118455         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
118456         to work around an assumption that REG_MISSING is negative.
118458         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
118459         (seek_collating_symbol_entry) [defined _LIBC]:
118460         (lookup_collation_sequence_value) [defined _LIBC]:
118461         (build_range_exp, build_collating_symbol) [defined _LIBC]:
118462         Use prototypes rather than old-style function definitions.
118463         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
118464         (transit_state_sb) [0]:
118465         (find_collation_sequence_value) [defined _LIBC]: Likewise.
118467         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
118468         rm_eo.
118470         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
118471         (optimize_subexps, lower_subexp):
118472         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
118473         since the signed shift might overflow.  Use 1u<<31 instead.
118474         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118475         Likewise.
118476         * lib/regexec.c (check_dst_limits_calc_pos_1,
118477         check_subexp_matching_top): Likewise.
118479         * lib/regcomp.c (optimize_subexps, lower_subexp):
118480         Use CHAR_BIT rather than 8, for clarity.
118481         * lib/regexec.c (check_dst_limits_calc_pos_1):
118482         (check_subexp_matching_top): Likewise.
118483         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
118484         have to worry about portability issues when shifting it left.
118485         Remove no-longer-needed test for table_size > 0.
118486         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
118487         in a word, as the resulting behavior is undefined.
118488         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
118489         in one case, a <= should have been an <, and in another case the
118490         whole test was missing.
118491         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
118492         the standard name CHAR_BIT.
118493         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
118494         this is not true on one's complement and signed-magnitude hosts.
118496         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
118497         next_last_offset.
118498         (struct re_dfa_t): Remove unused member states_alloc.
118499         * lib/regcomp.c (init_dfa): Don't initialize unused members.
118501 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118503         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
118504         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
118505         and large-file glibc and in 32-bit large-file Solaris.
118507 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118509         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
118510         lengths fit in regoff_t; this isn't true if regoff_t is the same
118511         width as size_t.
118512         * lib/regex.c (re_search_internal): 5th arg is LAST_START
118513         (= START + RANGE) instead of RANGE.  This avoids overflow
118514         problems when regoff_t is the same width as size_t.
118515         All callers changed.
118516         (re_search_2_stub): Check for overflow when adding the
118517         sizes of the two strings.
118518         (re_search_stub): Check for overflow when adding START
118519         to RANGE; if it occurs, substitute the extreme value.
118521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118523         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
118525 2005-08-31  Jim Meyering  <jim@meyering.net>
118527         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
118528         a pointer-to-const.
118529         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
118530         (register_state): Likewise.
118531         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
118532         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
118533         (group_nodes_into_DFAstates): Likewise.
118535 2005-08-31  Jim Meyering  <jim@meyering.net>
118537         * check-module: Add a FIXME comment.
118539 2005-08-31  Eric Blake  <ebb9@byu.net>
118541         * modules/unistd-safer (Files): Add unistd--.h.
118542         * modules/stdio-safer (Files): Add stdio--.h.
118544 2005-08-31  Derek Price  <derek@ximbiot.com>
118546         * lib/getdelim.c (getdelim): Return EOF on EOF.
118547         Reported by Larry Jones <lawrence.jones@ugs.com>.
118549 2005-08-31  Bruno Haible  <bruno@clisp.org>
118551         Avoid unnecessary diffs in the generated lib/Makefile.am.
118552         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
118553         the generated files.
118554         (func_import): Don't set cmd.
118556 2005-08-31  Bruno Haible  <bruno@clisp.org>
118558         * lib/strstr.c: Include <stddef.h>, for NULL.
118559         * lib/strcasestr.c: Likewise.
118560         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118562 2005-08-31  Bruno Haible  <bruno@clisp.org>
118564         * gnulib-tool: New option --macro-prefix.
118565         (func_import): Use macro_prefix.
118566         (import): Handle option --macro-prefix.
118568 2005-08-31  Bruno Haible  <bruno@clisp.org>
118570         * gnulib-tool (import): Rename most ac_* variables to cached_*.
118571         Also use new variables cached_lgpl, cached_libtool.
118573 2005-08-31  Bruno Haible  <bruno@clisp.org>
118575         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
118576         always instantiating them.
118578 2005-08-31  Bruno Haible  <bruno@clisp.org>
118580         * gnulib-tool (func_import): Read the previous cached settings
118581         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
118582         earlier added by gnulib but are now dropped. Warn when a gnulib file
118583         overwrites a non-gnulib file.
118585 2005-08-31  Bruno Haible  <bruno@clisp.org>
118587         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
118588         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
118589         projects that don't keep autogenerated files in CVS. Put into
118590         actioncmd only the specified modules, not the transitive closure.
118592 2005-08-31  Bruno Haible  <bruno@clisp.org>
118594         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
118595         Create directories that shall be filled.
118596         (import): Don't look for gl_* macros in configure.ac. Recurse across
118597         all directories containing a gnulib-cache.m4 files, if meaningful.
118599 2005-08-31  Bruno Haible  <bruno@clisp.org>
118601         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
118602         (import): Set seen_libtool when we see gl_LIBTOOL.
118604 2005-08-31  Bruno Haible  <bruno@clisp.org>
118606         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
118607         declaration macro definitions from generated gnulib.m4.
118609 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
118611         * lib/iconvme.h: Add prototype for iconv_alloc.
118613 2005-08-29  Simon Josefsson  <jas@extundo.com>
118615         * lib/iconvme.c: Fix errno.
118617 2005-08-29  Bruno Haible  <bruno@clisp.org>
118619         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
118620         that it works when the directory contains spaces.
118622 2005-08-29  Bruno Haible  <bruno@clisp.org>
118624         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
118626 2005-08-29  Bruno Haible  <bruno@clisp.org>
118628         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
118629         Emit more advice.
118631 2005-08-29  Bruno Haible  <bruno@clisp.org>
118632         and Stepan Kasal  <kasal@ucw.cz>
118634         * check-module: If more parameters are given, check each of them
118635         separately; add more exceptions, as noted by Jim Meyering.
118636         (check_module): New procedure.
118637         (%exempt_header): Now contains all exceptions.
118639 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
118641         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
118643 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
118645         * lib/iconvme.c: Split iconv_string into iconv_alloc.
118647 2005-08-28  Bruno Haible  <bruno@clisp.org>
118649         * m4/gnulib-tool.m4: New file.
118651 2005-08-27  Jim Meyering  <jim@meyering.net>
118653         * modules/unistd-safer (Files): Add pipe-safer.c.
118654         * modules/fcntl-safer (Files): Add creat-safer.c.
118656 2005-08-27  Jim Meyering  <jim@meyering.net>
118658         * m4/stdlib-safer.m4: New file.  From coreutils.
118659         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
118660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
118661         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
118662         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
118663         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
118665 2005-08-27  Jim Meyering  <jim@meyering.net>
118667         * lib/fopen-safer.c: Merge minor changes from coreutils.
118668         * lib/dup-safer.c: Likewise.
118669         * lib/fd-safer.c: Likewise.
118671         Merge from coreutils.
118672         * lib/stdio--.h: New file.
118673         * lib/stdlib--.h: New file.
118674         * lib/mkstemp-safer.c: New file.
118676         GNU tar needs these.
118677         * lib/pipe-safer.c: New file.
118678         * lib/creat-safer.c: New file.
118679         * lib/fcntl--.h (creat): Define to creat_safer.
118680         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
118681         * lib/unistd--.h (pipe): Define to pipe_safer.
118682         * lib/unistd-safer.h: Declare pipe_safer.
118684 2005-08-26  Simon Josefsson  <jas@extundo.com>
118686         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
118687         Haible <bruno@clisp.org>.
118689 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
118691         * lib/regex_internal.h: Remove all references to
118692         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
118693         or better.
118694         (bitset_not, bitset_merge, bitset_not_merge):
118695         (bitset_mask, re_string_allocate, re_string_construct):
118696         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
118697         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
118698         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
118699         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
118700         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
118701         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
118702         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
118703         (re_acquire_state_context):
118704         Remove unnecessary forward decls.
118705         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
118706         Put __attribute at function definition,
118707         now that the function decl has been removed.
118708         * lib/regex_internal.c (re_string_peek_byte_case):
118709         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
118710         Likewise.
118712 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
118714         * m4/regex.m4: Add AC_PREREQ(2.50).
118715         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
118717 2005-08-25  Simon Josefsson  <jas@extundo.com>
118719         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
118720         __fsetlocking.
118722 2005-08-25  Simon Josefsson  <jas@extundo.com>
118724         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
118725         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
118726         GLIBC specific code.
118728 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
118730         Make regex safe for g++.  This fixes one real bug (an "err"
118731         that should have been "*err").  g++ problem reported by
118732         Sam Steingold.
118733         * lib/regex_internal.h (re_calloc): New macro, consistent with
118734         re_malloc etc.  All callers of calloc changed to use re_calloc.
118735         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
118736         not int.  All callers changed.
118737         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
118738         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
118739         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
118740         (find_recover_state): Change "err" to "*err"; this fixes what
118741         appears to be a real bug.
118742         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
118743         versus int.
118745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
118747         * modules/regex (Depends-on): Add malloc, since the code
118748         assumes that !malloc(0) means failure.
118750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
118752         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
118754         alloca modernization/simplification for regex.
118755         * lib/regex.c: Remove portability cruft for alloca.  This no longer
118756         needs to be at the start of the file, and can be moved into
118757         regex_internal.h and simplified.
118758         * lib/regex_internal.h: Include <alloca.h>.
118759         (__libc_use_alloca) [!defined _LIBC]: New macro.
118760         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
118761         now works outside glibc.
118763 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
118765         * config/srclist.txt: Add glibc bugs 1241, 1245.
118767 2005-08-25  Jim Meyering  <jim@meyering.net>
118769         * lib/open-safer.c: Include <config.h>.
118770         Otherwise, we'd lose LARGEFILE support in any file using
118771         e.g. "fcntl--.h"
118773 2005-08-25  Bruno Haible  <bruno@clisp.org>
118775         * m4/minmax.m4: Require autoconf 2.52.
118776         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
118777         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
118778         alternatives of translit over the alphabet.
118779         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
118781 2005-08-24  Simon Josefsson  <jas@extundo.com>
118783         * tests/test-getpass.c: New file.
118785 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
118787         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
118788         for GNU regex features.
118790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
118792         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
118793         * lib/regex.h (regerror): Likewise.
118795         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
118796         requires this.  (The code never needed it.)
118798         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
118799         All uses of recently-renamed identifiers changed to use the new,
118800         POSIX-compliant names.  The code will build and run just fine
118801         without these changes, but it's better to eat our own dog food
118802         and use the standard-conforming names.
118804         * lib/regex.h: Fix a multitude of POSIX name space violations.
118805         These changes have an effect only for programs that define
118806         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
118807         do not change anything for programs compiled in the normal way.
118808         Also, there is no effect on the ABI.
118810         (_REGEX_SOURCE): New macro.
118811         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
118812         defined and _GNU_SOURCE is not; this fixes a name space violation.
118814         Rename the following macros to obey POSIX requirements.
118815         The old names are still visible as macros if _REGEX_SOURCE is defined.
118816         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
118817         RE_BACKSLASH_ESCAPE_IN_LISTS.
118818         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
118819         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
118820         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
118821         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
118822         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
118823         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
118824         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
118825         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
118826         (REG_INTERVALS): renamed from RE_INTERVALS.
118827         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
118828         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
118829         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
118830         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
118831         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
118832         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
118833         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
118834         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
118835         RE_UNMATCHED_RIGHT_PAREN_ORD.
118836         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
118837         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
118838         (REG_DEBUG): renamed from RE_DEBUG.
118839         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
118840         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
118841         unusual, since we can't clash with the POSIX REG_ICASE.
118842         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
118843         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
118844         (REG_NO_SUB): renamed from RE_NO_SUB.
118845         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
118846         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
118847         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
118848         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
118849         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
118850         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
118851         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
118852         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
118853         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
118854         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
118855         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
118856         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
118857         RE_SYNTAX_POSIX_MINIMAL_BASIC.
118858         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
118859         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
118860         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
118861         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
118862         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
118863         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
118864         (REG_FIXED): Renamed from REGS_FIXED.
118865         (REG_NREGS): Renamed from RE_NREGS.
118867         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
118868         of other REG_* macros, since POSIX says the user is allowed to
118869         #undef these macros selectively.
118871         (reg_errcode_t): Update comment stating what other tables need
118872         to be consistent.
118874         Rename the following enum values to obey POSIX requirements.
118875         The old names are still visible as macros.
118876         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
118877         is not defined, since GNU is supposed to be a superset of POSIX as
118878         much as possible, and since we want reg_errcode_t to be a signed
118879         type for implementation consistency.
118880         (_REG_NOERROR): Renamed from REG_NOERROR.
118881         (_REG_NOMATCH): Renamed from REG_NOMATCH.
118882         (_REG_BADPAT): Renamed from REG_BADPAT.
118883         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
118884         (_REG_ECTYPE): Renamed from REG_ECTYPE.
118885         (_REG_EESCAPE): Renamed from REG_EESCAPE.
118886         (_REG_ESUBREG): Renamed from REG_ESUBREG.
118887         (_REG_EBRACK): Renamed from REG_EBRACK.
118888         (_REG_EPAREN): Renamed from REG_EPAREN.
118889         (_REG_EBRACE): Renamed from REG_EBRACE.
118890         (_REG_BADBR): Renamed from REG_BADBR.
118891         (_REG_ERANGE): Renamed from REG_ERANGE.
118892         (_REG_ESPACE): Renamed from REG_ESPACE.
118893         (_REG_BADRPT): Renamed from REG_BADRPT.
118894         (_REG_EEND): Renamed from REG_EEND.
118895         (_REG_ESIZE): Renamed from REG_ESIZE.
118896         (_REG_ERPAREN): Renamed from REG_ERPAREN.
118897         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
118898         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
118899         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
118900         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
118902         (_REG_RE_NAME, _REG_RM_NAME): New macros.
118903         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
118904         changed.  But support the old name if the new one is not defined
118905         and if _REGEX_SOURCE.
118907         Change the following member names in struct re_pattern_buffer.
118908         The old names are still supported if !_REGEX_SOURCE.
118909         The new names are always supported, regardless of _REGEX_SOURCE.
118910         (re_buffer): Renamed from buffer.
118911         (re_allocated): Renamed from allocated.
118912         (re_used): Renamed from used.
118913         (re_syntax): Renamed from syntax.
118914         (re_fastmap): Renamed from fastmap.
118915         (re_translate): Renamed from translate.
118916         (re_can_be_null): Renamed from can_be_null.
118917         (re_regs_allocated): Renamed from regs_allocated.
118918         (re_fastmap_accurate): Renamed from fastmap_accurate.
118919         (re_no_sub): Renamed from no_sub.
118920         (re_not_bol): Renamed from not_bol.
118921         (re_not_eol): Renamed from not_eol.
118922         (re_newline_anchor): Renamed from newline_anchor.
118924         Change the following member names in struct re_registers.
118925         The old names are still supported if !_REGEX_SOURCE.
118926         The new names are always supported, regardless of _REGEX_SOURCE.
118927         (rm_num_regs): Renamed from num_regs.
118928         (rm_start): Renamed from start.
118929         (rm_end): Renamed from end.
118931         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
118932         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
118933         Prepend __ to parameter names.
118935         Undo yesterday's changes.
118937 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
118939         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
118940         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
118941         lib/regex.c.
118943 2005-08-24  Jim Meyering  <jim@meyering.net>
118945         Sync from coreutils.
118946         * m4/fcntl-safer.m4: New file.
118948         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
118949         and object files for this module.
118951 2005-08-24  Jim Meyering  <jim@meyering.net>
118953         Sync from coreutils.
118954         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
118956 2005-08-24  Jim Meyering  <jim@meyering.net>
118958         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
118959         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
118961 2005-08-24  Jim Meyering  <jim@meyering.net>
118963         * modules/fcntl-safer: New module.
118964         * modules/fts (Depends-on): Add fcntl-safer.
118965         * MODULES.html.sh (File descriptor based Input/Output):
118966         Add fcntl-safer.
118968 2005-08-24  Bruno Haible  <bruno@clisp.org>
118970         Support for unit test modules.
118971         * modules/README: Mention tests modules.
118972         * modules/TEMPLATE-TESTS: New file.
118973         * gnulib-tool: New options --extract-tests-module, --with-tests and
118974         --tests-base (unused for the moment).
118975         (testsbase, inctests): New variables.
118976         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
118977         (func_verify_module): Exclude TEMPLATE-TESTS.
118978         (func_verify_nontests_module, func_verify_tests_module): New functions.
118979         (func_get_dependencies): Add implicit dependency for tests modules.
118980         (func_get_tests_module): New function.
118981         (func_modules_transitive_closure): When --with-tests was specified,
118982         include the unit tests as well, unless explicitly avoided.
118983         (func_emit_lib_Makefile_am): Ignore the tests modules here.
118984         (func_emit_tests_Makefile_am): New function.
118985         (func_create_testdir): When --with-tests was specified, emit a
118986         tests/ directory.
118987         * MODULES.html.sh (Future developments): Update.
118989 2005-08-24  Bruno Haible  <bruno@clisp.org>
118991         * modules/tls-tests: New file.
118992         * tests/test-tls.c: New file, from GNU gettext.
118994 2005-08-24  Bruno Haible  <bruno@clisp.org>
118996         * modules/lock-tests: New file.
118997         * tests/test-lock.c: New file, from GNU gettext.
118999 2005-08-24  Bruno Haible  <bruno@clisp.org>
119001         * lib/lock.h: Add multiple inclusion guard.
119002         * lib/tls.h: Add multiple inclusion guard.
119004 2005-08-24  Bruno Haible  <bruno@clisp.org>
119006         * gnulib-tool: Add support for the --aux-dir option to
119007         --create-testdir, --create-megatestdir, --test, --megatest.
119008         (func_create_testdir, func_create_megatestdir): Optionally emit a
119009         AC_CONFIG_AUX_DIR directive.
119010         (create-testdir, create-megatestdir, test, megatest): Provide a
119011         default value for $auxdir.
119013 2005-08-24  Bruno Haible  <bruno@clisp.org>
119015         * gnulib-tool (import): Use compound statement instead of subshell
119016         where possible.
119018 2005-08-24  Bruno Haible  <bruno@clisp.org>
119020         * gnulib-tool (import): Change --aux-dir default to "build-aux".
119022 2005-08-24  Bruno Haible  <bruno@clisp.org>
119024         * gnulib-tool (func_version): Update.
119026 2005-08-24  Bruno Haible  <bruno@clisp.org>
119028         * gnulib-tool (func_import, func_create_testdir,
119029         func_create_megatestdir): Quote all autoconf macro arguments.
119031 2005-08-24  Bruno Haible  <bruno@clisp.org>
119033         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
119034         option --force, because --force causes the aclocal.m4 of each
119035         subdirectory to be newer than the corresponding config.h.in.
119037 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119039         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
119040         All contents moved to gl_REGEX.
119041         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
119042         assume that it does.
119044 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119046         * lib/regex.h (REG_NOSYS)
119047         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
119048         Define, since POSIX requires it as of 2001.
119049         (_REG_ENOSYS)
119050         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
119051         New private symbol, used to keep the enum signed in all cases.
119052         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
119053         Youngman in
119054         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
119056         * lib/regex_internal.c (re_string_skip_chars, register_state):
119057         (calc_state_hash):
119058         Remove forward decls; no longer needed now that we use prototypes.
119059         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
119060         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
119061         (clean_state_log_if_needed): Likewise.
119063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119065         * config/srclist.txt: Add glibc bugs 1231-1233.
119067 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119069         Fix problems reported by Sam Steingold in
119070         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
119071         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
119072         assumed that reg_errcode_t is a signed type, which is not
119073         necessarily true if _XOPEN_SOURCE is not defined.
119074         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
119075         since some compilers warn about it otherwise.
119077 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119079         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
119080         (init_word_char, create_initial_state, duplicate_node_closure):
119081         (fetch_token, peek_token_bracket, build_range_exp):
119082         (build_collating_symbol): Remove forward decls; no longer needed
119083         now that we use prototypes.
119085         * lib/regcomp.c:
119086         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
119087         (re_compile_fastmap_iter, regcomp, regerror, regfree):
119088         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
119089         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
119090         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
119091         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
119092         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
119093         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
119094         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
119095         (build_range_exp, build_collating_symbol, parse_bracket_exp):
119096         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
119097         (build_charclass, build_charclass_op, fetch_number, create_tree):
119098         (create_token_tree, mark_opt_subexp, duplicate_tree):
119099         Use prototypes rather than old-style definitions.
119101         * lib/regex_internal.c:
119102         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
119103         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
119104         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119105         (re_string_reconstruct, re_string_peek_byte_case):
119106         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
119107         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119108         (re_node_set_init_copy, re_node_set_add_intersect):
119109         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119110         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119111         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119112         (re_acquire_state, re_acquire_state_context, register_state):
119113         (create_ci_newstate, create_cd_newstate, free_state):
119114         Likewise.
119115         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
119116         re_search_2):
119117         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
119118         (re_search_internal, prune_impossible_nodes):
119119         (acquire_init_state_context, check_matching, static):
119120         (check_halt_node_context, check_halt_state_context, proceed_next_node):
119121         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
119122         (update_regs, sift_states_backward, build_sifted_states):
119123         (clean_state_log_if_needed, merge_state_array):
119124         (update_cur_sifted_state, add_epsilon_src_nodes):
119125         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
119126         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
119127         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
119128         (find_recover_state, check_subexp_matching_top, transit_state_mb):
119129         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
119130         (check_arrival, check_arrival_add_next_nodes):
119131         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119132         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119133         (check_node_accept_bytes, check_node_accept, extend_buffers):
119134         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
119135         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
119136         (sift_ctx_init):
119137         Likewise.
119139         * lib/regex_internal.h:
119140         (re_string_allocate, re_string_construct, re_string_reconstruct):
119141         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
119142         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
119143         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
119144         (re_string_context_at, re_string_peek_byte_case):
119145         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
119146         is defined, since we now use prototypes always.
119148         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
119149         C89 or better.  All uses removed.
119151 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119153         * config/srclist.txt: Add glibc bugs 1220-1227.
119155 2005-08-20  Jim Meyering  <jim@meyering.net>
119157         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
119158         of unused local, dfa.
119160 2005-08-20  Bruno Haible  <bruno@clisp.org>
119162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
119164 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119166         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
119167         (re_node_set_insert_last, re_dfa_add_node):
119168         Rename local variables to avoid GCC shadowing warnings.
119170 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119172         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
119173         [defined lint]: Suppress bogus uninitialized-variable warnings.
119175         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
119176         and let the caller return REG_ESPACE if out of space.  This
119177         removes an uninitialied-variable warning with GCC 4.0.1, and also
119178         avoids taking the address of a local variable.  All callers
119179         changed.
119181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119183         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
119184         $LIBCSRC/posix/regexec.c.
119185         Add glibc bug 1217 for regcomp.c.
119187 2005-08-19  Jim Meyering  <jim@meyering.net>
119189         * lib/regexec.c (proceed_next_node): Redo local variables to
119190         avoid GCC shadowing warnings.
119192 2005-08-18  Bruno Haible  <bruno@clisp.org>
119194         * lib/strstr.c (strstr): Fix return value in multibyte case.
119195         * lib/strcasestr.c (strcasestr): Likewise.
119197 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
119199         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
119201 2005-08-17  Jim Meyering  <jim@meyering.net>
119203         Make the %s format (seconds since the epoch) work for a negative
119204         number and when used with a zero-padded field width, e.g. %015s.
119206         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
119207         label so that it precedes the code to set `digits'.  Otherwise,
119208         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
119209         print `00-22'.  Now, it prints `-0022', as it should.
119211 2005-08-17  Bruno Haible  <bruno@clisp.org>
119213         * modules/strstr (Files): Add m4/mbrtowc.m4.
119214         (Depends-on): Add mbuiter.
119216 2005-08-17  Bruno Haible  <bruno@clisp.org>
119218         * modules/strcasestr: New file.
119219         * MODULES.html.sh (String handling, based on ANSI C 89): Add
119220         strcasestr.
119222 2005-08-17  Bruno Haible  <bruno@clisp.org>
119224         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
119226 2005-08-17  Bruno Haible  <bruno@clisp.org>
119228         * modules/mbuiter: New file.
119229         * MODULES.html.sh (Extended multibyte and wide character utilities):
119230         Add mbuiter.
119232 2005-08-17  Bruno Haible  <bruno@clisp.org>
119234         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
119235         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
119237 2005-08-17  Bruno Haible  <bruno@clisp.org>
119239         * m4/strcasestr.m4: New file.
119241 2005-08-17  Bruno Haible  <bruno@clisp.org>
119243         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
119244         * lib/strstr.c: Completely rewritten, with multibyte locale support.
119246 2005-08-17  Bruno Haible  <bruno@clisp.org>
119248         * lib/strcasestr.h: New file.
119249         * lib/strcasestr.c: New file.
119251 2005-08-17  Bruno Haible  <bruno@clisp.org>
119253         * lib/strcasecmp.c: Use mbuiter.h.
119255 2005-08-17  Bruno Haible  <bruno@clisp.org>
119257         * lib/mbuiter.h: New file.
119259 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
119261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
119262         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
119263         and gl_GETOPT are both invoked via different paths (as happens
119264         with GNU tar CVS because it uses both argp and getopt), the former
119265         wins.
119267 2005-08-16  Bruno Haible  <bruno@clisp.org>
119269         * modules/tls: New file.
119270         * MODULES.html.sh (Multithreading): Add tls.
119272 2005-08-16  Bruno Haible  <bruno@clisp.org>
119274         * modules/strnlen1: New file.
119275         * MODULES.html.sh (String handling): Add strnlen1.
119277 2005-08-16  Bruno Haible  <bruno@clisp.org>
119279         * modules/strcase (Files): Add m4/mbrtowc.m4.
119280         (Depends-on): Add strnlen1, mbchar.
119282 2005-08-16  Bruno Haible  <bruno@clisp.org>
119284         * modules/mbiter: New file.
119285         * MODULES.html.sh (Extended multibyte and wide character utilities):
119286         Add mbiter.
119288 2005-08-16  Bruno Haible  <bruno@clisp.org>
119290         * modules/mbfile: New file.
119291         * MODULES.html.sh (Extended multibyte and wide character utilities):
119292         Add mbfile.
119294 2005-08-16  Bruno Haible  <bruno@clisp.org>
119296         * modules/mbchar: New file.
119297         * MODULES.html.sh (Extended multibyte and wide character utilities):
119298         New section.
119300 2005-08-16  Bruno Haible  <bruno@clisp.org>
119302         * m4/tls.m4: New file, from GNU gettext.
119304 2005-08-16  Bruno Haible  <bruno@clisp.org>
119306         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
119307         always.
119308         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
119310 2005-08-16  Bruno Haible  <bruno@clisp.org>
119312         * m4/mbiter.m4: New file.
119314 2005-08-16  Bruno Haible  <bruno@clisp.org>
119316         * m4/mbfile.m4: New file.
119318 2005-08-16  Bruno Haible  <bruno@clisp.org>
119320         * m4/mbchar.m4: New file.
119322 2005-08-16  Bruno Haible  <bruno@clisp.org>
119324         * lib/tls.h: New file, from GNU gettext.
119325         * lib/tls.c: New file, from GNU gettext.
119327 2005-08-16  Bruno Haible  <bruno@clisp.org>
119329         * lib/strnlen1.h: New file.
119330         * lib/strnlen1.c: New file.
119332 2005-08-16  Bruno Haible  <bruno@clisp.org>
119334         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
119335         (mbi_init): Update.
119336         (mbi_avail, mbi_advance): Let the iteration end before the terminating
119337         NUL byte, not after it.
119339 2005-08-16  Bruno Haible  <bruno@clisp.org>
119341         * lib/strcase.h (strcasecmp): Add note in comments.
119342         * lib/strncasecmp.c: Use code from strcasecmp.c.
119343         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
119344         (strcasecmp): Work correctly in multibyte locales.
119346 2005-08-16  Bruno Haible  <bruno@clisp.org>
119348         * lib/mbiter.h: New file.
119350 2005-08-16  Bruno Haible  <bruno@clisp.org>
119352         * lib/mbfile.h: New file.
119354 2005-08-16  Bruno Haible  <bruno@clisp.org>
119356         * lib/mbchar.h: New file.
119357         * lib/mbchar.c: New file.
119359 2005-08-16  Bruno Haible  <bruno@clisp.org>
119361         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
119362         the valid ones. Makes the comparison operations transitive:
119363         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
119364         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
119366 2005-08-15  Simon Josefsson  <jas@extundo.com>
119368         * modules/ssize_t (License): Change to 'unlimited'.
119370         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
119372 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
119374         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
119375         Add comments for each pending glibc patch.
119377 2005-08-15  Bruno Haible  <bruno@clisp.org>
119379         * lib/regex.h (__restrict_arr): Don't define to __restrict if
119380         __cplusplus is defined.
119382 2005-08-14  Jim Meyering  <jim@meyering.net>
119384         Sync from coreutils.
119386         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
119387         Use the hash-table-based cycle-detection code not just when
119388         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
119389         Reported by James Youngman in
119390         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
119391         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
119392         FTS_TIGHT_CYCLE_CHECK.
119393         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
119394         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
119395         once again.
119396         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
119397         * lib/fts.c (fd_safer): Remove decl.
119398         Include fcntl--.h rather than unistd-safer.h
119399         (fts_safe_changedir): Don't call fd_safer; no longer needed
119400         now that we include fcntl--.h.
119402 2005-08-12  Simon Josefsson  <jas@extundo.com>
119404         * modules/getndelim2: Use ssize_t module.
119405         * modules/getnline: Likewise.
119406         * modules/safe-read: Likewise.
119407         * modules/xreadlink: Likewise.
119409         * modules/ssize_t: New file.
119411 2005-08-12  Simon Josefsson  <jas@extundo.com>
119413         * m4/readline.m4: Look for termcap, curses or ncurses if required.
119415 2005-08-12  Simon Josefsson  <jas@extundo.com>
119417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119418         ssize_t.
119420 2005-08-12  Simon Josefsson  <jas@extundo.com>
119422         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
119423         readline, getdelim and check_version.
119424         (Support for systems lacking ISO C 99: Sizes of integer types):
119425         Add size_max.
119427 2005-08-12  Bruno Haible  <bruno@clisp.org>
119429         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
119431 2005-08-11  Simon Josefsson  <jas@extundo.com>
119433         * modules/readline: New file.
119435         * modules/strnlen (Files): Add strnlen.h.
119437 2005-08-11  Simon Josefsson  <jas@extundo.com>
119439         * m4/readline.m4: New file.
119441 2005-08-11  Simon Josefsson  <jas@extundo.com>
119443         * lib/readline.h, readline.c: New file.
119445 2005-08-11  Simon Josefsson  <jas@extundo.com>
119447         * doc/gnulib.texi (Initial import, Finishing touches): Mention
119448         gl_AVOID.
119450 2005-08-11  Bruno Haible  <bruno@clisp.org>
119452         * lib/strnlen.h (strnlen): Change parameter name to match comment.
119454 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
119456         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
119458 2005-08-10  Simon Josefsson  <jas@extundo.com>
119460         * tests/test-iconvme.c: New file.
119462 2005-08-10  Simon Josefsson  <jas@extundo.com>
119464         * m4/strnlen.m4: New file.
119466         * m4/strndup.m4: Don't check for strnlen declaration, done in
119467         strnlen.m4.
119469 2005-08-10  Simon Josefsson  <jas@extundo.com>
119471         * lib/strndup.c: Use strnlen.h.
119473         * lib/strnlen.h: New file.
119475 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119477         * README: Typos.
119479 2005-08-02  Simon Josefsson  <jas@extundo.com>
119481         * modules/readline: New file.
119483 2005-08-02  Simon Josefsson  <jas@extundo.com>
119485         * modules/getdelim: New file.
119487         * modules/getline: Rewrite, don't use getndelim2.
119489 2005-08-02  Simon Josefsson  <jas@extundo.com>
119491         * m4/getline.m4: Separate out getdelim stuff into separate module.
119493         * m4/getdelim.m4: New file.
119495 2005-08-02  Simon Josefsson  <jas@extundo.com>
119497         * lib/getline.h, getline.c: Rewrite.
119499         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
119501 2005-07-31  Bruno Haible  <bruno@clisp.org>
119503         * lib/lock.h (gl_lock_initializer): New macro.
119504         (gl_lock_define_initialized): Use it.
119505         (gl_rwlock_initializer): New macro.
119506         (gl_rwlock_define_initialized): Use it.
119507         (gl_recursive_lock_initializer): New macro.
119508         (gl_recursive_lock_define_initialized): Use it.
119510 2005-07-30  Karl Berry  <karl@gnu.org>
119512         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
119513         Report from Ben Pfaff, regarding getopt.
119515 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
119517         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
119518         normal way.
119519         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
119520         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
119521         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
119522         (gl_GETOPT): Use the new macros.  Most of the implementation
119523         is moved to the new macros.  This is for programs like Emacs
119524         that don't want all the functionality of gl_GETOPT.
119526 2005-07-26  Bruno Haible  <bruno@clisp.org>
119528         * m4/lock.m4: Update from GNU gettext.
119530 2005-07-26  Bruno Haible  <bruno@clisp.org>
119532         * lib/lock.h: Update from GNU gettext.
119533         * lib/lock.c: Update from GNU gettext.
119535 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
119537         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
119538         obsolescent AC_TRY_RUN.  Include the default includes files, for
119539         'exit'.
119541 2005-07-24  Bruno Haible  <bruno@clisp.org>
119543         * modules/visibility: New file.
119544         * MODULES.html.sh (Misc): Add visibility.
119546 2005-07-24  Bruno Haible  <bruno@clisp.org>
119548         * m4/visibility.m4: New file.
119550 2005-07-24  Bruno Haible  <bruno@clisp.org>
119552         * doc/visibility.texi: New file.
119554 2005-07-22  Bruno Haible  <bruno@clisp.org>
119556         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
119557         $(ALLOCA_H), redundant through BUILT_SOURCES.
119558         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
119559         redundant through BUILT_SOURCES.
119560         * modules/byteswap (Makefile.am): Remove explicit dependency on
119561         $(BYTESWAP_H), redundant through BUILT_SOURCES.
119562         * modules/fnmatch (Makefile.am): Remove explicit dependency on
119563         $(FNMATCH_H), redundant through BUILT_SOURCES.
119564         * modules/getopt (Makefile.am): Remove explicit dependency on
119565         $(GETOPT_H), redundant through BUILT_SOURCES.
119566         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
119567         redundant through BUILT_SOURCES.
119568         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
119569         redundant through BUILT_SOURCES.
119570         * modules/stdbool (Makefile.am): Remove explicit dependency on
119571         $(STDBOOL_H), redundant through BUILT_SOURCES.
119572         * modules/stdint (Makefile.am): Remove explicit dependency on
119573         $(STDINT_H), redundant through BUILT_SOURCES.
119574         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
119575         Remove explicit dependency on $(SYSEXITS_H).
119576         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
119578 2005-07-18  Simon Josefsson  <jas@extundo.com>
119580         * lib/check-version.c (check_version): Accept identical versions too.
119582 2005-07-18  Bruno Haible  <bruno@clisp.org>
119584         * modules/lock: New file.
119585         * MODULES.html.sh (Multithreading): New section.
119587 2005-07-18  Bruno Haible  <bruno@clisp.org>
119589         * m4/lock.m4: New file, from GNU gettext.
119591 2005-07-18  Bruno Haible  <bruno@clisp.org>
119593         * lib/lock.h: New file, from GNU gettext.
119594         * lib/lock.c: New file, from GNU gettext.
119596 2005-07-18  Bruno Haible  <bruno@clisp.org>
119598         * lib/lock.h (gl_once_t): New type.
119599         (gl_once_define, gl_once): New macros.
119600         * lib/lock.c (fresh_once): New variable.
119601         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
119602         functions.
119604 2005-07-16  Simon Josefsson  <jas@extundo.com>
119606         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
119607         workaround, suggested by Bruno.
119609 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
119611         * modules/xalloc (Depends-on): Add xalloc-die.
119612         * modules/xvasprintf (Depends-on): Add xalloc-die.
119614 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
119616         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
119617         with a minor change.
119619 2005-07-15  Bruno Haible  <bruno@clisp.org>
119621         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
119622         When using lib/poll.c, define poll as rpl_poll.
119624 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
119626         * modules/argp (Depends-on): Remove unlocked-io.
119628 2005-07-14  Derek Price  <derek@ximbiot.com>
119630         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
119631         for glob symlink bug.
119633 2005-07-14  Bruno Haible  <bruno@clisp.org>
119635         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
119636         Instead, test for *_unlocked function declarations directly.
119638 2005-07-11  Simon Josefsson  <jas@extundo.com>
119640         * modules/size_max: New file.
119642         * modules/xsize: Depend on size_max module for size_max.m4.
119644 2005-07-11  Simon Josefsson  <jas@extundo.com>
119646         * lib/size_max.h: New file.
119648 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
119650         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
119651         copyright symbol and the year.
119652         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
119653         (version_etc_va): Use parameterized copyright notice.
119654         Reword to conform to the current GNU coding standards.
119656 2005-07-11  Karl Berry  <karl@gnu.org>
119658         * doc/gnulib.texi (Quoting): new node.
119659         (Initial import): more info, from Patrice.
119661 2005-07-11  Bruno Haible  <bruno@clisp.org>
119663         * gnulib-tool (func_usage): Document option --avoid.
119664         (Command line options): Handle --avoid.
119665         (func_acceptable): New function.
119666         (func_modules_transitive_closure): Use it.
119668 2005-07-11  Bruno Haible  <bruno@clisp.org>
119670         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
119671         Reported by Jim Meyering.
119673 2005-07-10  Bruno Haible  <bruno@clisp.org>
119675         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
119676         Needed when size_t is smaller than 'unsigned int'.
119677         Reported by Paul Eggert.
119679 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119681         * modules/argp (Depends-on): Add unlocked-io
119683 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119685         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
119686         block of defines.
119688 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
119690         * config/srclist.txt: Comment out regcomp.c, since we have a porting
119691         fix now.
119693 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
119694         and Paul Eggert  <eggert@cs.ucla.edu>
119696         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
119697         in wint_t, not wchar_t.  Remove now-unnecessary cast.
119699 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
119701         * modules/regex (Files): Add lib/regex_internal.c,
119702         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
119703         (Depends-on): Add extensions.
119704         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
119706 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
119708         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
119709         pathconf.
119710         * m4/same.m4 (gl_SAME): Likewise.
119711         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
119713         * m4/regex.m4: Adjust to new libc regex implementation.
119714         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
119715         all the .c and .h parts of (the new) regex.
119716         Quote the m4 stuff better.
119717         Check for RE_ICASE bug of old gnulib.
119718         Check for REG_STARTEND of recent libc.
119719         Rename local variables from jm_* to gl_*.
119720         Quote operand of "test -f".
119721         Say "recent enough" version of libc, not "version 2".
119722         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
119723         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
119724         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
119725         Remove check for btowc, isascii.
119726         Require AM_LANGINFO_CODESET.
119728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
119730         * lib/regex.c, regex.h: Sync from libc.
119731         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
119732         * lib/regexec.c:
119733         New files, synced from libc, except that regex_internal.h
119734         currently has a small porting fix.
119736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
119738         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
119739         regex_internal.c, regexec.c.
119740         Add regex_internal.h too, but as a comment, since the libc version
119741         is currently broken in gnulib mode.
119743 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
119745         Support programs like Emacs that use gnulib but not gettext.
119746         * MODULES.html.sh (Internationalization functions): Add gettext-h.
119747         * modules/gettext-h: New file.
119748         * modules/gettext (Files): Remove lib/gettext.h.
119749         (Depends-on): Add gettext-h.
119750         (Makefile.am): Remove lib_SOURCES.
119751         * modules/argmatch, modules/c-stack, modules/closeout:
119752         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
119753         * modules/execute, modules/file-type, modules/getaddrinfo:
119754         * modules/getopt, modules/human, modules/javacomp:
119755         * modules/javaexec, modules/mkdir-p, modules/obstack:
119756         * modules/openat, modules/pagealign_alloc, modules/pipe:
119757         * modules/quotearg, modules/regex, modules/rpmatch:
119758         * modules/unicodeio, modules/userspec, modules/version-etc:
119759         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
119760         * modules/xsetenv:
119761         Depend on gettext-h, not gettext.
119763 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
119765         * gnulib-tool (func_import): Add support for 'public domain' license.
119766         * modules/alloca, modules/atexit, modules/memmove:
119767         Now public domain, not GPL.
119768         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
119769         * modules/realloc, modules/strerror, modules/strtod:
119770         Now LGPL, not GPL.
119772 2005-07-05  Bruno Haible  <bruno@clisp.org>
119774         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
119775         autoconf CVS. Needed for mingw.
119777 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
119779         Remove the dependency of the strftime module on the tzset module.
119780         * modules/strftime (Depends-on): Remove dependency on tzset.
119782 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
119784         Remove the dependency of the strftime module on the tzset module.
119785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
119786         gl_FUNC_TZSET_CLOBBER.
119788 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
119790         Remove the dependency of the strftime module on the tzset module.
119791         * lib/strftime.c (my_strftime)
119792         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
119793         Copy the input structure, to work around some of the bug with
119794         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
119795         Solaris releases, you should also use the tzset module, but we won't
119796         require it as a dependency any more since we don't want LGPLed code
119797         to depend on GPLed code.
119799 2005-07-02  Jim Meyering  <jim@meyering.net>
119801         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
119802         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
119803         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
119804         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
119806 2005-07-02  Jim Meyering  <jim@meyering.net>
119808         * lib/backupfile.c (backup_args): Change a `0' to NULL.
119810 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
119812         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
119813         declares only 'struct timespec;' (!).
119815 2005-07-01  Jim Meyering  <jim@meyering.net>
119817         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
119818         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
119819         * lib/save-cwd.c, tempname.c:
119820         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119821         and don't include <sys/file.h>).
119823 2005-06-29  Jim Meyering  <jim@meyering.net>
119825         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
119826         type name.  Use the variable name instead.
119827         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
119828         Likewise.
119830 2005-06-28  Simon Josefsson  <jas@extundo.com>
119832         * modules/check-version (Files): Add check-version.m4.
119834 2005-06-28  Simon Josefsson  <jas@extundo.com>
119836         * m4/check-version.m4: New file, suggested by Jim Meyering
119837         <jim@meyering.net>.
119839 2005-06-28  Simon Josefsson  <jas@extundo.com>
119841         * lib/check-version.h, lib/check-version.c: New files.
119843 2005-06-28  Simon Josefsson  <jas@extundo.com>
119845         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
119846         collision with global variable.  Better indentation.  Don't
119847         increment buffer pointer beyond buffer end.  Based on comments
119848         from Paul Eggert <eggert@cs.ucla.edu>.
119850         * lib/base64.h: Indent.
119852 2005-06-28  Simon Josefsson  <jas@extundo.com>
119854         * doc/gnulib.texi (Library version handling): New section.
119856 2005-06-28  Jim Meyering  <jim@meyering.net>
119858         * check-module (find_included_lib_files): Hard-code another
119859         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
119860         but modules/fts-lgpl (correctly) does not list those files.
119862         * modules/canonicalize (Files): Add lib/pathmax.h.
119864 2005-06-25  Simon Josefsson  <jas@extundo.com>
119866         * modules/check-version: New file.
119868 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
119870         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
119871         initializer of struct addrinfo, as an indication that we don't
119872         care how many members the structure has.
119874 2005-06-24  Derek Price  <derek@ximbiot.com>
119875         and Bruno Haible  <bruno@clisp.org>
119877         Remove stat module & update lstat.
119878         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
119879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
119880         * m4/stat.m4: Remove this file.
119882 2005-06-24  Derek Price  <derek@ximbiot.com>
119883         and Bruno Haible  <bruno@clisp.org>
119885         Remove stat module & update lstat.
119886         * lib/stat.c: Remove this file...
119887         (slash_aware_lstat): ...moving this content and its support...
119888         * lib/lstat.c (rpl_lstat): ...into here.
119889         * lib/lstat.h: New file.
119891 2005-06-24  Derek Price  <derek@ximbiot.com>
119892         and Bruno Haible  <bruno@clisp.org>
119894         Remove stat module & update lstat.
119895         * config/srclist.txt (libc sources): Remove stat.
119897 2005-06-24  Derek Price  <derek@ximbiot.com>
119898         and Bruno Haible  <bruno@clisp.org>
119900         Remove stat module & update lstat.
119901         * MODULES.html.sh (stat): Remove.
119902         * MODULES.html: Regenerated.
119903         * modules/lstat (Description): Correct function name.
119904         (Files): Add "lstat.h".
119905         (Depends-on): Remove stat, add xalloc, stat-macros.
119906         * modules/stat: Remove this file.
119907         (Include): Add "lstat.h", remove <sys/stat.h>.
119909 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
119911         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
119912         (ranged_convert): Don't save conversion in a temporary struct.
119913         This causes a warning with GCC 4.0.0, and anyway in the typical
119914         case it's not worth the extra 100 bytes or so of code.
119915         (ranged_convert, __mktime_internal): When calling a function via a
119916         pointer P, use P () rather than (*P) (), as we now assume C89 or
119917         better.
119919 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119921         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
119922         "who -r" failed to give output.  Problem reported by Tim Waugh.
119924         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
119925         (xcalloc): Use it to avoid needless tests.
119926         Problem reported by Jim Meyering.
119928 2005-06-20  Derek Price  <derek@ximbiot.com>
119930         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
119931         unnecessary for Autoconfs > 2.59c.
119933 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119935         * lib/argp.h (__option_is_short): Check upper limit of
119936         __key. Isprint() requires its argument to have the value
119937         of an unsigned char or EOF.
119939 2005-06-16  Jim Meyering  <jim@meyering.net>
119941         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
119942         when either N or S is zero.
119944 2005-06-16  Derek Price  <derek@ximbiot.com>
119946         * m4/bison.m4: Declare YACC & YFLAGS precious.
119948 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
119950         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
119951         multibyte string or pattern, fall back on unibyte matching.
119952         Problem reported by James Youngman.
119954 2005-06-08  Bruno Haible  <bruno@clisp.org>
119956         * modules/csharpcomp: New file.
119957         * MODULES.html.sh (C#): Add csharpcomp.
119959 2005-06-08  Bruno Haible  <bruno@clisp.org>
119961         * m4/csharpcomp.m4: New file, from GNU gettext.
119963 2005-06-08  Bruno Haible  <bruno@clisp.org>
119965         * lib/csharpcomp.h: New file, from GNU gettext.
119966         * lib/csharpcomp.c: New file, from GNU gettext.
119967         * lib/csharpcomp.sh.in: New file, from GNU gettext.
119969 2005-06-08  Bruno Haible  <bruno@clisp.org>
119971         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
119972         warning on mingw.
119974 2005-06-07  Derek Price  <derek@ximbiot.com>
119976         Sync from CVS.
119977         * lib/glob_.h: Indent nested #ifdef.
119979 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
119981         Sync from coreutils.
119982         Use "file name" when talking about file names, instead of "filename"
119983         or "path", as per the GNU coding standards.
119984         * lib/mkdir-p.c: Renamed from makepath.c.
119985         (make_dir_parents): Renamed from make_path.  All callers changed.
119986         * lib/mkdir-p.h: Likewise.  All includers changed.
119987         * lib/filenamecat.c: Renamed from path-concat.c.
119988         (file_name_concat): Renamed from path_concat.  All callers changed.
119989         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
119990         * lib/filenamecat.h: Likewise.  All includers changed.
119991         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
119992         in comments or local variable names.
119993         * lib/basename.c: Likewise.
119994         * lib/canonicalize.c, canonicalize.h: Likewise.
119995         * lib/dirname.c, dirname.h: Likewise.
119996         * lib/euidaccess.c: Likewise.
119997         * lib/exclude.c: Likewise
119998         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
119999         * lib/fsusage.c, fsuage.h: Likewise.
120000         * lib/fts.c, fts_.h: Likewise.
120001         * lib/getcwd.c: Likewise.
120002         * lib/getloadavg.c: Likewise.
120003         * lib/mkstemp.c: Likewise.
120004         * lib/mountlist.c, mountlist.h: Likewise.
120005         * lib/openat.c, openat.h: Likewise.
120006         * lib/readlink-stub.c: Likewise.
120007         * lib/readutmp.c, readutmp.h: Likewise.
120008         * lib/rename.c: Likewise.
120009         * lib/rmdir.c: Likewise.
120010         * lib/same.c: Likewise.
120011         * lib/savedir.c: Likewise.
120012         * lib/stripslash.c: Likewise.
120013         * lib/tempname.c: Likewise.
120014         * lib/xreadlink.c: Likewise.
120015         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
120016         All uses changed.
120017         * lib/exclude.h: Likewise.
120019         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
120020         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120021         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
120022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120023         * lib/pathmax.h: Include <limits.h> unconditionally, since other
120024         files have been getting away with it for years (MORE/BSD 4.3
120025         is extinct now).
120026         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
120027         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120029         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
120030         Define to 256, not 255, as per modern POSIX.
120032 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120034         Sync from coreutils.
120035         Use "file name" when talking about file names, instead of "filename"
120036         or "path", as per the GNU coding standards.
120037         * MODULES.html.sh: mkdir-p renamed from makepath.
120038         filenamecat renamed from path-concat.
120039         * modules/filenamecat: Renamed from modules/path-concat.
120040         (Files): filenamecat.h and filenamecat.c renamed from
120041         path-concat.h and path-concat.c.
120042         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
120043         (Include): filenamecat.h, not path-concat.h.
120044         * modules/mkdir-p: Renamed from modules/makepath.
120045         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
120046         makepath.c.
120047         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
120048         (Include): mkdir-p.h, not makepath.h.
120050 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120052         Sync from coreutils.
120053         * m4/mkdir-p.m4: Renamed from makepath.m4.
120054         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
120055         Rename files from makepath.c to mkdir-p.c, and from
120056         makepath.h to mkdir-p.h.
120057         * m4/filenamecat.m4: Renamed from path-concat.m4.
120058         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
120059         Rename files from path-concat.c to filenamecat.c,
120060         and from path-concat.h to filenamecat.h.
120061         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
120062         "file name" in local variables or comments.
120063         * m4/rename.m4: Likewise.
120065 2005-06-01  Bruno Haible  <bruno@clisp.org>
120067         * modules/csharpexec: New file.
120068         * MODULES.html.sh (C#): New section.
120070 2005-06-01  Bruno Haible  <bruno@clisp.org>
120072         * m4/csharp.m4: New file, from GNU gettext.
120073         * m4/csharpexec.m4: New file, from GNU gettext.
120075 2005-06-01  Bruno Haible  <bruno@clisp.org>
120077         * lib/csharpexec.h: New file, from GNU gettext.
120078         * lib/csharpexec.c: New file, from GNU gettext.
120079         * lib/csharpexec.sh.in: New file, from GNU gettext.
120081 2005-05-31  Derek Price  <derek@ximbiot.com>
120082             Paul Eggert  <eggert@cs.ucla.edu>
120084         Sync from cvs.
120085         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120087 2005-05-31  Derek Price  <derek@ximbiot.com>
120088             Paul Eggert  <eggert@cs.ucla.edu>
120090         Sync from cvs.
120091         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120093 2005-05-29  Derek Price  <derek@ximbiot.com>
120095         * config/srclist.txt (glob_.h, glob.c): Add these files.
120097 2005-05-29  Derek Price  <derek@ximbiot.com>
120099         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
120100         * modules/glob: New file.
120101         * modules/getlogin_r: Add link to POSIX spec in description.
120103 2005-05-29  Derek Price  <derek@ximbiot.com>
120104             Paul Eggert  <eggert@cs.ucla.edu>
120106         * m4/glob.m4: New file.
120108 2005-05-29  Derek Price  <derek@ximbiot.com>
120109             Paul Eggert  <eggert@cs.ucla.edu>
120111         * lib/glob_.h, lib/glob.c: New files.
120113 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120115         * modules/fts (Files): Remove m4/inttypes-pri.m4.
120116         * modules/fts-lgpl (Depends-on): Remove gettext.
120118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
120121         and don't require gt_INTTYPES_PRI.
120123 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120125         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
120127         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
120128         the configuration hassle isn't worth it.
120129         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
120130         (LONGEST_MODIFIER, PRIuMAX): Remove.
120132 2005-05-27  Bruno Haible  <bruno@clisp.org>
120134         * lib/getlogin_r.h: Remove second include of <stddef.h>.
120136 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
120138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
120139         _POSIX_PTHREAD_SEMANTICS for Solaris.
120141 2005-05-25  Derek Price  <derek@ximbiot.com>
120143         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
120145 2005-05-25  Derek Price  <derek@ximbiot.com>
120146             Paul Eggert  <eggert@cs.ucla.edu>
120148         * modules/getlogin_r, m4/getlogin_r.m4: New files.
120149         * lib/getlogin_r.c, getlogin_r.h: New files.
120151 2005-05-25  Bruno Haible  <bruno@clisp.org>
120152             Derek Price  <derek@ximbiot.com>
120154         * lib/getlogin_r.h: Simplify API documentation.
120156 2005-05-23  Derek Price  <derek@ximbiot.com>
120158         * modules/minmax (Files): Add m4/minmax.m4.
120159         (configure.ac): Add gl_MINMAX.
120161 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
120163         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
120164         so that unistd-safer.h (GPL'ed code) need not be included.
120166 2005-05-22  Bruno Haible  <bruno@clisp.org>
120168         * m4/minmax.m4: New file.
120169         Based on a patch by Derek Price <derek@ximbiot.com>.
120171 2005-05-22  Bruno Haible  <bruno@clisp.org>
120173         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
120174         (INT64_MIN): Fix definition.
120175         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
120177         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
120178         NEED_SIGNED_INT_TYPES.
120180         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
120181         HAVE_SYSTEM_INTTYPES.
120183 2005-05-22  Bruno Haible  <bruno@clisp.org>
120185         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
120186         Also include <sys/param.h> if it defines MIN, MAX.
120187         Based on a patch by Derek Price <derek@ximbiot.com>.
120189 2005-05-21  Jim Meyering  <jim@meyering.net>
120191         * modules/fts (Files): Add m4/inttypes-pri.m4.
120192         (Depends-on): Add lstat and remove gettext.  Alphabetize.
120194 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120196         New fts module.
120197         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
120198         (setup_dir, free_dir): New functions.
120199         (enter_dir, leave_dir): Define trivial
120200         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
120201         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
120202         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
120203         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
120204         Move to fts-cycle.c.
120205         (fts_open): Use setup_dir.
120206         (fts_close): Use free_dir.
120207         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
120208         This adds a label and some gotos, but the alternatives were messier.
120209         Check for memory allocation failure when entering a dir.
120210         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
120211         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
120212         (FTS): New member fts_cycle, that is a union that contains the
120213         old active_dir_ht and cycle_state.  All uses changed to mention
120214         fts_cycle.ht and fts_cycle.state.
120215         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
120216         fts.c, with the following changes:
120217         (setup_dir, free_dir): New functions.
120218         (enter_dir): Now returns bool.  Return true if successful, false
120219         if memory exhausted.  All callers changed.
120220         Do not bother partly cleaning up on
120221         memory allocation failure; that is free_dir's job.
120222         However, free ad if hash_insert fails, to avoid memory leak.
120223         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
120224         fts->fts_options to see which union member to use.
120226 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
120229         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
120231 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120233         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
120235 2005-05-20  Jim Meyering  <jim@meyering.net>
120237         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
120238         Now a macro, to pacify GCC.
120240 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120242         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
120243         of -1.
120245 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120247         * lib/chown.c (rpl_chown): Return -1 on failure.
120249 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
120252         Don't check for stddef.h.
120253         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
120254         don't use its results.
120255         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
120256         since we include them unconditionally.  Don't require
120257         AM_STDBOOL_H, since stdbool is a prerequisite.
120258         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
120259         since we assume C89 or better.
120260         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
120261         as we don't use their results.
120262         Don't check for fchdir, memmove, memset, strrchr, as we use
120263         them unconditionally.
120264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
120265         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
120267 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120269         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
120270         Include <stddef.h> unconditionally, since we assume C89 now.
120271         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
120272         * lib/fts.c: Include fts_.h first, to check interface.
120273         Do not include intprops.h; no longer needed.
120274         Include cycle-check.h and hash.h, since fts_.h no longer does.
120275         Remove unnecessary casts of closedir to void.
120276         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
120277         decide whether to decrement nlinks.
120278         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
120279         (FTS): Use struct hash_table * instead of Hash_table, so that
120280         we no longer need to include hash.h here.
120282 2005-05-18  Jim Meyering  <jim@meyering.net>
120284         * modules/dirfd (License): Change to LGPL.  Most of the code
120285         is already in the public domain.
120287 2005-05-18  Jim Meyering  <jim@meyering.net>
120289         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
120290         Reported by Yoann Vandoorselaere.
120292 2005-05-17  Jim Meyering  <jim@meyering.net>
120294         * m4/fts.m4: New file, from coreutils.
120296 2005-05-17  Jim Meyering  <jim@meyering.net>
120298         * lib/fts.c, lib/fts_.h: New files, from coreutils.
120300 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120302         Sync from coreutils.
120303         * m4/unlinkdir.m4: New file.
120305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120307         Sync from coreutils.
120308         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
120309         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
120310         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
120311         White space changes only.
120312         * lib/makepath.c (make_path): Port to hosts where leading "//" is
120313         special.
120314         * lib/yesno.c: Include getline.h, not ctype.h.
120315         (yesno): Don't remove leading white space; POSIX doesn't allow it.
120316         Use getline to remove arbitrary restriction on response length.
120318 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120320         * config/srclist-update: Spell out "Street" in FSF postal
120321         mail address; this is the style the FSF seems to prefer.
120323         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
120324         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
120325         this updates FSF postal mail address.
120327         Sync from coreutils.
120328         * modules/unlinkdir: New file.
120329         * modules/yesno (Depends-on): Add getline.
120330         * MODULES.html.sh (File system functions): Add unlinkdir.
120332 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120334         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
120335         lib/strsep.h:
120336         Change the initial comment to refer to GPL, not LGPL.
120337         gnulib-tool will change it to LGPL as needed.
120339         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
120340         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
120341         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
120342         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
120343         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
120344         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
120345         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
120346         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
120347         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
120348         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
120349         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
120350         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
120351         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
120352         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
120353         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
120354         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
120355         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
120356         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
120357         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
120358         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
120359         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
120360         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
120361         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
120362         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
120363         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
120364         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
120365         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
120366         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
120367         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
120368         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
120369         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
120370         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
120371         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
120372         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
120373         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
120374         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
120375         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
120376         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
120377         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
120378         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
120379         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
120380         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
120381         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
120382         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
120383         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
120384         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
120385         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
120386         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
120387         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
120388         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
120389         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120390         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
120391         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
120392         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
120393         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
120394         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
120395         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
120396         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
120397         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
120398         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
120399         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
120400         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
120401         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
120402         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
120403         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
120404         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
120405         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
120406         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
120407         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
120408         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
120409         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
120410         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
120411         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
120412         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
120413         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
120414         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
120415         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
120416         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
120417         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
120418         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
120419         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
120420         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
120421         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
120422         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
120423         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
120424         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
120425         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
120426         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
120427         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
120428         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
120429         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
120430         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
120431         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
120432         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
120433         lib/yesno.c, lib/yesno.h:
120434         Update FSF postal mail address.
120436 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120438         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
120439         tests/test-memmem.c, tests/test-stpncpy.c:
120440         Update FSF postal mail address.
120442 2005-05-13  Bruno Haible  <bruno@clisp.org>
120444         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
120445         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
120446         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
120447         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
120448         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
120449         Add support for 64-bit integers in the MSVC compiler.
120451 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120453         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
120455 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
120457         * gnulib-tool (func_import): Sort and uniquify recommended includes.
120459 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
120461         * doc/getdate.texi (General date syntax): Don't say that date
120462         date --iso-8601=ns generates acceptable dates; it doesn't yet.
120463         Problem reported by Nic Ferrier.
120465 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120467         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
120468         specified in ai_socktype. Fix invalid ai_protocol
120469         check. ai_protocol is usually set to 0 or depending on
120470         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
120471         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
120472         ai_socktype / ai_protocol in the returned addrinfo structure.
120474 2005-05-10  Simon Josefsson  <jas@extundo.com>
120476         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
120477         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120479 2005-05-10  Karl Berry  <karl@gnu.org>
120481         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
120482         (from http://www.gnu.org/licenses).
120483         * doc/COPYING.LIB: also rename to COPYING.LESSER.
120484         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
120485         fdl.texi suffices.
120487 2005-05-10  Karl Berry  <karl@gnu.org>
120489         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
120490         (COPYING.DOC): remove.
120492         * config/srclist-update: new FSF address.
120494 2005-05-10  Derek Price  <derek@ximbiot.com>
120496         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
120497         possible.
120499 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120500             Bruno Haible  <bruno@clisp.org>
120502         * modules/inet_ntop: New file.
120503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120504         inet_ntop.
120506 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120507             Bruno Haible  <bruno@clisp.org>
120509         * m4/inet_ntop.m4: New file.
120511 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120512             Bruno Haible  <bruno@clisp.org>
120514         * lib/inet_ntop.h: New file.
120515         * lib/inet_ntop.c: New file, from glibc with modifications.
120517 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
120519         * modules/time_r (License): Change to LGPL.
120520         * modules/extensions (License): Change to LGPL.  Actually,
120521         the license is more permissive than that, but currently gnulib-tool
120522         doesn't know how to handle more-permissive licenses.
120524         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
120525         Problem reported by Dave Love.
120527 2005-05-08  Jim Meyering  <jim@meyering.net>
120529         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
120530         blank.
120532 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
120534         * modules/argmatch (Depends-on): Add stdbool.
120535         * modules/backupfile (Depends-on): Likewise.
120536         * modules/chdir-long (Depends-on): Likewise.
120537         * modules/closeout (Depends-on): Likewise.
120538         * modules/cycle-check (Depends-on): Likewise.
120539         * modules/dirname (Depends-on): Likewise.
120540         * modules/fnmatch (Depends-on): Likewise.
120541         * modules/fsusage (Depends-on): Likewise.
120542         * modules/fwriteerror (Depends-on): Likewise.
120543         * modules/getcwd (Depends-on): Likewise.
120544         * modules/getloadavg (Depends-on): Likewise.
120545         * modules/hard-locale (Depends-on): Likewise.
120546         * modules/makepath (Depends-on): Likewise.
120547         * modules/mountlist (Depends-on): Likewise.
120548         * modules/nanosleep (Depends-on): Likewise.
120549         * modules/posixtm (Depends-on): Likewise.
120550         * modules/quotearg (Depends-on): Likewise.
120551         * modules/readtokens (Depends-on): Likewise.
120552         * modules/readtokens0 (Depends-on): Likewise.
120553         * modules/readutmp (Depends-on): Likewise.
120554         * modules/save-cwd (Depends-on): Likewise.
120555         * modules/strftime (Depends-on): Likewise.
120556         * modules/userspec (Depends-on): Likewise.
120557         * modules/utimecmp (Depends-on): Likewise.
120558         * modules/xgetcwd (Depends-on): Likewise.
120559         * modules/xnanosleep (Depends-on): Likewise.
120560         * modules/xstrtod (Depends-on): Likewise.
120561         * modules/yesno (Depends-on): Likewise.
120563 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
120565         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
120566         needless checks.
120568 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
120570         Merge from coreutils.  Among other things,
120571         add bulletproofing for cases where stdin, stdout, or stderr are closed.
120572         * lib/fd-safer.c: New file.
120573         * lib/fcntl-safer.h, open-safer.c: Remove.
120574         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
120575         * lib/dup-safer.c: Include unistd-safer.h first.
120576         Don't include errno.h.
120577         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
120578         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
120579         * lib/file-type.c: Rely on file-type.h change.
120580         * lib/getloadavg.c: Include unistd-safer.h.
120581         (getloadavg): Use safer open.
120582         * lib/getusershell.c: Include "stdio-safer.h".
120583         (getusershell): Use safer fopen.
120584         * lib/long-options.c (long_options): Use NULL rather than 0.
120585         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
120586         'free'.
120587         * lib/modechange.c: Likewise.
120588         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
120589         (MODE_DONE): New constant.
120590         (struct mode_change): Remove 'next' member.
120591         (make_node_op_equals): New function; like the old one of the
120592         same name, except it allocates an array.
120593         (mode_compile, mode_create_from_ref): Use it.
120594         (mode_compile): Allocate result as an array, not a linked list.
120595         Parse octal string ourself, so that we catch mistakes like "+0".
120596         (mode_adjust): Arg is an array, not a linked list.
120597         * lib/modechange.c: Include stat-macros.h, xalloc.h.
120598         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
120599         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
120600         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
120601         Remove.  This is now stat-macros.h's job.
120602         (talloc): Remove.  All callers replaced by xalloc, so that
120603         our invokers don't have to worry about reporting memory failures.
120604         (make_node_op_equals): Remove.
120605         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
120606         New constants.
120607         (struct mode_change): Moved here from modechange.h.
120608         (mode_append_entry): Remove.
120609         (mode_compile): Remove MASKED_OPS arg, since it encouraged
120610         apps to have incorrect behavior.  Use simpler algorithm for head
120611         and tail.  Don't futz with umask; that's now the job of mode_adjust.
120612         Detect more invalid usages rather than having somewhat-random behavior.
120613         Don't insert an "a=" action, as that leads to incorrect behavior.
120614         (mode_compile, mode_create_from_ref): Return NULL on error instead
120615         of an enum, since now there's only one way to have an error.  All
120616         callers changed.
120617         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
120618         at the correct time.  Simplify calculation of "+u" and its ilk.
120619         Don't mishandle "+X".
120620         (mode_free): Remove "register" and localize decls.
120621         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
120622         (struct mode_change): Move to modechange.c; callers don't
120623         need to see this stuff.
120624         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
120625         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
120626         (mode_change, mode_adjust): Reflect the new signatures noted above.
120627         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
120628         that might redefine system include files.
120629         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
120630         (my_usleep): Use NULL rather than (void *) 0.
120631         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
120632         Use siginterrupt to specify that system calls should be interrupted.
120633         (rpl_nanosleep): Move initialization of suspended closer to call of
120634         my_usleep.
120635         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
120636         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
120637         (desirable_utmp_entry): New function.
120638         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
120639         using x2nrealloc, to simplify logic.
120640         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
120641         size calculation.  Do not assume utmp file is a regular file.
120642         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
120643         (READ_UTMP_CHECK_PIDS): New constant.
120644         * lib/save-cwd.c: Include unistd-safer.h.
120645         (save_cwd): Use fd_safer.
120646         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
120647         [!_LIBC] Include "stat-macros.h" instead.
120648         * lib/unistd-safer.h (fd_safer): New decl.
120650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
120652         * modules/getloadavg (Depends-on): Add unistd-safer.
120653         * modules/getusershell (Depends-on): Add stdio-safer.
120654         * modules/lstat (Depends-on): Remove xalloc.
120655         * modules/mkstemp (Depends-on): Add stat-macros.
120656         * modules/modechange (Depends-on): Remove xstrtol.
120657         Add stat-macros, xalloc.
120658         * modules/save-cwd (Depends-on): Add unistd-safer.
120659         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
120660         * modules/unistd-safer (Files): Add lib/fd-safer.c
120661         (Makefile.am): Remove lib_SOURCES.
120663         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
120664         Remove fcntl-safer; unistd-safer supersedes it.
120666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
120668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
120669         AC_HEADER_STAT.
120670         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
120671         (gl_PREREQ_CHOWN): Remove.
120672         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
120673         it.  Don't require AC_HEADER_STAT.
120674         (gl_PREREQ_LSTAT): Remove.
120675         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
120676         Don't require AC_HEADER_STAT.
120677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
120678         (gl_PREREQ_RMDIR): Remove.
120679         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
120680         mention stat-macros.h or AC_HEADER_STAT, since we'll make
120681         the stat-macros module a prerequisite.
120682         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
120683         * m4/filemode.m4 (gl_FILEMODE): Likewise.
120684         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
120685         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
120686         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
120687         variable names.
120688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
120689         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
120690         variable prefixes.
120691         * m4/fcntl-safer.m4: Remove.
120692         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
120693         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
120694         Invoke gl_PREREQ_FD_SAFER.
120695         (gl_PREREQ_FD_SAFER): New macro.
120696         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
120697         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
120698         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
120699         Remove duplicate call to AC_LIBOBJ(readutmp).
120700         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
120702         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
120703         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
120705 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
120707         * MODULES.html.sh (Misc): Add byteswap.
120709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
120711         * modules/getcwd (Depends-on): Add extensions.
120712         * modules/openat (Depends-on): Likewise.
120714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
120716         * modules/byteswap: New file.
120718 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
120720         * m4/byteswap.m4: New file.
120722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
120724         * lib/byteswap_.h: New file.
120726 2005-04-25  Karl Berry  <karl@gnu.org>
120728         * m4/gettext.m4: Update from GNU gettext 0.14.4.
120730 2005-04-25  Albert Chin  <china@thewrittenword.com>
120732         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
120733         Toolkit C bug.
120735 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
120737         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
120738         (func_ln_if_changed): Remove forcibly for no error message
120739         in case file does not exist.
120741 2005-04-19  Simon Josefsson  <jas@extundo.com>
120743         * gnulib-tool (Options): Make --symlink mean --symbolic.
120745 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
120747         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
120749 2005-04-16  Simon Josefsson  <jas@extundo.com>
120751         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
120753 2005-04-15  Simon Josefsson  <jas@extundo.com>
120755         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
120757 2005-04-15  Simon Josefsson  <jas@extundo.com>
120759         * gnulib-tool: Rename --symlink to --symbolic.
120761 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
120763         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
120764         symbolic links to files instead of copying/moving.  Add --aux-dir,
120765         specifying directory relative --dir where auxiliary build tools
120766         are placed.
120768 2005-04-14  Bruno Haible  <bruno@clisp.org>
120770         * modules/allocsa (License): Change to LGPL.
120771         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
120773 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
120775         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
120776         that "UTC +1 second" continues to work.  Problem reported
120777         by Dmitry V. Levin.
120778         (relunit_snumber): New rule.
120779         (relunit): Use it.
120781 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
120783         * lib/getdate.y (universal_time_zone_table): New constant.
120784         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
120785         universal_time_zone_table.
120786         (lookup_zone): Prefer universal_time_zone_table to
120787         local_time_zone_table, so that "GMT" time stamps are allowed in
120788         London during the summer.  Problem reported by Ian Abbott.
120790 2005-04-12  Jim Meyering  <jim@meyering.net>
120792         * lib/human.c (humblock): Set *options even when returning due to
120793         xstrtoumax conversion failure.  Thanks to a used-uninitialized
120794         warning from gcc-4.
120796 2005-04-09  Jim Meyering  <jim@meyering.net>
120798         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
120799         -Wuninitialized: initialize tm0.tm_year.
120801 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
120803         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
120804         count, since there's no maximum.  All uses changed.
120805         Add member dsts_seen.
120806         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
120807         not being INT_MAX.
120808         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
120809         Use pc_rels_seen to decide whether a date is absolute.
120811         * lib/getdate.y (number): Don't overwrite year.
120812         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
120813         check.
120815 2005-04-02  Simon Josefsson  <jas@extundo.com>
120817         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
120818         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
120820 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
120822         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
120823         where no absolute path name can be longer than PATH_MAX.
120825 2005-03-27  Jim Meyering  <jim@meyering.net>
120827         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
120829 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
120831         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
120832         "one's complement" -> "ones' complement" in comment, as per Knuth.
120833         "value of type" -> "type or expression" in comment.
120834         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
120836 2005-03-26  Jim Meyering  <jim@meyering.net>
120838         Comment nits.
120839         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
120840         Correct typos: s/or/of/.
120842 2005-03-26  Jim Meyering  <jim@meyering.net>
120844         * modules/check-include-files: Move to ../ and rename to...
120845         * check-module: ...this.
120847 2005-03-25  Jim Meyering  <jim@meyering.net>
120849         * modules/xvasprintf (Files): Add xalloc.h.
120851 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
120853         * modules/gettext (Files): config/config.rpath ->
120854         build-aux/config.rpath
120855         * modules/iconv (Files): Likewise.
120856         Problem reported by Oskar Liljeblad.
120858 2005-03-23  Jim Meyering  <jim@meyering.net>
120860         * modules/check-include-files: New script to check for
120861         missing dependencies, multiple includes, etc.
120863         * modules/c-strtold (Depends-on): Add xalloc.
120864         * modules/c-strtod (Depends-on): Add xalloc.
120865         * modules/hash (Depends-on): Add xalloc.
120866         (Files): Remove lib/xalloc.h.
120868         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
120869         * modules/userspec (Files): Add lib/inttostr.h.
120871 2005-03-23  Jim Meyering  <jim@meyering.net>
120873         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
120875 2005-03-22  Jim Meyering  <jim@meyering.net>
120877         * modules/stat-macros: New module.
120878         * modules/canonicalize, modules/euidaccess, modules/file-type,
120879         * modules/filemode, modules/lchown, modules/makepath,
120880         * modules/rmdir, modules/stat: Depend on new stat-macros module
120881         rather than listing lib/stat-macros.h manually.
120882         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
120884 2005-03-22  Jim Meyering  <jim@meyering.net>
120886         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
120888 2005-03-22  Bruno Haible  <bruno@clisp.org>
120890         * config/srclist.txt: Replace target directory 'config' with
120891         'build-aux'.
120892         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
120893         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
120894         ../build-aux/.
120896 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
120898         * modules/chdir-long (Depends-on): Add mempcpy.
120900         * modules/acl, modules/backupfile, modules/c-strtod,
120901         modules/c-strtold, modules/canon-host, modules/canonicalize,
120902         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
120903         modules/exclude, modules/exitfail, modules/file-type,
120904         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
120905         modules/getdate, modules/getline, modules/getpagesize,
120906         modules/getpass, modules/getugroups, modules/group-member,
120907         modules/hard-locale, modules/hash, modules/human, modules/idcache,
120908         modules/inttostr, modules/long-options, modules/makepath,
120909         modules/md5, modules/memcasecmp, modules/memcoll,
120910         modules/modechange, modules/mountlist, modules/path-concat,
120911         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
120912         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
120913         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
120914         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
120915         modules/strftime, modules/strndup, modules/strverscmp,
120916         modules/timespec, modules/unlocked-io, modules/userspec,
120917         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
120918         modules/yesno:
120919         Remove lib_SOURCES line from Makefile.am section, as this is now
120920         done automatically by the corresponding Autoconf macro.
120922 2005-03-21  Jim Meyering  <jim@meyering.net>
120924         Changes imported from coreutils.
120926         * lib/cycle-check.c: Don't include xalloc.h.
120928         * lib/path-concat.c: Don't include assert.h.
120929         (path_concat): Remove assertion that would have triggered
120930         for ABASE starting with more than one slash.
120931         Reported by Andreas Schwab.
120933         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
120934         properly when ABASE is an absolute file name.
120935         Correct the description of this function.
120936         Include <assert.h>.
120937         Add an assertion and a test driver.
120938         This fixes a bug introduced on 2004-07-02.
120939         Andreas Schwab reported the resulting failure of cp --parents:
120940         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
120942 2005-03-21  Jim Meyering  <jim@meyering.net>
120944         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
120945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
120947 2005-03-21  Jim Meyering  <jim@meyering.net>
120948         and  Paul Eggert  <eggert@cs.ucla.edu>
120950         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
120951         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
120952         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
120953         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
120954         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
120955         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
120956         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
120957         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
120958         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
120959         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
120960         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
120961         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
120962         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
120963         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
120964         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
120965         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
120966         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
120967         for these modules.
120969 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
120971         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
120972         (which shouldn't happen), generate nothing instead of returning 0
120973         immediately, so that nstrftime (NULL, ...) doesn't return 0.
120975 2005-03-16  Bruno Haible  <bruno@clisp.org>
120977         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
120978         HAVE_LONGLONG_64BIT.
120980 2005-03-16  Bruno Haible  <bruno@clisp.org>
120982         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
120983         HAVE_LONGLONG_64BIT.
120985 2005-03-16  Bruno Haible  <bruno@clisp.org>
120987         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
120988         HAVE_LONGLONG_64BIT.
120990 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
120992         * lib/strftime.c (my_strftime): Prepend space to format so that we can
120993         reliably distinguish strftime failure from empty output on POSIX
120994         hosts.
120996 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
120998         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
120999         (iconv_string): Don't guess a size-zero buffer, as that might cause
121000         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
121001         result would be 'too large', where 'too large' is (heuristically)
121002         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
121003         overflow concerns.  This will prevent some unwanted malloc failures
121004         when the inputs are very large.
121006 2005-03-15  Karl Berry  <karl@gnu.org>
121008         * config/srclist.txt (config.rpath): from gettext.
121009         * config/config.rpath: update.
121011 2005-03-15  Bruno Haible  <bruno@clisp.org>
121013         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
121014         to 'negate'.
121016         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
121017         variable.
121019         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
121020         results.
121022 2005-03-14  Simon Josefsson  <jas@extundo.com>
121024         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
121025         <fx@gnu.org>.
121027 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
121029         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
121030         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
121031         intprops.h.
121032         * lib/strtol.c: Likewise.
121034 2005-03-14  Jim Meyering  <jim@meyering.net>
121036         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
121037         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
121038         to be nonzero so that we (and caller) can detect the difference
121039         between a valid zero-length expansion and an error return, even
121040         when the underlying strftime fails before writing anything into
121041         that location.
121043 2005-03-14  Bruno Haible  <bruno@clisp.org>
121045         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
121046         Update from GNU gettext 0.14.3.
121048 2005-03-10  Jim Meyering  <jim@meyering.net>
121050         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
121052 2005-03-10  Jim Meyering  <jim@meyering.net>
121054         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
121055         so that this module works on systems without fchdir.
121057 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
121059         Factor int-properties macros into a single file, except for
121060         glibc-related files.
121061         * lib/intprops.h: New file.
121062         * lib/getloadavg.c: Include it instead of limits.h.
121063         (INT_STRLEN_BOUND): Remove.
121064         * lib/human.c: Include intprops.h.
121065         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
121066         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
121067         302/1000.
121068         * lib/inttostr.h: Include intprops.h instead of limits.h.
121069         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
121070         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
121071         for consistency with intprops.h.
121072         (time_t_is_integer, twos_complement_arithmetic): Use them.
121073         * lib/sig2str.h: Include <signal.h>, intprops.h.
121074         (INT_STRLEN_BOUND): Remove.
121075         * lib/strftime.c (TYPE_SIGNED): Remove.
121076         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
121077         * lib/strtol.c: Adjust comments to match intprops.h.
121078         * lib/userspec.c: Include intprops.h.
121079         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
121080         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
121081         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
121082         instead of rolling our own expressions.
121083         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
121085         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
121086         instead of int.
121087         (my_strftime): Do not mishandle years close to INT_MAX, by doing
121088         the right thing even if adding 1900 would overflow.  Similarly
121089         for tm_mon + 1 and tm_yday + 1.
121090         Make %Y always equivalent to %C%y, and similarly for %G and %g.
121091         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
121092         (DO_SIGNED_NUMBER): New macro.
121093         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
121095 2005-03-07  Bruno Haible  <bruno@clisp.org>
121097         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
121099 2005-03-07  Bruno Haible  <bruno@clisp.org>
121101         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
121103 2005-03-04  Derek R. Price  <derek@ximbiot.com>
121105         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
121106         (func_import): Only replace files via --import when they have actually
121107         changed.
121109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121111         * m4/mmap-anon.m4: New file.
121112         * m4/pagealign_alloc.m4: New file.
121114 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121115             Bruno Haible  <bruno@clisp.org>
121117         * modules/pagealign_alloc: New file.
121118         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
121120 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121121             Bruno Haible  <bruno@clisp.org>
121123         * lib/pagealign_alloc.h: New file.
121124         * lib/pagealign_alloc.c: New file.
121126 2005-03-03  Bruno Haible  <bruno@clisp.org>
121128         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
121129         Use an all-permissive copyright notice, recommended by RMS.
121131 2005-03-02  Bruno Haible  <bruno@clisp.org>
121133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
121134         of AIX, the replacement has to be done only after <string.h> is
121135         included, therefore not in config.h. stpncpy.h does the replacement,
121136         and stpncpy.c uses it.
121138 2005-03-02  Bruno Haible  <bruno@clisp.org>
121140         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
121141         stpncpy.c uses it.
121143 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121145         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
121146         The workaround isn't strictly needed for POSIX conformance, and
121147         it's too much of a pain to configure and maintain.  We'll ask
121148         people to fix their kernels instead.
121149         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
121150         (NANOSLEEP_BUG_WORKAROUND): Remove.
121151         (xnanosleep): Remove the workaround.
121153 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121155         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
121156         Reported by Derek Price.
121157         (Include): Add "timespec.h".
121159         * modules/xnanosleep (Depends-on): Remove gethrxtime.
121161 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121163         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
121164         to detect nanosleep bug.
121166 2005-03-01  Bruno Haible  <bruno@clisp.org>
121168         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
121170 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
121172         * modules/gethrxtime: New file.
121173         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
121174         (Depends-on): Add gethrxtime.
121175         (configure.ac): Add gl_XNANOSLEEP.
121176         (Makefile.am): Remove lib_SOURCES line.
121178 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121180         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
121181         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
121183 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121185         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
121186         * lib/timespec.h (gettime): Return void, since it always
121187         succeeds now.  All uses changed.
121188         * lib/gettime.c (gettime): Likewise.
121189         [HAVE_NANOTIME]: Prefer nanotime.
121190         Assume gettimeofday succeeds, as POSIX requires.
121191         Assime time () succeeds, since other code already does.
121192         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
121193         (timespec_subtract): Remove.
121194         (NANOSLEEP_BUG_WORKAROUND): New constant.
121195         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
121196         things considerably.  Use it only on GNU/Linux hosts, since the
121197         workaround shouldn't be needed elsewhere.
121199 2005-02-24  Bruno Haible  <bruno@clisp.org>
121201         * modules/gettext (Files): Add m4/glibc2.m4.
121203 2005-02-24  Bruno Haible  <bruno@clisp.org>
121205         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
121206         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
121207         * m4/progtest.m4:
121208         Update from GNU gettext 0.14.2.
121209         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
121211 2005-02-24  Bruno Haible  <bruno@clisp.org>
121213         * lib/localcharset.c: Update from GNU gettext 0.14.2.
121214         * lib/config.charset: Update from GNU gettext 0.14.2.
121216 2005-02-24  Bruno Haible  <bruno@clisp.org>
121218         * lib/gettext.h: Update from GNU gettext 0.14.2.
121220 2005-02-23  Simon Josefsson  <jas@extundo.com>
121222         * m4/iconvme.m4: New file.
121224 2005-02-23  Jim Meyering  <jim@meyering.net>
121226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
121227         change.
121228         Thanks to Bruno Haible for catching it.
121230 2005-02-22  Simon Josefsson  <jas@extundo.com>
121232         * modules/iconvme: New file.
121234         * MODULES.html.sh: Add iconvme.
121236 2005-02-22  Simon Josefsson  <jas@extundo.com>
121238         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
121240 2005-02-22  Simon Josefsson  <jas@extundo.com>
121242         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
121244 2005-02-22  Jim Meyering  <jim@meyering.net>
121246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
121247         s/ifndef/ifdef/.
121249 2005-02-20  Neil Conway  <neilc@samurai.com>
121251         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
121252         returned by OSX/Darwin if the specified buffer is not large
121253         enough for the hostname.
121255 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121257         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
121258         pass it to _help, otherwise the latter coredumps trying to
121259         dereference state.root_argp.
121261 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121263         * modules/chdir-long (Depends-on): Add memrchr.
121264         * modules/memrchr (Files): Add lib/memrchr.h.
121265         (Include): "memrchr.h".
121267 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
121271 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121273         * lib/memrchr.h: New file.
121274         * lib/chdir-long.c: Include it.
121275         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
121276         Don't bother including stddef.h.
121278 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
121280         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
121281         inclusion.
121282         Include <sys/types.h>, for dev_t.
121283         (ME_DUMMY, ME_REMOTE): Move from here....
121284         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
121285         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
121286         Dmitry V. Levin.
121287         Include mountlist.h first, to test the interface.
121289 2005-01-29  Bruno Haible  <bruno@clisp.org>
121291         * lib/progname.c (program_name): Initialize.
121292         Needed when linking statically on MacOS X.
121294 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
121296         Sync from coreutils.
121297         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
121298         (Depends-on): Add c-strtod.
121299         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
121301 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
121303         Sync from coreutils.
121304         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
121306         Remove files that are specific to coreutils.
121307         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
121309 2005-01-28  Bruno Haible  <bruno@clisp.org>
121311         * modules/javacomp: New file.
121312         * MODULES.html.sh (Java): Add javacomp.
121314 2005-01-28  Bruno Haible  <bruno@clisp.org>
121316         * m4/javacomp.m4: New file, from GNU gettext.
121318 2005-01-28  Bruno Haible  <bruno@clisp.org>
121320         * lib/javacomp.sh.in: New file, from GNU gettext.
121321         * lib/javacomp.h: New file, from GNU gettext.
121322         * lib/javacomp.c: New file, from GNU gettext.
121324 2005-01-26  Simon Josefsson  <jas@extundo.com>
121326         * lib/gai_strerror.c: Use GPL in header.
121328 2005-01-26  Bruno Haible  <bruno@clisp.org>
121330         * modules/javaexec: New file.
121331         * MODULES.html.sh (Java): Add javaexec.
121333 2005-01-26  Bruno Haible  <bruno@clisp.org>
121335         * m4/javaexec.m4: New file, from GNU gettext.
121337 2005-01-26  Bruno Haible  <bruno@clisp.org>
121339         * lib/javaexec.sh.in: New file, from GNU gettext.
121340         * lib/javaexec.h: New file, from GNU gettext.
121341         * lib/javaexec.c: New file, from GNU gettext.
121343 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121345         * modules/lchown (Depends-on): Remove lchown.h
121347 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121349         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
121350         must be defined if the header file was not found, in order
121351         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
121353 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121355         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
121356         initializers for struct pentry_state.
121357         (__argp_error): Check return value of __asprintf
121358         (__argp_failure): Translate error message
121360         * lib/argp-parse.c: Removed braces around the expansion of N_()
121362 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
121364         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
121365         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
121366         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
121367         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
121368         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
121369         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
121370         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
121371         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
121372         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
121373         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
121374         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
121375         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
121376         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
121377         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
121378         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
121379         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
121380         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
121381         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
121382         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
121383         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
121384         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
121385         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
121386         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
121387         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
121388         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
121389         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
121390         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
121391         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
121392         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
121393         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
121394         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
121395         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
121396         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
121397         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
121398         xstrtol.m4, xstrtoumax.m4, yesno.m4:
121399         Use an all-permissive copyright notice, recommended by RMS.
121401 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
121403         * modules/chdir-long (Depends-on): Remove mempcpy.
121405 2005-01-21  Jim Meyering  <jim@meyering.net>
121407         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
121408         same value as for Solaris 9.
121410         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
121411         component length.  This included changing the parameter to be
121412         of type `char *' rather than `char const *'.
121413         * lib/chdir-long.h (chdir_long): Update prototype.
121415         * lib/openat.c (fdopendir, fstatat): New functions.
121416         * lib/openat.h: Include headers required for use of DIR and struct
121417         stat.
121418         [AT_SYMLINK_NOFOLLOW]: Define.
121419         (fdopendir, fstatat): Add prototypes.
121421 2005-01-21  Bruno Haible  <bruno@clisp.org>
121423         * modules/classpath: New file.
121424         * MODULES.html.sh (Java): Add classpath.
121426 2005-01-21  Bruno Haible  <bruno@clisp.org>
121428         * lib/classpath.h: New file, from GNU gettext.
121429         * lib/classpath.c: New file, from GNU gettext.
121431 2005-01-20  Simon Josefsson  <jas@extundo.com>
121433         * modules/version-etc-fsf: New file.
121435 2005-01-20  Simon Josefsson  <jas@extundo.com>
121437         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
121438         * lib/version-etc.c: Remove version_etc_copyright.
121439         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
121440         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
121442 2005-01-20  Simon Josefsson  <jas@extundo.com>
121444         * lib/base64.h (isbase64): Add.
121446         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
121447         using a unsigned prototype, don't inline.
121448         (base64_decode): Use it.
121450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
121452         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
121453         it.
121455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
121457         * lib/save-cwd.c (save_cwd): Remove code to support the case
121458         where fchdir is missing or flaky.
121460 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
121462         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
121464 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
121466         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
121467         AC_LIBSOURCES now does this.
121468         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
121469         with new ullong_max module.
121471 2005-01-19  Bruno Haible  <bruno@clisp.org>
121473         * modules/sh-quote: New file.
121474         * MODULES.html.sh (Executing programs): Add sh-quote.
121476 2005-01-19  Bruno Haible  <bruno@clisp.org>
121478         * lib/sh-quote.h: New file, from GNU gettext.
121479         * lib/sh-quote.c: New file, from GNU gettext.
121481 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
121483         Merge from coreutils.
121484         * m4/ullong_max.m4: New file.
121485         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
121486         (gl_MACROS): Assume localeconv exists.
121488 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
121490         Merge changes from coreutils, as described below in several
121491         changelogs dated today.
121493         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
121494         (O_DIRECTORY): Remove; not needed here, since "." must be
121495         a directory.  All uses removed.
121496         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
121497         universal on Suns, and we also need to test for IRIX.
121498         Revamp code to use 'if' rather than '#if'.
121499         Avoid unnecessary comparison of cwd->desc to 0.
121501         * lib/utimens.c (futimens): Robustify the previous patch, by checking
121502         for known valid error numbers rather than observed invalid ones.
121504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
121506         * modules/ullong_max: New file.
121508         * modules/chdir-long, modules/openat: New files.
121509         * modules/save-cwd (Depends-on): Depend on chdir-long.
121510         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
121512 2005-01-18  Jim Meyering  <jim@meyering.net>
121514         Merge from coreutils.
121515         * m4/chdir-long.m4, m4/openat.m4: New files.
121516         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
121517         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
121518         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
121519         is sane and DOES follow symlinks.  Besides, testing 20 different
121520         systems found no broken chown implementations.
121521         Prompted by a change in rsync's copy of this macro.
121522         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
121524         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
121526         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
121527         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
121528         NULL-means-set-to-current-time semantics.
121529         Remove temporary file immediately, rather than waiting
121530         for configure's at-exit trap code to do it.
121532 2005-01-18  Jim Meyering  <jim@meyering.net>
121534         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121536         * lib/utimens.c (futimens): Account for the fact that futimes
121537         can also fail with errno == ENOSYS or errno == ENOENT.
121538         Patch from Dmitry V. Levin.
121540         Change the name of the robust chdir function from chdir to chdir_long.
121541         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
121542         (restore_cwd): Use chdir_long, not chdir.
121543         * lib/chdir-long.c: Renamed from chdir.c.
121544         * lib/chdir-long.h: Renamed from chdir.h.
121545         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
121546         Hurd.
121548 2005-01-18  Bruno Haible  <bruno@clisp.org>
121550         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
121551         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
121552         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
121553         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
121554         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
121555         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
121556         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
121557         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
121558         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
121559         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
121560         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
121561         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
121562         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
121563         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
121564         Use an all-permissive copyright notice, recommended by RMS.
121566 2005-01-18  Bob Proulx  <bob@proulx.com>
121568         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
121569         simplify offsetof() macro construct to avoid compile failure with
121570         native HP-UX 11.0 ANSI C compiler.
121572 2005-01-17  Bruno Haible  <bruno@clisp.org>
121574         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
121575         redundant because stpncpy.m4 takes care of it.
121577 2005-01-17  Bruno Haible  <bruno@clisp.org>
121579         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
121581 2005-01-17  Bruno Haible  <bruno@clisp.org>
121583         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
121584         used.
121586 2005-01-17  Bruno Haible  <bruno@clisp.org>
121588         * lib/fwriteerror.h (fwriteerror): Change specification to include
121589         fclose.
121590         * lib/fwriteerror.c: Include <stdbool.h>.
121591         (fwriteerror): At the end, close the file stream. Record whether
121592         stdout was already closed.
121594 2005-01-17  Bruno Haible  <bruno@clisp.org>
121596         * lib/execute.c (environ): Declare if needed.
121597         * lib/pipe.c (environ): Likewise.
121598         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
121600 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121602         * modules/argp: Depend on vsnprintf
121604 2005-01-10  Jim Meyering  <jim@meyering.net>
121606         * modules/closeout (Depends-on): Add atexit.
121608 2005-01-06  Bruno Haible  <bruno@clisp.org>
121610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
121612 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
121614         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
121615         definitions to be after all include files, to avoid collisions.
121616         Problem reported by Bob Proulx.
121618 2005-01-04  Jim Meyering  <jim@meyering.net>
121620         Changes imported from coreutils.
121621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
121622         as the mkstemp template, use a temporary directory and an
121623         8.3-friendly template to avoid trouble on systems like DJGPP.
121624         Reported by Juan M. Guerrero via Stepan Kasal.
121625         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
121626         close. Remove the temporary directory right away, rather than waiting
121627         for configure's at-exit trap code to do it.
121628         Suggestion from Stepan Kasal.
121630 2005-01-01  Simon Josefsson  <jas@extundo.com>
121632         * gnulib-tool: Print #include directives when --import'ing.
121634 2004-12-28  Simon Josefsson  <jas@extundo.com>
121636         * tests/test-base64.c: Include required header files.  Remove
121637         unused variables.
121639 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
121641         * modules/error (Depends-on): Remove gettext.
121643 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
121645         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
121646         not needed.  This removes a dependency on the gettext module.
121647         [defined _LIBC]: Do not include <libintl.h>; not needed.
121649 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
121651         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
121652         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
121654 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
121656         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
121657         HAVE_DECL_STRTOLD.
121659 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
121661         * modules/getdate (Depends-on): Remove alloca-opt.
121663 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
121665         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
121667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
121669         * lib/argp-parse.c: Include <stddef.h>.
121670         (alignof, alignto): New macros.
121671         (parser_init): Don't assume that void * is aligned sufficiently
121672         for struct option.
121674         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
121675         need to extend the stack.
121676         (YYINITDEPTH): New macro, so that the initial stack isn't overly
121677         large.
121679 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121681         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
121683 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
121685         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
121686         (2004-10-24) change.  Apparently this was a false alarm.
121688         * modules/getdate: Depend on alloca-opt, not alloca.
121690 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
121692         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
121693         Remove now-obsolete comment about AIX.
121694         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
121695         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
121696         (YYMAXDEPTH): New macro.
121698 2004-12-18  Simon Josefsson  <jas@extundo.com>
121700         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
121702 2004-12-18  Bruno Haible  <bruno@clisp.org>
121704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
121706 2004-12-18  Bruno Haible  <bruno@clisp.org>
121708         * lib/fatal-signal.c (fatal_signals): Make non-const.
121709         (init_fatal_signals): New function.
121710         (uninstall_handlers, install_handlers): Ignore signals that were set to
121711         SIG_IGN.
121712         (at_fatal_signal): Call init_fatal_signals.
121713         (init_fatal_signal_set): Likewise. Ignore signals that were set to
121714         SIG_IGN.
121715         Reported by Paul Eggert.
121717 2004-12-18  Bruno Haible  <bruno@clisp.org>
121719         * doc/alloca.texi: New file.
121720         * doc/alloca-opt.texi: New file.
121722 2004-12-17  Jim Meyering  <jim@meyering.net>
121724         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
121725         Otherwise, install-sh could exit with improper exit status when
121726         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
121728 2004-12-16  Simon Josefsson  <jas@extundo.com>
121730         * tests/test-base64.c: Add license.
121732 2004-12-15  Stepan Kasal  <address@hidden>
121734         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
121736 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
121738         * modules/getcwd (Files): Add m4/d-ino.m4.
121739         Suggested by Mark D. Baushke.
121741 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
121743         * lib/getdate.y (textint): New member "negative".
121744         (time_zone_hhmm): New function.
121745         Expect 14 shift-reduce conflicts, not 13.
121746         (o_colon_minutes): New rule.
121747         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
121748         (yylex): Set the "negative" member of signed numbers.
121750 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
121752         * doc/getdate.texi (Time of day items, Time zone items):
121753         Describe new formats +00:00, UTC+00:00.
121755 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
121757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
121758         spurious "-l"s.  Problem reported by Stepan Kasal.
121760 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
121762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
121763         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
121765 2004-12-04  Simon Josefsson  <jas@extundo.com>
121767         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
121768         Vandoorselaere <yoann@prelude-ids.org>.
121770 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
121772         Changes imported from coreutils.
121773         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
121774         exist.
121775         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
121777 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
121779         Changes imported from coreutils.
121780         * lib/hard-locale.c: Assume <locale.h> exists.
121781         Include "strdup.h".
121782         (GLIBC_VERSION): New macro.
121783         (hard_locale): Assume setlocale exists.
121784         Rewrite to avoid #ifdef.
121785         Use strdup rather than malloc + strcpy.
121786         * lib/human.c: Assume <locale.h> exists.
121787         (human_readable): Assume localeconv exists.
121789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
121791         * modules/hard-locale (Depends-on): Add strdup.
121793 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
121795         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
121796         convert T2, not T.  (Imported from libc.)
121798 2004-11-30  Simon Josefsson  <jas@extundo.com>
121800         * modules/restrict (License): Change to LGPL.
121802 2004-11-30  Simon Josefsson  <jas@extundo.com>
121804         * m4/restrict.m4: Add copyright and copying conditions.
121806 2004-11-30  Simon Josefsson  <jas@extundo.com>
121808         * m4/base64.m4: New file.
121810 2004-11-30  Simon Josefsson  <jas@extundo.com>
121812         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
121813         base64.
121815         * tests/test-base64.c: New file.
121817         * modules/base64: New file.
121819 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
121821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
121822         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
121824         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
121826 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
121828         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
121829         (__getcwd.c): Don't restore errno; glibc doesn't.
121830         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
121831         first, falling back to our code only if its results look suspicious.
121832         Ensure that the resulting buffer is only as large as necessary.
121834         * lib/readutmp.c: Include readutmp.h first.
121835         Include <errno.h>, since readutmp.h no longer does that.
121836         * lib/readutmp.h: Don't include <errno.h>,
121837         <sys/param.h>, <time.h>; not needed to establish interface.
121838         (errno): Remove decl.
121839         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
121840         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
121841         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
121843 2004-11-28  Simon Josefsson  <jas@extundo.com>
121845         * lib/base64.h, base64.c: New file.
121847 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
121849         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
121851 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
121853         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
121854         (Depends-on): Remove pathmax, same.  Add mempcpy.
121855         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
121856         (Makefile.am): Append getcwd.h to lib_SOURCES.
121857         (Include): Add getcwd.h.
121858         (Maintainer): Change from Jim Meyering to "all, glibc",
121859         since getdate now uses intended-for-glibc code.
121860         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
121861         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
121863 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
121865         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
121866         HP's ANSI C compiler.
121867         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
121868         Declaring int functions causes warnings on some modern systems and
121869         shouldn't be needed to compile on ancient ones.
121870         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
121871         defined.
121873         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
121874         with the following changes.
121875         (__set_errno): Parenthesize properly.
121876         Include <stdbool.h>.
121877         (MIN, MAX, MATCHING_INO): New macros.
121878         (__getcwd): Define with prototype, not K&R form.
121879         Use heuristics to allocate default buffer on stack if possible.
121880         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
121881         behavior, and to avoid the PATH_MAX limit when computing
121882         ../../../../...
121883         Use MATCHING_INO to compare inode number to file.
121884         Check for arithmetic overflow in size calculations.
121885         Fix bug in reallocation of dot array that caused getcwd to fail
121886         on directories nested deeper than 75.
121887         Be more careful about saving errno on error.
121888         Do not use realloc; use only free+malloc, as this is a bit
121889         more flexible and avoids a needless copy operation.
121890         Do not inspect st_dev and st_ino for symbolic links; POSIX
121891         doesn't specify the latter.
121892         Check for closedir errors.
121893         Avoid needless casts.
121894         Use "#ifdef weak_alias" around weak_alias, to be like other
121895         glibc code.
121896         The following changes to getcwd.c have effect only when used in
121897         gnulib; they have no effect inside glibc proper.
121898         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
121899         as alloca isn't used.
121900         (alloca, __alloca): Likewise.
121901         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
121902         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
121903         unconditionally, as gnulib assumes C89 or better.
121904         Do not include <sys/param.h>.
121905         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
121906         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
121907         better.
121908         (NULL) [!defined NULL]: Remove; we assume C89 or better.
121909         Include <dirent.h> in a way that is compatible with modern Autoconf.
121910         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
121911         New macros, if not already defined.
121912         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
121913         Use "_LIBC", not "defined _LIBC", for consistency.
121914         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
121915         a mempcpy module.
121916         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
121917         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
121918         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
121919         credit only to Jim Meyering and adjust the copyright dates.
121920         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
121921         <stdlib.h>, <unistd.h>, "pathmax.h".
121922         Instead, include "xgetcwd.h" (first) and "getcwd.h".
121923         (INITIAL_BUFFER_SIZE): Remove.
121924         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
121926 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
121928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
121929         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
121930         Use the _ONCE methods, for efficiency.
121931         Check for fcntl.h.  In test program, include <errno.h>
121932         and <fcntl.h> if available.  Remove old K&R cruft from
121933         test program.  Check for common errors in GNU/Linux,
121934         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
121935         don't do AC_LIBOBJ, as that's getcwd.m4's job.
121936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
121937         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
121938         name accordingly.
121939         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
121940         accommodate new getcwd.c.
121941         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
121942         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
121943         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
121944         that's all we need now.
121946 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121948         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
121949         argp-parse.c depends on getopt internals, that means we should
121950         always use our getopt, to be on the safe side.
121951         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
121952         order not to spoil the result of an eventual previous invocation
121953         of gl_GETOPT_SUBSTITUTE.
121955 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121957         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
121958         redefinition warnings. To avoid them, include the defines
121959         in `#if !defined __need_getopt ... #endif'. The only place
121960         where __getopt_argv_const is used is in definitions
121961         of getopt_long and getopt_long_only below, which are as well
121962         protected by `#ifndef __need_getopt'.
121963         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
121964         __need_getopt after including <stdio.h> and <unistd.h> These
121965         headers might have defined it.
121967 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
121969         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
121971 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
121973         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
121974         (futimens): New function, which uses futimes if available.
121975         (futimens, utimens): Support timespec==NULL, with same semantics
121976         as utime and utimens.
121977         * lib/utimens.h (futimens): New decl.
121979 2004-11-23  Jim Meyering  <jim@meyering.net>
121981         * lib/getopt_.h: Remove trailing blanks.
121983 2004-11-23  Jim Meyering  <jim@meyering.net>
121985         * lib/__fpending.c: Add comment.
121987 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
121989         * modules/canonicalize (Depends-on): Add xreadlink.
121990         Problem reported by James Youngman.
121992 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
121994         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
121995         New macros.
121996         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
121997         optopt): Use them instead of invoking ## directly; otherwise, the
121998         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
122000 2004-11-19  Bruno Haible  <bruno@clisp.org>
122002         * lib/strtok_r.c: Move comments from here...
122003         * lib/strtok_r.h: ... to here.
122005 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122007         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
122008         implementations that mishandle size_t overflow.
122010 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122012         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
122013         might fail.  Problem reported by Yoann Vandoorselaere.
122014         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
122015         implementations that mishandle size_t overflow.
122017 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122019         * modules/canon-host (Depends-on): Add strdup.
122021 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122023         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
122025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122027         * lib/canon-host.c: Include "strdup.h".
122028         (canon_host): Use getaddrinfo if available, so that IPv6 works.
122029         Use strdup instead of malloc/strcpy to duplicate strings.
122031         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
122032         (human_space_before_unit): New constant.
122033         * lib/human.c (human_readable): Support it.
122035         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
122036         (xgetcwd): Set errno correctly when failing.
122037         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
122038         the failure is actually due to a PATH_MAX problem.
122040         Further getopt changes to make it more likely that glibc will
122041         buy the changes back.
122042         * lib/getopt.c (POSIXLY_CORRECT): New constant.
122043         (getopt): Use it, so to preserve glibc semantic
122044         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
122045         when compiling for libc.
122046         * lib/getopt_.h (__getopt_argv_const): Bring it back.
122047         (getopt_long, getopt_long_only): Use it.
122049         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122050         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
122051         (getopt): Argv is now char * const *, as per standard.
122052         (_getopt_internal_r, _getopt_internal): Argv is now char **,
122053         not char *__getopt_argv_const *.
122054         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122055         _getopt_long_only_r): Likewise.
122056         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
122057         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122058         _getopt_long_r, _getopt_long_only_r): Likewise.
122059         * lib/getopt_.h (__getopt_argv_const): Remove.
122060         (getopt): Argv is now char * const *, as per standard.
122062         * lib/getdate.y (tORDINAL): New token.
122063         (day, relunit): Allow it for relative times.
122064         (relative_time_table): Use tORDINAL for ordinals.
122066 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122068         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
122069         Document that "second" isn't allowed as an ordinal number.
122071 2004-11-16  Jim Meyering  <jim@meyering.net>
122073         * modules/closeout (Depends-on): Add fpending.
122075 2004-11-15  Jim Meyering  <jim@meyering.net>
122077         * lib/closeout.c: Include "__fpending.h" once again.
122078         Include <stdbool.h>.
122079         (close_stdout): Don't fail just because stdout was closed initially,
122080         since some programs don't write to stdout in the normal course of
122081         operation (other than --version and --help), and we don't want this
122082         function to make e.g. `touch file >&-' fail.
122083         But do fail if it was closed and someone has tried to write to it.
122084         E.g., `printf foo >&-' must fail.
122086 2004-11-13  Jim Meyering  <jim@meyering.net>
122088         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
122090 2004-11-12  Simon Josefsson  <jas@extundo.com>
122092         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
122093         small doc fix is still pending.
122095 2004-11-11  Simon Josefsson  <jas@extundo.com>
122097         * modules/strtok_r: New file.
122099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122100         strtok_r.
122102 2004-11-11  Simon Josefsson  <jas@extundo.com>
122104         * m4/strtok_r.m4: New file.
122106         * m4/getopt.m4: Replace opterr.
122108 2004-11-11  Simon Josefsson  <jas@extundo.com>
122110         * lib/strtok_r.h, strtok_r.c: New file.
122112 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122114         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
122115         of replacing opterr, getopt, etc.  This should handle the
122116         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
122118 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122120         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
122121         we can stop lying to compilers about the constness of argv when we
122122         are compiled outside glibc.
122123         (getopt, getopt_long, getopt_long_only): Use it.
122124         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122125         _getopt_internal, getopt): Likewise.
122126         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122127         _getopt_long_only_r): Likewise.
122128         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122129         _getopt_long_r, _getopt_long_only_r): Likewise.
122131         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
122132         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
122133         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
122134         the other external symbols.
122135         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
122136         declaration, since the above renaming now works around collisions.
122138 2004-11-11  Jim Meyering  <jim@meyering.net>
122140         * lib/linebreak.c: Remove trailing blanks.
122141         * lib/alloca_.h: Likewise.
122142         * lib/acosl.c: Likewise.
122143         * lib/euidaccess.c: Likewise.
122144         * lib/allocsa.h: Likewise.
122146 2004-11-10  Simon Josefsson  <jas@extundo.com>
122148         * m4/getaddrinfo.m4: New file.
122150 2004-11-10  Simon Josefsson  <jas@extundo.com>
122152         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
122154 2004-11-10  Simon Josefsson  <jas@extundo.com>
122156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122157         getaddrinfo.
122159         * modules/getaddrinfo: New file.
122161 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122163         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
122165 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122167         * lib/mktime.c (SHR): New macro, which is a portable
122168         substitute for >> that should work even on Crays.
122169         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
122170         Problem reported by Mark D. Baushke in
122171         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
122172         * lib/getdate.y (SHR): Likewise.
122173         (tm_diff): Use it.
122174         * lib/strftime.c (SHR): Likewise.
122175         (tm_diff): Use it.
122176         * lib/quotearg.c (struct quoting_options): Use unsigned int for
122177         quote_these_too, so that right shifts are well defined.  All uses
122178         changed.
122180 2004-11-10  Jim Meyering  <jim@meyering.net>
122182         Ensure that no close failure goes unreported.
122183         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
122184         return early when it seems there's nothing to flush.
122185         Don't include __fpending.h.
122187 2004-11-10  Jim Meyering  <jim@meyering.net>
122189         * modules/closeout (Depends-on): Remove fpending.
122191 2004-11-10  Jim Meyering  <jim@meyering.net>
122193         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
122195 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122197         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
122198         gl_FUNC_STRFTIME.
122199         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
122200         and AC_REQUIRE when possible, to avoid duplicate checks.
122201         Check for <wchar.h>.
122203 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122205         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
122207 2004-11-09  Bruno Haible  <bruno@clisp.org>
122209         * m4/sockpfaf.m4: New file.
122211 2004-11-05  Bruno Haible  <bruno@clisp.org>
122213         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
122214         Reported by Mark D. Baushke <mdb@cvshome.org>.
122216 2004-11-04  Bruno Haible  <bruno@clisp.org>
122218         2004-09-11  Bruno Haible  <bruno@clisp.org>
122219                 * allocsa.valgrind: New file.
122220         2004-02-06  Bruno Haible  <bruno@clisp.org>
122221                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
122222                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
122223                 Reported by Christopher Seip <chris.seip@hp.com>.
122225 2004-11-04  Bruno Haible  <bruno@clisp.org>
122227         * modules/allocsa (Files): Add lib/allocsa.valgrind.
122228         (Makefile.am): Distribute it.
122230 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
122232         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
122233         with errno == ERANGE if the buffer is too small.
122234         Problem reported by Mark D. Baushke.
122236 2004-11-03  Albert Chin  <china@thewrittenword.com>
122237             Paul Eggert  <eggert@cs.ucla.edu>
122239         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
122240         equivalent, substitute $ac_type for equivalent type rather than
122241         blindly using uint32_t *always* which won't work if uint32_t is not
122242         available.  Define _UINT32_T to work around typedef of uint32_t if
122243         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
122244         2.5.1.
122246 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122248         * m4/jm-macros.m4: Sync from coreutils.
122249         (gl_MACROS): Check for mbrlen, for pathchk.
122250         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
122252 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122254         * lib/xreadlink.c (MAXSIZE): New macro.
122255         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
122256         size does not exceed MAXSIZE.  Avoid cast.
122257         As suggested by Mark D. Baushke in
122258         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
122259         if readlink fails with buffer size just under MAXSIZE, try again
122260         with MAXSIZE.
122262 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122264         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
122266 2004-11-02  Derek R. Price  <derek@ximbiot.com>
122267         and  Paul Eggert  <eggert@cs.ucla.edu>
122269         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
122270         (get_date): Overparenthesize to avoid GCC warning.
122272 2004-11-02  Bruno Haible  <bruno@clisp.org>
122274         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
122275         returns void.
122277 2004-11-02  Bruno Haible  <bruno@clisp.org>
122279         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
122280         function returns void.
122282 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
122284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
122285         fflush_unlocked, flockfile, funlockfile, funlockfile,
122286         fputs_unlocked, putc_unlocked.
122288 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
122290         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
122291         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
122292         already declared.
122294 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122296         * modules/getdate (Files): Add doc/getdate.texi.
122297         (Depends-on): Add setenv, xalloc.
122299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122301         * lib/getdate.y: Add support for TZ="foo" within a date string.
122302         Fix some bugs near time_t boundaries.  Reject dates with
122303         out-of-range components, e.g., "Sept 31".
122304         Include <stdlib.h>, "setenv.h", "xalloc.h".
122305         (ISDIGIT_LOCALE): Remove; unused.
122306         Note that the TZ and time functions used here are not reentrant.
122307         (mktime_ok, get_tz): New functions.
122308         (TZBUFSIZE): New constant.
122309         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
122310         This requires that we sometimes generate our own TZ="XXX..." setting.
122312 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122314         * doc/getdate.texi: New file, from coreutils with modifications for
122315         the new TZ parsing.
122317 2004-10-27  Derek R. Price  <derek@ximbiot.com>
122319         * lib/mktime.c (not_equal_tm): Remove redundant check.
122321 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
122323         * modules/regex (lib_SOURCES): Add regex.c.
122324         Reported by James Youngman in
122325         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
122327 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
122329         * lib/getdate.y: Use Bison 1.875 features, and some minor
122330         code cleanups.  This change does not affect semantics.
122331         Don't include <stdlib.h>; no longer needed.
122332         Don't include unlocked-io.h; only the "#if TEST" code uses
122333         stdio, and performance isn't crucial there.
122334         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
122335         Bison 1.875 features as described below.
122336         All uses of "PC." replaced by "pc->".
122337         (YYSTYPE): Add a forward declaration.
122338         (yylex, yyerror): Use full prototypes in forward decls.
122339         Use "%pure-parser" rather than obsolescent "%pure_parser".
122340         Use %parse-param and %lex-param instead of obsolescent
122341         YYPARSE_PARAM and YYLEX_PARAM.
122342         (meridian_table, month_and_day_table, time_units_table,
122343         relative_time_table, time_zone_table, military_table,
122344         lookup_zone, lookup_word, get_date):
122345         Use NULL instead of 0 where appropriate.
122346         (to_hour): Avoid abort (), to avoid a dependency on
122347         stdlib.h.
122348         (yyerror, yylex): Now accepts parser_control * arg.
122349         (main) [TEST]: Use '\0' rather than 0 for char.
122351 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
122353         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
122355 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
122357         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
122358         It's now the caller's responsibility to handle the case where
122359         !HAVE_GETPAGESIZE && !defined getpagesize.
122361         * lib/mktime.c (leapyear): Arg is long int, not int.
122363 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
122365         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
122367 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
122369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
122370         missing.  Problem reported by James Youngman.
122372 2004-10-16  Simon Josefsson  <jas@extundo.com>
122374         * gnulib-tool: Fix comments.  Fix parse problem.
122375         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
122377 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
122379         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
122380         implementation of getopt_long.  Problem reported by Alexander Taler in:
122381         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
122383 2004-10-15  Bruno Haible  <bruno@clisp.org>
122385         * gnulib-tool: Untabify. Initialize supplied_libname.
122386         (func_usage): More homogenous output.
122387         (func_modules_transitive_closure, func_modules_to_filelist,
122388         func_emit_lib_Makefile_am): New functions.
122389         (func_import): New function, extracted from big case statement. Use
122390         func_get_license, func_modules_transitive_closure,
122391         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
122392         opt_lgpl. Don't use test -a, as it's not portable.
122393         (func_create_testdir): Use func_modules_transitive_closure,
122394         func_modules_to_filelist, func_emit_lib_Makefile_am.
122396 2004-10-15  Bruno Haible  <bruno@clisp.org>
122398         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
122400 2004-10-15  Bruno Haible  <bruno@clisp.org>
122402         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
122403         the portions belonging to each module.
122404         Suggested by Derek Robert Price <derek@ximbiot.com>.
122406 2004-10-12  Simon Josefsson  <jas@extundo.com>
122408         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
122409         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
122410         to real functions.
122412 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122414         * modules/vsnprintf: New file.
122416 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122418         * m4/vsnprintf.m4: New file.
122420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122422         * lib/vsnprintf.h: New file.
122423         * lib/vsnprintf.c: New file.
122425 2004-10-11  Bruno Haible  <bruno@clisp.org>
122427         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
122428         vsnprintf.
122430 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
122432         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
122434 2004-10-07  Bruno Haible  <bruno@clisp.org>
122436         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
122437         fits into the provided buffer.
122439 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
122441         * lib/diacrit.c, diacrit.h: Add GPL notice.
122443         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
122444         notice.
122445         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
122446         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
122447         This avoids a potential constant-folding bug.
122449 2004-10-05  Bruno Haible  <bruno@clisp.org>
122451         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
122452         for the declaration of strsep.
122454 2004-10-05  Bruno Haible  <bruno@clisp.org>
122456         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
122458 2004-10-04  Simon Josefsson  <jas@extundo.com>
122460         * modules/memmem: New file.
122461         * tests/test-memmem.c: New file.
122462         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
122464 2004-10-04  Simon Josefsson  <jas@extundo.com>
122466         * m4/memmem.m4: New file.
122468 2004-10-04  Simon Josefsson  <jas@extundo.com>
122470         * lib/memmem.h: New file.
122471         * lib/memmem.c: New file, taken from glibc.
122473 2004-10-04  Simon Josefsson  <jas@extundo.com>
122475         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
122476         '#ifdef USE_UNLOCKED_IO'.
122478 2004-10-04  Simon Josefsson  <jas@extundo.com>
122480         * config/srclist.txt: Add memmem from glibc.
122482 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122484         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
122486         * modules/argmatch, modules/argp, modules/closeout, modules/error,
122487         modules/exclude, modules/getdate, modules/getline,
122488         modules/getndelim2, modules/getpass, modules/getpass-gnu,
122489         modules/getusershell, modules/linebuffer, modules/md5,
122490         modules/mountlist, modules/posixtm, modules/readtokens,
122491         modules/readutmp, modules/regex, modules/sha1,
122492         modules/version-etc, modules/yesno:
122493         Remove dependency on unlocked-io.
122495 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122497         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
122499         * m4/unlocked-io.m4: Add copyright notice.
122500         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
122502 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122504         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
122505         * lib/xmalloc.c (xmemdup): Likewise.
122506         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
122507         XFREE): Remove these long-obsolescent macros.
122508         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
122509         * lib/xstrdup.c: Remove.
122511         * lib/regex.c (re_comp): Cast gettext return value to char *,
122512         Problem reported by Martin Neitzel via Mark D. Baushke.
122514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122516         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
122517         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
122518         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
122519         regex.c, sha1.c, version-etc.c, yesno.c:
122520         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
122521         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
122522         the includer's responsibility.
122524         Sync from coreutils.
122526         * lib/modechange.c (mode_compile): Don't decrement a pointer that
122527         points to the start of a string, as the C Standard says the
122528         resulting behavior is undefined.
122530         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
122531         simple -> simple_backups, numbered_existing ->
122532         numbered_existing_backups, numbered -> numbered_backups
122533         to avoid shadowing problems.  All uses changed.
122534         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
122535         * lib/backupfile.c (check_extension, numbered_backup):
122536         Rename locals to avoid shadowing 'basename'.
122537         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
122538         once.
122540         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
122541         * lib/.cvsignore: Add getopt.h.
122543 2004-10-04  Bruno Haible  <bruno@clisp.org>
122545         * modules/README: New file.
122546         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
122547         not a module.
122549 2004-10-02  Jim Meyering  <jim@meyering.net>
122551         * lib/dirfd.h, getpagesize.h: Add copyright notice.
122553 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122555         * modules/strsep: New file.
122557 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122559         * m4/strsep.m4: New file.
122561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122563         * lib/strsep.h: New file.
122564         * lib/strsep.c: New file.
122566 2004-10-01  Simon Josefsson  <jas@extundo.com>
122568         * lib/snprintf.c (snprintf): Handle size==0.
122570 2004-10-01  Simon Josefsson  <jas@extundo.com>
122571             Bruno Haible  <bruno@clisp.org>
122573         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
122574         (snprintf): Declare 'args'.
122576 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
122578         * lib/snprintf.c: Remove comments as to why each header is needed.
122580 2004-10-01  Bruno Haible  <bruno@clisp.org>
122582         * MODULES.html.sh: Add strsep.
122584 2004-09-30  Simon Josefsson  <jas@extundo.com>
122586         * modules/snprintf: New file.
122588 2004-09-30  Simon Josefsson  <jas@extundo.com>
122590         * m4/snprintf.m4: New file.
122592 2004-09-30  Simon Josefsson  <jas@extundo.com>
122594         * lib/snprintf.h, lib/snprintf.c: New files.
122596 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122598         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
122599         (hol_entry_help): Never translate an empty string.
122600         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
122601         * lib/argp.h (OPTION_NO_TRANS): New option.
122603 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
122605         * modules/argp (Maintainer): Replace Simon Josefsson
122606         by Sergey Poznyakoff.
122608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
122610         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
122611         changes merged back into glibc.
122613 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
122615         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
122617 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
122619         * lib/xvasprintf.c: Include xalloc.h.
122620         (xvasprintf): Use xalloc_die, not xmalloc_die.
122622 2004-09-29  Bruno Haible  <bruno@clisp.org>
122624         * modules/alloca-opt: New file, derived from modules/alloca.
122625         * modules/allocsa: Depend on alloca-opt instead of alloca.
122626         * modules/setenv: Likewise.
122627         * modules/vasnprintf: Likewise.
122628         * MODULES.html.sh: Add alloca-opt.
122630 2004-09-28  Simon Josefsson  <jas@extundo.com>
122632         * gnulib-tool: New parameter --lgpl, to asseert that modules are
122633         LGPL, and to replace license template from GPL to LGPL.
122635 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
122637         * modules/dummy: Change license to LGPL.
122639 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
122641         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
122643 2004-09-24  Simon Josefsson  <jas@extundo.com>
122645         * modules/minmax (License): Change from GPL to LGPL.
122647 2004-09-23  Simon Josefsson  <jas@extundo.com>
122649         * gnulib-tool (--import): Typo.
122651 2004-09-23  Simon Josefsson  <jas@extundo.com>
122653         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
122655 2004-09-22  Bruno Haible  <bruno@clisp.org>
122657         * modules/*: Add 'License' field.
122658         * gnulib-tool: Accept --extract-license option.
122659         (func_get_license): New function.
122661 2004-09-21  Bruno Haible  <bruno@clisp.org>
122663         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
122664         Reported by Simon Josefsson.
122666 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
122668         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
122669         gl_AC_TYPE_LONG_LONG.
122671 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
122673         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
122675 2004-09-18  Simon Josefsson  <jas@extundo.com>
122676         and  Paul Eggert  <eggert@cs.ucla.edu>
122678         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
122679         calls with autoreconf.  Define GL_LIB.
122681 2004-09-14  Karl Berry  <karl@gnu.org>
122683         * config/srclist.txt: unsync setenv.c, sigh.
122685 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
122687         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
122688         Problem reported by Bruno Haible in:
122689         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
122691 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
122693         * config/srclist.txt: Comment out argp-pvh.c.
122695 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
122697         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
122698         in case some system header has #define'd it.  Problem reported by
122699         Soeren D. Schulze in
122700         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
122702 2004-09-09  Karl Berry  <karl@gnu.org>
122704         * regex.[ch]: delete from the root.  These were supposed to be
122705                 synced with emacs cvs, but this has not happened for about
122706                 a year, and anyway nothing else uses emacs regex.[ch].
122707                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
122708                 lib/regex[.ch] is untouched.
122710 2004-09-09  Bruno Haible  <bruno@clisp.org>
122712         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
122714 2004-09-09  Bruno Haible  <bruno@clisp.org>
122716         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
122717         modifications.
122718         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
122720 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
122722         * modules/xvasprintf: New file.
122723         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
122725 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
122727         * lib/xvasprintf.h: New file.
122728         * lib/xvasprintf.c: New file.
122729         * lib/xasprintf.c: New file.
122731 2004-09-08  Bruno Haible  <bruno@clisp.org>
122733         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
122735 2004-09-08  Bruno Haible  <bruno@clisp.org>
122737         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
122738         length is > INT_MAX.
122739         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
122740         more.
122742 2004-09-08  Bruno Haible  <bruno@clisp.org>
122744         * lib/stdint_.h: New file, taken from GNU clisp.
122746 2004-09-08  Bruno Haible  <bruno@clisp.org>
122747             Oskar Liljeblad  <oskar@osk.mine.nu>
122749         * modules/stdint: New file.
122750         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
122752 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
122754         Import from coreutils.
122755         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
122756         strings on unbounded length.  alloca's performance benefits aren't
122757         that important here.
122758         (V_STRDUP): Remove.
122759         (parse_with_separator): New function, with most of the internals
122760         of the old parse_user_spec.  Allow user to omit both user and group,
122761         for compatibility with FreeBSD.
122762         Clone only the user name, not the entire spec.
122763         Do not set *uid, *gid unless entirely successful.
122764         Avoid memory leak in some failing cases.
122765         Fix regression for USER.GROUP reported by Dmitry V. Levin in
122766         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
122767         (parse_user_spec): Rewrite to use parse_with_separator.
122769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
122771         * modules/userspec: Don't depend on alloca.
122773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
122775         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
122777 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
122779         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
122780         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
122781         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
122783 2004-08-16  Simon Josefsson  <jas@extundo.com>
122785         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
122786         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
122787         Add --dry-run for --import.
122788         Let user provided command line parameters override configure.ac
122789         settings.
122791 2004-08-12  Simon Josefsson  <jas@extundo.com>
122793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
122794         as discussed with Paul Eggert in threads rooted at
122795         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
122796         and
122797         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
122798         Before, the test was empty, and relied on ELIDE_CODE in source
122799         code.)
122800         (gl_PREREQ_GETOPT): New macro.
122801         (gl_GETOPT): Use them.
122803 2004-08-12  Simon Josefsson  <jas@extundo.com>
122805         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
122806         * lib/getopt_.h: Renamed from getopt.h.
122808 2004-08-12  Simon Josefsson  <jas@extundo.com>
122810         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
122811         Change default library name from libfoo to libgnu.
122812         Now, if you have a configure.ac that says:
122813                 gl_SOURCE_BASE(gl)
122814                 gl_M4_BASE(gl/m4)
122815                 gl_MODULES(error getopt etcetera)
122816                 gl_INIT
122817         you can import all you need by running:
122818                 ../gnulib/gnulib-tool --import
122820         * modules/getopt (Files): Rename getopt.h to getopt_.h.
122821         (Makefile.am): Rewrite, use logic from argz.
122822         (Include): Use <getopt.h> instead of "getopt.h".
122824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122826         * modules/argp (Files): Add m4/unlocked-io.m4.
122827         (Depends-on): Add extensions.
122829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122831         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
122832         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
122833         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
122834         Check for program_invocation_name, program_invocation_short_name,
122835         flockfile, funlockfile, features.h, _getopt_long_only_r.
122837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122839         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
122840         its complicated substitute.
122841         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
122842         and program_invocation_name.
122843         (__argp_basename) [!_LIBC]: Remove; the only use was
122844         replaced by its body.
122845         (__argp_short_program_name): Change condition from
122846         !defined __argp_short_program_name to
122847         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
122848         to match argp-namefrob.h.
122849         (__argp_failure): Don't assume strerror_r returns char *.
122850         * lib/argp-parse.c (N_): Define unconditionally.
122851         (argp_default_options): Fill out initializers with 0 to avoid
122852         gcc warnings.
122854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122856         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
122857         getopt1.c.
122859 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
122861         Merge from coreutils.
122863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
122865         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
122866         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
122868 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
122870         Merge from coreutils.
122872         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
122873         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
122874         for Reliant Unix 5.43.
122876         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
122877         (union fooround): Use uintmax_t, not long int.
122878         The rest is a merge from libc:
122879         [defined _LIBC]: Include <shlib-compat.h>.
122880         (_obstack) [defined _LIBC]: Remove after 2.3.4.
122882         * lib/settime.c (settime): Recode to avoid warning with
122883         Sun Forte C 6U2.
122885         * lib/strverscmp.c: Convert to UTF-8.
122887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
122889         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
122890         m4/uintmax_t.m4.
122892 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
122894         * modules/xalloc-die: New file.
122895         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
122897         * modules/md5 (Files): Add m4/uint32_t.m4.
122898         * modules/sha1: Renamed from modules/sha.
122899         (Files):
122900         Rename lib/sha.h to lib/sha1.h.
122901         Rename lib/sha.c to lib/sha1.c.
122902         Rename m4/sha.m4 to m4/sha1.m4.
122903         (lib_SOURCES): Likewise.
122904         (configure.ac): Rename gl_SHA to gl_SHA1.
122905         (Include): sha.h -> sha1.h.
122907 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
122909         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
122910         * m4/sha1.m4: Renamed from sha.m4.
122911         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
122913 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
122915         * lib/obstack.h (obstack_empty_p):
122916         Don't assume that chunk->contents is suitably aligned.
122917         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
122918         Likewise. Problem reported by Benno in
122919         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
122921         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
122922         readable.  This could be improved further but it'd take some work.
122924 2004-08-08  Simon Josefsson  <jas@extundo.com>
122926         * modules/xgethostname (Depends-on): Remove exit and error (not
122927         used).
122929         * modules/getpass-gnu: Add getpass.h.
122930         (Depends-on): Add stdbool.
122931         * modules/getpass: Add getpass.h.
122933 2004-08-08  Simon Josefsson  <jas@extundo.com>
122935         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
122936         Check getpass declaration.
122938 2004-08-08  Simon Josefsson  <jas@extundo.com>
122940         * lib/xgethostname.c: Don't include error.h (not used).
122942         * lib/getpass.h: Add.
122943         * lib/getpass.c: Include getpass.h first.
122945 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
122947         * lib/xalloc-die.c: New file.
122948         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
122949         All uses removed.
122950         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
122951         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
122952         xalloc-die.c.
122953         (_, N_, xalloc_die): Move to xalloc-die.c.
122954         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
122955         so that we needn't mess with xalloc_msg_memory_exhausted.
122957         * lib/sha1.h: Renamed from sha.h.
122958         (SHA1_H): Renamed from _SHA_H.
122959         (sha1_ctx): Renamed from sha_ctx.
122960         (sha1_init_ctx): Renamed from sha_init_ctx.
122961         (sha1_process_block): Renamed from sha_process_block.
122962         (sha1_process_bytes): Renamed from sha_process_bytes.
122963         (sha1_finish_ctx): Renamed from sha_finish_ctx.
122964         (sha1_read_ctx): Renamed from sha_read_ctx.
122965         (sha1_stream): Renamed from sha_stream.
122966         (sha1_buffer): Renamed from sha_buffer.
122967         * lib/sha1.c: Likewise; renamed from sha.c.
122968         Do not include <sys/types.h>.
122969         Include <stddef.h> rather than <stdlib.h>.
122971 2004-08-08  Bruno Haible  <bruno@clisp.org>
122973         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
122974         FILESYSTEM_PREFIX_LEN.
122975         * lib/progreloc.c: Likewise.
122976         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
122978 2004-08-06  Simon Josefsson  <jas@extundo.com>
122980         * modules/progname (Depends-on): Don't depend on stdbool.
122982 2004-08-06  Simon Josefsson  <jas@extundo.com>
122984         * modules/getsubopt: New file.
122985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122986         getsubopt.
122988 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
122990         More merge from coreutils.
122992         * m4/utimens.m4, m4/utimecmp.m4: New files.
122993         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
122994         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
122995         prereq.m4, sha.m4: Import changes from coreutils.
122997 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
122999         More merge from coreutils.
123000         * modules/raise, modules/readtokens0, modules/utimens:
123001         * modules/utimecmp, module/xnanosleep: New files.
123002         * modules/strftime: Add lib/strftime.h.
123003         Change include from <time.h> to "strftime.h".
123004         * modules/yesno: Add lib/yesno.h.
123005         * modules/backupfile: Remove lib/addext.c.
123006         * modules/euidaccess: Add stat-macros.h.
123007         * modules/canonicalize, modules/euidaccess,
123008         modules/filemode, modules/lchown, modules/makepath,
123009         modules/rmdir, modules/stat: Likewise.
123011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123013         Merge from tar.
123014         * lib/argp-help.c (make_hol, hol_append): Don't assume that
123015         SIZE_MAX is a valid preprocessor constant.
123016         (__argp_basename): Change from "#ifndef _LIBC"
123017         to "#ifndef __argp_short_program_name", so that
123018         we don't compile these functions for tar.
123020         More merges from coreutils.
123021         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
123022         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
123023         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
123024         * lib/addext.c: Remove; no longer needed.
123025         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
123026         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
123027         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
123028         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
123029         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
123030         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
123031         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
123032         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
123033         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
123034         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123035         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
123036         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
123037         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
123038         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
123039         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
123040         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
123041         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
123042         Import changes from coreutils.
123044 2004-08-05  Simon Josefsson  <jas@extundo.com>
123046         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
123048 2004-08-05  Simon Josefsson  <jas@extundo.com>
123050         * m4/getsubopt.m4: New file.
123052 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123054         Merge from coreutils.
123056         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
123057         * m4/getcwd-path-max.m4: New files.
123059         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
123060         FILESYSTEM_PREFIX_LEN ->
123061         FILE_SYSTEM_PREFIX_LEN.
123062         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
123063         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
123064         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
123065         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
123067         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
123068         prerequisite modules now handle the DOS stuff.
123069         Don't check for unistd.h.
123071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123073         Merge from coreutils.
123075         * lib/.gdb-history: Remove; this doesn't belong here.
123077         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
123078         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
123079         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
123080         * lib/getcwd.c: New files.
123082         * lib/dirname.h: Include <stdbool.h>.
123083         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
123084         for consistency with POSIX terminology.  All uses changed.
123085         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
123086         (strip_trailing_slashes): Use bool for booleans.
123087         * lib/stripslash.c (strip_trailing_slashes): Likewise.
123089         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
123090         sometimes returns a positive errno value even when it succeeds.
123091         (print_errno_message) [!LIBC]: Fall back on strerror if
123092         __strerror_r fails.
123094         * lib/path-concat.c (mempcpy): Don't define if a system header defines
123095         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
123096         (longest_relative_suffix): New function.
123097         (path_concat): Use it.  Assume first argument is not NULL.
123098         Port to DOS.  Omit redundant separators.
123099         Report an error instead of returning NULL.
123100         Use mempcpy instead of memcpy.
123101         (xpath_concat): Remove: not declared or used.
123103         * lib/same.h: Include <stdbool.h>
123104         (same_name): Return bool, not int.
123105         * lib/same.c (same_name): Likewise.
123106         (errno): Don't declare; we assume C89 or better now.
123108         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
123109         if not already defined.
123111         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
123112         * lib/dup-safer.c (errno): Likewise.
123114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123116         Merge from coreutils.
123117         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
123118         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
123119         * modules/path-concat: Don't depend on strdup.
123121 2004-08-03  Simon Josefsson  <jas@extundo.com>
123123         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
123124         * lib/progname.h: Don't include stdbool.h.
123126 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123128         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
123129         * MODULES.html.sh (func_all_modules): Remove fatal.
123131 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123133         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
123135 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123137         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
123138         working.
123140 2004-08-02  Simon Josefsson  <jas@extundo.com>
123142         * lib/getsubopt.h: New file, with comments from Bruno Haible.
123143         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
123144         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
123146 2004-08-01  Simon Josefsson  <jas@extundo.com>
123148         * lib/xgetdomainname.c: Include stdlib.h, for free().
123150 2004-07-19  Bruno Haible  <bruno@clisp.org>
123152         * MODULES.html.sh (func_all_modules): Add dummy.
123154 2004-07-16  Simon Josefsson  <jas@extundo.com>
123156         * modules/dummy: New file.
123158 2004-07-16  Simon Josefsson  <jas@extundo.com>
123160         * lib/dummy.c: New file.
123162 2004-07-16  Bruno Haible  <bruno@clisp.org>
123164         * lib/backupfile.h: Add extern "C" for C++.
123165         * lib/closeout.h: Likewise.
123166         * lib/copy-file.h: Likewise.
123167         * lib/findprog.h: Likewise.
123168         * lib/full-write.h: Likewise.
123169         * lib/pathname.h: Likewise.
123170         * lib/progname.h: Likewise.
123171         * lib/stpcpy.h: Likewise.
123172         * lib/stpncpy.h: Likewise.
123173         * lib/strcase.h: Likewise.
123174         * lib/strstr.h: Likewise.
123175         * lib/xalloc.h: Likewise.
123177         * lib/mbswidth.h: Add extern "C" for C++.
123178         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
123180 2004-07-13  Robert Millan  <robertmh@gnu.org>
123182         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
123184 2004-07-09  Simon Josefsson  <jas@extundo.com>
123186         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
123187         failed without this.)
123189 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123191         * modules/chown (Files): Add lib/fchown-stub.c, since
123192         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
123194 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123196         * lib/fchown-stub.c: New file.
123198 2004-06-24  Jim Meyering  <jim@meyering.net>
123200         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
123202 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123204         * modules/argz: Omit "#include".
123206         * MODULES.html.sh (func_all_modules): Add calloc, to match
123207         2004-06-01 addition of calloc module.
123209 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123211         * m4/argz.m4: New file, which is autoupdated from libtool.
123213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123215         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
123216         libtool.
123218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123220         * config/srclist-update: Don't insist on "USA." before the
123221         close-comment, as libtool omits the period and puts the */ on a
123222         separate line.
123223         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
123224         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
123226 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
123228         * modules/argz: New file.
123229         * MODULES.html.sh (func_all_modules): Add argz.
123231 2004-06-12  Jim Meyering  <jim@meyering.net>
123232         and  Paul Eggert  <eggert@cs.ucla.edu>
123234         * modules/hash (Files): Add lib/xalloc.h.
123235         * modules/pipe (Depends-on): Add wait-process.
123236         * modules/stat (Depends-on): Add xalloc.
123237         * modules/userspec (Files): Add lib/userspec.h.
123238         * modules/xstrto
123240         Upgrade from gettext-0.13.
123241         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
123242         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
123243         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
123245 2004-06-10  Jim Meyering  <jim@meyering.net>
123247         * lib/calloc.c: New file.
123249 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
123251         * lib/getdate.y (yylex): Allow space between sign and number.
123252         Problem reported by Dan Jacobson.
123254 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123256         Merge from coreutils CVS.
123258         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
123259         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
123260         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
123261         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
123262         xstrtol.m4: Fix copyright date and/or serial number.
123264         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
123265         See if we need an fchown replacement.
123266         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
123267         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
123268         and use the replacement function if we detect either defect.
123270         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
123271         gl_UTIMECMP.
123273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123274         and  Jim Meyering  <jim@meyering.net>
123276         Merge from coreutils CVS.
123278         * lib/stat-macros.h: New file, with contents from file-type.h
123279         and coreutils' system.h.
123280         * lib/file-type.c: Include "stat-macros.h".
123281         * lib/file-type.h (file_type): Move all macro definitions to new file,
123282         stat-macros.h.
123284         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
123285         Wrap old code with this conditional.
123286         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
123287         function that does not dereference symlinks.
123288         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
123290         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
123291         dependency problems.
123292         (xreadlink): Accept new arg SIZE, for efficiency.
123293         All decls and uses changed.
123294         * lib/xreadlink.h: Include <stddef.h>, for size_t.
123296         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
123297         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
123299         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
123300         sysexits.h.
123302 2004-06-01  Jim Meyering  <jim@meyering.net>
123304         * m4/calloc.m4: New file.
123306 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
123308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
123309         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
123310         Also, fix a typo in a diagnostic.
123312 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
123314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
123315         or AC_FUNC_REALLOC.
123317 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
123319         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
123320         macros to be defined.
123321         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
123322         the allocator returns NULL because the requested size is zero.
123324 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
123326         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
123327         var.  Add comment explaining why libc still defines it.  This
123328         merges the following patch from glibc:
123329         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
123331 2004-05-20  Andreas Schwab  <schwab@suse.de>
123333         * m4/free.m4: Replace free if it not known to work, not the other
123334         way round.
123336 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
123338         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
123339         present in glibc since revision 1.1 of this file.
123340         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
123341         obstack_alignment_mask, obstack_alloc, obstack_base,
123342         obstack_blank, obstack_blank_fast, obstack_chunk_size,
123343         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
123344         obstack_grow0, obstack_init, obstack_int_grow,
123345         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
123346         obstack_next_free, obstack_object_size, obstack_ptr_grow,
123347         obstack_ptr_grow_fast, obstack_room): Remove declarations of
123348         nonexistent functions.
123350 2004-05-18  Karl Berry  <karl@gnu.org>
123352         * config/srclist.txt: break link for vasnprintf.c.
123354 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
123356         Port obstack to the AS/400, where pointers are 16 bytes wide and
123357         you cannot cast an integer to a valid pointer.  This patch is
123358         currently waiting to be integrated into glibc; see
123359         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
123361         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
123362         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
123363         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
123364         (struct obstack): temp member is now a union of a pointer and
123365         an integer, instead of an integer.  All integer uses changed.
123366         This does not affect the physical layout of struct obstack,
123367         except on hosts (like the AS/400) where the size or alignment of
123368         void * is greater than that of ptrdiff_t.
123369         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
123370         __STDC__)]: Store temporary in pointer member of union, not
123371         integer member.
123372         * lib/obstack.c: Include <stddef.h>, for offsetof.
123373         (struct fooalign): Remove; it doesn't need a name.
123374         (union fooround): Change double to long double, and add void *.
123375         (DEFAULT_ALIGNMENT): Use offsetof to compute.
123376         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
123377         not a macro.  Hence the values are always int; so remove all
123378         casts-to-int in uses.
123380 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
123382         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
123383         we can get this patch merged into glibc.
123385 2004-05-17  Derek R. Price  <derek@ximbiot.com>
123386             Paul Eggert  <eggert@cs.ucla.edu>
123388         * m4/argp: Depend on alloca.
123390 2004-05-17  Derek R. Price  <derek@ximbiot.com>
123391             Paul Eggert  <eggert@cs.ucla.edu>
123393         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
123394         freecoding.
123396 2004-05-17  Bruno Haible  <bruno@clisp.org>
123398         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
123399         precision that consists of a '.' followed by an empty digit string.
123400         Patch by Tor Lillqvist <tml@iki.fi>.
123402 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
123404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
123405         for backward compatibility with older code.  We need our own
123406         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
123407         it under some other name, and our alloca.h will define it.
123409 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
123410             Derek Price  <derek@ximbiot.com>
123412         * lib/alloca.c: Include <alloca.h>, to get our interface.
123413         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
123414         include <alloca.h> first.  Use C89 prototype for alloca; this
123415         requires including <stddef.h> for size_t.  Use extern "C" if C++.
123416         Use #elif for simplicity, since we can assume C89 now.
123417         Don't try to source the system alloca.h since it will not be found
123418         and to prevent recursively including its replacement.
123419         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
123420         * lib/regex.c: Likewise.
123422 2004-05-16  Derek Price  <derek@ximbiot.com>
123423             Paul Eggert  <eggert@cs.ucla.edu>
123425         getline cleanup.  This changes the getndelim2 API: both order of
123426         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
123427         no delimiter).
123429         * lib/getline.c: Don't include stddef.h or stdio.h, since our
123430         interface does that.
123431         (getline): Always use getdelim, so that we don't have two
123432         copies of this code.
123433         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
123434         if available.
123435         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
123436         (GETNDELIM2_MAXIMUM): New macro.
123437         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
123438         instead of the old practice of delim2==0.  All callers changed.
123439         Return -1 on overflow, instead of returning junk.
123440         Do not set *linesize unless allocation succeeds.
123441         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
123442         that we include sys/types.h.
123443         * lib/getnline.h: Likewise.
123444         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
123445         (getndelim2): Reorder arguments.
123446         * lib/getnline.c (getnline, getndelim):
123447         Don't discard the NMAX argument.
123448         (getnline): Invoke getndelim, to avoid code duplication.
123449         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
123450         of (size_t) -1 by callers of the getnline family.
123452 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123454         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
123455         Check for gettimeofday.
123456         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
123457         Check for settimeofday, stime.
123459 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123461         * lib/nanosleep.c (suspended): Change its type from int to
123462         sig_atomic_t volatile.
123463         (first_call): Make it private to rpl_nanosleep, and have it
123464         be zero initially as that's a bit faster.
123465         (my_usleep): Round up fractional times instead of truncating them,
123466         as this is the usual meaning for 'sleep'.
123468         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
123469         doesn't work.
123470         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
123471         (ENOSYS): Define if not defined.
123472         (settime): Fall back on stime if it exists and settimeofday fails.
123473         But don't bother with fallbacks if a method fails with errno == EPERM.
123475 2004-05-11  Jim Meyering  <jim@meyering.net>
123477         Prior to this change, the save_cwd caller required read access to the
123478         current directory on most systems (ones with the fchdir function).
123480         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
123481         fails, try write-only, and finally, resort to using xgetcwd.
123483 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
123485         * lib/obstack.c, obstack.h: Import changes from libc.
123487 2004-04-28  Bruno Haible  <bruno@clisp.org>
123489         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
123490         also implicitly appends .exe to executables.
123491         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
123492         accepts Windows pathnames.
123493         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
123494         Treat Cygwin like Windows, since it now accepts Windows pathnames.
123495         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
123496         Treat Cygwin like Windows, since it now accepts Windows pathnames.
123497         Reported by Derek Robert Price <derek@ximbiot.com>.
123499 2004-04-21  Karl Berry  <karl@gnu.org>
123501         * config/srclist.txt (localcharset.c): break sync.
123503 2004-04-20  Paul Eggert  <eggert@twinsun.com>
123505         * m4/host-os.m4: Add a copyright notice.
123507 2004-04-20  Jim Meyering  <jim@meyering.net>
123509         Change UTILS_ to gl_ in AC_DEFINE'd names.
123510         Change utils_- and jm_-prefixed variables, too.
123511         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
123512         UTILS_FUNC_MKDIR_TRAILING_SLASH.
123513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
123515         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
123516         Don't emit trailing blanks.
123517         Also rename jm_-prefixed variables to have gl_ prefix.
123519         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
123520         Also rename jm_-prefixed variables to have gl_ prefix.
123522         * m4/jm-macros.m4: Reflect the renamings.
123523         * m4/prereq.m4: Likewise.
123525 2004-04-20  Jim Meyering  <jim@meyering.net>
123527         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
123528         memory.
123530 2004-04-20  Jim Meyering  <jim@meyering.net>
123531             Bruno Haible  <bruno@clisp.org>
123533         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
123534         memory when realloc fails.
123536 2004-04-19  Jim Meyering  <jim@meyering.net>
123538         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
123539         now that readutmp.c may call `free (0)'.
123541 2004-04-19  Bruno Haible  <bruno@clisp.org>
123543         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
123544         * m4/inttypes_h.m4: Likewise.
123545         * m4/stdint_h.m4: Likewise.
123546         * m4/intmax_t.m4: Likewise.
123547         * m4/uintmax_t.m4: Likewise.
123549 2004-04-18  Jim Meyering  <jim@meyering.net>
123551         * m4/prereq.m4: Don't forbid jm_ prefix.
123553         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
123554         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
123555         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
123556         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
123557         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
123558         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
123559         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
123560         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
123561         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
123562         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
123563         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
123564         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
123565         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
123566         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
123567         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
123568         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
123569         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
123570         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
123571         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
123573 2004-04-18  Jim Meyering  <jim@meyering.net>
123575         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
123576         failure, don't leak memory and do call END_UTMP_ENT.
123578 2004-04-16  Jim Meyering  <jim@meyering.net>
123580         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
123581         coreutils' stat program.
123582         (gl_PREREQ): Don't require jm_PREREQ_STAT.
123584 2004-04-11  Paul Eggert  <eggert@twinsun.com>
123586         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
123587         C89.
123588         (CHAR_BIT): Remove, since we assume C89.
123589         Include <stdint.h> if available, as per current Autoconf CVS advice.
123591 2004-03-31  Jim Meyering  <jim@meyering.net>
123593         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
123594         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
123595         * m4/xalloc.m4: Likewise.
123597 2004-03-30  Paul Eggert  <eggert@twinsun.com>
123599         Merge from coreutils.
123601         * m4/inttostr.m4: New file.
123602         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
123603         Require AM_STDBOOL_H and gl_TIMESPEC instead.
123604         Require gl_CLOCK_TIME.
123605         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
123607 2004-03-30  Paul Eggert  <eggert@twinsun.com>
123609         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
123610         not bool, to be more consistent with Unix conventions.
123611         Suggested by Bruno Haible.
123613         Merge from coreutils.
123615         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
123616         * lib/umaxtostr.c: New files.
123618         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
123619         the usual <time.h> dance.
123620         (get_date): Change signature to support fractional time stamps.
123621         All callers changed.
123622         * lib/getdate.y: Include "getdate.h" first, as we can now
123623         assume C89 and don't need to worry about 'const'.
123624         Similarly, include "unlocked-io.h" near start, not in middle.
123625         Include <limits.h>.
123626         (textint.value): Use long int rather than int.
123627         (textint.digits): Use size_t rather than int.
123628         (BILLION, LOG10_BILLION): New constants.
123629         (parser_control): New member rel_ns.  Members day_ordinal,
123630         time_zone, month, day, hour, minutes, rel_year, rel_month,
123631         rel_day, rel_hour, rel_minutes, rel_seconds
123632         are now long int, not int.  Member seconds is now struct timespec,
123633         not int.  New member timespec_seen.  Members dates_seen, days_seen,
123634         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
123635         not int.
123636         (%union.intval): Now long int, not int.
123637         New member timespec.
123638         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
123639         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
123640         (spec): Now is a timespec or an item list.
123641         (timespec, items): New nonterminals.
123642         (time, rel, relunit, number, get_date):
123643         Add support for fractional seconds.
123644         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
123645         (gmtime, localtime, mktime): Remove decls; not needed with C89.
123646         (to_hour): First arg is now long int, not int.
123647         (to_year): Returns long int, not int.
123648         Don't treat year -70 like 70.
123649         (tm_diff): Returns long int, not int.
123650         (lookup_word): Use bool instead of int when appropriate.
123651         (yylex): Use size_t for count, not int.
123652         Detect overflow when parsing large integer constants.
123653         Add support for fractions.
123654         (get_date): Make pointers 'const' if possible.
123655         Use more-portable code to detect integer overflow.
123656         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
123657         Don't use ctime; it's not reliable if the year has >4 digits.
123659         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
123660         This is for compatibility with BSD.
123662         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
123663         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
123664         From coreutils' system.h.
123666         * lib/userspec.c: Don't include "posixver.h".
123667         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
123668         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
123669         compatible extension.  Simplify code by removing a boolean int
123670         that was always nonzero if a string was nonnull.
123672 2004-03-30  Jim Meyering  <jim@meyering.net>
123674         Merge from coreutils.
123676         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
123677         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
123678         on some systems one must include <grp.h> before it.
123679         Reported by Christian Krackowizer.
123681 2004-03-30  Jim Meyering  <jim@meyering.net>
123683         Merge from coreutils.
123685         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
123687         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
123688         an empty input stream.
123690         * lib/readtokens.c: Include <stdbool.h>.
123691         (readtoken): Use `size_t' rather than int/long.
123692         All callers adjusted.
123693         Use `bool' rather than `int' where appropriate.
123694         Use memset rather than an explicit loop.
123695         Use x2nrealloc rather than xrealloc.
123696         Allow the use of `\0' as a delimiter.
123697         (readtokens): Likewise.
123698         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
123700 2004-03-30  Jim Meyering  <jim@meyering.net>
123702         * m4/realloc.m4: Remove file, since now it does no more than
123703         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
123704         the `configure.ac' section of module/realloc.
123705         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
123707 2004-03-30  Bruno Haible  <bruno@clisp.org>
123709         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
123710         nonnull.
123712 2004-03-29  Paul Eggert  <eggert@twinsun.com>
123714         Merge changes to getloadavg.c from coreutils and Emacs.
123716         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
123717         Define to an expression, not to the empty string.
123718         Include cloexec.h and xalloc.h.
123719         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
123720         Use set_cloexec_flag rather than rolling our own.
123721         * lib/cloexec.c, lib/cloexec.h: New files.
123723 2004-03-29  Paul Eggert  <eggert@twinsun.com>
123725         * m4/cloexec.m4: New file.
123727 2004-03-18  Paul Eggert  <eggert@twinsun.com>
123729         * lib/getopt.h: Sync with libc CVS.
123731 2004-03-18  Paul Eggert  <eggert@twinsun.com>
123732             Bruno Haible  <bruno@clisp.org>
123734         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
123735         mbswidth.
123737 2004-03-18  Paul Eggert  <eggert@twinsun.com>
123738             Bruno Haible  <bruno@clisp.org>
123740         * lib/mbswidth.h: Include <wchar.h> only if
123741         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
123742         <wchar.h>.
123743         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
123745 2004-03-09  Paul Eggert  <eggert@twinsun.com>
123747         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
123748         Sync with libc CVS.
123749         * lib/getopt_int.h: New file, also synced from libc.
123751 2004-03-09  Paul Eggert  <eggert@twinsun.com>
123753         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
123754         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
123755         Bring back getopt.c, getopt.h, getopt1.c.
123757 2004-03-07  Paul Eggert  <eggert@twinsun.com>
123759         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
123760         All uses changed.  Check for sa_sigaction member; this fixes
123761         a bug first reported by Jason Andrade in
123762         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
123764 2004-03-07  Paul Eggert  <eggert@twinsun.com>
123766         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
123767         '#if' expressions.  Unlike the code it replaces, it does not
123768         depend on (defined _SC_PAGESIZE).  However, it does depend on
123769         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
123770         first reported by Jason Andrade in
123771         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
123773 2004-02-25  Simon Josefsson  <jas@extundo.com>
123775         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
123777 2004-02-25  Simon Josefsson  <jas@extundo.com>
123779         * lib/strdup.h: New file.
123780         * lib/strdup.c: Include it.
123781         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
123782         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
123784 2004-02-23  Karl Berry  <karl@gnu.org>
123786         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
123787         (from fencepost.gnu.org:/gd/gnuorg).
123789 2004-02-23  Karl Berry  <karl@gnu.org>
123791         * config/srclistvars.sh (GNUORG) [karl]: redefine.
123792         * config/srclist.txt: add maintain/standards documents.
123794 2004-02-18  Bruno Haible  <bruno@clisp.org>
123796         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
123797         Reported by Derek Robert Price <derek@ximbiot.com>.
123799 2004-02-16  Karl Berry  <karl@gnu.org>
123801         * config/mkinstalldirs, install-sh: update from automake.
123803 2004-02-06  Karl Berry  <karl@gnu.org>
123805         * m4/po.m4: update from gettext 0.14.1.
123807 2004-02-06  Karl Berry  <karl@gnu.org>
123809         * lib/config.charset: update from gettext 0.14.1.
123811 2004-02-05  Paul Eggert  <eggert@twinsun.com>
123813         Add comments and code, prompted by suggestions from Bruno Haible
123814         for sh-quote.
123815         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
123816         describing the enum quoting_style values.
123817         * lib/quotearg.c (quotearg_alloc): New function.
123818         (quotearg_buffer_restyled): Treat lone { and } as special.
123819         Treat = as special.  Work around bug with older shells
123820         that "see" a '\' that is really the 2nd byte of a multibyte char.
123821         Quote empty string with shell_quoting_style.
123823 2004-02-03  Bruno Haible  <bruno@clisp.org>
123825         * m4/pipe.m4: New file, from GNU gettext.
123827 2004-02-03  Bruno Haible  <bruno@clisp.org>
123829         * lib/pipe.h: New file, from GNU gettext.
123830         * lib/pipe.c: New file, from GNU gettext.
123832 2004-01-27  Bruno Haible  <bruno@clisp.org>
123834         * m4/execute.m4: New file, from GNU gettext.
123836 2004-01-27  Bruno Haible  <bruno@clisp.org>
123838         * lib/execute.h: New file, from GNU gettext.
123839         * lib/execute.c: New file, from GNU gettext.
123840         * lib/w32spawn.h: New file, from GNU gettext.
123842 2004-01-24  Paul Eggert  <eggert@twinsun.com>
123844         Merge from diffutils.
123846         * lib/file-type.c (file_type): Add typed memory objects.
123847         * lib/file-type.h (S_TYPEISTMO): New macro.
123849         * lib/c-stack.h (c_stack_action): Remove argv argument.
123850         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
123851         (die): Don't calculate message unless segv_action returns.
123852         (get_stack_location, min_address_from_argv, max_address_from_argv,
123853         volatile stack_base, volatile_stack_size): Remove.
123854         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
123855         that every segmentation violation is a stack overflow.  (Ouch!)
123856         See Debian bug 136249 (still outstanding) for more info about why
123857         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
123859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
123861         Exit-status fix from coreutils.
123863         Use exit_failure consistently in place of EXIT_FAILURE,
123864         so that program exit statuses are consistent on failure.
123866         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
123867         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
123868         * lib/argmatch.h: Comment fix to match the above.
123869         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
123870         Now a macro referring to exit_failure, instead of a separate
123871         variable.  Include "exitfail.h" to get it.
123872         * lib/xstrtol.h: Include "exitfail.h".
123873         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
123875         * lib/long-options.c (parse_long_options): Use prototype
123876         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
123877         for clarity.
123879 2004-01-21  Jim Meyering  <jim@meyering.net>
123881         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
123882         so as not to conflict with a different-sized __mktime_internal
123883         function in GNU libc.
123884         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
123885         Problem building statically-linked `ls' reported by Michael Brunnbauer.
123887 2004-01-20  Karl Berry  <karl@gnu.org>
123889         * config/config.guess: update from config.
123891         * config/srclistvars.sh: GNUWWWLICENSES for karl.
123893 2004-01-20  Bruno Haible  <bruno@clisp.org>
123895         Safer stack allocation.
123896         * lib/setenv.c: Include allocsa.h.
123897         (alloca): Remove fallback definition.
123898         (freea): Remove macro.
123899         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
123900         instead of freea.
123902 2004-01-20  Bruno Haible  <bruno@clisp.org>
123904         * m4/eealloc.m4: New file, from GNU gettext.
123906 2004-01-20  Bruno Haible  <bruno@clisp.org>
123908         * m4/allocsa.m4: New file, from GNU gettext.
123910 2004-01-20  Bruno Haible  <bruno@clisp.org>
123912         * lib/xallocsa.h: New file, from GNU gettext.
123913         * lib/xallocsa.c: New file, from GNU gettext.
123915 2004-01-20  Bruno Haible  <bruno@clisp.org>
123917         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
123919 2004-01-20  Bruno Haible  <bruno@clisp.org>
123921         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
123922         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
123923         specially.
123925 2004-01-20  Bruno Haible  <bruno@clisp.org>
123927         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
123928         patch.
123930 2004-01-20  Bruno Haible  <bruno@clisp.org>
123932         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
123934 2004-01-20  Bruno Haible  <bruno@clisp.org>
123936         * lib/eealloc.h: New file.
123938 2004-01-20  Bruno Haible  <bruno@clisp.org>
123940         * lib/binary-io.h: Avoid warnings on Cygwin.
123942 2004-01-20  Bruno Haible  <bruno@clisp.org>
123944         * lib/allocsa.h: New file, from GNU gettext.
123945         * lib/allocsa.c: New file, from GNU gettext.
123947 2004-01-18  Karl Berry  <karl@gnu.org>
123949         * doc/gpl.texi, doc/lgpl.texi: new files.
123951 2004-01-18  Karl Berry  <karl@gnu.org>
123953         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
123954         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
123956 2004-01-15  Paul Eggert  <eggert@twinsun.com>
123958         Merge from coreutils.
123960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
123961         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
123962         (gl_DEFAULT_POSIX2_VERSION): Move
123963         the documentation from 'configure' into 'config.hin',
123964         so that 'configure --help' isn't burdened by it and
123965         we don't have to worry about its formatting there.
123966         Reword the documentation so that it's more succinct
123967         and can be run together into a single paragraph.
123968         * m4/same.m4 (gl_SAME): Check for pathconf.
123970 2004-01-15  Paul Eggert  <eggert@twinsun.com>
123972         Merge from coreutils.
123974         * lib/posixver.c: Include posixver.h.
123976         * lib/same.c: Include <stdbool.h>, <limits.h>.
123977         (_POSIX_NAME_MAX): Define if not defined.
123978         (MIN): New macro.
123979         (same_name): If file names are silently truncated, report
123980         that the file names are the same if they are the same after
123981         the silent truncation.
123983         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
123984         conversion function.
123985         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
123986         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
123987         longer needed.
123989 2004-01-15  Jim Meyering  <jim@meyering.net>
123991         Merge from coreutils.
123993         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
123994         if no library is required.
123995         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
123996         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
123997         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
123998         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
123999         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
124000         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
124001         value, $ac_cv_search_crypt, if it's "none required".
124002         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
124003         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
124004         not gl_FUNC_GETLOADAVG.
124005         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
124006         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
124008 2004-01-15  Jim Meyering  <jim@meyering.net>
124010         Merge from coreutils.
124012         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
124013         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
124014         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
124016         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
124017         optional configure-time default.
124019         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124021         * lib/xreadlink.c (xreadlink): Correct outdated comment.
124023 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
124025         Merge from coreutils.
124027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
124028         value, $ac_cv_search_nanosleep, if it's "none required".
124030 2004-01-14  Paul Eggert  <eggert@twinsun.com>
124032         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
124033         with like-named macro in fnmatch.c.
124034         (EXT): Use an internal constant instead.
124036         Merge fnmatch patches from glibc.
124037         * lib/fnmatch.c (mbsinit): Remove define.
124038         Add libc_hidden_ver (__fnmatch, fnmatch).
124039         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
124040         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
124042 2004-01-14  Karl Berry  <karl@gnu.org>
124044         * config/install-sh: update from automake.
124046 2004-01-13  Karl Berry  <karl@gnu.org>
124048         * config/install-sh: update from automake.
124050 2004-01-09  Karl Berry  <karl@gnu.org>
124052         * config/install-sh: update from automake.
124054 2004-01-05  Karl Berry  <karl@gnu.org>
124056         * config/config.{sub,guess}: update from config.
124058 2003-12-31  Karl Berry  <karl@gnu.org>
124060         * config/depcomp: update from automake.
124062 2003-12-14  Karl Berry  <karl@gnu.org>
124064         * lib/config.charset: update from gettext-runtime.
124066 2003-12-03  Paul Eggert  <eggert@twinsun.com>
124068         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
124069         Bug reported by Alfred M. Szmidt.
124071 2003-12-03  Bruno Haible  <bruno@clisp.org>
124073         * m4/gettext.m4: Upgrade from gettext-0.13.
124074         * m4/po.m4: Upgrade from gettext-0.13.
124075         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
124076         * m4/intmax.m4: New file, from gettext-0.13.
124077         * m4/printf-posix.m4: New file, from gettext-0.13.
124079 2003-11-29  Karl Berry  <karl@gnu.org>
124081         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
124083 2003-11-25  Paul Eggert  <eggert@twinsun.com>
124084             Bruno Haible  <bruno@clisp.org>
124086         * lib/printf-parse.h: Don't include sys/types.h.
124087         (ARG_NONE): New macro.
124088         (char_directive): Change type of *arg_index fields to size_t.
124089         * lib/printf-parse.c: Don't include sys/types.h.
124090         (SSIZE_MAX): Remove macro.
124091         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
124092         Remove unnecessary overflow check.
124093         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
124094         fields.
124096 2003-11-25  Bruno Haible  <bruno@clisp.org>
124098         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
124100 2003-11-25  Bruno Haible  <bruno@clisp.org>
124102         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
124103         gt_TYPE_SSIZE_T.
124105 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124107         * modules/alloca: Remove dependency on xalloc.
124109 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124111         * lib/alloca.c: Remove dependency on xalloc module.
124112         (xalloc_die): Remove.
124113         (memory_full) [!defined emacs]: New macro.
124114         [!defined emacs]: Don't include xalloc.h.
124115         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
124116         address arithmetic overflows.  Change datatypes a bit to avoid
124117         unnecessary casts.
124119 2003-11-22  Jim Meyering  <jim@meyering.net>
124121         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
124122         s/size/size_t/.
124124 2003-11-21  Karl Berry  <karl@gnu.org>
124126         * config/config.{sub,guess}: update from config.
124128 2003-11-18  Karl Berry  <karl@gnu.org>
124130         * config/config.{sub,guess}: update from config.
124132         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
124134 2003-11-17  Paul Eggert  <eggert@twinsun.com>
124136         * README: Mention that S+T cannot overflow if S is the size of
124137         an existing object and T is sufficiently small.
124139 2003-11-17  Jim Meyering  <jim@meyering.net>
124141         On systems without utime and without a utimes function capable of
124142         dealing with a NULL struct utimbuf* argument, this utime replacement
124143         could -- in unusual circumstances -- leak a file descriptor.
124144         * lib/utime.c: Include <unistd.h> and <errno.h>.
124145         (utime_null): Be sure to close `fd' and to preserve errno.
124146         Reported by Geoff Collyer via Arnold Robbins.
124148 2003-11-17  Bruno Haible  <bruno@clisp.org>
124150         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
124151         (Depends-on): Add xsize.
124153 2003-11-17  Bruno Haible  <bruno@clisp.org>
124155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
124157 2003-11-17  Bruno Haible  <bruno@clisp.org>
124159         * lib/vasnprintf.c (alloca): Remove fallback definition.
124160         (freea): Remove definition.
124161         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
124162         Reported by Paul Eggert.
124164 2003-11-16  Paul Eggert  <eggert@twinsun.com>
124165             Bruno Haible  <bruno@clisp.org>
124167         Protect against address arithmetic overflow.
124168         * lib/printf-args.h: Include stddef.h.
124169         (arguments): Change type of field 'count' to size_t.
124170         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
124171         'unsigned int' where appropriate.
124172         * lib/printf-parse.h: Include sys/types.h.
124173         (char_directive): Change type of *arg_index fields to ssize_t.
124174         (char_directives): Change type of fields 'count', max_*_length to
124175         size_t.
124176         * lib/printf-parse.c: Include sys/types.h and xsize.h.
124177         (SSIZE_MAX): Define fallback value.
124178         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
124179         instead of 'int' where appropriate. Check a_allocated, d_allocated
124180         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
124181         * lib/vasnprintf.c: Include xsize.h.
124182         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
124183         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
124184         overflow. Avoid wraparound when converting a width or precision from
124185         decimal to binary.
124187 2003-11-16  Bruno Haible  <bruno@clisp.org>
124189         Update from GNU gettext.
124190         * lib/printf-parse.c: Generalize to it can be compiled for wide
124191         strings.
124192         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
124193         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
124194         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
124195         SNPRINTF): New macros.
124196         Don't include <alloca.h> if the file is used inside libintl.
124197         (local_wcslen): New function, for Solaris 2.5.1.
124198         (VASNPRINTF): Use it instead of wcslen.
124200 2003-11-16  Bruno Haible  <bruno@clisp.org>
124202         * lib/xsize.h (xmax): New function.
124203         (xsum, xsum3, xsum4): Declare as "pure" functions.
124205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124207         * modules/xalloc (Files): Undo latest change, since xalloc.h
124208         no longer needs SIZE_MAX or PTRDIFF_MAX.
124210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124212         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
124213         gl_PTRDIFF_MAX.
124215 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124217         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
124218         "return", to pacify some unknown compiler.  Problem reported
124219         by Joerg Schilling.
124221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124223         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
124224         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
124225         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
124226         heuristic is just as accurate as far as we know, and it removes a
124227         dependency on size_max.m4 and ptrdiff_max.m4.
124229 2003-11-11  Bruno Haible  <bruno@clisp.org>
124231         * modules/xsize (Files): Add m4/size_max.m4.
124232         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
124234 2003-11-11  Bruno Haible  <bruno@clisp.org>
124236         * m4/size_max.m4: New file.
124237         * m4/ptrdiff_max.m4: New file.
124238         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
124239         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
124240         (gl_XALLOC): Invoke it.
124242 2003-11-11  Bruno Haible  <bruno@clisp.org>
124244         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
124245         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
124246         defined.
124248 2003-11-10  Paul Eggert  <eggert@twinsun.com>
124250         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
124251         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
124252         rejected some allocations of exactly SIZE_MAX - 2 bytes.
124253         From Bruno Haible.
124254         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
124255         not (size_t) -1, since it's defined here.
124257 2003-11-09  Karl Berry  <karl@gnu.org>
124259         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
124261 2003-11-06  Paul Eggert  <eggert@twinsun.com>
124263         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
124264         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
124265         Reject sizes of exactly SIZE_MAX bytes.
124266         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
124267         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
124269 2003-11-05  Bruno Haible  <bruno@clisp.org>
124271         * lib/xsize.h: Include limits.h, to avoid a possible collision with
124272         SIZE_MAX defined in <limits.h> on Solaris.
124274 2003-11-04  Jim Meyering  <jim@meyering.net>
124276         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
124277         variable names, rather than @VAR@.
124278         * modules/poll: Likewise.
124280 2003-11-04  Bruno Haible  <bruno@clisp.org>
124282         * modules/xsize: New file.
124283         * modules/linebreak: Depend on xsize.
124284         * MODULES.html.sh (func_all_modules): Add xsize.
124286 2003-11-04  Bruno Haible  <bruno@clisp.org>
124288         * m4/xsize.m4: New file.
124290 2003-11-04  Bruno Haible  <bruno@clisp.org>
124292         * lib/xsize.h: New file.
124293         * lib/linebreak.c: Include xsize.h.
124294         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
124295         argument for overflow.
124296         Suggested by Paul Eggert.
124298 2003-11-03  Karl Berry  <karl@gnu.org>
124300         * config/config.{guess,sub}: update from config.
124302 2003-11-03  Jim Meyering  <jim@meyering.net>
124304         * modules/userspec (lib_SOURCES): Add userspec.h.
124305         (Include): Add "userspec.h".
124306         Improve description.
124308 2003-11-03  Jim Meyering  <jim@meyering.net>
124310         * lib/userspec.c: Include "userspec.h".
124311         * lib/userspec.h: New file.
124313 2003-11-03  Bruno Haible  <bruno@clisp.org>
124315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
124317 2003-11-03  Bruno Haible  <bruno@clisp.org>
124319         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
124320         available, to avoid (extremely rare) race condition.
124321         Suggested by Paul Eggert.
124323 2003-11-02  Karl Berry  <karl@gnu.org>
124325         * config/srclist.txt (vasprintf.c): sync broken, sigh.
124327 2003-10-31  Paul Eggert  <eggert@twinsun.com>
124329         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
124330         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
124331         (read_filesystem_list): Set and use me_type_malloced.
124332         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
124333         whatever the type happens to be), for brevity and consistency.
124334         Check for size calculation overflow on Alphas running OSF/1.
124336 2003-10-31  Jim Meyering  <jim@meyering.net>
124338         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
124340         * lib/linebuffer.c: Include <string.h> for declaration of memset.
124342 2003-10-30  Paul Eggert  <eggert@twinsun.com>
124343             Bruno Haible  <bruno@clisp.org>
124345         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
124346         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
124348 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
124350         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
124351         netbsd*-gnu*.  Suggested by Robert Millan.
124353 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124355         * modules/group-member: Depend on stdbool.
124357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124359         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
124361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124363         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
124364         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
124365         after the 'gnu' in these cases.  This fixes some bugs in the
124366         previous change, and is based on suggestions by Robert Millan.
124368 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124370         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
124371         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
124372         no longer needed.
124373         * lib/quotearg.c (quotearg_n_options): Use it.
124374         * lib/group-member.c: Include <stdbool.h>.
124375         (free_group_info): Arg is now const *; don't free arg.
124376         (get_group_info): Now returns bool and accepts struct group_info *,
124377         rather than returning a malloc'ed struct group_info *.
124378         All uses changed.  Check for overflow in internal size calculation.
124380         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
124381         rather than xmalloc/xrealloc.
124382         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
124383         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
124384         conformance bug: the old code used a pointer after freeing the
124385         storage that it addressed.
124386         * lib/hash.c (hash_initialize): Simplify the code by using
124387         xalloc_oversized rather than doing it by hand.
124388         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
124389         the buffer preserved.  Use free and xmalloc instead.
124390         * lib/quotearg.c (quotearg_n_options): Likewise.
124391         Use a simpler test for size overflow.  Don't use xalloc_oversized
124392         because unsigned int might be wider than size_t (!); this suggests
124393         that we should switch from unsigned int to size_t for slot numbers.
124395 2003-10-28  Paul Eggert  <eggert@twinsun.com>
124397         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
124398         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
124399         NetBSD kernels.  Requested by Richard Stallman.
124401 2003-10-27  Paul Eggert  <eggert@twinsun.com>
124403         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
124404         to allocate the returned structure.  Do not allocate a subarray,
124405         as x2nrealloc will do that.
124406         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
124407         instead of xnrealloc.
124408         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
124410 2003-10-27  Bruno Haible  <bruno@clisp.org>
124412         * lib/stdbool_.h: Better support for BeOS.
124414 2003-10-26  Paul Eggert  <eggert@twinsun.com>
124416         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
124417         now uses inline.
124419 2003-10-26  Paul Eggert  <eggert@twinsun.com>
124421         * lib/xalloc.h (xalloc_oversized): New static inline function, for
124422         callers that want to do their own size-overflow checking.  Include
124423         <stdbool.h>, since xalloc_oversized returns bool.
124424         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
124425         to use xalloc_oversized.
124427         Add two functions x2realloc, x2nrealloc, for programs that grow
124428         arrays dynamically by doubling their sizes.
124429         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
124430         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
124431         New functions.
124433         Port to C99 semantics for 'inline' of external functions.
124434         Bug reported by Bruno Haible.
124435         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
124436         with the old contents of xnmalloc.
124437         (xnmalloc, xmalloc): Use it.
124438         (xnrealloc_inline): New static inline function,
124439         with the old contents of xnrealloc.
124440         (xnrealloc, xrealloc): Use it.
124442         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
124443         that.
124445 2003-10-26  Karl Berry  <karl@gnu.org>
124447         * config/srclist.txt (COPYING.DOC): no longer available from
124448         /gd/gnuorg; don't know where the ultimate source is.
124450 2003-10-25  Paul Eggert  <eggert@twinsun.com>
124452         Fix several address-calculation bugs in the hash modules,
124453         plus some minor code cleanup.
124455         * lib/hash.h: Include <stdbool.h>, for bool.
124456         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
124457         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
124458         hash_get_n_entries, hash_get_max_bucket_length,
124459         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
124460         hash_rehash): Use size_t rather than unsigned.
124461         * lib/hash.c (struct hash_table, hash_get_n_buckets,
124462         hash_get_n_buckets_used, hash_get_n_entries,
124463         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
124464         hash_get_entries, hash_do_for_each, hash_string, is_prime,
124465         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
124466         Likewise.
124467         (SIZE_MAX): Define if not defined.
124468         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
124469         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
124470         hash_print):
124471         Use const * when possible.
124472         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
124473         (check_tuning): Fix bug: if tuning parameters were very close to
124474         0 or 1, rounding errors could have caused subscript violations.
124475         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
124476         (hash_initialize): Add 'fail:' label
124477         to free table and return NULL, and use it to simplify code.
124478         Use calloc rather than clearing the storage ourself.
124479         (hash_initialize, hash_rehash): Check for arithmetic overflow in
124480         buffer size calculations.
124481         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
124482         Include <stddef.h>, for size_t.
124483         * lib/hash-pjw.c (hash_pjw): Likewise.
124484         Switch to method described by Bruno Haible.
124485         Include <limits.h>, for CHAR_BIT.
124486         (SIZE_BITS): New macro.
124488 2003-10-23  Paul Eggert  <eggert@twinsun.com>
124490         * m4/getline.m4 (AM_FUNC_GETLINE):
124491         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
124492         hosts.  Problem reported by Derek Robert Price in
124493         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
124494         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
124495         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
124497 2003-10-21  Paul Eggert  <eggert@twinsun.com>
124499         * lib/getndelim2.c (getndelim2): When size calculation overflows,
124500         ceiling the allocation at NMAX bytes rather than silently
124501         discarding input bytes before NMAX is reached.  This makes
124502         a difference only if NMAX exceeds SIZE_MAX / 2.
124504         * lib/obstack.c: Merge from glibc.
124505         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
124506         Add libc_hidden_def (_obstack_newchunk).
124507         (_obstack_free) [! defined _LIBC]: Remove.
124508         [defined _LIBC]: Make a strong alias from obstack_free, rather than
124509         a clone of the function body.
124510         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
124511         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
124513         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
124514         glibc.
124515         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
124516         arg to memcpy.
124518         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
124519         (obstack_ptr_grow_fast, obstack_int_grow_fast):
124520         Don't use lvalue casts, as GCC plans to remove support for them
124521         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
124522         was also present in the non-GCC version, indicating that this
124523         code had always been buggy and had never been widely used.
124524         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
124525         Use the fast variant of each macro, rather than copying the
124526         definiens of the fast variant; that way, we'll be more likely to
124527         catch future bugs in the fast variants.
124529 2003-10-20  Bruno Haible  <bruno@clisp.org>
124531         * modules/wait-process: New file.
124532         * MODULES.html.sh (func_all_modules): Add wait-process.
124534 2003-10-20  Bruno Haible  <bruno@clisp.org>
124536         * m4/wait-process.m4: New file.
124538 2003-10-20  Bruno Haible  <bruno@clisp.org>
124540         * lib/wait-process.h: New file, from GNU gettext.
124541         * lib/wait-process.c: New file, from GNU gettext.
124543 2003-10-19  Jim Meyering  <jim@meyering.net>
124545         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
124546         HPUX 10.20.
124548 2003-10-18  Karl Berry  <karl@gnu.org>
124550         * config/config.guess: update from config.
124552 2003-10-16  Paul Eggert  <eggert@twinsun.com>
124554         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
124555         (getgroups): First arg is int, not size_t.
124556         Don't let 'free' mangle errno.
124558 2003-10-16  Paul Eggert  <eggert@twinsun.com>
124560         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
124562 2003-10-16  Karl Berry  <karl@gnu.org>
124564         * config/config.{guess,sub}: update from config.
124566 2003-10-16  Jim Meyering  <jim@meyering.net>
124568         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
124569         memcpy.
124571 2003-10-15  Paul Eggert  <eggert@twinsun.com>
124573         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
124574         (SIZE_MAX): Remove.
124575         (new_exclude, add_exclude_file): Initial size no longer needs to
124576         be a power of 2.
124577         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
124578         our own address arithmetic overflow checking.
124580         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
124581         (fnmatch): Do not alloca more than 2000 wide characters;
124582         instead, use malloc for large buffers.
124583         Check for address arithmetic overflow, and return -1
124584         with errno set to ENOMEM in that case.
124585         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
124586         (NEW_PATTERN): Do not alloca more than 8000 bytes;
124587         instead, return -1.  Check for address arithmetic overflow.
124589 2003-10-14  Paul Eggert  <eggert@twinsun.com>
124591         Handle invalid suffixes and overflow independently, so that
124592         callers can treat them independently as needed.  Fix some bugs in
124593         suffix handling, e.g., "100k@" was not diagnosed as an invalid
124594         suffix for a human-readable blocksize.  The major caller-visible
124595         change is the addition of a new
124596         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
124597         that both overflow and suffix chars were found.
124599         * lib/human.c (humblock): Don't check separately for invalid suffix
124600         char; that is xstrtoumax's job (now that its bug is fixed).
124601         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
124602         INTMAX_MAX]: New macros.
124603         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
124604         TYPE_MAXIMUM): New macros.
124605         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
124606         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
124607         if overflow occurs, as it's what __strtol does and it's more useful
124608         in practice.
124609         (__xstrtol): If __strtol reports some error other than ERANGE,
124610         reflect it to the caller as LONGINT_INVALID.  If it reports
124611         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
124612         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
124613         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
124614         value.
124615         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
124616         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
124617         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
124618         [defined UINTMAX_MAX]: New macros.
124620 2003-10-14  Bruno Haible  <bruno@clisp.org>
124622         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
124624 2003-10-14  Bruno Haible  <bruno@clisp.org>
124626         * m4/sig_atomic_t: New file, from GNU gettext.
124627         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
124629 2003-10-14  Bruno Haible  <bruno@clisp.org>
124631         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
124632         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
124633         Also use volatile where needed.
124635 2003-10-12  Paul Eggert  <eggert@twinsun.com>
124637         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
124638         Change maintainer from Bruno Haible to 'all'.
124640 2003-10-12  Paul Eggert  <eggert@twinsun.com>
124642         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
124644 2003-10-12  Paul Eggert  <eggert@twinsun.com>
124646         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
124647         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
124648         and define in terms of the other primitives.
124649         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
124650         (SIZE_MAX): Define if not already defined.
124651         (array_size_overflow): New function.
124652         (xalloc_die): Abort instead of exiting if 'error' returns.
124653         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
124654         (xmalloc, xrealloc): Use them.
124655         (xcalloc): Check for address arithmetic overflow.
124656         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
124657         a bit faster than strcpy.
124659 2003-10-10  Simon Josefsson  <jas@extundo.com>
124661         * modules/argp (Depends-on): Add restrict and strcase.
124663 2003-10-10  Simon Josefsson  <jas@extundo.com>
124665         * m4/argp.m4: Add AC_C_INLINE.
124667 2003-10-08  Paul Eggert  <eggert@twinsun.com>
124669         Merge getpass from libc, plus a few fixes.
124671         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
124672         Include <stdbool.h>.
124673         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
124674         __fsetlocking to empty.
124675         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
124676         do include <bits/libc-lock.h>.
124677         Do not include <fcntl.h>; not needed.
124678         [_LIBC]: Include <wchar.h>.
124679         (NOTCANCEL_MODE): New macro.
124680         (flockfile, funlockfile) [_LIBC]: New macros.
124681         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
124682         [!_LIBC]: New macros.
124683         (call_fclose): New function.
124684         (getpass): Use it.  Save tty stream separately; this simplifies the
124685         code and makes it more reliable if stdin happens to equal stdout.
124686         Invoke __fsetlocking on tty.
124687         Handle thread cancellation if needed.
124688         Namespace cleanup (use __tcgetattr, __getline).
124689         Use bool for Booleans.
124690         [USE_IN_LIBIO]: Handle wide streams.
124691         [!_LIBC]: Unconditionally do the fseek, since we don't know what
124692         stream might go where.
124694         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
124695         doesn't have to include <stdio.h> before us.
124696         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
124697         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
124698         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
124699         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
124700         if not declared, so that we can use getpass.c code from libc without
124701         rewriting it.
124702         (flockfile, ftrylockfile, funlockfile): New macros.
124704 2003-10-08  Paul Eggert  <eggert@twinsun.com>
124706         * modules/getpass: Depend on stdbool.
124708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
124710         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
124712 2003-10-07  Karl Berry  <karl@gnu.org>
124714         * config/config.{guess,sub}: update from config.
124716 2003-10-06  Jim Meyering  <jim@meyering.net>
124717             Bruno Haible  <bruno@clisp.org>
124719         This lets translators provide better translations for the
124720         "Written by ..." part of --version output.
124721         * lib/version-etc.h: Include stdarg.h.
124722         (version_etc_copyright): Declare as readonly.
124723         (version_etc): Make this function variadic with a NULL-terminated list
124724         of author name strings.
124725         (version_etc_va): New declaration.
124726         * lib/version-etc.c: Include stdarg.h, stdlib.h.
124727         (version_etc_copyright): Declare as readonly.
124728         (version_etc_va): New function. Provide a different translatable string
124729         for each possible number of authors < 10. Abbreviate when there are 10
124730         authors or more.
124731         (version_etc): Make this function variadic. Call version_etc_va.
124732         Suggestion from Gary V. Vaughan.
124734         * lib/long-options.h (parse_long_options): Change prototype: the
124735         authors string is moved to the end and becomes variadic.
124736         * lib/long-options.c: Include stdarg.h.
124737         (parse_long_options): Make this function variadic, too.
124738         Call version_etc_va, not version_etc.
124740 2003-10-06  Bruno Haible  <bruno@clisp.org>
124742         * modules/version-etc-2: Remove file.
124743         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
124745 2003-10-06  Bruno Haible  <bruno@clisp.org>
124747         * modules/fatal-signal: New file.
124748         * MODULES.html.sh (func_all_modules): Add fatal-signal.
124750 2003-10-06  Bruno Haible  <bruno@clisp.org>
124752         * m4/fatal-signal.m4: New file.
124753         * m4/signalblocking.m4: New file, from GNU gettext.
124755 2003-10-06  Bruno Haible  <bruno@clisp.org>
124757         * lib/version-etc-2.h: Remove file.
124758         * lib/version-etc-2.c: Remove file.
124760 2003-10-06  Bruno Haible  <bruno@clisp.org>
124762         * lib/fatal-signal.h: New file, from GNU gettext.
124763         * lib/fatal-signal.c: New file, from GNU gettext.
124765 2003-10-05  Paul Eggert  <eggert@twinsun.com>
124767         * README: Rework advice for preventing empty .o files.
124768         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
124769         not <sys/types.h>.
124771 2003-10-04  Karl Berry  <karl@gnu.org>
124773         * lib/argp*: update from libc.
124775 2003-10-04  Karl Berry  <karl@gnu.org>
124777         * config/config.{guess,sub}: update from config.
124779 2003-10-02  Bruno Haible  <bruno@clisp.org>
124781         * modules/lchown (Include): Add lchown.h.
124782         * modules/time_r (Include): Use "..." syntax.
124783         * modules/xgetdomainname (Include): Add xgetdomainname.h.
124785 2003-10-01  Simon Josefsson  <jas@extundo.com>
124787         * MODULES.html.sh (func_all_modules): Move gethostname from section
124788         'based on' to section 'lacking' POSIX:2001.
124790 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
124792         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
124793         to output mode on the same stream.
124795 2003-09-29  Paul Eggert  <eggert@twinsun.com>
124797         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
124798         Fix arg typo in previous patch.
124800 2003-09-28  Jim Meyering  <jim@meyering.net>
124802         * lib/error.c: Correct cpp indentation.
124804 2003-09-27  Paul Eggert  <eggert@twinsun.com>
124806         * modules/free: New file.
124808 2003-09-27  Paul Eggert  <eggert@twinsun.com>
124810         * m4/free.m4: New file.
124812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
124814         * lib/minmax.h (MIN, MAX)
124815         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
124816         Omit the special code that used __typeof__, since we worry that
124817         it could be more trouble than it's worth.  See:
124818         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
124819         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
124821         * lib/free.c: New file.
124823 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
124825         Trivial fixes to Makefile.am parts of module listings.
124826         * modules/strstr: Append strstr.h to lib_SOURCES.
124827         * modules/strcase: Likewise, for strcase.h.
124829 2003-09-27  Karl Berry  <karl@gnu.org>
124831         * config/mkinstalldirs: update from automake.
124833 2003-09-26  Paul Eggert  <eggert@twinsun.com>
124835         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
124836         (error_tail): Do not loop, reallocating temporary buffer, since
124837         the output cannot contain more wide characters than the input
124838         contains bytes, the size must be big enough already.  This avoids
124839         one potential size overflow calculation.  Check for size overflow
124840         when calculating temporary buffer size.  Free temporary buffer
124841         when done, if it was allocated with malloc; this plugs a memory
124842         leak.  Remove casts from void * to pointers, that are no longer
124843         needed now that we're assuming C89 or better.
124845         Merge error changes from glibc.
124847         * lib/error.c, error.h: Update copyright notice header to match glibc.
124848         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
124849         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
124850         Disable cancellation while printing error.
124851         * lib/error.h: Prepend __ to parameter names.
124853 2003-09-26  Jim Meyering  <jim@meyering.net>
124855         * lib/error.c (error_tail): Move some declarations
124856         into inner scope where the local variables are used.
124858 2003-09-26  Bruno Haible  <bruno@clisp.org>
124860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
124861         stpncpy().
124862         Don't define stpncpy through config.h; it's now done through stpncpy.h.
124864 2003-09-26  Bruno Haible  <bruno@clisp.org>
124866         * lib/stpncpy.h (gnu_stpncpy): New declaration.
124867         (stpncpy): Define as alias for gnu_stpncpy.
124868         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
124870 2003-09-25  Simon Josefsson  <jas@extundo.com>
124872         * lib/xgetdomainname.h: New file.
124873         * lib/xgetdomainname.c: New file.
124875 2003-09-25  Simon Josefsson  <jas@extundo.com>
124876             Bruno Haible  <bruno@clisp.org>
124878         * modules/getdomainname: New file.
124879         * modules/xgetdomainname: New file.
124880         * MODULES.html.sh (func_all_modules): Add getdomainname,
124881         xgetdomainname.
124883 2003-09-25  Simon Josefsson  <jas@extundo.com>
124884             Bruno Haible  <bruno@clisp.org>
124886         * m4/getdomainname.m4: New file.
124888 2003-09-25  Simon Josefsson  <jas@extundo.com>
124889             Bruno Haible  <bruno@clisp.org>
124891         * lib/getdomainname.h: New file.
124892         * lib/getdomainname.c: New file.
124894 2003-09-25  Karl Berry  <karl@gnu.org>
124896         * lib/argp-fmtstream.c, argp-help.c: update from libc.
124898 2003-09-25  Karl Berry  <karl@gnu.org>
124900         * config/install-sh: update from automake.
124902 2003-09-25  Bruno Haible  <bruno@clisp.org>
124904         * modules/version-etc-2: New file, from modules/version-etc with
124905         modifications.
124906         * MODULES.html.sh (func_all_modules): Add version-etc-2.
124908 2003-09-25  Bruno Haible  <bruno@clisp.org>
124910         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
124911         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
124913 2003-09-24  Simon Josefsson  <jas@extundo.com>
124915         * modules/xgethostname: Add xgethostname.h.
124917 2003-09-24  Paul Eggert  <eggert@twinsun.com>
124919         * lib/linebuffer.c (freebuffer): Don't free the argument, just
124920         the buffer associated with the argument.  Bug reported by
124921         Simon Josefsson.
124923 2003-09-24  Paul Eggert  <eggert@twinsun.com>
124925         * README: Document assumptions that 'int' is at least 32 bits
124926         wide, that integer arithmetic is 2's complement without overflow,
124927         that there are no holes in integer values, that adding sizes of
124928         two nonoverlapping objects can't overflow, and that all-bits-zero
124929         yields scalar zero.  Fix spelling and capitalization typos.
124931 2003-09-19  Karl Berry  <karl@gnu.org>
124933         * lib/argp.h: update from libc.
124935 2003-09-17  Paul Eggert  <eggert@twinsun.com>
124937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
124938         to avoid spurious warnings like "AC_RUN_IFELSE was called before
124939         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
124941 2003-09-17  Paul Eggert  <eggert@twinsun.com>
124943         * gnulib-tool: Use "test -h", not "test -L", for portability
124944         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
124945         (tags_regexp): Remove, since \| doesn't conform to POSIX.
124946         (sed_extract_prog): Issue s commands one-by-one, rather than
124947         using \| in one s command.
124949 2003-09-16  Paul Eggert  <eggert@twinsun.com>
124951         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
124952         input error, instead of returning NULL the next time we are called
124953         (and therefore losing track of errno).
124955 2003-09-16  Bruno Haible  <bruno@clisp.org>
124957         * gnulib-tool (func_create_testdir): Warn about duplicated
124958         dependencies.
124960 2003-09-15  Paul Eggert  <eggert@twinsun.com>
124962         * modules/argmatch, modules/fatal, modules/obstack,
124963         modules/xalloc, modules/xgethostname: Sort dependencies by
124964         importance, not alphabetically.
124966 2003-09-15  Paul Eggert  <eggert@twinsun.com>
124968         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
124969         fails, so that the caller gets the proper errno.
124971         * lib/readutmp.c (read_utmp): Likewise.
124972         Check for fstat error.  Close stream and free storage
124973         when failing.
124975 2003-09-14  Karl Berry  <karl@gnu.org>
124977         * config/srclist.txt (strdup.c): disable for c89 changes.
124979 2003-09-14  Jim Meyering  <jim@meyering.net>
124981         * lib/getloadavg.c: Correct cpp indentation.
124982         * lib/strdup.c: Likewise.
124983         * lib/vasnprintf.c: Likewise.
124985 2003-09-14  Bruno Haible  <bruno@clisp.org>
124987         * modules/fwriteerror: New file.
124988         * MODULES.html.sh (func_all_modules): Add fwriteerror.
124990 2003-09-14  Bruno Haible  <bruno@clisp.org>
124992         * lib/fwriteerror.h: New file.
124993         * lib/fwriteerror.c: New file.
124995 2003-09-12  Paul Eggert  <eggert@twinsun.com>
124997         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
124998         modules/xgethostname, modules/xalloc: Depend on exit.
125000 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125002         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
125004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
125005         and AC_MINIX, too, so that their extensions are available.
125007         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
125008         This macro has been superseded by gl_BACKUPFILE.
125010         More patches to assume C89 or better.
125012         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
125014         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
125015         unconditionally.
125016         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
125017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
125018         Include <string.h>, <stdlib.h> unconditionally.
125019         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
125020         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
125021         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
125022         headers or for string.h.
125023         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
125024         or strtoul.
125026         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
125027         headers.
125028         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
125029         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
125031         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
125032         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125033         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
125034         memcpy, memset.
125035         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
125036         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
125037         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
125038         strtol.
125039         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
125040         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
125041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
125042         strtoul.
125044 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125046         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
125047         * lib/obstack.c [!defined _LIBC]: Likewise.
125048         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
125049         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
125050         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
125052         More changes to assume C89 or better.
125054         * lib/error.c (error_tail): Assume vprintf.
125056         * lib/argmatch.c (getenv): Remove decl.
125057         * lib/progreloc.c (get_full_program_name): Define via prototype.
125058         * lib/setenv.c (clearenv): Likewise.
125059         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
125060         needed.
125061         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
125062         (malloc, memcpy): Remove decls.
125063         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
125064         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
125065         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125066         (memcpy): Remove macro.
125067         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
125068         (__P): Remove.  All uses removed.
125069         (PTR): Remove.  All uses changed to void *.
125070         (CHAR_BIT, NULL): Remove.
125071         (spaces, zeros, memset_space, memset_zero)
125072         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
125073         Remove.
125074         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
125075         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
125076         Define with prototype.
125077         Remove now-unnecessary prototype decl.
125078         (extra_args_spec): Assume ANSI C.  All uses changed.
125079         (extra_args_spec_iso): Remove.
125080         (my_strftime, emacs_strftimeu): Define via prototype.
125081         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
125082         unconditionally.
125083         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
125084         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
125085         (strtoul, strtol): Remove decls.
125086         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
125087         LONG_MAX): Remove.
125088         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125089         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
125090         (LOCALE_PARAM_PROTO): New macro.
125091         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
125092         (INTERNAL (strtol), strtol): Define with a prototype.
125093         (PARAMS): Remove.  All uses removed.
125094         * lib/tempname.c: Include <string.h> unconditionally.
125095         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
125096         * lib/xgethostname.c (main): Define with a prototype.
125097         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
125098         Include <stdlib.h> unconditionally.
125099         (calloc, malloc, realloc, free): Remove decls.
125100         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
125101         Include <stdlib.h> unconditionally.  Sort include file names.
125102         (strtod): Remove.
125103         (xstrtod): Define with a prototype.
125104         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
125105         (strtol, strtoul): Remove decls.
125107 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125109         More patches to assume C89 or better.
125110         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
125111         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
125112         string.h, memchr, STDC_HEADERS.
125114 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125116         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
125117         Include <stdlib.h>, <string.h> unconditionally.
125118         Remove now-unnecessary cast to char *.
125119         * lib/strnlen.c: Include <string.h> unconditionally.
125120         * lib/yesno.c (yesno): Define with a prototype.
125122 2003-09-11  Bruno Haible  <bruno@clisp.org>
125124         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
125126 2003-09-10  Jim Meyering  <jim@meyering.net>
125128         * lib/error.c: Correct indentation of cpp directives.
125130 2003-09-10  Bruno Haible  <bruno@clisp.org>
125132         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
125133         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
125134         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
125135         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
125136         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
125137         <stdlib.h> and <string.h> checks.
125138         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
125139         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
125141 2003-09-10  Bruno Haible  <bruno@clisp.org>
125143         * lib/strcspn.c: Include <string.h> unconditionally.
125144         * lib/strpbrk.c: Include <string.h> unconditionally.
125145         * lib/strstr.c: Include <string.h> unconditionally.
125146         * lib/unicodeio.c: Include <string.h> unconditionally.
125147         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
125148         * lib/unsetenv.c: Likewise.
125149         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
125150         * lib/yesno.c: Include <stdlib.h> unconditionally.
125151         (rpmatch): Add prototype.
125153 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125155         More patches to assume C89 or better.
125156         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
125157         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
125158         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
125159         or for string.h.
125160         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
125161         stdlib.h.
125162         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
125163         C headers.
125164         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
125165         string.h.
125166         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
125167         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
125168         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
125169         or for string.h.
125170         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
125171         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
125172         C headers.
125173         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
125174         memcpy.
125175         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
125176         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
125177         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
125178         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
125179         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
125180         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
125181         string.h, free.
125182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
125183         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
125184         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
125185         C headers, or for string.h.
125186         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
125187         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
125188         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
125189         headers, memory.h, stdlib.h, string.h, strings.h.
125190         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
125191         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
125192         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
125193         strchr.
125194         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
125195         headers, memory.h, string.h.
125196         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
125197         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
125198         free.
125199         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
125200         headers.
125201         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
125202         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
125203         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
125204         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
125205         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
125207 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125209         More K&R removal.
125211         * lib/acosl.c (main): Use a prototype.
125212         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
125213         tanl.c: Likewise.
125215         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
125217         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
125218         (getopt, etopt_long, getopt_long_only, _getopt_internal)
125219         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
125220         with a prototype.
125221         * lib/getopt.c (const): Remove macro.
125222         Include <string.h> unconditionally.
125223         (my_index): Remove; all uses changed to strchr.
125224         (strlen): Remove decl.
125225         (exchange): Remove forward decl; no longer needed.
125226         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
125227         Define with prototype.
125228         * lib/getopt1.c (const): Remove macro.
125229         (getopt_long, getopt_long_only, main): Define with prototype.
125231         * lib/getugroups.c: Include <string.h> unconditionally.
125233         * lib/getusershell.c: Include <stdlib.h> unconditionally.
125234         (getusershell, setusershell, endusershell, readname, main):
125235         Define with prototypes.
125237         * lib/group-member.c: Include group-member.h first.
125238         Include <stdlib.h> unconditionally.
125240         * lib/hard-locale.c: Include hard-locale.h first.
125241         Include <stdlib.h>, <string.h> unconditionally.
125243         * lib/hash.c (free, malloc): Remove decls.
125244         Include <stdlib.h> unconditionally.
125246         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
125247         (getenv): Do not declare.
125249         * lib/idcache.c: Include <string.h> unconditionally.
125251         * lib/long-options.c: Include long-options.h first, to test interface.
125252         Include <stdlib.h> unconditionally.
125254         * lib/makepath.c: Include makepath.h first, to test interface.
125255         Include <stdlib.h> and <string.h> unconditionally.
125257         * lib/linebuffer.c: Include <stdlib.h>.
125258         (free): Remove decl.
125260         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
125261         stddef.h. rpl_malloc returns void *, not char *.
125262         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
125263         prototype.
125265         * lib/md5.h: Include <limits.h> unconditionally.
125266         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
125267         (__P): Remove; all uses removed.
125268         * lib/md5.c: Include "md5.h" first.
125269         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
125270         md5_buffer, md5_process_bytes, md5_process_block):
125271         Define with prototypes.
125272         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
125273         * lib/sha.c: Include "sha.h" first.
125274         Include <stdlib.h>, <string.h> unconditionally.
125276         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
125277         * lib/memcmp.c (__ptr_t): Likewise.
125278         * lib/memrchr.c (__ptr_t): Likewise.
125279         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
125280         Include <string.h> unconditionally.
125281         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
125282         * lib/memchr.c: Include <stdlib.h> unconditionally.
125283         * lib/memchr.c (LONG_MAX): Remove.
125284         * lib/memrchr.c (LONG_MAX): Likewise.
125285         * lib/memchr.c (__memchr): Define via a prototype.
125286         * lib/memrchr.c (__memrchr): Likewise.
125287         * lib/memcmp.c (__P): Remove, and remove all uses.
125288         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
125289         Remove forward decls; no longer needed.
125290         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
125291         Use types required by C89 in prototype.
125293         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
125294         * lib/savedir.c: Likewise.
125295         * lib/mkdir.c (free): Remove decl.
125296         * lib/rmdir.c (rmdir): Define with a prototype.
125297         * lib/savedir.c: Include savedir.h first, to test interface.
125299         * lib/mktime.c (STDC_HEADERS): Remove.
125300         Include <stdlib.h>, <string.h> unconditionally.
125302         * lib/modechange.c: Include <stdlib.h> unconditionally.
125303         (malloc): Remove decl.
125305         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
125306         (free): Remove decl.
125308         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
125309         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
125310         (This type really should be intptr_t, but that's a C99ism.)
125311         (_obstack_memcpy): Remove: all uses changed to memcpy.
125312         Include <string.h> unconditionally.
125313         (struct obstack): Assume __STDC__ for types of members
125314         chunkfun, freefun, extra_arg.
125315         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
125316         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
125317         obstack_begin, obstack_specify_allocation,
125318         obstack_specify_allocation_with_arg, obstack_chunkfun,
125319         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
125320         Remove unprototyped decls and the macros that use them.
125321         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
125322         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
125323         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
125324         (defined __STDC__ && __STDC__)]:
125325         Remove nonprototyped code.
125326         Include <stdlib.h> unconditionally.
125327         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
125328         _obstack_allocated_p, _obstack_free, obstack_free,
125329         _obstack_memory_used, print_and_abort):
125330         Define using prototypes.
125331         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
125332         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
125333         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
125334         obstack_next_free, obstack_object_size, obstack_room) [0]:
125335         Remove unused, unprototyped code.
125337         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
125339         * lib/physmem.c (physmem_total, physmem_available, main): Define
125340         with prototypes.
125342         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
125343         (main): Define with a prototype.
125345         * lib/posixver.c (getenv): Remove decl.
125347         * lib/putenv.c (malloc): Returns void *, not char *.
125348         Include <string.h> unconditionally.
125349         (strchr, memcpy, NULL): Do not define.
125351         * lib/readtokens.c: Include readtokens.h first, to test interface.
125352         Include <stdlib.h>, <string.h> unconditionally.
125353         (init_tokenbuffer): Define with a prototype.
125355         * lib/regex.c (PARAMS): Remove.  All uses removed.
125356         All uses of _RE_ARGS removed, too.
125357         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
125358         unconditionally.
125359         (bzero): Assume memset exists.
125360         (memcmp, memcpy, NULL): Remove.
125361         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
125362         char, or assignments to local vars of type signed char.
125363         (init_syntax_once, PREFIX(extract_number_and_incr),
125364         PREFIX(print_partial_compiled_pattern),
125365         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
125366         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
125367         PREFIX(regex_grow_registers), PREFIX(regex_compile),
125368         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
125369         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
125370         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
125371         wcs_compile_range, byte_compile_range, truncate_wchar,
125372         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
125373         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
125374         count_mbs_length, wcs_re_match_2_internal,
125375         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
125376         PREFIX(alt_match_null_string_p),
125377         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
125378         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
125379         regfree, PREFIX(extract_number)): Define with prototype.  Remove
125380         now-unnecessary declaration, if any.
125381         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
125382         regcomp, regexec):
125383         Remove now-unnecessary casts among pointer types.
125384         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
125386         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
125387         (free): Remove decl.
125389         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
125391         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
125392         (free): Remove decl.
125394         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
125395         * lib/xgetcwd.c: Likewise.
125397         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
125398         (free): Remove decl.
125400         * lib/strchrnul.c (strchrnul): Define with a prototype.
125401         Fix bug: c_in was not converted to char before searching.
125403         The following changes are not K&R related:
125405         * lib/group-member.h: Include <sys/types.h>, so that this file is
125406         self-contained.
125407         * lib/makepath.h: Likewise.
125409         * lib/getusershell.c (readname, default_index, line_size, readname):
125410         Use size_t, not int, for sizes.
125411         (readname): If the size overflows, report an error instead of
125412         looping forever.
125414 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125416         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
125417         libc.
125419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125421         * README: New section: portability guidelines.
125423 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
125425         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
125426         C89 spec.
125428 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
125430         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
125432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
125434         Assume C89 or better; remove K&R cruft.
125435         A few of these changes were first proposed by Derek Robert Price
125436         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
125438         * lib/addext.c: Include <string.h> unconditionally.
125439         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
125440         Don't declare getenv or malloc.
125442         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
125443         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
125444         (NULL): Remove.
125445         (find_stack_direction, alloca): Use prototypes.
125447         * lib/atexit.c (atexit): Define using a prototype.
125449         * lib/basename.c, dirname.c, stripslash.c:
125450         Include <string.h> unconditionally.
125452         * lib/bcopy.c: Include <stddef.h>.
125453         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
125455         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
125457         * lib/error.h (error, error_at_line, error_print_progname)
125458         [! (defined (__STDC__) && __STDC__)]: Remove decls.
125459         * lib/error.c: Include error.h first, to check interface.
125460         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
125461         (VA_START): Remove; all uses changeed to va_start.
125462         (exit, strerror): Remove decls.
125463         (error_print_progname): Prototype uncondionally.
125464         Don't include <errno.h>; no longer needed.
125465         (private_strerror): Remove.
125466         (error_tail): Always define.
125467         (error, error_at_line): Assume C89 or better; always use prototypes.
125468         * lib/fatal.c: Include "fatal.h" first, to test interface.
125469         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
125470         (VA_START): Remove; all uses changed to va_start.
125471         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
125472         this case.
125473         (exit): Remove decl.
125474         (fatal): Prototype unconditionally.  Assume va_start works.
125475         Abort at end, to pacify gcc.
125477         * lib/euidaccess.c (main): Define with a prototype.
125479         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
125481         * lib/exitfail.c: Include <stdlib.h> unconditionally.
125483         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
125484         prototypes.
125485         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
125486         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
125487         (getenv): Remove decl.
125488         (fnmatch): Define using a prototype.
125489         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
125490         (FCT): Define using a prototype.
125492         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
125494         * lib/gethostname.c: Include <stddef.h>.
125495         (gethostname): Define with prototype.  Length is size_t, not int.
125497 2003-09-08  Paul Eggert  <eggert@twinsun.com>
125499         Assume C89 or better; remove K&R cruft.
125500         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
125501         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
125502         string.h, getenv, malloc.
125503         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
125504         headers.
125505         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
125506         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
125507         do not check for strerror.
125508         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
125509         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
125510         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
125511         do not check for doprnt or vprintf.
125512         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
125513         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
125515 2003-09-08  Paul Eggert  <eggert@twinsun.com>
125517         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
125518         getversion.c should have been removed then, but was accidentally
125519         preserved.
125521         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
125522         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
125524 2003-09-08  Karl Berry  <karl@gnu.org>
125526         * config/config.sub, config.guess, srclistvars.sh: update from savannah
125527                 config, forget about prep.
125529         * config/depcomp, missing: update from automake.
125531 2003-09-07  Paul Eggert  <eggert@twinsun.com>
125533         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
125534         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
125536 2003-09-07  Paul Eggert  <eggert@twinsun.com>
125538         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
125539         copy_tm_result.  Bug reported by Simon Josefsson in
125540         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
125542 2003-09-06  Paul Eggert  <eggert@twinsun.com>
125544         * m4/time_r.m4: New file.
125545         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
125546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
125547         is. Check for timegm declaration.
125548         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
125549         Do not check for gmtime_r.
125550         Replace mktime if __mktime_internal does not exist and if mktime
125551         hasn't been replaced already.
125553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
125555         * lib/time_r.c, lib/time_r.h: New files.
125557         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
125558         __localtime_r.
125559         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
125560         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
125562         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
125563         __gmtime_r.
125564         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
125565         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
125566         Include <time_r.h>.
125568         * lib/timegm.c: Switch to glibc implementation, with the following
125569         changes:
125570         [defined HAVE_CONFIG_H]: Include <config.h>.
125571         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
125572         (__mktime_internal) [!defined _LIBC]: New decl.
125573         (__gmtime_r) [!defined _LIBC]: New macro and function.
125574         (timegm): Use a prototype, since gnulib assumes C89.
125575         Do not bother declaring tmp to be const, as it's not really usefu.
125576         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
125577         (timegm): Declare only if HAVE_DECL_TIMEGM.
125579 2003-09-06  Paul Eggert  <eggert@twinsun.com>
125581         * MODULES.html.sh (func_all_modules): Add time_r.
125582         * modules/time_r: New file.
125583         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
125584         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
125586 2003-09-03  Paul Eggert  <eggert@twinsun.com>
125588         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
125589         Bug reported by Lute Kamstra in
125590         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
125592         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
125593         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
125594         course with correspondingly smaller numbers for tomorrow and
125595         yesterday.  From Tadayoshi Funaba.  Originally installed into
125596         sh-utils on 1999-08-07, but the patch got lost (I guess during the
125597         coreutils merge?).
125599 2003-08-31  Simon Josefsson  <jas@extundo.com>
125601         * modules/timegm: New file.
125602         * MODULES.html.sh (func_all_modules): Add timegm.
125604 2003-08-31  Simon Josefsson  <jas@extundo.com>
125606         * m4/timegm.m4: New file.
125608 2003-08-31  Simon Josefsson  <jas@extundo.com>
125610         * lib/timegm.h: New file.
125611         * lib/timegm.c: New file.  Based on
125612         wget-1.8.2/src/http.c:mktime_from_utc.
125614 2003-08-31  Karl Berry  <karl@gnu.org>
125616         * lib/argp.h: update from libc.
125618 2003-08-28  Bruno Haible  <bruno@clisp.org>
125620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
125621         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
125622         followed by '#define fnmatch fnmatch_posix' gives an error.
125624 2003-08-28  Bruno Haible  <bruno@clisp.org>
125626         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
125627         warning on QNX, which defines O_BINARY to 000000.
125629 2003-08-27  Jim Meyering  <jim@meyering.net>
125631         * m4/mkstemp.m4: Require that the system mkstemp be able to create
125632         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
125633         would fail after 32.  Reported by Danny Levinson.  Details here:
125634         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
125636 2003-08-24  Bruno Haible  <bruno@clisp.org>
125638         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
125639         MSVC7 <stdio.h> is included later.
125641 2003-08-22  Simon Josefsson  <jas@extundo.com>
125643         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
125645 2003-08-20  Karl Berry  <karl@gnu.org>
125647         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
125649 2003-08-20  Bruno Haible  <bruno@clisp.org>
125651         * modules/progname: New file.
125652         * MODULES.html.sh (func_all_modules): Add progname.
125654 2003-08-20  Bruno Haible  <bruno@clisp.org>
125656         * lib/progname.h: New file, from GNU gettext.
125657         * lib/progname.c: New file, from GNU gettext.
125658         * lib/progreloc.c: New file, from GNU gettext.
125660 2003-08-19  Jim Meyering  <jim@meyering.net>
125662         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
125663         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
125665 2003-08-19  Bruno Haible  <bruno@clisp.org>
125667         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
125668         more.
125670 2003-08-19  Bruno Haible  <bruno@clisp.org>
125672         * lib/xstrdup.c: Assume <string.h> exists.
125674 2003-08-18  Paul Eggert  <eggert@twinsun.com>
125676         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
125677         in makefile rules.
125679 2003-08-18  Jim Meyering  <jim@meyering.net>
125681         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
125682         * m4/lib-ld.m4: Likewise.
125684 2003-08-18  Jim Meyering  <jim@meyering.net>
125686         * lib/setenv.h: Indent nested cpp directive.
125687         * lib/vasnprintf.c: Remove trailing blanks.
125689 2003-08-17  Simon Josefsson  <jas@extundo.com>
125691         * modules/xstrndup: New file.
125692         * MODULES.html.sh (func_all_modules): Add xstrndup.
125694 2003-08-17  Simon Josefsson  <jas@extundo.com>
125696         * modules/argp: Fix autoconf macro name. Add more dependencies.
125698 2003-08-17  Simon Josefsson  <jas@extundo.com>
125700         * m4/xstrndup.m4: New file.
125702 2003-08-17  Simon Josefsson  <jas@extundo.com>
125704         * m4/argp.m4: New file.
125706 2003-08-17  Simon Josefsson  <jas@extundo.com>
125707             Bruno Haible  <bruno@clisp.org>
125709         * lib/xstrndup.h: New file.
125710         * lib/xstrndup.c: New file.
125712 2003-08-17  Bruno Haible  <bruno@clisp.org>
125714         * modules/strndup (Files, Include): Add lib/strndup.h.
125716 2003-08-17  Bruno Haible  <bruno@clisp.org>
125718         * modules/euidaccess (Files): Add lib/euidaccess.h.
125720 2003-08-17  Bruno Haible  <bruno@clisp.org>
125722         * lib/strndup.h: New file.
125724 2003-08-17  Bruno Haible  <bruno@clisp.org>
125726         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
125727         like AC_GNU_SOURCE.
125728         * modules/extensions (configure.ac): Comment out the invocation of
125729         gl_USE_SYSTEM_EXTENSIONS.
125731 2003-08-16  Paul Eggert  <eggert@twinsun.com>
125733         Merges from coreutils, etc.
125734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
125735         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
125736         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
125737         fixing a typo.
125738         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
125739         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
125741 2003-08-16  Paul Eggert  <eggert@twinsun.com>
125743         Document merge from coreutils.
125744         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
125745         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
125746         * modules/utime: Add m4/utimes-null.m4.
125748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
125750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
125751         space, undoing this 2003-08-12 change:
125752         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
125754 2003-08-16  Paul Eggert  <eggert@twinsun.com>
125756         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
125757         strtoul.c from libc, undoing this 2003-08-12 change:
125758         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
125760 2003-08-16  Jim Meyering  <jim@meyering.net>
125762         Merges from coreutils.
125763         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
125764         prefix.  Adjust cache variables similarly.  Create 500 rather than
125765         just 300 files, to exercise bug on Darwin6.5, too.
125766         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
125767         $missing_dir.
125768         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
125769         AM_SYS_POSIX_TERMIOS.
125770         Reported by mkc@mathdogs.com.
125771         Also change use of $am_cv_sys_posix_termios
125772         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
125773         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
125774         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
125775         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
125776         in /proc/mounts until it finds one with matching device number.  This
125777         is unnecessary when the FILE argument *is* a mount point.  No stat call
125778         is necessary in that case.  So, disable the statvfs-testing code on
125779         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
125780         as RedHat bug# 84846.
125781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
125782         to 1MB, so as not to render systems with no stack size limit (e.g.,
125783         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
125784         Include <unistd.h>.  On some systems,
125785         it is required for the definition of _SC_PAGESIZE.
125787 2003-08-16  Jim Meyering  <jim@meyering.net>
125789         Merge from coreutils.
125790         * lib/xstrtoimax.c: #else #if -> #elif.
125791         * lib/xstrtoumax.c: Likewise.
125793 2003-08-16  Jim Meyering  <jim@meyering.net>
125795         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
125796         * m4/utimes.m4: Removed.
125797         * m4/utimes-null.m4: Renamed from utimes.m4.
125799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
125800         to 1MB, so as not to render systems with no stack size limit (e.g.,
125801         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
125802         Include <unistd.h>.  On some systems,
125803         it is required for the definition of _SC_PAGESIZE.
125805 2003-08-16  Jim Meyering  <jim@meyering.net>
125806         and Paul Eggert  <eggert@cs.ucla.edu>
125808         Merges from coreutils, etc.
125810         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
125811         using the latest version from cvs.  This avoids problems with #line
125812         directives using a vendor (Sun) compiler.
125813         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
125814         Don't set GETGROUPS_LIB here; now it's
125815         done via getgroups.m4's wrapper function.
125816         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
125817         rather than just in sh-util/configure.in, so that the
125818         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
125819         same.
125820         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
125821         AC_FUNC_GETLOADAVG where to find getloadavg.c.
125822         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
125823         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
125824         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
125825         Remove code that is now done by the newly-required macros.
125826         Append $(EXEEXT) to DF_PROG.
125827         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
125828         Do not invoke or require the following here,
125829         since prereq.m4 or some gnulib .m4 now does this for us:
125830         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
125831         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
125832         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
125833         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
125834         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
125835         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
125836         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
125837         AC_FUNC_OBSTACK.
125838         Do not replace the following functions, as this is now the job
125839         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
125840         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
125841         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
125842         atexit getpass, strdup, getpagesize.
125843         Replace 'raise'.
125844         Do not check for the following functions, as this is now the job
125845         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
125846         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
125847         setregid.
125848         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
125849         Check for sys/sysctl.h.
125850         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
125851         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
125852         of checking for ssize_t ourselves.
125854         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
125855         Require every macro that gnulib/modules/* suggests for us.
125856         (jm_PREREQ_ADDEXT): New macro.
125857         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
125858         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
125860         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
125861         (gl_PHYSMEM): Use it.
125862         Also check for `table' function.
125863         Check for new headers and functions.
125864         Add check for sys/sysmp.h.
125865         With suggestions from Kaveh Ghazi.
125866         Ignore headers that are present but cannot be compiled.  This
125867         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
125868         C 5.4.
125870 2003-08-15  Paul Eggert  <eggert@twinsun.com>
125872         Document merge from coreutils.
125873         * modules/userspec: Depend on posixver.
125874         * modules/strftime: Depend on tzset.
125876 2003-08-15  Paul Eggert  <eggert@twinsun.com>
125878         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
125879         rather than tab, after '#' in shell-script copyright notices.
125880         Suggested by Bruno Haible.
125882 2003-08-15  Paul Eggert  <eggert@twinsun.com>
125884         * config/srclist-update: Use three spaces, rather than tab, after '#'
125885         in shell-script copyright notices.  Suggested by Bruno Haible.
125886         Remove unnecessary parenthesization in regular expression.
125888 2003-08-15  Jim Meyering  <jim@meyering.net>
125890         Merge from coreutils.
125891         * lib/xgethostname.c: Include <stdlib.h>.
125892         (xghostname): Don't exit for anything other than memory-related
125893         failure; just return NULL.
125894         * lib/userspec.c: Include "posixver.h".
125895         (parse_user_spec): Accept `.' as a separator only
125896         in pre-POSIX-200112 mode.
125897         * lib/strtoimax.c: Use #elif rather than #else #if.
125898         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
125899         Remove function, now that we can rely on a working tzset function.
125900         [!_LIBC]: Ensure that the required autoconf test has been run.
125901         [!defined _NL_CURRENT && HAVE_STRFTIME]:
125902         Use underlying_strftime for %r.
125903         * lib/sha.c: Merge in some clean-up and optimization changes from
125904         glibc.
125905         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
125906         Ensure that it is a multiple of 64.
125907         Rearrange loop exit tests so as to avoid performing an
125908         additional fread after encountering an error or EOF.
125909         * lib/realloc.c: Update copyright date.
125911 2003-08-15  Jim Meyering  <jim@meyering.net>
125912         and Paul Eggert  <eggert@twinsun.com>
125914         Merge from coreutils.
125915         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
125916         member but strut utmpx does not.  Needed for AIX 4.3.3.
125917         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
125919 2003-08-15  Jim Meyering  <jim@meyering.net>
125920         and Paul Eggert  <eggert@cs.ucla.edu>
125922         Merges from coreutils, etc.
125923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
125924         Require gl_FUNC_TZSET_CLOBBER.
125925         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
125926         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
125927         members.
125929 2003-08-14  Paul Eggert  <eggert@twinsun.com>
125931         Help the merge from coreutils.
125932         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
125933         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
125934         * m4/tzset.m4: Use it too.
125936 2003-08-14  Paul Eggert  <eggert@twinsun.com>
125938         * modules/tzset: New file.
125940 2003-08-14  Jim Meyering  <jim@meyering.net>
125942         Merges from coreutils.
125943         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
125944         variable names, rather than @FNMATCH_H@.
125945         * modules/alloca: Likewise for $(ALLOCA_H).
125947         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
125948         the three copies of the literal target, `fnmatch.h'.
125949         * modules/alloca (alloca.h): Likewise.
125951 2003-08-14  Jim Meyering  <jim@meyering.net>
125953         Merge from coreutils.
125954         * m4/tzset.m4: New file.
125955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
125956         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
125957         otherwise, AIX 5.1 systems would end up using the latter.
125958         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
125959         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
125960         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
125961         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
125963 2003-08-14  Jim Meyering  <jim@meyering.net>
125965         Merge from coreutils.
125966         * lib/obstack.h: Whitespace changes.
125967         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
125968         and xcalloc return values.
125969         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
125970         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
125971         hang on OSF/1 5.1 for DIR on both local and remote file systems.
125972         Reported by (and fix confirmed by) Nelson H. F. Beebe.
125973         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125974         error from mntctl.
125975         Use mntctl's return value to drive the entry-processing loop, since
125976         we can't rely on the value of the vmt_length member in the last
125977         entry.  On some systems doing so could result in exhausting
125978         virtual memory.  Based in part on a patch from Mike Jetzer.
125980 2003-08-14  Jim Meyering  <jim@meyering.net>
125981         and Paul Eggert  <eggert@twinsun.com>
125983         Merges from coreutils, plus other fixes.
125984         * lib/physmem.c: Merge in portability changes from gcc/libiberty
125985         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
125986         for credits and details.  Thanks to Kaveh Ghazi for helping
125987         to keep these files in sync.
125988         (ARRAY_SIZE): Define it.
125989         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
125990         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
125991         (memcasecmp): Don't assume size_t fits in unsigned int.
125992         Remove casts and duplicate code.
125993         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
125994         (memcpy): Remove definition.
125995         Merge in some clean-up and optimization changes from glibc.
125996         [BLOCKSIZE]: Move definition to top of file.
125997         Ensure that it is a multiple of 64.
125998         Rearrange loop exit tests so as to avoid performing an
125999         additional fread after encountering an error or EOF.
126000         * lib/md5.h (md5_uintptr): Define.
126001         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
126002         return to the initial working directory.  Preserve errno
126003         for caller.
126004         * lib/idcache.c: Include "xalloc.h".
126005         (xmalloc, xrealloc): Remove decls.
126006         (getuser): Remove casts no longer required in C89.
126007         * lib/human.c: Include stdio.h, for sprintf.
126008         * lib/group-member.c: Include "xalloc.h".
126009         (xmalloc, xrealloc): Remove decls.
126010         (get_group_info): Remove casts no longer required in C89.
126011         * lib/getusershell.c (readname): Remove casts no longer required in
126012         C89.
126013         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
126014         * lib/getline.c: Whitespace fix, from coreutils.
126016 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126018         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
126019         Check for isascii.
126021         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126022         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126023         Undo previous (whitespace-only) change.
126025 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126027         * lib/exclude.c: Include <ctype.h>
126028         (IN_CTYPE_DOMAIN): New macro.
126029         (is_space): New fn.
126030         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
126031         and empty lines.
126033         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126034         Undo previous (whitespace-only) change.
126036 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126038         * config/srclist-update: Change update back to the old behavior,
126039         leaving whitespace alone.  Use one 'sed' command rather than a
126040         pipeline.
126041         (fixlicense): Now a variable, not a function.
126042         (remove_trailing_blanks): Remove.
126043         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
126044         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126045         Undo previous (whitespace-only) change.
126047 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126049         Merge from coreutils.
126050         * modules/euidaccess: Add lib_SOURCES, include for new
126051         file euidaccess.h
126053 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126055         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126056         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126057         Normalize leading white space and remove trailing white space.
126059         Merge from coreutils
126060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
126062         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
126063         0.12.1.  These files are now being upgraded automatically by
126064         ../config/srclist-update.
126066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126068         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126069         Normalize leading white space and remove trailing white space.
126070         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
126071         notice, as per ../config/srclist-update.
126073         Merge from coreutils.
126074         * lib/euidaccess.h: New file.
126075         * lib/euidaccess.c: Include it.
126076         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
126077         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
126078         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
126080 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126082         * config/srclist-update: Add copyright notice.
126083         (remove_id_lines, remove_trailing_blanks): New constants.
126084         (fixfile): Use them to normalize spacing a bit in copied files.
126085         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126086         Normalize leading white space and remove trailing white space.
126088         * config/texinfo.tex: Sync with texinfo.
126090         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
126091         strtoul.c from libc, to merge coreutils whitespace changes.
126093         * config/srclist.txt: Get the following m4 files from gettext:
126094         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
126095         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
126096         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
126097         wint_t.m4.
126099 2003-08-12  Karl Berry  <karl@gnu.org>
126101         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
126102         been made.
126104 2003-08-11  Paul Eggert  <eggert@twinsun.com>
126106         * modules/gnu-source, m4/gnu-source.m4:
126107         Remove; we're assuming Autoconf 2.54 or later now.
126108         Suggested by Bruno Haible.
126109         * MODULES.html.sh (func_all_modules): Remove gnu-source.
126111 2003-08-11  Bruno Haible  <bruno@clisp.org>
126113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
126115 2003-08-11  Bruno Haible  <bruno@clisp.org>
126117         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
126118         (vasnprintf): Use it instead of wcslen.
126120 2003-08-11  Bruno Haible  <bruno@clisp.org>
126122         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
126123         value to ensure that _Bool promotes to int. Use #define for _Bool when
126124         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
126126 2003-08-10  Karl Berry  <karl@gnu.org>
126128         * lib/regex.h: update from libc (whitespace fix).
126130 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126132         Merge some files from coreutils.  These changes were
126133         originally made by Jim Meyering.
126134         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
126135         many older Unixes require this.
126136         * lib/alloca.c (alloca): Remove cast to argument of free;
126137         no longer needed in C89.
126138         * lib/alloca_.h, regex.h: Fix white space to match
126139         what GNU indent does.
126141 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126143         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
126144         apparently Emacs's Unicode mode got confused before my 2003-08-05
126145         checkin.
126147 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126149         * m4/extensions.m4: New file.
126150         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
126151         Require gl_USE_SYSTEM_EXTENSIONS.
126152         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
126153         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
126155 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126157         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
126158         * modules/extensions, modules/gnu-source: New files.
126159         * modules/timespec, modules/unlocked-io: Depend on extensions.
126161 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126163         * modules/restrict: New file.
126164         * MODULES.html.sh (func_all_modules): Add restrict.
126165         * modules/regex: Depend on restrict.
126167 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126169         * m4/restrict.m4: New file.
126170         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
126172 2003-08-07  Bruno Haible  <bruno@clisp.org>
126174         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
126175         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
126177 2003-08-07  Bruno Haible  <bruno@clisp.org>
126179         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
126180         makes the module 'getndelim2' compatible with the module 'getline'.
126182 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126184         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
126185         byte with "\201" to avoid glitches when editing that source file
126186         with multi-gnome-terminal.
126188 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126190         * lib/bumpalloc.h: Remove.
126192 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126194         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
126195         * modules/bumpalloc: Remove.
126197 2003-08-04  Paul Eggert  <eggert@twinsun.com>
126199         * lib/getloadavg.c: Change copyright notice and spacing to conform to
126200         GNU coding style.
126202         Merge from coreutils.
126203         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
126204         1. From glibc.
126205         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
126206         from Karl Berry, implemented by Jim Meyering.
126207         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
126208         from Dmitry V. Levin.
126209         Remove anachronistic cast of xrealloc.
126210         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
126211         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
126212         type. Otherwise, it wouldn't compile with at least /bin/cc on
126213         ymp-cray-unicos9.0.2.X.
126214         Combine two mostly-identical uses of alloca into one.
126215         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
126217 2003-08-04  Dave Love  <d.love@dl.ac.uk>
126219         [From Emacs.]
126221         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
126222         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
126223         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
126224         obsolete NLIST_NAME_UNION.
126225         [__GNU__]: Undef BSD and FSCALE.
126226         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
126228 2003-08-03  Paul Eggert  <eggert@twinsun.com>
126230         * lib/stdbool_.h (_Bool): Make it signed char, instead of
126231         an enum type, so that it's guaranteed to promote to int.  See:
126232         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
126234 2003-08-03  Karl Berry  <karl@gnu.org>
126236         * config/depcomp: update from automake.
126238 2003-07-31  Paul Eggert  <eggert@twinsun.com>
126240         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
126241         (strerror): Don't assume that a printable int fits in 14 bytes.
126243 2003-07-31  Bruno Haible  <bruno@clisp.org>
126245         * modules/getpass-gnu: New file.
126246         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
126248 2003-07-31  Bruno Haible  <bruno@clisp.org>
126250         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
126252 2003-07-24  Karl Berry  <karl@gnu.org>
126254         * config/missing: update from automake.
126256 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
126257             Bruno Haible  <bruno@clisp.org>
126259         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
126260         * lib/getline.c (getline, getdelim): Likewise.
126261         Remove _GNU_SOURCE define; now it's defined in config.h through
126262         m4/getline.m4.
126264 2003-07-23  Karl Berry  <karl@gnu.org>
126266         * config/config.sub: update from prep.
126268 2003-07-22  Paul Eggert  <eggert@twinsun.com>
126270         * modules/xalloc (Depends-on): Add exitfail.
126271         * modules/xmemcoll: Likewise.
126273 2003-07-22  Paul Eggert  <eggert@twinsun.com>
126275         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
126276         over-parenthesization in macros.
126278         Sync with coreutils.
126280         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
126281         required by C99.
126283         Use `exit_failure' for xalloc and xmemcoll instead of their own
126284         private exit-failure variables.
126285         * lib/xalloc.h (xalloc_exit_failure): Remove.
126286         * lib/xmalloc.c: Likewise.  Include exitfail.h.
126287         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
126288         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
126289         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
126290         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
126292 2003-07-20  Jim Meyering  <jim@meyering.net>
126294         * modules/closeout (Depends-on): Add exitfail.
126295         Suggestion from Bruno Haible.
126297 2003-07-19  Karl Berry  <karl@gnu.org>
126299         * config/config.sub: update from prep.
126301 2003-07-18  Paul Eggert  <eggert@twinsun.com>
126303         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
126304         Remove.
126305         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
126306         to test that it can stand by itself.  Include "exitfail.h".
126307         Clients should set exit_failure instead.
126308         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
126310 2003-07-18  Bruno Haible  <bruno@clisp.org>
126312         * modules/getndelim2: New file.
126313         * modules/getline: Share files with module getndelim2.
126314         * modules/getnline: Depend on getndelim2 instead of sharing files with
126315         it. Add getnline.c to lib_SOURCES.
126316         * MODULES.html.sh (func_all_modules): Add getndelim2.
126318 2003-07-18  Bruno Haible  <bruno@clisp.org>
126320         * m4/getndelim2.m4: New file.
126321         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
126322         invoke gl_PREREQ_GETNDELIM2.
126323         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
126324         gl_PREREQ_GETNDELIM2.
126325         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
126326         gl_GETNDELIM2.
126328 2003-07-18  Bruno Haible  <bruno@clisp.org>
126330         * lib/getndelim2.h: New file.
126331         * lib/getndelim2.c: Make into a module of its own. Include config.h,
126332         getndelim2.h.
126333         (getndelim2): Make non-static. Change return type to ssize_t.
126334         * lib/getline.h: Change argument names.
126335         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
126336         * lib/getnline.c: Include getndelim2.h.
126338 2003-07-18  Andreas Schwab  <schwab@suse.de>
126340         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
126342 2003-07-17  Karl Berry  <karl@gnu.org>
126344         * config/config.sub: update from prep.
126346 2003-07-17  Bruno Haible  <bruno@clisp.org>
126348         * modules/getnline: New file.
126349         * modules/getline: Add lib/getndelim2.c to source file list.
126350         * MODULES.html.sh (func_all_modules): Add getnline.
126352 2003-07-17  Bruno Haible  <bruno@clisp.org>
126354         * m4/getnline.m4: New file.
126356 2003-07-17  Bruno Haible  <bruno@clisp.org>
126358         * m4/Makefile.am.in: Remove file.
126359         * m4/Makefile.am: Remove file.
126360         * m4/Makefile.in: Remove file.
126362 2003-07-17  Bruno Haible  <bruno@clisp.org>
126364         * lib/getnline.h: New file.
126365         * lib/getnline.c: New file.
126366         * lib/getndelim2.c: New file, extracted from getline.c.
126367         (getndelim2): Renamed from getdelim2, with added nmax argument.
126368         * lib/getline.c: Include getndelim2.c.
126369         (getdelim2): Moved out to getndelim2.c.
126370         (getline, getdelim): Update.
126372 2003-07-17  Bruno Haible  <bruno@clisp.org>
126374         * lib/Makefile.am: Remove file.
126375         * lib/Makefile.in: Remove file.
126377 2003-07-17  Bruno Haible  <bruno@clisp.org>
126379         * configure.in: Remove file.
126380         * Makefile.in: Remove file.
126382 2003-07-17  Bruno Haible  <bruno@clisp.org>
126384         * MODULES.html.sh: Put the </BODY> right before </HTML>.
126386 2003-07-16  Karl Berry  <karl@gnu.org>
126388         * config/srclist-update: was running fixlicense twice, which caused
126389                 texinfo.tex to be nullified for some reason.  Simplify,
126390                 $gplsrc is no longer needed as far as I can see?
126392 2003-07-16  Jim Meyering  <jim@meyering.net>
126394         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
126396 2003-07-15  Paul Eggert  <eggert@twinsun.com>
126398         * config/srclist.txt: Get the following files from gettext-runtime/intl
126399         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
126400         ref-del.sin.  From Bruno Haible.
126401         * config/srclist-update (fixfile): Change grep pattern again, since the
126402         previous fix didn't work (there was another trailing $).  Use
126403         '[$]' to escape the $s.
126405 2003-07-15  Karl Berry  <karl@gnu.org>
126407         * lib/vasnprintf.c: update from gettext.
126409 2003-07-15  Karl Berry  <karl@gnu.org>
126411         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
126412         gets expanded when surrounded by '$'.
126414 2003-07-15  Jim Meyering  <jim@meyering.net>
126416         * modules/save-cwd: Don't depend on error.  From Derek Price.
126418 2003-07-15  Jim Meyering  <jim@meyering.net>
126420         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
126422 2003-07-14  Simon Josefsson  <jas@extundo.com>
126424         * modules/mempcpy: New file.
126425         * MODULES.html.sh (func_all_modules): Add mempcpy.
126427 2003-07-14  Simon Josefsson  <jas@extundo.com>
126429         * m4/mempcpy.m4: New file.
126431 2003-07-14  Simon Josefsson  <jas@extundo.com>
126433         * lib/mempcpy.h: New file.
126434         * lib/mempcpy.c: New file.
126436 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126438         * modules/getdate, modules/posixtm: Depend on mktime.
126440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126442         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
126443         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
126444         unicodeio.c, unicodeio.h, unlocked-io.h:
126445         Switch from LGPL to GPL.
126447 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126449         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
126450         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
126451         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
126452         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
126453         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
126454         updated automatically by ../config/srclist-update.  This changes
126455         their license from LPGL to GPL.
126457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126459         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
126460         assumed to refer to the root of the most recent stable gettext version.
126461         * config/srclistvars.sh: Add defaults for eggert.
126462         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
126463         Match "This program" as well as "The program".  This is needed
126464         for gettext.
126466 2003-07-14  Jim Meyering  <jim@meyering.net>
126468         Don't emit diagnostics.  Let callers do that.
126469         * lib/save-cwd.c: Don't include "error.h".
126470         (save_cwd): Don't call error.  Ensure that errno is valid
126471         when returning nonzero.
126473         * lib/save-cwd.h (restore_cwd): Update prototype.
126474         * lib/save-cwd.c (restore_cwd): Remove two parameters.
126475         Simplify.  Don't call error upon failure.  Let callers do that.
126476         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
126477         when auditing is enabled.  But don't bother updating the #if.
126479 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
126481         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
126482         it breaks C++ compilation.
126483         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
126485 2003-07-10  Simon Josefsson  <jas@extundo.com>
126487         * modules/strchrnul (Makefile.am): Add strchrnul.h.
126489 2003-07-10  Jim Meyering  <jim@meyering.net>
126491         * m4/clock_time.m4: Remove trailing blank.
126492         * m4/intmax_t.m4: Likewise.
126494 2003-07-10  Jim Meyering  <jim@meyering.net>
126496         * lib/vasnprintf.c: Remove trailing blanks.
126497         Make cpp indentation consistent.
126499 2003-07-09  Paul Eggert  <eggert@twinsun.com>
126501         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
126502         posixver.c, strftime.c, strnlen.c, strverscmp.c:
126503         Switch from LGPL to GPL.
126505 2003-07-09  Paul Eggert  <eggert@twinsun.com>
126507         * config/srclist.txt: Sort sublists.  Add
126508         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
126509         that differ from gnulib for one reason or another; we'd like this list
126510         to be smaller but for now let's document what we have.
126512 2003-07-08  Paul Eggert  <eggert@twinsun.com>
126514         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
126515         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
126516         and sweeter "eval x=$x".
126517         * config/srclist.txt: Get lib/argp* from glibc.
126519 2003-07-07  Paul Eggert  <eggert@twinsun.com>
126521         * lib/mktime.c: Fix some boundary cases and remove need for floating
126522         point.
126524         Issue a compile-time diagnostic if time_t is floating point, or if
126525         two's complement arithmetic is not in effect, or if arithmetic
126526         right shift does not propagate the sign.  These assumptions were
126527         all in the original code but they weren't checked.
126529         (TIME_T_MIDPOINT, verify): New macros.
126530         (__isleap): Remove; it has integer overflow problems.
126531         (leapyear): New function, without those problems.
126532         (ydhms_tm_diff): Remove; splitting into two parts.
126533         (ydhms_diff): New function, containing the arithmetic part of
126534         the old ydhms_tm_diff function.  Issue a compile-time
126535         diagnostic if we are not using C99 integer division.
126536         Avoid casts when possible.
126537         (guess_time_tm): New function, containing the checking part of
126538         the old ydhms_tm_diff function.  Return the new value, rather than
126539         the difference between it and the old.  Accept a new argument T
126540         so that *T specifies the old value.  Check for overflow in the result.
126542         (__mktime_internal): Use a time_t offset, not a long int offset.
126543         This undoes the 2003-06-04 change, which is no longer needed now
126544         that we have better overflow checking.
126545         (localtime_offset): Likewise.
126547         (__mktime_internal): Avoid harmful overflow on hosts where time_t
126548         and long are 64-bit but int is only 32-bit.
126549         (ydhms_diff): Use long int to store year1 and yday1.
126550         Issue a compile-time diagnostic if long int is not wide enough.
126552         (__mktime_internal): Use long int to store adjusted year and yday.
126553         Use plain C rather than preprocessor commands, if that doesn't
126554         affect efficiency.
126555         Check for overflow (and try to repair) after each probe
126556         rather than checking only at the very end.  This avoids some bugs
126557         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
126558         does not equal GMT offset at maximum time).
126559         Use integer to check for overflow rather than floating point; this
126560         is more portable to non-IEEE hosts, and is a tad faster.
126561         When we detect that we are oscillating between two values,
126562         don't check whether tm_isdst has the requested value, since
126563         we already know the answer.  When tm_isdst has the wrong value,
126564         use a different heuristic to find the right one, based on the
126565         extreme values actually observed in practice in tz2003a,
126566         rather than the (overly optimistic) "previous 3 calendar quarters".
126568         (not_equal_tm, print_tm, check_result): Use "const T" rather than
126569         "T const" to accommodate glibc style.
126570         (check_result): Use less-confusing report format.  "long" -> "long int.
126571         (main): Likewise.
126572         Don't loop if the iteration overflows time_t.
126573         Allow a negative step in the iteration.
126575 2003-07-06  Karl Berry  <karl@gnu.org>
126577         * config/depcomp: update from automake.
126578         * config/config.sub: update from prep.
126580 2003-07-03  Karl Berry  <karl@gnu.org>
126582         * config/config.guess: update from prep.
126584 2003-07-01  Paul Eggert  <eggert@twinsun.com>
126586         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
126587         xreadlink.c now includes it unconditionally.
126589 2003-07-01  Paul Eggert  <eggert@twinsun.com>
126591         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
126592         having it depend on HAVE_SYS_TYPES_H.
126594 2003-07-01  Bruno Haible  <bruno@clisp.org>
126596         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
126597         <sys/types.h> should be sufficient.
126598         Reported by Paul Eggert.
126600 2003-06-26  Karl Berry  <karl@gnu.org>
126602         * config/depcomp: update from automake.
126604 2003-06-26  Bruno Haible  <bruno@clisp.org>
126606         * modules/human: Depend on module stdbool.
126608 2003-06-25  Bruno Haible  <bruno@clisp.org>
126610         * modules/readlink: New file.
126611         * modules/xreadlink: Depend on it.
126612         * MODULES.html.sh (func_all_modules): Add readlink.
126614 2003-06-25  Bruno Haible  <bruno@clisp.org>
126616         * m4/readlink.m4: New file.
126618 2003-06-25  Bruno Haible  <bruno@clisp.org>
126620         * lib/readlink.c: New file.
126622 2003-06-22  Karl Berry  <karl@gnu.org>
126624         * config/srclist.txt: update mkinstalldirs from automake.
126625         * config/mkinstalldirs: update.
126627 2003-06-22  Bruno Haible  <bruno@clisp.org>
126629         Portability to mingw32.
126630         * m4/ssize_t.m4: New file, from GNU gettext.
126631         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
126632         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
126634 2003-06-22  Bruno Haible  <bruno@clisp.org>
126636         * modules/safe-read: Add m4/ssize_t.m4.
126637         * modules/xreadlink: Add m4/ssize_t.m4.
126639 2003-06-20  Bruno Haible  <bruno@clisp.org>
126641         Assume C89, so PARAMS isn't needed.
126642         * lib/unicodeio.h (PARAMS): Remove.
126643         * lib/unicodeio.c: Don't use PARAMS.
126645 2003-06-18  Karl Berry  <karl@gnu.org>
126647         * config/config.{guess,sub}: update from prep.
126649 2003-06-18  Jim Meyering  <jim@meyering.net>
126651         Merge changes from coreutils.
126652         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
126653         Remove explicit declarations of xmalloc and realloc.
126654         Include xalloc.h.
126655         (read_utmp): Remove anachronistic cast of xmalloc.
126657 2003-06-17  Paul Eggert  <eggert@twinsun.com>
126659         Assume C89, so PARAMS isn't needed.
126660         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
126661         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
126662         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
126663         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
126664         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
126665         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
126666         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
126667         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
126668         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
126669         lib/xstrtod.h, lib/xstrtol.h: Likewise.
126670         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
126671         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
126672         no longer needed. Anyway, config.h should always be included before any
126673         other file.
126675 2003-06-11  Simon Josefsson  <jas@extundo.com>
126677         * modules/sysexits: New file.
126678         * MODULES.html.sh (func_all_modules): Add sysexits.
126680 2003-06-11  Simon Josefsson  <jas@extundo.com>
126682         * lib/sysexit_.h: New file.
126684 2003-06-11  Derek Price  <derek@ximbiot.com>
126686         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
126687         necessary.
126689 2003-06-11  Bruno Haible  <bruno@clisp.org>
126691         * m4/sysexits.m4: New file.
126693 2003-06-10  Simon Josefsson  <jas@extundo.com>
126695         * lib/argp.h: New file, from glibc.
126696         * lib/argp-ba.c: New file, from glibc.
126697         * lib/argp-eexst.c: New file, from glibc.
126698         * lib/argp-fmtstream.c: New file, from glibc.
126699         * lib/argp-fmtstream.h: New file, from glibc.
126700         * lib/argp-fs-xinl.c: New file, from glibc.
126701         * lib/argp-help.c: New file, from glibc.
126702         * lib/argp-namefrob.h: New file, from glibc.
126703         * lib/argp-parse.c: New file, from glibc.
126704         * lib/argp-pv.c: New file, from glibc.
126705         * lib/argp-pvh.c: New file, from glibc.
126706         * lib/argp-xinl.c: New file, from glibc.
126708 2003-06-10  Simon Josefsson  <jas@extundo.com>
126710         * modules/strchrnul: New file.
126712 2003-06-10  Simon Josefsson  <jas@extundo.com>
126714         * modules/argp: New file.
126716 2003-06-10  Simon Josefsson  <jas@extundo.com>
126718         * m4/strchrnul.m4: New file.
126720 2003-06-10  Simon Josefsson  <jas@extundo.com>
126722         * lib/strchrnul.h: New file.
126723         * lib/strchrnul.c: New file.
126725 2003-06-10  Bruno Haible  <bruno@clisp.org>
126727         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
126729 2003-06-07  Karl Berry  <karl@gnu.org>
126731         * config/config.{guess,sub}: update from prep.
126733 2003-06-07  Jim Meyering  <jim@meyering.net>
126735         * modules/strtod: Use $(...) notation, not @...@ for
126736         AC_REPLACE'd variables.
126737         * modules/localcharset: Likewise.
126739 2003-06-07  Jim Meyering  <jim@meyering.net>
126741         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
126742         in place of my name in the copyright comment.
126743         Remove definition and uses of __P.
126745         From coreutils.
126746         * lib/stat.c: Don't declare xmalloc explicitly.
126747         Instead, include "xalloc.h".
126748         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
126749         xrealloc, and xcalloc return values.
126750         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
126751         Improve comment.
126752         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
126754 2003-06-07  Bruno Haible  <bruno@clisp.org>
126756         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
126757         avoid AC_CONFIG_LINKS.
126758         * modules/fnmatch (Makefile.am): Use explicit creation rule for
126759         fnmatch.h, to avoid AC_CONFIG_LINKS.
126760         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
126762 2003-06-07  Bruno Haible  <bruno@clisp.org>
126764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
126765         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
126766         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
126767         directory.
126768         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
126769         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
126770         directory.
126772 2003-06-06  Jim Meyering  <jim@meyering.net>
126774         Merge from coreutils.
126775         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
126776         Consolidate declarations and initializations of *_base* locals.
126778         Merge from coreutils.
126779         This avoids a core dump on systems without GNU putenv,
126780         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
126781         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
126782         (unsetenv): New static function, from GNU libc.
126783         (rpl_putenv): Use it.
126785         * lib/modechange.c: Remove trailing blanks.
126787         Merge from coreutils.
126788         * lib/fsusage.c: Remove declaration of statfs.
126789         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
126791         * lib/posixtm.c: Include <stdbool.h> unconditionally.
126793 2003-06-06  Jim Meyering  <jim@meyering.net>
126795         * lib/stdbool_.h: Renamed from stdbool.h.in.
126797 2003-06-06  Jim Meyering  <jim@meyering.net>
126798             Bruno Haible  <bruno@clisp.org>
126800         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
126801         Adjust Makefile.am snippet not to redirect directly to target.
126802         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
126804 2003-06-05  Paul Eggert  <eggert@twinsun.com>
126806         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
126807         mismatch, look in future quarters as well as past.  This fixes a
126808         bug when processing fall-backwards gaps immediately after a long
126809         period of daylight-saving time.
126811         * lib/mktime.c: Assume freestanding C89 or better.
126812         (HAVE_LIMITS_H): Remove.  Assume it's 1.
126813         (__P): Remove; not used.
126814         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
126815         (mktime, not_equal_tm, print_tm, check_result,
126816         main): Use prototypes.  Use const * where appropriate.
126817         (main): Fix typo in testing code that uncovered by above changes.
126818         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
126820 2003-06-04  Paul Eggert  <eggert@twinsun.com>
126822         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
126823         locale.h, localeconv.  This merges changes from coreutils.
126825         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
126826         It can be removed after the next Autoconf is released.
126827         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
126828         needed.
126830 2003-06-04  Paul Eggert  <eggert@twinsun.com>
126832         * lib/mktime.c: Fix Debian bug 177940
126833         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
126834         (localtime_offset): Now long int, not time_t, because we want it
126835         to be guaranteed to be signed.  All uses changed.
126836         (__mktime_internal): If overflow would occur when adding offset,
126837         don't add it.
126839         Merge 'human' changes from coreutils.  Rewrite to support
126840         locale-specific notations like thousands separators.
126841         * lib/human.c: Simplify authorship notice.
126842         Include human.h immediately after config.h.
126843         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
126844         <limits.h>: Do not include, since human.h does.
126845         (SIZE_MAX, UINTMAX_MAX): New macros.
126846         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
126847         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
126848         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
126849         (power_letter): Renamed from suffixes.
126850         (generate_suffix_backwards): Remove.
126851         (adjust_value): Now takes int style (because of human.h changes)
126852         and long double value (for greater precision on some platforms).
126853         (group_number): New function.
126854         (human_readable): Use it.  Use integer options, not enum.
126855         Put the options before the sizes in the arg list.
126856         Support all the new options.
126857         The old human_readable function has been removed;
126858         use inttostr.h instead.
126859         (human_readable, default_block_size, humblock):
126860         Use uintmax_t, not int, for block sizes.
126861         (human_readable_inexact, block_size_types): Remove.
126862         (block_size_opts): New constant.
126863         (human_options): Renamed from human_block_size, with new signature
126864         that allows block sizes up to UINTMAX_MAX.  All callers changed.
126865         * lib/human.h: Add copyright and authorship notice.
126866         Include <limits.h> and <stdbool.h> unconditionally.
126867         (PARAMS): Remove.  All uses removed.
126868         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
126869         (enum human_inexact_style): Remove tag; now a nameless enum.
126870         (human_floor, human_ceiling, human_round_to_even): Now have
126871         values 2, 0, 1 rather than -1, 1, 0.
126872         (human_group_digits, human_suppress_point_zero, human_autoscale,
126873         human_base_1024, human_SI, human_B): New constants.
126874         (human_readable_inexact, human_block_size): Remove.
126875         (human_readable): Size args are now uintmax_t, not int.
126876         (human_options): New decl.
126878         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
126879         unnecessary now that we assume C89 or better.  This change
126880         imported from coreutils.
126882         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
126883         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
126884         in the 2003-05-30 sync from glibc.
126886         .h files should stand alone, but we shouldn't include <sys/types.h>
126887         if we can get away with just <stddef.h>.
126889         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
126890         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
126891         rather than <sys/types.h>, as we merely need size_t.
126892         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
126893         to get size_t.
126894         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
126895         Include <stdio.h>, to get FILE.
126896         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
126897         memcasecmp.h has included <stddef.h> and all we need is size_t.
126898         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
126899         our interface, instead of including <sys/types.h>
126901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
126903         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
126904         now, as glibc mktime is buggy on non-glibc systems.
126906 2003-06-03  Karl Berry  <karl@gnu.org>
126908         * config/config.sub: update from prep.
126910 2003-06-02  Paul Eggert  <eggert@twinsun.com>
126912         [from coreutils]
126913         Fix some minor time-related bugs with POSIX time arguments.
126914         Some valid time stamps were being rejected (notably -1, and
126915         time stamps before 1900 on 64-bit hosts).  And some invalid
126916         time stamps were being accepted, e.g. September 31.
126918         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
126919         that we can return (time_t) -1 successfully.
126920         * lib/posixtm.c: Likewise.
126921         [HAVE_STDBOOL_H]: Include <stdbool.h>.
126922         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
126923         (t): Remove static var.
126924         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
126925         of static var.  All uses changed.
126926         (year): Do not reject years before 1900; they can occur with
126927         64-bit time_t.
126928         (posix_time_parse): Do not check for out-of-range components;
126929         that is now the caller's responsibility, since our checks were
126930         only approximations.
126931         (posixtime): Use mktime to check for out-of-range components,
126932         since it knows them exactly.
126933         If mktime returns (time_t) -1, check whether an error actually occurred
126934         by invoking localtime on -1.
126935         (main) [TEST_POSIXTIME]: Check for input data errors, and report
126936         posixtime failures better.
126937         Improve the test data (in comments only).
126939 2003-06-02  Karl Berry  <karl@gnu.org>
126941         * config/mkinstalldirs (version): new variable.
126942         (--version): new option.
126943         (usage): improve message.
126945 2003-05-30  Karl Berry  <karl@gnu.org>
126947         * lib/mktime.c: update from libc.
126949 2003-05-30  Bruno Haible  <bruno@clisp.org>
126951         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
126952         * config/config.rpath: Upgrade to gettext-0.12.1.
126954 2003-05-30  Bruno Haible  <bruno@clisp.org>
126956         * m4/gettext.m4: Upgrade to gettext-0.12.1.
126957         * m4/nls.m4: New file, from gettext-0.12.1.
126958         * m4/po.m4: New file, from gettext-0.12.1.
126959         * m4/progtest.m4: Upgrade to gettext-0.12.1.
126961 2003-05-30  Bruno Haible  <bruno@clisp.org>
126963         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
126964         * lib/localcharset.h: Likewise.
126965         * lib/localcharset.c: Likewise.
126967 2003-05-29  Karl Berry  <karl@gnu.org>
126969         * config/config.rpath: update from gettext.
126971 2003-05-28  Paul Eggert  <eggert@twinsun.com>
126973         Assume the headers required for C89 freestanding compilers.
126974         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
126975         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
126976         * m4/human.m4 (gl_HUMAN): Likewise.
126977         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
126978         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
126979         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126980         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
126981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126982         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
126984 2003-05-28  Paul Eggert  <eggert@twinsun.com>
126986         Assume the headers required for C89 freestanding compilers.
126987         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
126988         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
126989         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
126990         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
126991         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
126992         define, since <limits.h> is guaranteed to do that.
126993         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
126994         * lib/exclude.c: Include <stdbool.h> unconditionally.
126995         * lib/tempname.c: Include <stddef.h> unconditionally.
126996         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
126997         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
126998         <stddef.h> does that.
126999         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
127000         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
127001         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
127002         needed.
127003         * lib/xstrtol.c: Likewise.
127004         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
127005         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
127007         * lib/addext.c (addext): Use assignment rather than cast, to avoid
127008         warnings on some platforms.
127010         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127011         arbitrarily.
127013 2003-05-26  Jim Meyering  <jim@meyering.net>
127015         Merge in a change from coreutils:
127016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
127017         that is guaranteed to be `no'.  Use `no_such_member' to indicate
127018         that condition, rather than `-1' which is slightly misleading.
127019         Change the name of the cache variable to have the gl_ prefix.
127020         Prompted by a patch from Richard Dawe for DJGPP.
127022 2003-05-24  Karl Berry  <karl@gnu.org>
127024         * config/config.guess: update from prep.
127026 2003-05-22  Karl Berry  <karl@gnu.org>
127028         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
127030 2003-05-20  Karl Berry  <karl@gnu.org>
127032         * config/config.guess: update from prep.
127034 2003-05-18  Karl Berry  <karl@gnu.org>
127036         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
127037         might actually be set by the user.
127039         * config/depcomp, install-sh, mdate-sh: update from automake.
127041 2003-05-17  Bruno Haible  <bruno@clisp.org>
127043         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
127044         invalid expansion for AC_EGREP_CPP.
127045         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
127046         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
127047         Suggested by Akim Demaille <akim@epita.fr> in
127048         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
127050 2003-05-12  Jim Meyering  <jim@meyering.net>
127052         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
127053         the space-padded-by-default conversion specifiers, %e, %k, %l.
127055 2003-05-12  Bruno Haible  <bruno@clisp.org>
127057         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
127058         the string is longer than 4 KB.
127060 2003-05-11  Karl Berry  <karl@gnu.org>
127062         * config/config.{guess,sub}: update from prep.
127064 2003-05-09  Bruno Haible  <bruno@clisp.org>
127066         * modules/error: Add m4/strerror_r.m4 to file list.
127068 2003-05-03  Bruno Haible  <bruno@clisp.org>
127070         Upgrade to Unicode-4.0.
127071         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
127072         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
127073         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
127074         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
127075         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
127076         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
127077         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
127078         Change width of U+E0100..U+E01EF from 1 to 0.
127080 2003-04-25  Jim Meyering  <jim@meyering.net>
127082         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
127083         of type size_t, not int.
127085 2003-04-25  Bruno Haible  <bruno@clisp.org>
127087         * lib/copy-file.c: Include <stddef.h>, for size_t.
127089 2003-04-21  Paul Eggert  <eggert@twinsun.com>
127091         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
127092         code which expansion is under static control.  Patch imported from
127093         Akim Demaille's patch to Bison; see
127094         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
127096 2003-04-14  Bruno Haible  <bruno@clisp.org>
127098         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
127100 2003-04-11  Jim Meyering  <jim@meyering.net>
127102         Merge changes from Coreutils.
127104         2003-03-22  Jim Meyering  <jim@meyering.net>
127106         * lib/strftime.c (widen): Cast alloca return value to proper type.
127108         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
127110         From GNU libc.
127111         * lib/strftime.c (my_strftime): Handle very large width
127112         specifications for numeric values correctly.  Improve checks for
127113         overflow.
127115         2003-01-19  Jim Meyering  <jim@meyering.net>
127117         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
127118         definitions.
127119         (nl_get_alt_digit) [! defined my_strftime]: Define.
127120         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
127121         _nl_get_alt_digit and _nl_get_walt_digit.
127123         * lib/strftime.c (my_strftime): Merge in locale-related changes from
127124         libc. These changes have no effect outside of _LIBC.
127126 2003-04-10  Bruno Haible  <bruno@clisp.org>
127128         * modules/findprog: New file.
127129         * MODULES.html.sh (func_all_modules): Add it.
127131 2003-04-10  Bruno Haible  <bruno@clisp.org>
127133         * m4/findprog.m4: New file.
127134         * m4/eaccess.m4: New file.
127136 2003-04-10  Bruno Haible  <bruno@clisp.org>
127138         * lib/findprog.h: New file, from GNU gettext.
127139         * lib/findprog.c: New file, from GNU gettext.
127141 2003-04-05  Jim Meyering  <jim@meyering.net>
127143         Merge changes from Coreutils.
127145         * lib/exclude.h (PARAMS): Remove definition and uses.
127146         * lib/exclude.c: Remove uses of `PARAMS'.
127148         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
127149         Add test-cases for DOS filenames. Declare program_name.
127150         (main): Set up program_name.  Patch by Rich Dawe.
127152         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127153         error from mntctl.
127154         Use mntctl's return value to drive the entry-processing loop, since
127155         we can't rely on the value of the vmt_length member in the last
127156         entry.  On some systems doing so could result in exhausting
127157         virtual memory.  Based in part on a patch from Mike Jetzer.
127159 2003-04-04  Bruno Haible  <bruno@clisp.org>
127161         * modules/linebreak: New file.
127162         * MODULES.html.sh (func_all_modules): Add it.
127164 2003-04-04  Bruno Haible  <bruno@clisp.org>
127166         * m4/linebreak.m4: New file.
127168 2003-04-04  Bruno Haible  <bruno@clisp.org>
127170         * lib/linebreak.h: New file, from GNU gettext.
127171         * lib/linebreak.c: New file, from GNU gettext with slight
127172         modifications.
127173         * lib/lbrkprop.h: New file, from GNU gettext.
127175 2003-04-03  Bruno Haible  <bruno@clisp.org>
127177         * modules/utf8-ucs4: New file.
127178         * modules/utf16-ucs4: New file.
127179         * modules/ucs4-utf8: New file.
127180         * modules/ucs4-utf16: New file.
127181         * MODULES.html.sh (func_all_modules): Add them.
127183 2003-04-03  Bruno Haible  <bruno@clisp.org>
127185         * m4/utf-ucs4.m4: New file.
127186         * m4/ucs4-utf.m4: New file.
127188 2003-04-03  Bruno Haible  <bruno@clisp.org>
127190         * lib/utf8-ucs4.h: New file, from GNU gettext.
127191         * lib/utf16-ucs4.h: New file, from GNU gettext.
127192         * lib/ucs4-utf8.h: New file, from GNU gettext.
127193         * lib/ucs4-utf16.h: New file, from GNU gettext.
127195 2003-04-02  Bruno Haible  <bruno@clisp.org>
127197         * modules/binary-io: New file.
127198         * MODULES.html.sh (func_all_modules): Add it.
127200 2003-04-02  Bruno Haible  <bruno@clisp.org>
127202         * lib/binary-io.h: New file, from GNU gettext.
127204 2003-04-01  Bruno Haible  <bruno@clisp.org>
127206         * modules/pathname: New file.
127207         * MODULES.html.sh (func_all_modules): Add it.
127209 2003-04-01  Bruno Haible  <bruno@clisp.org>
127211         * lib/pathname.h: New file, from GNU gettext.
127212         * lib/concatpath.c: New file, from GNU gettext.
127214 2003-03-30  Bruno Haible  <bruno@clisp.org>
127216         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
127218 2003-03-30  Bruno Haible  <bruno@clisp.org>
127220         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
127221         function chown() doesn't exist.
127223 2003-03-28  Bruno Haible  <bruno@clisp.org>
127225         * modules/copy-file: New file.
127226         * MODULES.html.sh (func_all_modules): Add it.
127228 2003-03-28  Bruno Haible  <bruno@clisp.org>
127230         * m4/copy-file.m4: New file.
127232 2003-03-28  Bruno Haible  <bruno@clisp.org>
127234         * lib/copy-file.h: New file, from GNU gettext.
127235         * lib/copy-file.c: New file, from GNU gettext.
127237 2003-03-18  Jim Meyering  <jim@meyering.net>
127239         * lib/quote.c (quote_n): Fix typo in comment.
127241 2003-03-18  Bruno Haible  <bruno@clisp.org>
127243         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
127244         checking.
127245         * m4/onceonly_2_57.m4: Likewise.
127247 2003-03-17  Bruno Haible  <bruno@clisp.org>
127249         * m4/onceonly.m4: Require autoconf 2.54 or newer.
127250         (m4_quote): Remove macro.
127251         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
127253 2003-03-14  Jim Meyering  <jim@meyering.net>
127255         Merge changes from Coreutils.
127256         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
127257         to be const, in order to avoid warnings.
127258         (obstack_room): Likewise.
127259         (obstack_empty_p): Likewise.
127261 2003-03-14  Bruno Haible  <bruno@clisp.org>
127263         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
127264         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
127266 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127268         Merge changes from Bison.
127269         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
127270         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
127271         when compiling Bison 1.875's `bitset bset = obstack_alloc
127272         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
127273         * lib/hash.c: Include <stdbool.h> unconditionally.
127275 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127277         * m4/onceonly.m4 (m4_quote): New macro.
127278         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
127279         Quote AC_FOREACH variable-expansions properly.
127281 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127283         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
127285 2003-03-09  Paul Eggert  <eggert@twinsun.com>
127287         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
127288         Reported by Bruce Becker; see:
127289         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
127291 2003-03-03  Paul Eggert  <eggert@twinsun.com>
127292             Bruno Haible  <bruno@clisp.org>
127294         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
127295         Reported by John Hughes, see
127296         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
127298 2003-02-20  Bruno Haible  <bruno@clisp.org>
127300         * MODULES.html.sh (func_all_modules): Add poll.
127302 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127304         * modules/poll: New file.
127306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127308         * lib/poll_.h: New file.
127309         * lib/poll.c: New file.
127311 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127313         * m4/poll.m4: New file.
127315 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127317         * modules/mathl: New file.
127319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127321         * lib/mathl.h: New file.
127322         * lib/acosl.c: New file.
127323         * lib/asinl.c: New file.
127324         * lib/atanl.c: New file.
127325         * lib/ceill.c: New file.
127326         * lib/cosl.c: New file.
127327         * lib/expl.c: New file.
127328         * lib/floorl.c: New file.
127329         * lib/frexpl.c: New file.
127330         * lib/ldexpl.c: New file.
127331         * lib/logl.c: New file.
127332         * lib/sincosl.c: New file.
127333         * lib/sinl.c: New file.
127334         * lib/sqrtl.c: New file.
127335         * lib/tanl.c: New file.
127336         * lib/trigl.c: New file.
127337         * lib/trigl.h: New file.
127339 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127341         * m4/mathl.m4: New file.
127343 2003-02-18  Bruno Haible  <bruno@clisp.org>
127345         * MODULES.html.sh (func_all_modules): Add mathl.
127347 2003-02-17  Bruno Haible  <bruno@clisp.org>
127349         * modules/mkdtemp: New module.
127350         * MODULES.html.sh (func_all_modules): Add it.
127352 2003-02-17  Bruno Haible  <bruno@clisp.org>
127354         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
127356 2003-02-17  Bruno Haible  <bruno@clisp.org>
127358         * lib/mkdtemp.h: New file, from GNU gettext.
127359         * lib/mkdtemp.c: New file, from GNU gettext.
127361 2003-02-02  Jim Meyering  <jim@meyering.net>
127363         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
127364         e.g. glibc-2.2.93.
127366 2003-01-31  Bruno Haible  <bruno@clisp.org>
127368         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
127369         'rpl_rename'.
127370         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
127371         'rpl_strnlen'.
127372         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
127373         'rpl_strtod'.
127374         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
127375         'rpl_utime'.
127377 2003-01-31  Bruno Haible  <bruno@clisp.org>
127379         * lib/rename.c: #undef rename before defining rpl_rename.
127380         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
127382 2003-01-30  Bruno Haible  <bruno@clisp.org>
127384         * modules/vasnprintf, modules/vasprintf: New modules.
127385         * MODULES.html.sh (func_all_modules): Add them.
127387 2003-01-30  Bruno Haible  <bruno@clisp.org>
127389         * m4/signed.m4: New file, from GNU gettext.
127390         * m4/longdouble.m4: New file, from GNU gettext.
127391         * m4/wchar_t.m4: New file, from GNU gettext.
127392         * m4/wint_t.m4: New file, from GNU gettext.
127393         * m4/vasnprintf.m4: New file.
127394         * m4/vasprintf.m4: New file.
127396 2003-01-30  Bruno Haible  <bruno@clisp.org>
127398         * lib/printf-args.h: New file, from GNU gettext.
127399         * lib/printf-args.c: New file, from GNU gettext.
127400         * lib/printf-parse.h: New file, from GNU gettext.
127401         * lib/printf-parse.c: New file, from GNU gettext.
127402         * lib/vasnprintf.h: New file, from GNU gettext.
127403         * lib/vasnprintf.c: New file, from GNU gettext.
127404         * lib/asnprintf.c: New file, from GNU gettext.
127405         * lib/vasprintf.h: New file, from GNU gettext with modifications.
127406         * lib/vasprintf.c: New file, from GNU gettext.
127407         * lib/asprintf.c: New file, from GNU gettext.
127409 2003-01-29  Bruno Haible  <bruno@clisp.org>
127411         * modules/stpncpy: New module.
127412         * MODULES.html.sh (func_all_modules): Add it.
127414 2003-01-29  Bruno Haible  <bruno@clisp.org>
127416         * m4/stpncpy.m4: New file.
127418 2003-01-29  Bruno Haible  <bruno@clisp.org>
127420         * lib/stpncpy.h: New file, from GNU gettext with modifications.
127421         * lib/stpncpy.c: New file, from GNU gettext with modifications.
127423 2003-01-28  Bruno Haible  <bruno@clisp.org>
127425         * modules/c-ctype: New module.
127426         * MODULES.html.sh (func_all_modules): Add it.
127428 2003-01-28  Bruno Haible  <bruno@clisp.org>
127430         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
127431         Paul Eggert.
127432         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
127433         Paul Eggert.
127435 2003-01-27  Bruno Haible  <bruno@clisp.org>
127437         * modules/xsetenv: New module.
127438         * MODULES.html.sh (func_all_modules): Add it.
127440 2003-01-27  Bruno Haible  <bruno@clisp.org>
127442         * lib/xsetenv.h: New file, from GNU gettext.
127443         * lib/xsetenv.c: New file, from GNU gettext.
127445 2003-01-23  Jim Meyering  <jim@meyering.net>
127447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
127448         from working on systems without dirfd (at least Irix and OSF1/Tru64).
127450 2003-01-23  Bruno Haible  <bruno@clisp.org>
127452         * modules/minmax: New module.
127453         * MODULES.html.sh (func_all_modules): Add it.
127455 2003-01-23  Bruno Haible  <bruno@clisp.org>
127457         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
127458         Eggert.
127460 2003-01-22  Bruno Haible  <bruno@clisp.org>
127462         * modules/exit: New module.
127463         * MODULES.html.sh (func_all_modules): Add it.
127465 2003-01-22  Bruno Haible  <bruno@clisp.org>
127467         * lib/exit.h: New file, from GNU gettext.
127469 2003-01-19  Bruno Haible  <bruno@clisp.org>
127471         * gnulib-tool: Recognize option --extract-maintainer.
127472         (func_get_maintainer): New function.
127473         * modules/*: Add Maintainer entry.
127475 2003-01-16  Jim Meyering  <jim@meyering.net>
127477         * m4/regex.m4: The `regex' struct is both input and output.
127478         Initialize it before each use.  Patch by Tim Waugh.
127480 2003-01-16  Bruno Haible  <bruno@clisp.org>
127482         * MODULES.html.sh: Add a table of contents. Add the module name as
127483         leftmost column. Add hyperlinks.
127485 2003-01-15  Bruno Haible  <bruno@clisp.org>
127487         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
127489 2003-01-15  Bruno Haible  <bruno@clisp.org>
127491         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
127492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
127493         suffix.
127495 2003-01-15  Bruno Haible  <bruno@clisp.org>
127497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
127499 2003-01-15  Bruno Haible  <bruno@clisp.org>
127501         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
127502         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
127504 2003-01-14  Jim Meyering  <jim@meyering.net>
127506         * lib/same.c (same_name): Tweak a comment.
127508 2003-01-14  Bruno Haible  <bruno@clisp.org>
127510         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
127511         when a string comparison is sufficient.
127513 2003-01-14  Bruno Haible  <bruno@clisp.org>
127515         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
127516         'unsigned int'.
127518 2003-01-14  Bruno Haible  <bruno@clisp.org>
127520         * lib/hash-pjw.c: Add comment about low quality of this function.
127522 2003-01-13  Bruno Haible  <bruno@clisp.org>
127524         * modules/stpcpy: Distribute lib/stpcpy.h.
127525         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
127527 2003-01-13  Bruno Haible  <bruno@clisp.org>
127529         * modules/*: Add a description.
127530         * modules/strpbrk: Fix Makefile.am snippet.
127531         * modules/strtoimax: Fix dependencies.
127532         * modules/strtoumax: Likewise.
127534 2003-01-13  Bruno Haible  <bruno@clisp.org>
127536         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
127537         * modules/alloca (Makefile.am): All object files depend on alloca.h.
127538         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
127540 2003-01-13  Bruno Haible  <bruno@clisp.org>
127542         * gnulib-tool (func_create_testdir): Store config/* files in the main
127543         directory.
127544         * config.rpath: Move to ...
127545         * config/config.rpath: ... here.
127546         * modules/gettext: Contains config/config.rpath, not config.rpath.
127547         * modules/iconv: Likewise.
127549 2003-01-12  Paul Eggert  <eggert@twinsun.com>
127551         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
127552         to avoid collisions with libcurses and libreadline.
127554         * m4/getstr.m4: Remove.
127555         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
127557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
127559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
127560         to avoid collisions with libcurses and libreadline.
127562         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
127563         * lib/getstr.h, getstr.c: Remove.
127564         * lib/getline.c: Include "getline.h", to check interface.
127565         Move body of old getstr.c here: this defines MIN_CHUNK and
127566         declares getdelim2, which is renamed from getstr.
127567         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
127569         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
127570         All uses changed.
127571         * lib/linebuffer.h: Likewise.
127572         (readline): Remove backward-compatibility macro.
127574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
127576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
127577         to avoid collisions with libcurses and libreadline.
127578         * getstr: Remove.
127579         * MODULES.html.sh: Remove getstr.
127580         * modules/getline: Depend on unlocked-io, not getstr.
127582 2003-01-12  Jim Meyering  <jim@meyering.net>
127584         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
127586 2003-01-10  Bruno Haible  <bruno@clisp.org>
127588         * modules/alloca: Change Makefile.am requirements. Simplify Include
127589         requirements. Add lib/alloca_.h to file list.
127591 2003-01-10  Bruno Haible  <bruno@clisp.org>
127593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
127595 2003-01-10  Bruno Haible  <bruno@clisp.org>
127597         * lib/alloca_.h: New file.
127598         * lib/getdate.y: Unconditionally include alloca.h.
127599         * lib/makepath.c: Likewise.
127600         * lib/setenv.c: Likewise.
127601         * lib/userspec.c: Likewise.
127603 2003-01-09  Karl Berry  <karl@gnu.org>
127605         * MODULES.html.sh: include `dirname $0` in PATH, to find
127606         gnulib-tool.
127608 2003-01-09  Bruno Haible  <bruno@clisp.org>
127610         * modules/stdbool: Change configure.ac, Makefile.am requirements.
127611         Simplify Include requirements. Add lib/stdbool.h.in to file list.
127613 2003-01-09  Bruno Haible  <bruno@clisp.org>
127615         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
127617 2003-01-09  Bruno Haible  <bruno@clisp.org>
127619         * lib/stdbool.h.in: New file.
127621 2003-01-09  Bruno Haible  <bruno@clisp.org>
127623         * gnulib-tool (func_all_modules): Ignore files ending in ~.
127624         * MODULES.html.sh: Likewise.
127626 2003-01-08  Jim Meyering  <jim@meyering.net>
127628         * lib/full-write.c: Undefine and define-away `const' after inclusion
127629         of errno.h, not before.  Suggestion from Bruno Haible.
127631 2003-01-08  Bruno Haible  <bruno@clisp.org>
127633         * modules/full-read: Depend on full-write.
127635 2003-01-08  Bruno Haible  <bruno@clisp.org>
127637         * lib/safe-read.c: Include specification header first, to ensure its
127638         selfcontainedness.
127639         * lib/full-write.c: Likewise.
127641 2003-01-07  Jim Meyering  <jim@meyering.net>
127643         * lib/full-write.c: Rework so that it may serve to define full_read,
127644         too.
127645         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
127647 2003-01-07  Bruno Haible  <bruno@clisp.org>
127649         * lib/strtoimax.c: Include <stdint.h> as an alternative to
127650         <inttypes.h>.
127651         * lib/xstrtol.h: Likewise.
127652         * lib/xstrtoimax.c: Likewise.
127653         * lib/xstrtoumax.c: Likewise.
127654         * lib/human.h: Likewise.
127656         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
127657         on systems that have <inttypes.h> but not <stdint.h>.
127659 2003-01-07  Bruno Haible  <bruno@clisp.org>
127661         * MODULES.html.sh: Add copyright notice.
127662         (missed_files): Omit CVS directory entries.
127663         (func_module): Make it work with sed-3.02.
127664         * MODULES.txt: Remove file.
127666 2003-01-06  Jim Meyering  <jim@meyering.net>
127668         * lib/version-etc.c: Update year in translatable copyright string.
127670 2003-01-03  Karl Berry  <karl@gnu.org>
127672         * config/config.{guess,sub}: update from prep.
127674 2003-01-02  Karl Berry  <karl@gnu.org>
127676         * doc/COPYING.DOC: belatedly updated to 1.2.
127678 2003-01-01  Karl Berry  <karl@gnu.org>
127680         * gnulib-tool (func_verify_module): report module name $module in
127681         error message, not $1.
127682         * gnulib-tool (create-testdir): don't complain if destdir couldn't
127683         be created, only if it doesn't exist.
127684         * gnulib-tool (last_checkin_date): don't expand the $Date here.
127686 2002-12-31  Paul Eggert  <eggert@twinsun.com>
127688         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
127690 2002-12-31  Paul Eggert  <eggert@twinsun.com>
127692         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
127693         memcmp if strcoll doesn't work.
127695 2002-12-31  Bruno Haible  <bruno@clisp.org>
127697         * lib/utime.c (utime_null): No need to call ftruncate if the file was
127698         nonempty.
127700 2002-12-31  Bruno Haible  <bruno@clisp.org>
127702         * lib/memcoll.c (STRCOLL): New macro.
127703         (memcoll): Use it.
127705 2002-12-31  Bruno Haible  <bruno@clisp.org>
127707         * lib/localcharset.h: New file.
127708         * lib/localcharset.c: Include it.
127709         * lib/unicodeio.c: Likewise.
127711 2002-12-31  Bruno Haible  <bruno@clisp.org>
127713         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
127714         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
127716 2002-12-31  Bruno Haible  <bruno@clisp.org>
127718         * lib/getline.h: Include <stddef.h>, for size_t.
127720         * lib/unicodeio.h: Include <stddef.h>, for size_t.
127721         * lib/unicodeio.c: Don't include <stddef.h>.
127723 2002-12-31  Bruno Haible  <bruno@clisp.org>
127725         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
127726         HAVE_TM_ZONE.
127728 2002-12-24  Karl Berry  <karl@gnu.org>
127730         * config/config.guess: update from prep.
127732 2002-12-24  Bruno Haible  <bruno@clisp.org>
127734         General infrasructure.
127735         * m4/README: Rewritten.
127736         * m4/onceonly.m4: New file.
127737         * m4/onceonly_2_57.m4: New file.
127739         Module atexit.
127740         * m4/atexit.m4: New file.
127742         Module strtod.
127743         * m4/strtod.m4: New file.
127745         Module strtol.
127746         * m4/strtol.m4: New file.
127748         Module strtoul.
127749         * m4/strtoul.m4: New file.
127751         Module memchr.
127752         * m4/memchr.m4: New file.
127754         Module memcmp.
127755         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
127756         (jm_FUNC_MEMCMP): Invoke it.
127758         Module memcpy.
127759         * m4/memcpy.m4: New file.
127761         Module memmove.
127762         * m4/memmove.m4: New file.
127764         Module memset.
127765         * m4/memset.m4: New file.
127767         Module strcspn.
127768         * m4/strcspn.m4: New file.
127770         Module strpbrk.
127771         * m4/strpbrk.m4: New file.
127773         Module strstr.
127774         * m4/strstr.m4: New file.
127776         Module strerror.
127777         * m4/strerror.m4: New file.
127779         Module mktime.
127780         * m4/mktime.m4: Renamed from jm-mktime.m4.
127781         (gl_PREREQ_MKTIME): New macro.
127782         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
127784         Module malloc.
127785         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
127786         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
127787         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
127789         Module realloc.
127790         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
127791         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
127792         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
127794         Module strftime.
127795         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
127796         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
127797         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
127798         gl_TM_GMTOFF.
127799         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
127801         Module xalloc.
127802         * m4/xalloc.m4: New file.
127804         Module alloca.
127805         * m4/alloca.m4: New file.
127807         Module putenv.
127808         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
127809         (jm_FUNC_PUTENV): Invoke it.
127811         Module setenv.
127812         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
127813         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
127814         when invoked twice.
127815         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
127816         gt_FUNC_SETENV.
127818         Module memrchr.
127819         * m4/memrchr.m4: New file.
127821         Module stpcpy.
127822         * m4/stpcpy.m4: New file.
127824         Module strcase.
127825         * m4/strcase.m4: New file.
127827         Module strdup.
127828         * m4/strdup.m4: New file.
127830         Module strnlen.
127831         * m4/strnlen.m4: New file.
127833         Module strndup.
127834         * m4/strndup.m4: New file.
127836         Module xstrtod.
127837         * m4/xstrtod.m4: New file.
127839         Module xstrtol.
127840         * m4/xstrtol.m4: New file.
127842         Module getdate.
127843         * m4/getdate.m4: New file.
127845         Module unlocked-io.
127846         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
127847         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
127848         * m4/jm-glibc-io.m4n: Remove file.
127850         Module long-options.
127851         * m4/long-options.m4: New file.
127853         Module md5.
127854         * m4/md5.m4: New file.
127856         Module sha.
127857         * m4/sha.m4: New file.
127859         Module getstr.
127860         * m4/getstr.m4: New file.
127862         Module getline.
127863         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
127864         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
127865         <sys/types.h>, for size_t. Use the function name gnu_getline, not
127866         simply getline. Infoke gl_PREREQ_GETLINE.
127868         Module obstack.
127869         * m4/obstack.m4: New file.
127871         Module hash.
127872         * m4/hash.m4: New file.
127874         Module readtokens.
127875         * m4/readtokens.m4: New file.
127877         Module strverscmp.
127878         * m4/strverscmp.m4: New file.
127880         Module stdbool.
127881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
127882         OSF/1.
127884         Module strtoll.
127885         * m4/strtoll.m4: New file.
127887         Module strtoull.
127888         * m4/strtoull.m4: New file.
127890         Module strtoimax.
127891         * m4/strtoimax.m4: New file.
127893         Module strtoumax.
127894         * m4/strtoumax.m4: New file.
127896         Module xstrtoimax.
127897         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
127898         jm_AC_PREREQ_XSTRTOIMAX.
127899         Moved the strtol prerequisites to strtol.m4.
127900         Moved the strtoll prerequisites to strtoll.m4.
127901         Moved the strtoimax prerequisites to strtoimax.m4.
127903         Module xstrtoumax.
127904         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
127905         jm_AC_PREREQ_XSTRTOUMAX.
127906         Moved the strtoul prerequisites to strtoul.m4.
127907         Moved the strtoull prerequisites to strtoull.m4.
127908         Moved the strtoumax prerequisites to strtoumax.m4.
127910         Module chown.
127911         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
127912         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
127914         Module dup2.
127915         * m4/dup2.m4: New file.
127917         Module ftruncate.
127918         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
127919         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
127921         Module getgroups.
127922         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
127923         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
127925         Module gettimeofday.
127926         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
127927         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
127928         gl_PREREQ_GETTIMEOFDAY.
127930         Module mkdir.
127931         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
127932         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
127934         Module mkstemp.
127935         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
127936         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
127937         jm_AC_TYPE_UINTMAX_T.
127938         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
127940         Module stat.
127941         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
127942         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
127944         Module lstat.
127945         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
127946         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
127948         Module timespec.
127949         * m4/timespec.m4 (gl_TIMESPEC): New macro.
127950         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
127951         * m4/st_mtim.m4: Indentation.
127953         Module nanosleep.
127954         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
127955         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
127956         gl_PREREQ_NANOSLEEP.
127958         Module regex.
127959         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
127960         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
127961         (gl_REGEX): New macro.
127963         Module rename.
127964         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
127965         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
127967         Module rmdir.
127968         * m4/rmdir.m4: New file.
127970         Module utime.
127971         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
127972         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
127973         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
127975         Module dirname.
127976         * m4/dirname.m4: New file.
127978         Module getopt.
127979         * m4/getopt.m4: New file.
127981         Module unistd-safer.
127982         * m4/unistd-safer.m4: New file.
127984         Module fnmatch.
127985         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
127986         declaration.
127987         (gl_PREREQ_FNMATCH_EXTRA): New macro.
127988         (gl_FUNC_FNMATCH_POSIX): New macro.
127989         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
127990         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
127991         simply fnmatch.
127993         Module exclude.
127994         * m4/exclude.m4: New file.
127996         Module human.
127997         * m4/human.m4: New file.
127999         Module acl.
128000         * m4/acl.m4: Nop.
128002         Module backupfile.
128003         * m4/backupfile.m4: New file.
128004         * m4/d-ino.m4: Indentation.
128006         Module fsusage.
128007         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
128008         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
128009         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
128011         Module dirfd.
128012         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
128013         requirements.
128015         Module euidaccess.
128016         * m4/euidaccess.m4: New file.
128018         Module file-type.
128019         * m4/file-type.m4: New file.
128021         Module fileblocks.
128022         * m4/fileblocks.m4: New file.
128024         Module filemode.
128025         * m4/filemode.m4: New file.
128027         Module isdir.
128028         * m4/isdir.m4: New file.
128030         Module lchown.
128031         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
128032         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
128034         Module makepath.
128035         * m4/makepath.m4: New file.
128037         Module modechange.
128038         * m4/modechange.m4: New file.
128040         Module mountlist.
128041         * m4/mountlist.m4: New file.
128042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
128043         Indentation.
128045         Module path-concat.
128046         * m4/path-concat.m4: New file.
128048         Module pathmax.
128049         * m4/pathmax.m4: New file.
128051         Module same.
128052         * m4/same.m4: New file.
128054         Module save-cwd.
128055         * m4/save-cwd.m4: New file.
128057         Module savedir.
128058         * m4/savedir.m4: New file.
128060         Module xgetcwd.
128061         * m4/xgetcwd.m4: New file.
128062         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
128064         Module xreadlink.
128065         * m4/xreadlink.m4: New file.
128067         Module safe-read.
128068         * m4/safe-read.m4: New file.
128070         Module safe-write.
128071         * m4/safe-write.m4: New file.
128073         Module closeout.
128074         * m4/closeout.m4: New file.
128076         Module stdio-safer.
128077         * m4/stdio-safer.m4: New file.
128079         Module getpass.
128080         * m4/getpass.m4: New file.
128082         Module getugroups.
128083         * m4/getugroups.m4: New file.
128085         Module group-member.
128086         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
128087         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
128089         Module idcache.
128090         * m4/idcache.m4: New file.
128092         Module userspec.
128093         * m4/userspec.m4: New file.
128095         Module gettime.
128096         * m4/clock_time.m4: New file.
128097         * m4/gettime.m4: New file.
128099         Module settime.
128100         * m4/settime.m4: New file.
128102         Module posixtm.
128103         * m4/posixtm.m4: New file.
128105         Module gethostname.
128106         * m4/gethostname.m4: New file.
128108         Module canon-host.
128109         * m4/canon-host.m4: New file.
128111         Module gettext.
128112         * m4/codeset.m4: New file, from gettext-0.11.5.
128113         * m4/gettext.m4: New file, from gettext-0.11.5.
128114         * m4/glibc21.m4: New file, from gettext-0.11.5.
128115         * m4/iconv.m4: New file, from gettext-0.11.5.
128116         * m4/intdiv0.m4: New file, from gettext-0.11.5.
128117         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
128118         * m4/inttypes.m4: New file, from gettext-0.11.5.
128119         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
128120         * m4/isc-posix.m4: New file, from gettext-0.11.5.
128121         * m4/lcmessage.m4: New file, from gettext-0.11.5.
128122         * m4/lib-ld.m4: New file, from gettext-0.11.5.
128123         * m4/lib-link.m4: New file, from gettext-0.11.5.
128124         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
128125         * m4/progtest.m4: New file, from gettext-0.11.5.
128126         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
128127         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
128128         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
128130         Module localcharset.
128131         * m4/localcharset.m4: New file.
128133         Module hard-locale.
128134         * m4/hard-locale.m4: New file.
128136         Module mbswidth.
128137         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
128138         onceonly macros.
128139         * m4/mbrtowc.m4: Add comment.
128141         Module memcasecmp.
128142         * m4/memcasecmp.m4: New file.
128144         Module memcoll.
128145         * m4/memcoll.m4: New file.
128147         Module unicodeio.
128148         * m4/unicodeio.m4: New file.
128150         Module rpmatch.
128151         * m4/rpmatch.m4: New file.
128153         Module yesno.
128154         * m4/yesno.m4: New file.
128156         Module exitfail.
128157         * m4/exitfail.m4: New file.
128159         Module c-stack.
128160         * m4/c-stack.m4 (gl_C_STACK): New macro.
128161         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
128163         Module error.
128164         * m4/error.m4 (gl_ERROR): New macro.
128165         (jm_PREREQ_ERROR): Use onceonly macros.
128167         Module fatal.
128168         * m4/fatal.m4: New file.
128170         Module getloadavg.
128171         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
128172         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
128174         Module getpagesize.
128175         * m4/getpagesize.m4: New file.
128177         Module getusershell.
128178         * m4/getusershell.m4: New file.
128180         Module physmem.
128181         * m4/physmem.m4: New file.
128183         Module posixver.
128184         * m4/posixver.m4: New file.
128186         Module quotearg.
128187         * m4/quotearg.m4: New file.
128189         Module quote.
128190         * m4/quote.m4: New file.
128192         Module readutmp.
128193         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
128195         Module sig2str.
128196         * m4/sig2str.m4: New file.
128198         Other.
128199         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
128200         ulonglong.m4.
128201         * m4/intmax_t.m4: New file.
128202         * m4/d-type.m4: Indentation.
128203         * m4/jm-macros.m4: Update.
128204         * m4/prereq.m4 (jm_PREREQ): Update.
128205         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
128206         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
128207         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
128208         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
128209         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
128210         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
128211         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
128212         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
128213         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
128214         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
128215         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
128216         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
128217         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
128218         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
128219         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
128220         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
128221         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
128222         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
128223         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
128225 2002-12-24  Bruno Haible  <bruno@clisp.org>
128227         * MODULES.txt: Update according to m4/ changes.
128229         Module gettext.
128230         * config.rpath: New file, from gettext-0.11.5.
128232         * modules/*: New module descriptions.
128233         * gnulib-tool: New file.
128234         * MODULES.html.sh: New file.
128236 2002-12-21  Karl Berry  <karl@gnu.org>
128238         * doc/fdl.texi: update to version 1.2.
128240 2002-12-19  Karl Berry  <karl@gnu.org>
128242         * config/config.guess: update from prep.
128244 2002-12-18  Bruno Haible  <bruno@clisp.org>
128246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
128247         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
128249 2002-12-17  Bruno Haible  <bruno@clisp.org>
128251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
128252         stdlib.h, string.h.
128254 2002-12-17  Bruno Haible  <bruno@clisp.org>
128256         * lib/canon-host.c (strdup): Remove unused declaration.
128258         * lib/fsusage.c: Include full_read.h.
128259         (get_fs_usage): Use full_read instead of safe_read.
128261         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
128263 2002-12-12  Karl Berry  <karl@gnu.org>
128265         * config/config.guess: update from prep.
128267 2002-12-11  Bruno Haible  <bruno@clisp.org>
128269         * m4/setenv.m4: New file, from gettext-0.11.5.
128271 2002-12-11  Bruno Haible  <bruno@clisp.org>
128273         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
128274         not unsetenv().
128275         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
128276         modifications:
128278         2002-12-11  Bruno Haible  <bruno@clisp.org>
128280                 * setenv.c (alloca): Fall back to malloc.
128281                 (freea): New macro.
128282                 (setenv): Use freea() to free memory allocated with alloca().
128284         2002-11-13  Bruno Haible  <bruno@clisp.org>
128286                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
128287                 function declarations.
128288                 * unsetenv.c (unsetenv): Likewise.
128290         2002-03-04  Bruno Haible  <bruno@clisp.org>
128292                 Portability to AIX 4.3.3.
128293                 * unsetenv.c: New file, extracted from setenv.c.
128294                 * setenv.c: Move the unsetenv() function to unsetenv.c.
128296         2001-12-20  Bruno Haible  <bruno@clisp.org>
128298                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
128299                 use malloc instead. For SunOS 4.
128301         2001-12-11  Bruno Haible  <bruno@clisp.org>
128303                 * setenv.c: Declare alloca.
128304                 (compar_fn_t): New typedef.
128305                 (KNOWN_VALUE, STORE_VALUE): Use it.
128307         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
128308         setenv.h.
128310 2002-12-10  Paul Eggert  <eggert@twinsun.com>
128312         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
128313         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
128314         Choose values that are less likely to collide with system fnmatch
128315         options.
128316         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
128317         defined (e.g., a pure POSIX system).
128318         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
128319         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
128321 2002-12-06  Paul Eggert  <eggert@twinsun.com>
128323         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
128324         a pain in practice to deal with generated m4 files.  This change
128325         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
128327         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
128328         and jm-glibc-io.m4, as they are no longer a special case.
128329         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
128330         kludge and the auto-generation stuff.  Check only whether the
128331         functions are declared, not whether they exist, since older hosts
128332         that don't declare the functions can't use the optimization anyway.
128334 2002-12-06  Jim Meyering  <jim@meyering.net>
128336         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
128338         Merge in changes from libc's misc/error.c, in preparation
128339         for the merge of gnulib's changes back into libc.
128341         * lib/error.c (_): Define only if not already defined.
128342         Move definition to follow all #include directives.
128343         Include unlocked-io.h only if !_LIBC.
128344         [_LIBC]: Include <libio/libioP.h>.
128345         [USE_IN_LIBIO]: Include <libio/iolibio.h>
128346         (fflush): Tweak definition to use INTUSE.
128347         (putc): Define.
128349 2002-12-05  Paul Eggert  <eggert@twinsun.com>
128351         * lib/alloca.c [defined emacs]: Include "lisp.h".
128352         (xalloc_die) [defined emacs]: New macro.
128353         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
128354         [! defined emacs]: Include <xalloc.h>.
128355         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
128356         (pointer): Typedef to POINTER_TYPE *.
128357         (malloc): Remove decl; we now always use xmalloc.
128358         (alloca): Use old-style definition, since Emacs needs this.
128359         Check for arithmetic overflow when computing combined size.
128361 2002-12-04  Paul Eggert  <eggert@twinsun.com>
128363         Do not generate unlocked-io.h automatically, since it's easier to
128364         maintain it by hand.
128366         * lib/unlocked-io.h: New file, from GNU diffutils,
128367         but with proper copyright notice and attribution.
128368         * lib/gen-uio: Remove.
128369         * lib/Makefile.am: Add copyright notice.
128370         (libfetish_a_SOURCES): Add unlocked-io.h.
128371         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
128372         (DISTCLEANFILES, io_functions): Remove macros.
128373         (EXTRA_DIST): Remove gen_uio.
128374         (unlocked-io.h): Remove rule.
128376 2002-12-04  Jim Meyering  <jim@meyering.net>
128378         Reflect the fact that stat.c and lstat.c are no longer generated.
128379         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
128380         (DISTCLEANFILES): Likewise.
128381         (EXTRA_DIST): Likewise.
128382         (all_local): Don't depend on stat.c or lstat.c.
128383         (stat.c, lstat.c): Remove rules.
128384         (EXTRA_DIST): Remove xstat.in.
128386         * lib/xstat.in: Remove file.  Contents moved into stat.c.
128387         * lib/stat.c: New file.  Contents mostly from xstat.in.
128388         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
128389         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
128391         * lib/safe-read.c: Rework so that it may serve to define safe_write,
128392         too.
128393         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
128395 2002-12-03  Jim Meyering  <jim@meyering.net>
128397         * lib/safe-read.c, safe-write.c: Change variable names and comments,
128398         but not semantics, to minimize the differences between these two files.
128399         (safe_read): Change comment to mention SAFE_READ_ERROR.
128401         * lib/safe-read.c (IS_EINTR): Define.
128402         (safe_read): Use IS_EINTR in place of in-function cpp directives.
128404 2002-12-02  Jim Meyering  <jim@meyering.net>
128406         * lib/safe-read.c (EINTR): Define.
128407         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128408         (INT_MAX): Provide fallback.
128409         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
128411         * lib/safe-read.h (SAFE_READ_ERROR): Define.
128413 2002-12-02  Bruno Haible  <bruno@clisp.org>
128415         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
128416         Define, taken from safe-read.c.
128417         (INT_MAX): Provide fallback.
128418         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
128419         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
128421         * lib/safe-read.c (EINTR): Remove definition.
128422         (safe_read): Don't use EINTR if it is absent.
128424 2002-12-01  Jim Meyering  <jim@meyering.net>
128426         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
128427         zero.
128428         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
128430 2002-11-27  Paul Eggert  <eggert@twinsun.com>
128432         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
128433         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
128434         with `if (! (value < limit)) abort ();', for readability.
128436 2002-11-26  Karl Berry  <karl@gnu.org>
128438         * lib/strdup.c: copy from libc again, with jim's ok.
128439         * lib/.cppi-disable: re-add strdup.c
128441 2002-11-25  Karl Berry  <karl@gnu.org>
128443         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
128444         instead of "strtol.c".
128446 2002-11-25  Karl Berry  <karl@gnu.org>
128448         * config/install-sh: update from automake for variable quoting, $0 in
128449         error msgs, etc.
128451         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
128452         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
128453         entry.
128455 2002-11-25  Jim Meyering  <jim@meyering.net>
128457         * lib/mktime.c: Sync from libc, now that it has the latest fix.
128459 2002-11-24  Karl Berry  <karl@gnu.org>
128461         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
128462         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
128464 2002-11-24  Jim Meyering  <jim@meyering.net>
128466         Update from coreutils:
128468         * lib/mktime.c: Merge in changes from libc.
128470         Avoid a link-time failure on some Linux systems.
128471         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
128472         (otherwise).
128473         (__mon_yday): Declare with the STATIC attribute.
128474         (__mktime_internal): Likewise.
128475         Based on a report from Greg Schafer.
128477 2002-11-23  Jim Meyering  <jim@meyering.net>
128479         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
128480         Use `unsigned', not `int', as type of index.
128482         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
128484         * lib/fsusage.c: Remove unneeded parentheses around operands of
128485         `defined'.
128487 2002-11-22  Paul Eggert  <eggert@twinsun.com>
128489         * lib/quotearg.h: Allow multiple inclusion by surrounding with
128490         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
128491         so that we can be included first.
128492         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
128493         * lib/quotearg.c: Include quotearg.h immediately after config.h.
128494         No need to include stddef.h or sys/types.h any more.
128495         Surround local include files with "", not "<>".
128496         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
128497         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
128498         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
128499         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
128500         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
128501         (ISPRINT): Remove; no longer needed now that we assume C89.
128503         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
128504         Preserve errno.
128506         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
128507         quotearg_char): Use SIZE_MAX rather than
128508         (size_t) -1 when we are talking about "infinity".
128510         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
128512 2002-11-22  Paul Eggert  <eggert@twinsun.com>
128514         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
128515         hint that one should use `if (! x) abort ();' rather than `assert
128516         (x);', and anyway it's one less thing to worry about configuring.
128517         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
128518         hash_rehash, hash_insert): Use abort rather than assert.
128520 2002-11-22  Bruno Haible  <bruno@clisp.org>
128522         * lib/safe-read.h: Assume C89. Add comments.
128523         (safe_read): Change return type to size_t.
128524         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
128525         byte counts > SSIZE_MAX correctly.
128526         * lib/safe-write.h: New file.
128527         * lib/safe-write.c: New file.
128528         * lib/full-read.h: New file.
128529         * lib/full-read.c: New file.
128530         * lib/full-write.h: Assume C89. Add comments.
128531         * lib/full-write.c: Include safe-write.h.
128532         (full_write): Rewritten to use safe_write.
128533         Suggested by Jim Meyering and Paul Eggert.
128535 2002-11-21  Jim Meyering  <jim@meyering.net>
128537         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
128539         Merge in changes from the coreutils.
128541         2002-09-25  Paul Eggert  <eggert@twinsun.com>
128542         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
128543         <stdint.h>.
128544         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
128545         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
128546         int.  Work more efficiently if X is the same width as uintmax_t.
128547         Do not compare X to -1, to avoid bogus compiler warning.
128548         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
128549         Don't assume that f_frsize and f_bsize are the same type.
128551         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
128552         warning on FreeBSD.
128554         * lib/makepath.c (make_path): Restore umask *before* creating the final
128555         component.
128556         (make_path): Minor reformatting.
128558         * lib/xmalloc.c: Adjust to work with new autoconf macros,
128559         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
128560         HAVE_MALLOC/HAVE_REALLOC.
128562         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
128563         dummy ones.  At least on GNU/Linux systems, `auto' means something
128564         else.
128565         From Michael Stone.
128567 2002-11-21  Bruno Haible  <bruno@clisp.org>
128569         Remove case insensitive option matching.
128570         * lib/argmatch.h (argcasematch): Remove declaration.
128571         (ARGCASEMATCH): Remove macro.
128572         (__xargmatch_internal): Remove case_sensitive argument.
128573         (XARGMATCH): Update.
128574         (XARGCASEMATCH): Remove macro.
128575         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
128576         case_sensitive argument.
128577         (argcasematch): Remove function.
128578         (__xargmatch_internal): Remove case_sensitive argument.
128579         (main): Use XARGMATCH instead of XARGCASEMATCH.
128581         * lib/xmalloc.c: Change compile-time error message. Add comment about
128582         required autoconf version.
128584 2002-11-20  Paul Eggert  <eggert@twinsun.com>
128586         Merge argmatch cleanups from Bison.  Assume C89.
128588         * lib/argmatch.c: Include config.h here, not in argmatch.h.
128589         Include stdlib.h, for EXIT_FAILURE.
128590         Always include <string.h>, since we assume C89.
128591         (EXIT_FAILURE): Remove pre-C89 bug workaround.
128592         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
128593         Include <stddef.h> instead, since it's all we need for size_t.
128594         (PARAMS): Remove.  All uses removed.
128595         (ARRAY_CARDINALITY): Do not bother to #undef.
128596         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
128597         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
128598         Remove unnecessary parentheses.
128599         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
128600         Insert necessary parentheses.
128601         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
128602         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
128604 2002-11-19  Bruno Haible  <bruno@clisp.org>
128606         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
128607         * lib/mbswidth.h: Include <stddef.h>, for size_t.
128609         * lib/mbswidth.h (PARAMS): Remove macro.
128610         (mbswidth, mbsnwidth): Use ANSI C function declarations.
128611         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
128613         * lib/gcd.h (PARAMS): Remove macro.
128614         (gcd): Use ANSI C function declarations.
128615         * lib/gcd.c (gcd): Likewise.
128617 2002-11-15  Bruno Haible  <bruno@clisp.org>
128619         * lib/strcspn.c: Include <stddef.h>.
128620         (strcspn): Use ANSI C function declaration. Change return type to
128621         size_t. Use NULL.
128622         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
128623         (strpbrk): Use NULL.
128624         * lib/strpbrk.h (PARAMS): Remove macro.
128625         (strpbrk): Use ANSI C function declaration.
128626         * lib/strstr.c: Don't include <sys/types.h>.
128627         * lib/strstr.h (PARAMS): Remove macro.
128628         (strstr): Use ANSI C function declarations.
128630 2002-11-14  Karl Berry  <karl@gnu.org>
128632         * config/mkinstalldirs: `do' on separate line, instead of
128633         `for var; do'.
128635 2002-11-06  Bruno Haible  <bruno@clisp.org>
128637         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
128638         * lib/gcd.c (gcd): Likewise.
128640 2002-11-05  Bruno Haible  <bruno@clisp.org>
128642         * lib/gcd.h: New file, from gettext-0.11.5.
128643         * lib/gcd.c: New file, from gettext-0.11.5.
128645 2002-11-05  Bruno Haible  <bruno@clisp.org>
128647         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
128648         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
128649         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
128650         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
128652         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
128653         <libintl.h>.
128654         * lib/makepath.c: Include gettext.h instead of <locale.h> and
128655         <libintl.h>.
128657         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
128658         * lib/human.c: Include gettext.h instead of <libintl.h>.
128659         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
128660         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
128661         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
128662         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
128663         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
128664         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
128665         (textdomain): Remove definition.
128666         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
128668         * lib/long-options.c: Remove include of <libintl.h> and definition of
128669         _.
128670         * lib/same.c: Remove include of <libintl.h> and definition of _.
128672 2002-11-04  Owen Taylor  <otaylor@redhat.com>
128674         * lib/config.charset: A few additions for Solaris.
128676 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
128678         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
128679         * lib/localcharset.c (locale_charset): Declare as extern "C".
128681 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
128683         * lib/config.charset: msdos in uk_UA uses CP1125.
128685 2002-11-04  Bruno Haible  <bruno@clisp.org>
128687         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
128688         * lib/strcase.h: New file, from GNU gettext-0.11.5.
128689         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
128690         * lib/strstr.h: New file, from GNU gettext-0.11.5.
128691         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
128693 2002-11-04  Bruno Haible  <bruno@clisp.org>
128695         * lib/localcharset.c (locale_charset): Don't return an empty string.
128697 2002-11-04  Bruno Haible  <bruno@clisp.org>
128699         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
128700         aliases.
128702 2002-11-04  Bruno Haible  <bruno@clisp.org>
128704         * lib/config.charset: Update for newest glibc. Add canonical names
128705         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
128707 2002-11-04  Bruno Haible  <bruno@clisp.org>
128709         * lib/config.charset: Add support for NetBSD.
128711 2002-11-04  Bruno Haible  <bruno@clisp.org>
128713         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
128715 2002-11-01  Bruno Haible  <bruno@clisp.org>
128717         * configure.in: Add AC_CONFIG_AUX_DIR call.
128718         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
128719         test/Makefile.
128720         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
128722 2002-09-28  Karl Berry  <karl@gnu.org>
128724         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
128725         installed automake until the next release, since changes have been
128726         made.
128728 2002-09-25  Karl Berry  <karl@gnu.org>
128730         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
128731         * lib/getopt*: copy from libc/posix.
128732         * lib/gettext.h: copy from gettext.
128733         * lib/.cppi-disable: add strdup.c, gettext.h.
128735 2002-09-25  Karl Berry  <karl@gnu.org>
128737         * config/srclist.txt: enable gettext.h check.
128738         * config/config.{guess,sub}: update from prep.
128739         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
128740                 from automake 1.6.3.
128741         See srclist*.
128743 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
128745         * regex.c (PATFETCH): Remove the translating fetch.
128746         (PATFETCH_RAW): Rename to PATFETCH.
128747         (set_image_of_range): New fun.
128748         (SET_RANGE_TABLE_WORK_AREA): Use it.
128749         (regex_compile): Don't translate the pattern chars so eagerly.
128750         Only do it when inserting an `exactn' bytecode or when handling
128751         a char-range.
128752         (mutually_exclusive_p): Avoid empty statement.
128754 2002-07-06  Jim Meyering  <meyering@lucent.com>
128756         * m4/README: Don't mention Makefile.am.in.
128757         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
128759 2002-07-01  Jim Meyering  <meyering@lucent.com>
128761         * lib/c-stack.c: Include sys/time.h.
128762         From Volker Borchert.
128764 2002-06-26  Paul Eggert  <eggert@twinsun.com>
128766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
128768 2002-06-26  Paul Eggert  <eggert@twinsun.com>
128770         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
128771         New macro.  Use it uniformly instead of
128772         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
128773         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
128774         reported by Vin Shelton.
128776 2002-06-22  Paul Eggert  <eggert@twinsun.com>
128778         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
128779         Do not assume SA_SIGINFO behavior.
128780         Bug reported by Jim Meyering on NetBSD 1.5.2.
128782 2002-06-22  Jim Meyering  <meyering@lucent.com>
128784         * m4/c-stack.m4: New file, from diffutils-2.8.2.
128785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
128787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
128788         now that configure.ac uses AC_GNU_SOURCE.
128789         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
128790         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
128792         Update to latest tools.  Suggestions from Paul Eggert.
128793         * m4/stdbool.m4: New file, from diffutils-2.8.2.
128794         * m4/gnu-source.m4: Update from diffutils-2.8.2.
128795         * m4/fnmatch.m4: Likewise.
128796         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
128797         to AC_HEADER_STDBOOL
128799 2002-06-22  Jim Meyering  <meyering@lucent.com>
128801         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
128802         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
128804 2002-06-22  Jim Meyering  <meyering@lucent.com>
128806         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
128808         * lib/exitfail.c, exitfail.h: Likewise.
128809         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
128811         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
128812         of fnmatch.h.
128813         (EXTRA_DIST): Add fnmatch_loop.c.
128814         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
128816         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
128817         * lib/fnmatch.c: Update from diffutils-2.8.2.
128818         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
128819         * lib/fnmatch.h: Remove file.
128821 2002-06-21  Jim Meyering  <meyering@lucent.com>
128823         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
128824         * m4/mbrtowc.m4: Likewise.
128826         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
128827         * m4/mbswidth.m4: Reflect name change:
128828         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
128829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128831         * m4/lib-link.m4: Update from gettext-0.11.2.
128832         * m4/gettext.m4: Likewise.
128834         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
128835         From Alfred M. Szmidt.
128837 2002-06-18  Paul Eggert  <eggert@twinsun.com>
128839         * lib/file-type.h: Report an error if neither S_ISREG nor
128840         S_IFREG is defined, instead of using a test specific to glibc
128841         2.2.  This should be safe, since POSIX requires S_ISREG and
128842         Unix Version 7 had S_IFREG.  We don't need to check for
128843         <sys/types.h> since we don't use any symbols that it defines.
128845 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
128847         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
128848         $@-t, so that each temporary file name is unique and valid in the first
128849         8 characters, for operation under DOS.
128851 2002-06-15  Paul Eggert  <eggert@twinsun.com>
128853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
128855 2002-06-15  Jim Meyering  <meyering@lucent.com>
128857         Work even with DJGPP 2.03, which lacks support for symlinks.
128858         From Richard Dawe.
128859         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
128860         is defined.
128861         * lib/lchown.c (S_ISLNK): Likewise.
128863 2002-06-15  Jim Meyering  <meyering@lucent.com>
128865         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
128866         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
128867         have been included before this file.
128869 2002-06-14  Jim Meyering  <meyering@lucent.com>
128871         * lib/file-type.h: Use the version from diffutils-2.8.2.
128872         * lib/file-type.c: Likewise.
128874 2002-06-07  Jim Meyering  <meyering@lucent.com>
128876         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
128877         They're needed at least for NetBSD 1.5.2.
128878         ($statxfs_includes): Include those same headers.
128879         ($statxfs_includes): Include sys/vfs.h if available.
128880         ($statxfs_includes): Likewise for sys/statvfs.h.
128881         Check for the following members in both structs statfs and statvfs:
128882         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
128884 2002-06-01  Jim Meyering  <meyering@lucent.com>
128886         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
128887         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
128889 2002-05-28  Jim Meyering  <meyering@lucent.com>
128891         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
128892         Reported by Volker Borchert.
128894 2002-05-27  Jim Meyering  <meyering@lucent.com>
128896         Fix a problem seen only on nonconforming systems whereby ls.c's
128897         use of localtime, and then of gettimeofday would cause trouble:
128898         the localtime call used to initialize rpl_gettimeofday's save
128899         mechanism would clobber ls's current local time information so
128900         that in any long listing the first file would always be listed
128901         with date 1970-01-01.  Analysis by Volker Borchert.
128903         * lib/gettimeofday.c (localtime): Undefine.
128904         (rpl_localtime): New function.
128906 2002-05-27  Jim Meyering  <meyering@lucent.com>
128908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
128909         localtime.
128911         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
128912         use the replacement function; it wouldn't resolve at link time.
128913         Reported by Volker Borchert.
128915 2002-05-22  Jim Meyering  <meyering@lucent.com>
128917         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
128918         file-type.h.
128919         * lib/file-type.h: New file.
128920         * lib/file-type.c (file_type): New file/function.  Extracted from
128921         diffutils.
128923 2002-04-30  Jim Meyering  <meyering@lucent.com>
128925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
128927 2002-04-29  Paul Eggert  <eggert@twinsun.com>
128929         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
128931 2002-04-29  Paul Eggert  <eggert@twinsun.com>
128933         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
128934         Do not check for alloca.h (no longer used) or stdbool.h (was never
128935         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
128937 2002-04-29  Paul Eggert  <eggert@twinsun.com>
128939         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
128941 2002-04-29  Jim Meyering  <meyering@lucent.com>
128943         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
128944         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
128945         Use AC_FUNC_STRNLEN here instead.
128947         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
128948         With autoconf-2.53a, it's part of AC_PROG_CC.
128950 2002-04-28  Paul Eggert  <eggert@twinsun.com>
128952         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
128953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
128955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
128957         * lib/sig2str.h, lib/sig2str.c: New files.
128958         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
128960 2002-04-28  Paul Eggert  <eggert@twinsun.com>
128962         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
128963         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
128964         of 127, since 64 is the largest conceivable number for ancient
128965         nonstandard hosts.
128966         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
128968 2002-04-28  Jim Meyering  <meyering@lucent.com>
128970         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
128972 2002-04-24  Jim Meyering  <meyering@lucent.com>
128974         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
128975         (jm_PREREQ): Use it.
128977         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
128978         mach/mach.h fcntl.h.
128979         Check for this function: setlocale.
128981 2002-04-24  Jim Meyering  <meyering@lucent.com>
128983         * lib/gettext.h: New file, from Gettext.
128984         * lib/Makefile.am (INCLUDES): Remove -I../intl.
128985         (libfetish_a_SOURCES): Add gettext.h.
128987 2002-04-16  Jim Meyering  <meyering@lucent.com>
128989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
128990         ut_pid, ut_id, ut_exit.
128992 2002-04-16  Jim Meyering  <meyering@lucent.com>
128994         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
128995         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
128996         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
128998 2002-04-12  Jim Meyering  <meyering@lucent.com>
129000         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
129001         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
129002         existence of the getmntinfo function.  Needed for Darwin 5.3.
129004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
129005         This is necessary at least on Darwin 5.3.
129007         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
129008         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
129009         strnlen.o in the library, and that makes some versions of ranlib
129010         object.
129012 2002-04-12  Jim Meyering  <meyering@lucent.com>
129014         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
129016 2002-04-09  Jim Meyering  <meyering@lucent.com>
129018         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
129019         to be more precise.  Rather than saying we're checking whether the
129020         function `works', say what we're testing.
129021         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
129022         Reported by Bruno Haible.
129024 2002-03-10  Jim Meyering  <meyering@lucent.com>
129026         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
129027         Suggestion from Santiago Vila.
129029 2002-03-08  Jim Meyering  <meyering@lucent.com>
129031         * lib/rename.c: Mention that this wrapper is needed also on
129032         mips-dec-ultrix4.4 systems.
129034 2002-03-02  Jim Meyering  <meyering@lucent.com>
129036         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
129037         not HAVE_CLOCK_SETTIME.
129039 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129041         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
129042         Check for clock_settime.
129044 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129046         * lib/nanosleep.h: Rename to....
129047         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
129049         * lib/gettime.c: New file.
129050         * lib/settime.c: New file.
129051         * lib/stime.c: Remove.
129053         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
129054         timespec.h.  Remove nanosleep.h.
129056 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129058         * m4/acl.m4: New file.
129059         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
129060         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
129062 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129064         * lib/acl.c, lib/acl.h: New files.
129065         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
129067 2002-02-24  Jim Meyering  <meyering@lucent.com>
129069         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
129070         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
129071         cause trouble.  Reported by Nelson Beebe.
129073 2002-02-23  Paul Eggert  <eggert@twinsun.com>
129075         * lib/path-concat.c (xpath_concat): Reorder code to pacify
129076         compilers that don't know that xalloc_die never returns.
129078 2002-02-20  Jim Meyering  <meyering@lucent.com>
129080         * lib/getdate.c: Regenerate using bison-1.33.
129082 2002-02-17  Jim Meyering  <meyering@lucent.com>
129084         * config/config.guess (main): Don't use `head -1'; it's no longer
129085         portable. Use `sed 1q' instead.
129087 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
129089         * m4/codeset.m4: Upgrade to gettext-0.11.
129090         * m4/gettext.m4: Upgrade to gettext-0.11.
129091         * m4/glibc21.m4: Upgrade to gettext-0.11.
129092         * m4/iconv.m4: Upgrade to gettext-0.11.
129093         * m4/isc-posix.m4: Upgrade to gettext-0.11.
129094         * m4/lcmessage.m4: Upgrade to gettext-0.11.
129095         * m4/lib-ld.m4: New file, from gettext-0.11.
129096         * m4/lib-link.m4: New file, from gettext-0.11.
129097         * m4/lib-prefix.m4: New file, from gettext-0.11.
129098         * m4/progtest.m4: Upgrade to gettext-0.11.
129100 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129102         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
129103         (jm_PREREQ): Use it.
129105 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129107         * lib/posixver.c, lib/posixver.h: New files.
129108         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129110 2002-02-02  Paul Eggert  <eggert@twinsun.com>
129111             Bruno Haible  <bruno@clisp.org>
129113         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
129114         (fwrite_success_callback): New declaration.
129115         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
129116         print_unicode_char. Call failure callback instead of error.
129117         (fwrite_success_callback): New function.
129118         (exit_failure_callback): New function.
129119         (fallback_failure_callback): New function.
129120         (print_unicode_char): Call unicode_to_mb.
129122 2002-01-26  Jim Meyering  <meyering@lucent.com>
129124         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
129125         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
129127 2002-01-26  Jim Meyering  <meyering@lucent.com>
129129         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
129131 2002-01-22  Paul Eggert  <eggert@twinsun.com>
129133         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
129135 2002-01-22  Jim Meyering  <meyering@lucent.com>
129137         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
129138         Otherwise, some versions of automake would omit the rule that makes
129139         Makefile from Makefile.in.
129141 2002-01-21  Paul Eggert  <eggert@twinsun.com>
129143         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
129144         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129145         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
129146         (memcoll): Set errno to zero if there is no error.
129148         * lib/quotearg.c (quotearg_buffer_restyled):
129149         Fix bug with quoting buffers containing NUL when backslashing escapes.
129150         This bug was exposed by the other changes in this patch.
129151         (quotearg_n_options): New arg ARGSIZE.
129152         All callers changed.
129153         (quoting_options_from_style): New function.
129154         (quotearg_n_style): Use it.
129155         (quotearg_n_style_mem): New function.
129157         * lib/quotearg.h (quotearg_n_style_mem): New function.
129159 2002-01-19  Jim Meyering  <meyering@lucent.com>
129161         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
129162         Remove useless quotes: DF_PROG="df".
129163         * m4/strnlen.m4: New file.
129165 2002-01-16  Paul Eggert  <eggert@twinsun.com>
129167         * lib/backupfile.c (ISDIGIT): Comment fix.
129168         * lib/getdate.y (ISDIGIT): Likewise.
129169         * lib/posixtm.c (ISDIGIT, year): Likewise.
129170         * lib/strverscmp.c (ISDIGIT): Likewise.
129171         * lib/userspec.c (ISDIGIT): Likewise.
129173 2002-01-16  Jim Meyering  <meyering@lucent.com>
129175         * lib/getdate.y: Add three semicolons, each just before a closing
129176         brace. Bison (as of version 1.31) no longer papers over that mistake.
129178 2002-01-05  Jim Meyering  <meyering@lucent.com>
129180         * lib/version-etc.c (version_etc_copyright): Update copyright year.
129182 2001-12-19  Paul Eggert  <eggert@twinsun.com>
129184         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
129185         not silently exit merely because the output buffer happens to
129186         have nothing pending.
129188 2001-12-18  Paul Eggert  <eggert@twinsun.com>
129190         See the big note in ../ChangeLog.
129191         * lib/human.c (suffixes): Prefer K to k for 1024.
129192         (generate_suffix_backwards): New function.
129193         (human_readable_inexact): Use it.
129194         * lib/xstrtol.c (__xstrtol): If there is no number but there
129195         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
129196         Accept 'K' as well as 'k'.
129198 2001-12-15  Jim Meyering  <meyering@lucent.com>
129200         * lib/regex.h (__restrict_arr): Update from libc.
129202         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
129203         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
129204         (STREQ): Define.
129206 2001-12-14  Jim Meyering  <meyering@lucent.com>
129208         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
129209         Suggestion from Bruno Haible.
129211 2001-12-10  Jim Meyering  <meyering@lucent.com>
129213         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
129214         xrealloc, Instead, include "xalloc.h".
129215         (initbuffer): Don't cast xmalloc return value to char*.
129216         (readline): Reword comment.
129217         Don't cast xrealloc return value to char*
129218         Return NULL, not 0.
129220 2001-12-09  Jim Meyering  <meyering@lucent.com>
129222         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
129223         about `signed and unsigned type in conditional expression'.
129224         * lib/posixtm.c (posix_time_parse): Likewise.
129226         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
129228         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
129229         to avoid a pedantic warning.
129231         * lib/getstr.c: Don't include assert.h.
129232         (getstr): Remove warning-evoking assertions.
129233         Return -1 if offset parameter is out of bounds.
129234         Change the type of a local from int to size_t.
129236         * lib/strftime.c (my_strftime_localtime_r): Include this function
129237         definition in the `#if ! HAVE_TM_GMTOFF' block.
129239         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
129240         Include xalloc.h instead.
129242 2001-12-02  Jim Meyering  <meyering@lucent.com>
129244         * lib/tempname.c: Don't declare getenv, thus reverting the change of
129245         2001-11-18.  It's no longer necessary, now that stdlib.h is always
129246         included.
129248         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
129249         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
129251 2001-11-30  Akim Demaille  <akim@epita.fr>
129253         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
129254         before being defined.
129256 2001-11-27  Paul Eggert  <eggert@twinsun.com>
129258         * lib/quotearg.h (quotearg_n, quotearg_n_style):
129259         First arg is int, not unsigned.
129260         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
129261         (SIZE_MAX, UINT_MAX): New macros.
129262         (quotearg_n_options): Abort if N is negative.
129263         Avoid overflow check on hosts where size_t is 64 bits and int
129264         is 32 bits, as overflow is impossible there.
129265         Fix off-by-one typo that caused unnecessary reallocation.
129267 2001-11-27  Jim Meyering  <meyering@lucent.com>
129269         * lib/tempname.c: Merge with version from libc.
129270         * lib/regex.c: Likewise.
129272         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
129273         systems for which STDC_HEADERS is 0, it was not included, resulting in
129274         a warning about an integer-to-pointer conversion problem with getenv.
129275         Reported by Volker Borchert.
129277 2001-11-26  Jim Meyering  <meyering@lucent.com>
129279         * lib/gtod.h: Remove file.
129280         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
129281         * lib/gettimeofday.c: Don't include gtod.h.
129282         (GTOD_init): Remove function.
129283         (rpl_gettimeofday): Do its job here instead, rather than aborting.
129284         Suggestion from Volker Borchert.
129286 2001-11-23  Jim Meyering  <meyering@lucent.com>
129288         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
129289         it.
129290         * lib/hash.c (struct hash_table): Define it here instead.
129292 2001-11-22  Jim Meyering  <meyering@lucent.com>
129294         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
129296 2001-11-20  Jim Meyering  <meyering@lucent.com>
129298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
129299         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
129301 2001-11-19  Jim Meyering  <meyering@lucent.com>
129303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
129304         directory.  Use "conftestXXXXXX" as the template.
129305         Suggestion from Paul Eggert.
129307         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
129308         immediately, so the test doesn't mistakenly hit the max-open-files
129309         limit.
129311 2001-11-18  Paul Eggert  <eggert@twinsun.com>
129313         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
129314         (TEMPORARIES): New macro.
129315         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
129316         removes an artificial limitation (e.g. HP-UX 10.20, where
129317         TMP_MAX is 17576).
129319 2001-11-18  Jim Meyering  <meyering@lucent.com>
129321         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
129323 2001-11-18  Jim Meyering  <meyering@lucent.com>
129325         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
129326         on SunOS 4.
129328         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
129329         files will be created before anything else.
129331 2001-11-17  Paul Eggert  <eggert@twinsun.com>
129333         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
129334         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
129336 2001-11-17  Jim Meyering  <meyering@lucent.com>
129338         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
129339         Prompted by a report from Bob Proulx.
129341         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
129342         Instead, require UTILS_FUNC_MKSTEMP.
129344 2001-11-17  Jim Meyering  <meyering@lucent.com>
129346         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
129347         Now, that's done as part of AC_FUNC_STRTOD.
129349 2001-11-17  Jim Meyering  <meyering@lucent.com>
129351         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
129352         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
129353         rather than group writable.  Patch by Juan F. Codagnone.
129355         * lib/readtokens.c: Remove explicit declarations of xmalloc and
129356         xrealloc, Instead, include "xalloc.h".
129358         * lib/mountlist.c: Include unlocked-io.h after all system headers.
129359         Remove explicit declarations of xmalloc, xrealloc,
129360         and xstrdup.  Instead, include "xalloc.h".
129362         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
129363         unlocked-io.h.
129364         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
129365         Likewise.
129366         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
129368         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
129369         Reported by Padraig Brady.
129371         * lib/mkstemp.c: #undef mkstemp.
129372         Include config.h.
129373         (rpl_mkstemp): Rename from mkstemp.
129374         Protoize.
129376 2001-11-16  Jim Meyering  <meyering@lucent.com>
129378         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
129379         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
129380         determine the amount of total physical memory, use pstat_getstatic.
129381         HPUX-11 doesn't define _SC_PHYS_PAGES.
129382         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
129383         If sysconf couldn't be used to determine the amount of available
129384         physical memory, use both pstat_getstatic and pstat_getdynamic.
129385         Based on a patch from Bob Proulx.
129387 2001-11-10  Jim Meyering  <meyering@lucent.com>
129389         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
129390         (jm_PREREQ): Use it.
129392 2001-11-09  Jim Meyering  <meyering@lucent.com>
129394         * m4/jm-macros.m4: Require autoconf-2.52f.
129395         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
129396         Use these AC_-prefixed names, not the AM_-prefixed ones.
129398         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
129400 2001-11-05  Jim Meyering  <meyering@lucent.com>
129402         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
129404 2001-11-04  Jim Meyering  <meyering@lucent.com>
129406         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
129407         $DEFS.
129409 2001-11-03  Jim Meyering  <meyering@lucent.com>
129411         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
129412         of AC_DEFUN.
129414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
129415         know the name of the variable in the macro definition.
129417 2001-11-03  Jim Meyering  <meyering@lucent.com>
129419         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
129420         in argmatch_to_argument call.
129422         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
129423         argument.
129425         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
129426         e.g., a fault due to an attempt to free a NULL pointer.
129428 2001-11-01  Jim Meyering  <meyering@lucent.com>
129430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
129431         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
129433 2001-11-01  Jim Meyering  <meyering@lucent.com>
129435         * lib/dirfd.c, lib/dirfd.h: New files.
129436         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
129438         * lib/hash.c (hash_print) [TESTING]: Clean up.
129440 2001-10-22  Paul Eggert  <eggert@twinsun.com>
129442         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
129443         to avoid a warning if -Wall.
129445 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
129447         * README: New file
129448         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
129449         (per RMS's instructions, this is now the canonical source)
129450         * lgpl/, gpl/: New directories.
129452 2001-10-21  Paul Eggert  <eggert@twinsun.com>
129454         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
129456 2001-10-21  Jim Meyering  <meyering@lucent.com>
129458         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
129459         this code would end up calling gettext even in packages built
129460         with --disable-nls.
129461         * lib/getopt.c (_): Likewise.
129462         * lib/regex.c (_): Likewise.
129464 2001-10-20  Paul Eggert  <eggert@twinsun.com>
129466         * m4/error.m4 (jm_PREREQ_ERROR):
129467         Do not invoke AC_CHECK_FUNCS with strerror_r, as
129468         AC_FUNC_STRERROR_R does that.
129469         Check for strerror declaration.
129471         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
129472         are supposed to have them these days.
129473         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
129474         Merge changes from latest Autoconf CVS.
129475         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
129476         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
129477         POSIX decided to standardize on the int flavor of strerror_r.
129479 2001-10-20  Paul Eggert  <eggert@twinsun.com>
129481         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
129482         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
129483         Use strerror_r that is only a macro, even if it is not a function.
129484         (strerror): Check for HAVE_DECL_STRERROR before declaring.
129485         (private_strerror): Use prototypes, not old-style function definition.
129486         (print_errno_message): New function.
129487         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
129488         char*-flavored one.
129489         (error_tail, error, error_at_line): Use it.
129491 2001-10-11  Jim Meyering  <meyering@lucent.com>
129493         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
129494         and quote_n (1, ... to avoid clobbering a buffer.
129496 2001-10-05  Jim Meyering  <meyering@lucent.com>
129498         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
129499         hash-pjw.h.
129500         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
129501         * lib/hash-pjw.h: New file.
129503 2001-09-30  Jim Meyering  <meyering@lucent.com>
129505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
129506         `struct fsstat' has the `f_fstypename' member.
129507         Use that to define FS_TYPE, which is now used to make
129508         the getfsstat link test tighter.
129510 2001-09-30  Jim Meyering  <meyering@lucent.com>
129512         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
129513         Include <sys/ucred.h>, for Apple Darwin.
129514         Include sys/mount.h and sys/fs_types.h only if available.
129515         (FS_TYPE): Define.
129516         (read_filesystem_list): Use FS_TYPE.
129518 2001-09-29  Paul Eggert  <eggert@twinsun.com>
129520         * lib/exclude.c (excluded_filename): 0 -> false, since it's
129521         a boolean context.
129523 2001-09-29  Jim Meyering  <meyering@lucent.com>
129525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
129526         [one-argument getmntent function]): Include stdio.h before mntent.h.
129527         SunOS 4.1.x needs it for the declaration of `FILE'.
129528         Patch by Volker Borchert.
129530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
129531         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
129532         sys/fs_types.h, and make the link-test for getfsstat guard #include
129533         directives with appropriate #if HAVE_*_H tests so that we can
129534         detect getfsstat on Apple Darwin1.3.7 systems.
129535         Reported by Nelson Beebe.
129536         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
129538 2001-09-28  Paul Eggert  <eggert@twinsun.com>
129540         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
129541         #defines strtoimax.  Also treat the other strto* functions
129542         like strtoimax.
129544         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
129545         Check for strtoul and strtoumax,
129546         as those declarations are made even in the signed case.
129547         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
129548         Likewise, for strtol and strtoimax.
129550 2001-09-28  Paul Eggert  <eggert@twinsun.com>
129552         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
129553         #defines strtoimax.  Also treat the other strto* functions
129554         like strtoimax.
129556         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
129557         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
129558         (strtoimax, strtoumax): Do not declare if already defined as a macro.
129560 2001-09-26  Jim Meyering  <meyering@lucent.com>
129562         Most macros in unlocked-io.h had the wrong number of arguments.
129563         * lib/gen-uio: New script.
129564         (USE_UNLOCKED_IO): Define to 1 if not already defined.
129565         * lib/unlocked-io.hin: Remove file.
129566         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
129567         rather than trying to embed it here.
129568         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
129569         Reported by Padraig Brady.
129571 2001-09-25  Volker Borchert  <bt@teknon.de>
129573         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
129574         `result'.
129576 2001-09-24  Jim Meyering  <meyering@lucent.com>
129578         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
129580 2001-09-23  Jim Meyering  <meyering@lucent.com>
129582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
129583         instead of the mere test for existence of mntent.h.  The latter
129584         would get a false-positive on AIX 3.4 systems.
129585         In the outer getmntent if-block, don't die if neither of the getmntent
129586         tests succeeds.  Instead, just fall through and continue with the
129587         remaining tests.
129589 2001-09-23  Jim Meyering  <meyering@lucent.com>
129591         * lib/mountlist.c: Remove useless parentheses in #if directives.
129592         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
129593         the deprecated MOUNTED symbol is no longer defined in mntent.h.
129595 2001-09-22  Jim Meyering  <meyering@lucent.com>
129597         * m4/gettext.m4: New file.  From gettext.
129598         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
129599         * m4/progtest.m4: Likewise
129600         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
129601         * m4/glibc21.m4: Likewise.
129603         * m4/libintl.m4: Remove.  No longer used.
129605 2001-09-22  Jim Meyering  <meyering@lucent.com>
129607         * lib/localcharset.c: Update from latest gettext.
129608         * lib/config.charset: Likewise.
129610 2001-09-20  Jim Meyering  <meyering@lucent.com>
129612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
129613         strtoimax.
129614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
129615         strtoumax.
129617 2001-09-20  Jim Meyering  <meyering@lucent.com>
129619         * lib/xstrtol.c (strtoimax): Guard declaration with
129620         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
129621         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
129622         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
129623         (strtoumax): Likewise, for completeness (it wasn't necessary).
129625 2001-09-17  Paul Eggert  <eggert@twinsun.com>
129627         * lib/strtoimax.c (HAVE_LONG_LONG):
129628         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
129629         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
129630         to work around bug in IBM C compiler.
129632 2001-09-17  Jim Meyering  <meyering@lucent.com>
129634         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
129635         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
129636         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
129637         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
129638         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
129639         whenever the right hand side need not be expanded by the shell.
129641 2001-09-16  Paul Eggert  <eggert@twinsun.com>
129643         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
129644         library.  It's not correct, as some older glibcs are buggy.
129645         fnmatch wasn't fixed until glibc 2.2.
129647         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
129648         special shell magic here.
129650 2001-09-16  Jim Meyering  <meyering@lucent.com>
129652         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
129653         * m4/jm-macros.m4: Require it.
129655 2001-09-16  Jim Meyering  <meyering@lucent.com>
129657         * lib/mkdir.c: New file.
129659 2001-09-15  Jim Meyering  <meyering@lucent.com>
129661         * m4/jm-macros.m4: Check for help2man.
129663 2001-09-11  Jim Meyering  <meyering@lucent.com>
129665         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
129666         The body, by Paul Eggert, was moved here from configure.in.
129667         * m4/jm-macros.m4: Require UTILS_HOST_OS.
129669 2001-09-04  Paul Eggert  <eggert@twinsun.com>
129671         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
129672         (jm_PREREQ): Use it.
129674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
129676         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
129677         Use ssize_t, not int, to store result of readlink.
129678         Check for ssize_t overflow as well as size_t overflow,
129679         as POSIX says the result of readlink is implementation-defined
129680         when ssize_t overflows.
129681         Remove unnecessary cast to char*.
129682         Use free+malloc instead of realloc, as the storage doesn't need
129683         to be preserved and it's clearer and can be more efficient that way.
129684         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
129685         * lib/xreadlink.h (xreadlink): Update prototype.
129687 2001-09-04  Paul Eggert  <eggert@twinsun.com>
129689         * lib/xgetcwd.c: Revert some of the previous change; intead,
129690         fix the HAVE_GETCWD_NULL code to behave more like the
129691         !HAVE_GETCWD_NULL code used to.
129693         Include "xalloc.h".
129694         (xgetcwd): Do not return NULL when memory is exhausted; instead,
129695         invoke xalloc_die.
129697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
129699         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
129700         sys/param.h, as pathmax.h includes them.
129702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
129704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
129705         (jm_PREREQ_XGETCWD): New macro.
129707         * m4/getcwd.m4: New file.
129709 2001-09-03  Paul Eggert  <eggert@twinsun.com>
129711         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
129712         like the HAVE_GETCWD_NULL code.
129713         Include pathmax.h if not HAVE_GETCWD.
129714         Do not include xalloc.h.
129715         (INITIAL_BUFFER_SIZE): New symbol.
129716         Do not use xmalloc / xrealloc, since the caller is responsible for
129717         handling errors.  Preserve errno around `free' during failure.
129718         Do not overrun buffer when using getwd.
129720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
129722         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
129723         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
129724         getcwd (NULL, 0).
129726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
129728         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
129729         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
129730         spotted by Jim Meyering.
129732 2001-09-03  Jim Meyering  <meyering@lucent.com>
129734         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
129735         failure.
129737 2001-09-02  Jim Meyering  <meyering@lucent.com>
129739         * lib/error.c: Update from GNU libc.
129741 2001-09-01  Jim Meyering  <meyering@lucent.com>
129743         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
129744         Used by df.
129746 2001-09-01  Jim Meyering  <meyering@lucent.com>
129748         * lib/xreadlink.c: New file.
129749         * lib/xreadlink.h: New file.
129750         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
129751         xreadlink.h.
129753         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
129754         doesn't conflict with sparc Solaris 7's definition in
129755         /usr/include/sys/int_types.h.
129757         * lib/exclude.c: Use `""', not `<>' to #include non-system header
129758         files.
129759         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
129760         and strncasecmp as r-values.  Unixware didn't have declarations.
129762 2001-08-31  Paul Eggert  <eggert@twinsun.com>
129764         * lib/xstrtol.h: Add copyright notice.
129765         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
129766         LONGINT_INVALID_SUFFIX_CHAR.
129768 2001-08-31  Paul Eggert  <eggert@twinsun.com>
129770         * lib/xstrtol.c (strtoimax): New decl.
129772 2001-08-31  Paul Eggert  <eggert@twinsun.com>
129774         * lib/xgetcwd.c: Don't include pathmax.h.
129775         Include stdlib.h and unistd.h if available.
129776         Include xalloc.h.
129777         (xmalloc, xstrdup, free): Remove decls.
129778         (xgetcwd): Don't assume sizes fit in unsigned.
129779         Check for overflow when computing sizes.
129780         Simplify reallocation code.
129782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
129784         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
129785         a directory's st_size can have an arbitrary value, so the old
129786         usage could waste an arbitrary amount of memory.  All uses
129787         changed.
129788         * lib/savedir.h: Update prototype.
129790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
129792         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
129794         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
129795         old strtoimax.c.
129797         Also, make the following further changes to make this file's
129798         configuration more similar to that of strtol.c:
129799         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
129800         (strtoumax, uintmax_t, strtoull, strtol): Remove.
129801         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
129802         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
129803         changed to signed values.
129805         And make the following changes as well:
129806         Fix copyright notice, as 1999 was missing.
129807         (verify): New macro.
129808         (strtoimax): Check sizes at compile-time, not run-time.
129809         Prefer strtol to strtoll if both work.
129810         (main): Remove; it was not that useful and was a pain to maintain.
129812         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
129814 2001-08-31  Jim Meyering  <meyering@lucent.com>
129816         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
129817         Use an initial, malloc'd, buffer of length 128 rather than
129818         a statically allocated one of length 1024.
129820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129822         Simplify code, partly by assuming autoconf 2.52 semantics.
129824         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
129826         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
129827         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
129828         All uses removed.
129829         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
129830         Move AC_REQUIRE to next-to-top level, to avoid confusion.
129831         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
129832         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
129833         jm_AC_HEADER_INTTYPES_H.
129834         * m4/jm-macros.m4 (jm_MACROS): Likewise.
129836         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
129838         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
129839         Quote first arg of AC_DEFUN.
129840         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
129841         since they are needed to parse the include file even if we need
129842         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
129843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
129844         but with opposite signedness.
129846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129848         Merge 'exclude' changes from tar 1.13.22.
129849         This fixes one or two unlikely storage allocation overflow bugs,
129850         but doesn't change user-visible behavior otherwise.
129852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
129855         (jm_PREREQ_EXCLUDE): New macro.
129857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129859         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
129860         tm to be declared.
129862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129864         * lib/hash.c: Remove '2001' from copyright notice.
129866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129868         * lib/full-write.h: New file.
129869         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
129870         * lib/full-write.c: Correct credits, as cccp.c no longer
129871         exists and anyway it was so heavily changed from the old cccp
129872         code as to be unrecognizable.  Include full-write.h.
129873         (full_write): Return size_t, with short writes meaning failure.
129874         All callers changed.  This fixes a bug with large buffers
129875         on 64-bit hosts.
129876         * lib/utime.c: Include full-write.h.
129878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129880         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
129881         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
129882         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
129883         Include if available.
129884         (<xalloc.h>): Include
129885         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
129886         (verify): New macro.  Use it to verify that EXCLUDE macros do not
129887         collide with FNM macros.
129888         (struct patopts): New struct.
129889         (struct exclude): Use it, as exclude patterns now come with options.
129890         (new_exclude): Support above changes.
129891         (new_exclude, add_exclude_file):
129892         Initial size must now be a power of two to simplify overflow checking.
129893         (free_exclude, fnmatch_no_wildcards): New function.
129894         (excluded_filename): No longer requires options arg, as the options
129895         are determined by add_exclude.  Now returns bool, not int.
129896         (excluded_filename, add_exclude):
129897         Add support for the fancy new exclusion options.
129898         (add_exclude, add_exclude_file): Now takes int options arg.
129899         Check for arithmetic overflow when computing sizes.
129900         (add_exclude_file): xrealloc might modify errno, so don't
129901         realloc until after errno might be used.
129903         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
129904         New macros.
129905         (free_exclude): New decl.
129906         (add_exclude, add_exclude_file): Now takes int options arg.
129907         (excluded_filename): No longer requires options arg, as the options
129908         are determined by add_exclude.  Now returns bool, not int.
129910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129912         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
129914 2001-08-27  Jim Meyering  <meyering@lucent.com>
129916         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
129918         * lib/version-etc.c (N_): Remove definition.
129919         Revert most of last change.
129920         Instead, simply don't mark the `Copyright...' string for translation.
129921         Based on advice from Paul Eggert.
129923         * lib/strtoxmax.c: Tweak comment.
129925 2001-08-26  Jim Meyering  <meyering@lucent.com>
129927         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
129929         * m4/xstrtoimax.m4: New file.
129930         * m4/xstrtoumax.m4: Add comments explaining why we
129931         AC_REPLACE_FUNCS(strtol).
129933 2001-08-26  Jim Meyering  <meyering@lucent.com>
129935         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
129936         of copyright with `%s' so translators don't get an untranslated
129937         message in 2002.
129938         (COPYRIGHT_YEAR): Define.
129939         (version_etc): Use fprintf rather than fputs.
129940         Suggestion from Ulrich Drepper.
129942         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
129944         * lib/strtoll.c: New file, from GNU libc.
129945         * lib/xstrtoimax.c: New file.
129947         * lib/xstrtol.h: Add xstrtoimax.
129948         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
129949         * lib/strtoimax.c: New file.  Likewise, but first define
129950         STRTOUXMAX_SIGNED.
129952         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
129953         ...
129954         * lib/strtoxmax.c: ... then renamed to this.
129956 2001-08-18  Paul Eggert  <eggert@twinsun.com>
129958         * m4/inttypes.m4: Add AC_PREREQ(2.13).
129959         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
129960         (jm_AC_TYPE_INTMAX_T): New macro.
129961         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
129963         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
129965         * m4/longlong.m4: Renamed from ulonglong.m4.
129966         * m4/inttypes.m4: Renamed from inttypes_h.m4.
129967         * m4/uintmax_t.m4: Removed.
129969 2001-08-13  Paul Eggert  <eggert@twinsun.com>
129971         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
129972         Port to Solaris 8, where 'sed' requires a space after the 'r'
129973         command, and where sh dislikes "$/".  Clean up the spacing a bit.
129974         Redirect output to $tmp just once.
129976 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
129978         * lib/addext.c (<errno.h>): Include.
129979         (errno): Declare if not defined.
129980         (addext): Work correctly when pathconf returns -1 and leaves
129981         errno alone because there is no limit.  Also, work even if
129982         pathconf returns a value greater than SIZE_MAX.
129984 2001-08-12  Jim Meyering  <meyering@lucent.com>
129986         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
129987         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
129988         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
129989         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
129990         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
129991         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
129992         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
129993         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
129994         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
129995         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
129996         utime.m4, utimes.m4, xstrtoumax.m4:
129997         Quote the first argument in each use of AC_DEFUN.
129999 2001-08-12  Jim Meyering  <meyering@lucent.com>
130001         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
130002         Simply `return getcwd (NULL, 0);'.
130003         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
130004         Use 1300 as initial value for length, not PATH_MAX.
130006         * lib/pathmax.h: Clean up cpp syntax.
130008 2001-08-12  Jim Meyering  <meyering@lucent.com>
130010         * lib/gettimeofday.c: New file.
130011         * lib/gtod.h: New file.
130012         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
130014 2001-08-05  Jim Meyering  <meyering@lucent.com>
130016         * m4/jm-macros.m4: Require autoconf-2.52.
130018 2001-08-04  Jim Meyering  <meyering@lucent.com>
130020         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
130021         stmt, to get in sync with glibc.
130023 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130025         The following changes are from gettext 0.10.39 as maintained by
130026         Bruno Haible.
130028         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
130029         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
130030         with inverted sense.  All uses changed.
130032         * lib/mbswidth.c: Don't include <limits.h>.
130033         Include <stdlib.h> and <string.h> unconditionally.
130034         (iswcntrl, mbsinit, ISCNTRL): New macros.
130035         (mbsnwidth): Use K&R style function declarations.
130036         Don't bother checking for MB_LEN_MAX == 1, since the compiler
130037         can optimize it when MB_CUR_MAX == 1.
130038         The width of control characters is zero, not 1.
130040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130042         The following changes are from gettext 0.10.39 as maintained by
130043         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
130045         * m4/codeset.m4: Upgrade to serial AM1.
130046         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
130047         all uses changed.  Quote first arg of AC_DEFUN.
130048         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
130050         * m4/iconv.m4: Upgrade to serial AM2.
130051         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
130052         Add --with-libconv-prefix.
130053         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
130054         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
130055         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
130056         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
130057         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
130059         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
130060         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
130061         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
130062         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
130063         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
130064         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
130065         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
130066         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
130067         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
130069         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
130070         string.h any more.
130072         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
130073         not the default value.
130075         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
130076         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
130077         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
130078         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
130079         Also check for iswcntrl, used for wcwidth fallback.
130080         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
130081         to Autoconf 2.13.
130083 2001-08-03  Jim Meyering  <meyering@lucent.com>
130085         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
130086         as it was in the original.  Reported by Paul Eggert.
130088 2001-07-16  Jim Meyering  <meyering@lucent.com>
130090         * m4/gettimeofday.m4: New file.
130091         Prompted by a report from Bernhard Baehr.
130093 2001-07-15  Jim Meyering  <meyering@lucent.com>
130095         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
130096         stuff. Now it's in ../Makefile.cfg.
130098 2001-07-15  Jim Meyering  <meyering@lucent.com>
130100         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
130101         (BUILT_SOURCES): Add unlocked-io.h.
130102         (io_functions): Define.
130103         (unlocked-io.h): New rule.
130104         (DISTCLEANFILES): Add unlocked-io.h.
130105         (all-local): Depend on unlocked-io.h, to ensure it is created.
130107         * lib/unlocked-io.hin: New file
130109         * lib/regex.c: Update from glibc.
130111 2001-07-05  Jim Meyering  <meyering@lucent.com>
130113         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
130114         recommendation.
130115         (libfetish_a_SOURCES): Put all .h files here instead.
130116         Remove a thus-exposed (better checks in automake) duplicate and
130117         two unnecessary .h files.
130119 2001-07-04  Jim Meyering  <meyering@lucent.com>
130121         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
130122         that generates jm-glibc-io.m4 so that it doesn't trigger any make
130123         distcheck failure.
130125 2001-07-02  Jim Meyering  <meyering@lucent.com>
130127         The following changes were prompted by suggestions from Bruno Haible.
130129         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
130130         is now generated.
130131         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
130132         definition of EXTRA_DIST.
130133         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
130134         ensure that the generated file is created/updated whenever the list
130135         of $(unlocked_functions) is changed.
130136         (jm-glibc-io.m4): New rule.
130137         (unlocked-io.h): New rule -- currently unused.
130139 2001-06-24  Jim Meyering  <meyering@lucent.com>
130141         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
130142         unmatched right bracket, rather than kludging it with an extra,
130143         falsely-matching quote in a comment.  Patch by Akim Demaille.
130145 2001-06-11  Jim Meyering  <meyering@lucent.com>
130147         * lib/regex.c: Update from GNU libc.
130149 2001-05-27  Jim Meyering  <meyering@lucent.com>
130151         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
130152         Check for ut_type in struct utmp.
130154 2001-05-27  Jim Meyering  <meyering@lucent.com>
130156         * lib/readutmp.h (UT_TYPE): Define.
130158 2001-05-24  Jim Meyering  <meyering@lucent.com>
130160         * lib/argmatch.c: Include "quote.h".
130161         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
130162         quote function.  Reported by Göran Uddeborg.
130164 2001-05-22  Jim Meyering  <meyering@lucent.com>
130166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
130167         now that we use the package-supplied version unconditionally.
130168         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
130170 2001-05-21  Jim Meyering  <meyering@lucent.com>
130172         * m4/regex.m4: Change a couple backticks to single quotes to avoid
130173         shell syntax errors.
130175 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130177         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
130179 2001-05-20  Paul Eggert  <eggert@twinsun.com>
130181         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
130182         Don't bother to check library strftime, since
130183         we'll be using our own my_strftime function anyway.
130184         Define my_strftime instead of strftime.
130186 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
130188         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
130189         which is not yet declared.
130191 2001-05-15  Jim Meyering  <meyering@lucent.com>
130193         * m4/regex.m4: Use proper quoting so brackets appear in the test
130194         program.
130195         Reported by, and with help from, Bruno Haible.
130197 2001-05-13  Jim Meyering  <meyering@lucent.com>
130199         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
130200         undefined.
130202 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130204         dirname code cleanup.  base_name now behaves more compatibly
130205         with POSIX basename when given file names that have trailing
130206         slashes, and similarly for dir_name.  Add new primitives
130207         base_len and dir_len.  Put the directory-name-related decls
130208         into dirname.h.
130210         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
130211         * lib/backupfile.c (base_name): Likewise.
130212         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
130213         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
130214         * lib/makepath.c (strip_trailing_slashes): Likewise.
130215         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
130216         ISSLASH): Likewise.
130217         * lib/rename.c (strip_trailing_slashes): Likewise.
130218         * lib/same.c (base_name): Likewise.
130219         * lib/stripslash.c (ISSLASH): Likewise.
130221         * lib/addext.c: Include <dirname.h> after size_t is defined.
130222         * lib/backupfile.c: Likewise.
130224         * lib/addext.c (addext): Use base_len to trim redundant
130225         trailing slashes instead of doing it ourselves.
130226         But do not trim the last slash if it is not redundant.
130228         * lib/backupfile.c (find_backup_file_name,
130229         max_backup_version): Use base_len instead of rolling it ourselves.
130230         Handle the case of "" and (on DOS) "C:" correctly.
130232         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
130233         needed. Include <string.h>, <dirname.h>.
130234         (base_name): Allow file names ending in slashes, other than names
130235         that are all slashes.  In this case, return the basename followed
130236         by the slashes.  This is more general, and can be used in places
130237         where the original base_name purposely had an assertion failure.
130238         (base_len): New function.
130240         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
130241         Do not include <assert.h>; no longer needed.
130242         Include xalloc.h.
130243         (memrchr): Remove decl.
130244         (dir_name_r): Remove.
130245         (dir_len): Renamed from dirlen.  All callers changed.
130246         Rewrite in terms of base_name, for simplicity and consistency.
130247         (dir_name): Never return NULL.  All callers changed.
130248         Do not include <stdlib.h> in test program; no longer needed.
130249         return 0; is fine for test program.
130251         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
130252         New macros.
130253         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
130255         * lib/path-concat.c (path_concat): Use base_len to compute
130256         base length, not strlen; this means we cannot rely on memcpy
130257         to null-terminate.
130259         * lib/same.c (STREQ): Remove.
130260         (same_name): Handle the case where the basename ends in trailing '/'.
130262         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
130263         a slash was stripped.  Do not strip the last slash after a
130264         file system prefix.
130266 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130268         * lib/Makefile.am (libfetish_a_SOURCES):
130269         Add strftime.c, since we now compile it on all hosts.
130271         * lib/strftime.c (my_strftime):
130272         Define to nstrftime if emacs, but only if my_strftime is not defined.
130273         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
130274         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
130275         Add one more extra argument: a nanoseconds value.
130276         All uses changed.
130277         (ns): New macro.
130278         (my_strftime function): Add %N format.
130279         (emacs_strftimeu): Renamed from emacs_strftime,
130280         with extra ut argument.
130282 2001-05-09  Paul Eggert  <eggert@twinsun.com>
130284         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
130286 2001-04-21  Jim Meyering  <meyering@lucent.com>
130288         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
130289         doesn't interfere.
130291 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130293         * m4/ftruncate.m4: Check for chsize.
130294         Link with ftruncate.o unconditionally if ftruncate is missing.
130295         This was required when cross-compiling to i586-mingw32msvc.
130297 2001-04-08  Jim Meyering  <meyering@lucent.com>
130299         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
130300         recomputed; that's necessary when the offset spans a DST transition.
130301         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
130303 2001-04-02  Jim Meyering  <meyering@lucent.com>
130305         * lib/regex.h, regex.c: Update from GNU libc.
130307 2001-03-24  Jim Meyering  <meyering@lucent.com>
130309         * m4/jm-macros.m4: Require autoconf-2.49d.
130311 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
130313         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
130315 2001-03-19  Paul Eggert  <eggert@twinsun.com>
130317         * lib/version-etc.c (version_etc_copyright): Update to 2001.
130319 2001-03-17  Jim Meyering  <meyering@lucent.com>
130321         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
130322         now that the version in autoconf is equivalent.
130323         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
130325         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
130326         Suggestion from Akim Demaille.
130328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
130329         (jm_PREREQ_TEMPNAME): New function.
130331 2001-03-16  Paul Eggert  <eggert@twinsun.com>
130333         * lib/tempname.c (uint64_t): Define to uintmax_t if
130334         not defined, and if UINT64_MAX is not defined.
130335         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
130336         Reported by John David Anglin.
130338 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
130340         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
130341         resolve alias if codeset is empty.
130342         * lib/config.charset (BeOS): Use wildcard syntax.
130344 2001-03-13  Jim Meyering  <meyering@lucent.com>
130346         * lib/path-concat.c (path_concat)
130347         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
130348         concatenating e.g., `C:' and `foo'.
130349         From Bruno Haible.
130351 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
130353         * lib/localcharset.c (locale_charset): Don't use
130354         setlocale(LC_CTYPE,NULL). Don't return NULL.
130355         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
130357 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
130359         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
130360         support for DOS/DJGPP.
130362 2001-03-01  Paul Eggert  <eggert@twinsun.com>
130364         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
130365         lacks mkstemp.  Compile our own tempname.c if we compile our own
130366         mkstemp.c, as mkstemp relies on tempname.
130368 2001-03-01  Jim Meyering  <meyering@lucent.com>
130370         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
130371         AH_VERBATIM really does output its argument verbatim.
130373 2001-02-28  Paul Eggert  <eggert@twinsun.com>
130375         * lib/Makefile.am (libfetish_a_SOURCES):
130376         Add dup-safer.c, fopen-safer.c.
130377         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
130379         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
130380         * lib/unistd-safer.h: New files.
130382 2001-02-25  Paul Eggert  <eggert@twinsun.com>
130384         The mkstemp replacement is taken from glibc 2.2.2, with some
130385         portability fixes for use outside glibc, as follows:
130387         * lib/tempname.c (struct_stat64): New macro.
130388         (direxists, __gen_tempname): Use it.
130389         This avoids a portability problem with Solaris 8.
130391         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
130392         (<stddef.h>, <stdint.h>, <string.h>):
130393         Include only if STDC_HEADERS || _LIBC.
130394         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
130395         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
130396         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
130397         (__set_errno): Define this macro if <errno.h> doesn't.
130398         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
130399         Define these macros if <stdio.h> doesn't.
130400         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
130401         Define these macros if <sys/stat.h>
130402         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
130403         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
130404         __xstat64): Define if not _LIBC.
130405         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
130406         (__gen_tempname): Invoke gettimeofday only if
130407         HAVE_GETTIMEOFDAY || _LIBC;
130408         otherwise, fall back on plain "time".
130409         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
130411         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
130413         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
130415 2001-02-18  Paul Eggert  <eggert@twinsun.com>
130417         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
130419 2001-02-17  Paul Eggert  <eggert@twinsun.com>
130421         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
130422         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
130423         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
130424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130426 2001-02-17  Paul Eggert  <eggert@twinsun.com>
130428         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
130429         Remove workaround macros for hosts that have mbrtowc but not
130430         mbstate_t, as we now insist on proper declarations for both
130431         before using mbrtowc.
130433 2001-02-17  Jim Meyering  <meyering@lucent.com>
130435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
130436         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
130437         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
130438         UnixWare 7.1.1.
130440         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
130441         rather than AC_CACHE_VAL.
130443 2001-02-17  Jim Meyering  <meyering@lucent.com>
130445         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
130446         around included file name.
130448         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
130450         * lib/strftime.c: Update from GNU libc (the only changes were to
130451         comments).
130453 2001-02-17  Jim Meyering  <meyering@lucent.com>
130455         * lib/regex.c: Update from libc.
130457 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
130459         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
130460         clash.
130462 2001-02-16  Paul Eggert  <eggert@twinsun.com>
130464         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
130465         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
130466         Reported by Mark Hounschell via Paul Eggert.
130468 2001-02-07  Jim Meyering  <meyering@lucent.com>
130470         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
130472 2001-02-05  Jim Meyering  <meyering@lucent.com>
130474         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
130475         it includes the patch required for `large file' support with at least
130476         HP-UX's 10.20 /bin/cc.
130478 2001-02-03  Jim Meyering  <meyering@lucent.com>
130480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
130481         AS_IF, now that it works once again (mysteriously).
130482         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
130484 2001-01-30  Jim Meyering  <meyering@lucent.com>
130486         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
130487         * m4/chown.m4: Rename conftestchown to conftest.chown.
130488         * m4/rename.m4: s/conftestdir/conftest.d1/ and
130489         s/conftestdir2/conftest.d2/.
130490         * m4/utimes.m4: s/conftestdata/conftest.data/
130491         Inspired by Pavel Roskin's change in autoconf.
130493 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
130495         * lib/config.charset: Update for FreeBSD 4.2.
130497 2001-01-27  Jim Meyering  <meyering@lucent.com>
130499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
130500         a use of AS_IF.
130501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
130503 2001-01-26  Jim Meyering  <meyering@lucent.com>
130505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
130506         quotearg.c includes it.
130508 2001-01-26  Jim Meyering  <meyering@lucent.com>
130510         * lib/quotearg.c: Include stddef.h.
130511         * lib/quote.c: Include stddef.h.
130512         Reported by Axel Kittenberger.
130514         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
130515         line in double quotes so that it evokes a better diagnostic.
130516         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
130517         Reported by Axel Kittenberger.
130519 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
130521         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
130522         as if it was a `charset'.
130524 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
130526         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
130527         has const.
130529 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
130531         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
130532         to avoid a warning.  Add back 'const' to inptr.
130534 2001-01-20  Jim Meyering  <meyering@lucent.com>
130536         Be sure that headers are checked before used in code compiled
130537         for the type checks.
130538         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
130539         In place of that, invoke jm_CHECK_ALL_TYPES.
130540         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
130541         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
130542         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
130543         The check for ssize_t was mistakenly run before the test for unistd.h.
130545         The configure-time check for stdbool.h was missing.
130546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
130547         (jm_PREREQ_HASH): New function.
130549 2001-01-17  Jim Meyering  <meyering@lucent.com>
130551         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
130552         for autoconf-2.49c.
130553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
130555 2001-01-16  Jim Meyering  <meyering@lucent.com>
130557         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
130558         From Bruno Haible.
130560 2001-01-14  Jim Meyering  <meyering@lucent.com>
130562         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
130563         foo and bar.  Create conftestdir/ in the script, not in the C code.
130564         Remove directories in the script, not in the C code.
130565         Remove conftestdir{,2} before trying to create the directory.
130566         Make the entire configure script fail if the mkdir fails.
130568 2001-01-14  Jim Meyering  <meyering@lucent.com>
130570         * lib/rename.c: New file.  From Volker Borchert.
130571         Include stdlib.h, string.h or strings.h, and xalloc.h.
130572         Use strip_trailing_slashes rather than open-coding it.
130574 2001-01-03  Paul Eggert  <eggert@twinsun.com>
130576         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
130578 2001-01-03  Jim Meyering  <meyering@lucent.com>
130580         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
130581         of local `inptr' to avoid warning with some system declarations of
130582         iconv.
130584 2001-01-02  Volker Borchert  <bt@teknon.de>
130586         * m4/rename.m4: New file.
130587         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
130589 2001-01-01  Jim Meyering  <meyering@lucent.com>
130591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
130592         even on systems with utmpx.h.  It's necessary for the declaration of
130593         utmp's ut_user member.  Reported by Andreas Jaeger.
130595         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
130596         available. They are required for the declarations of getgrgid and
130597         getpwuid resp.
130598         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
130599         Reported by Andreas Jaeger.
130601 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
130603         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
130604         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
130605         so `make install' also works in VPATH builds.
130607 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
130609         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
130610         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
130611         can be used in subdirectories.
130613 2000-12-29  Paul Eggert  <eggert@twinsun.com>
130615         * lib/modechange.c: Do not assume that mode_t uses the
130616         traditional octal encoding.  E.g. "chmod 1 FOO" should set
130617         the other-execute bit of FOO even if S_IXOTH != 1.
130619         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
130620         WOTH, XOTH, ALLM): New macros.
130621         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
130622          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
130623         Use them.
130624         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
130625         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
130626         (mode_compile):
130627         No need to use uintmax_t; unsigned long is long enough.
130628         Don't bother to get suffix since we don't use it.
130630 2000-12-26  Jim Meyering  <meyering@lucent.com>
130632         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
130633         better with autoheader.
130635 2000-12-24  Jim Meyering  <meyering@lucent.com>
130637         * lib/hash.c (is_prime): Return explicit boolean values.
130638         (hash_get_first): Return NULL to appease Irix5.6's 89.
130639         Reported by Nelson Beebe.
130641 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
130643         * lib/localcharset.c (locale_charset): Add support for Win32.
130645 2000-12-18  Paul Eggert  <eggert@twinsun.com>
130647         * lib/physmem.h, lib/physmem.c: New files.
130649         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
130650         (noinst_HEADERS): Add physmem.h.
130652         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
130653         't' for compatibility with Solaris 8 sort.
130655 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
130657         * lib/config.charset: Add support for BeOS.
130659 2000-12-17  Jim Meyering  <meyering@lucent.com>
130661         * m4/dos.m4 (jm_AC_DOS): New file and macro.
130662         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
130664 2000-12-16  Jim Meyering  <meyering@lucent.com>
130666         This bug had a serious impact on chown: `chown N:M FILE' (for integer
130667         N and M) would have treated it like `chown N:N FILE'.
130669         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
130671 2000-12-16  Jim Meyering  <meyering@lucent.com>
130673         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
130674         SHELLS_FILE to a file name that's useful on djgpp systems.
130675         Include stdlib.h.
130676         (ADDITIONAL_DEFAULT_SHELLS): Define.
130677         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
130678         Based mostly on a patch from Prashant TR.
130680 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
130682         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
130683         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
130684         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
130686 2000-12-08  Andreas Schwab  <schwab@suse.de>
130688         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
130689         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
130691 2000-12-07  Jim Meyering  <meyering@lucent.com>
130693         * lib/stripslash.c (ISSLASH): Define.
130694         (strip_trailing_slashes): Use ISSLASH rather than comparing against
130695         `/'.
130696         From Prashant TR.
130698         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
130699         (dir_name_r): Declare this function as static.
130700         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
130701         manifest itself on a name containing a mix of slashes and
130702         backslashes.
130703         Make this function work with names starting with a DOS-style
130704         drive letter and colon prefix.
130705         (dir_name): Append `.' if necessary.
130706         Based mostly on patches from Prashant TR and Eli Zaretskii.
130708         * lib/dirname.h (dir_name_r): Remove prototype.
130710 2000-12-06  Paul Eggert  <eggert@twinsun.com>
130712         * m4/off_t-format.m4: Remove this file.
130713         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
130715 2000-12-06  Jim Meyering  <meyering@lucent.com>
130717         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
130718         replacement strtoull, we may well need the replacement strtoul, too.
130719         Check for declarations of strtoul and strtoull.
130720         Check for strtol.  Mainly as a cue to cause automake to include
130721         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
130722         Check for limits.h -- strtol.c needs it.
130724 2000-12-05  Jim Meyering  <meyering@lucent.com>
130726         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
130728 2000-12-04  Jim Meyering  <meyering@lucent.com>
130730         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
130731         Also include memory.h, stdlib.h, unistd.h if appropriate.
130732         Reported by Andreas Jaeger (conflicting declaration of malloc).
130734 2000-12-02  Jim Meyering  <meyering@lucent.com>
130736         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
130737         * m4/jm-macros.m4 (jm_MACROS): require it.
130739 2000-12-02  Jim Meyering  <meyering@lucent.com>
130741         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
130743 2000-12-01  Paul Eggert  <eggert@twinsun.com>
130745         * lib/memrchr.c: Include <config.h> before any system include file.
130747 2000-11-30  Jim Meyering  <meyering@lucent.com>
130749         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
130751 2000-11-30  Jim Meyering  <meyering@lucent.com>
130753         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
130755 2000-11-29  Paul Eggert  <eggert@twinsun.com>
130757         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
130759 2000-11-26  Jim Meyering  <meyering@lucent.com>
130761         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
130763 2000-11-22  Paul Eggert  <eggert@twinsun.com>
130765         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
130766         size of (size_t) -1; it's not portable.
130768 2000-11-17  Jim Meyering  <meyering@lucent.com>
130770         * lib/strstr.c: Update from GNU libc.
130772 2000-11-17  Akim Demaille  <akim@epita.fr>
130774         * lib/obstack.h: Formatting changes.
130775         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
130776         prevent type checking.
130777         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
130778         cast the value to (void *): assigning a `foo *' to a `void *'
130779         variable is valid.
130780         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
130782 2000-11-16  Jim Meyering  <meyering@lucent.com>
130784         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
130786 2000-11-11  Jim Meyering  <meyering@lucent.com>
130788         * lib/error.c: Add a couple #includes, merging from GNU libc version.
130790 2000-11-10  Jim Meyering  <meyering@lucent.com>
130792         * lib/obstack.h: Update from GNU libc.
130793         * lib/obstack.c: Likewise.
130795 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
130797         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
130799 2000-11-06  Paul Eggert  <eggert@twinsun.com>
130801         * lib/getusershell.c (setusershell): Use rewind rather than
130802         fseek/fseeko, to avoid configuration hassles with fseeko.
130803         Don't bother opening SHELLS_FILE if shellstream is NULL;
130804         it's not necessary.
130806 2000-11-05  Jim Meyering  <meyering@lucent.com>
130808         * lib/makepath.h (make_dir): Declare.
130809         * lib/makepath.c (make_dir): Remove `static' attribute.
130810         Tweak a comment.
130812 2000-11-04  Jim Meyering  <meyering@lucent.com>
130814         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
130816 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
130818         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
130819         last one in a bucket, advance to the next bucket.
130821 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
130823         * lib/fnmatch.c: Do not comment out all the code if we are using
130824         the GNU C library, because in some cases we are replacing buggy
130825         code in the GNU C library itself.
130827 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
130829         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
130830         (regex_compile): Catch bogus \(\1\).
130832 2000-10-30  Paul Eggert  <eggert@twinsun.com>
130834         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
130835         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
130836         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
130838 2000-10-30  Paul Eggert  <eggert@twinsun.com>
130840         * lib/error.h, getline.h, modechange.h:
130841         Remove "2000" from Copyright line, as the file hasn't been
130842         changed this year other than in the copyright notice.
130844         * lib/xalloc.h: Add "2000" to Copyright line, as this file
130845         was changed this year.
130847 2000-10-29  Jim Meyering  <meyering@lucent.com>
130849         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
130850         renaming.
130851         * m4/ls-mntd-fs.m4: Likewise
130853 2000-10-29  Jim Meyering  <meyering@lucent.com>
130855         * lib/xstat.in: Fix grammar in comment.
130857 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
130859         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
130860         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
130861         doesn't define __restrict_arr.
130863 2000-10-28  Jim Meyering  <meyering@lucent.com>
130865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
130866         (jm_PREREQ_MEMCHR): New function.
130868 2000-10-28  Jim Meyering  <meyering@lucent.com>
130870         * lib/memchr.c: Update from libc.
130871         Adjust for portability:
130872         [HAVE_STDLIB_H]: Include stdlib.h.
130873         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
130874         Undef __memchr, too.
130875         [!weak_alias]: Define __memchr to memchr.
130877         * lib/regex.c: Update from libc.
130878         * lib/regex.h: Likewise.
130879         * lib/getopt1.c: Likewise.
130880         * lib/memcmp.c: Likewise.
130882         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
130883         Avoid using fseek, when possible -- it's broken by design.
130884         Patch by Ulrich Drepper.
130886 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
130888         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
130889         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
130890         Giving in to popular pressure to shut up the compiler with casts.
130892 2000-10-26  Jim Meyering  <meyering@lucent.com>
130894         * lib/strftime.c: Update from libc.
130896 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
130898         * regex.c: More `unsigned char' -> `re_char' changes.
130899         Also change several `int' into `re_wchar_t'.
130900         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
130901         (PUSH_FAILURE_POINTER): Don't cast any more.
130902         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
130903         We want GCC to complain, since this piece of code makes
130904         re_match non-reentrant, which *should* be fixed.
130905         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
130906         (EXTEND_BUFFER): Use RETALLOC.
130907         (SET_LIST_BIT): Don't cast.
130908         (re_wchar_t): New type.
130909         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
130910         that those two functions will always properly return.
130911         (IMMEDIATE_QUIT_CHECK): Cast to void.
130912         (analyse_first): Use recursion rather than an explicit stack.
130913         (re_compile_fastmap): Can't fail anymore.
130914         (re_search_2): Don't check re_compile_fastmap for failure.
130915         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
130916         Now also sets the new value (passed in a new argument).
130917         (re_match_2_internal): Use it.
130918         Also, use a new var `reg' of type size_t when looping through regs
130919         rather than reuse the inappropriate `mcnt'.
130921 2000-10-25  Jim Meyering  <meyering@lucent.com>
130923         * lib/obstack.c: Update from libc.
130925 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
130927         * regex.c (regex_compile): Change the way of handling a range from
130928         a char less than 256 to a char not less than 256.
130930 2000-10-24  Andrew Innes  <andrewi@gnu.org>
130932         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
130933         NT-Emacs only.
130934         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
130935         so that re_search functions only quit when callers expect them to.
130937 2000-10-23  Jim Meyering  <meyering@lucent.com>
130939         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
130940         wrong.  That set_locale call must not have any side effects.
130941         From Paul Eggert.
130943 2000-10-22  Jim Meyering  <meyering@lucent.com>
130945         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
130946         [CYCLIC]: Remove now-unused definition.
130948         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
130949         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
130950         Suggestion from Ulrich Drepper.
130952 2000-10-21  Jim Meyering  <meyering@lucent.com>
130954         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
130955         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
130956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
130958 2000-10-21  Jim Meyering  <meyering@lucent.com>
130960         * lib/dirname.c (memrchr): Declare if necessary.
130961         (dir_name): Remove the restriction that there be no
130962         trailing slashes.  Now, this code skips past them, effectively
130963         ignoring them.
130964         [TEST_DIRNAME] (main): New unit tests.
130966         * lib/memrchr.c: New file from GNU libc.
130967         Undef __memrchr, too.
130968         [!weak_alias]: Define __memrchr to memrchr.
130969         Guard weak_alias use with `#ifdef weak_alias'.
130971 2000-10-21  Jim Meyering  <meyering@lucent.com>
130973         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
130974         (dir_name): Use dir_name_r.
130975         * lib/dirname.h (dir_name_r): Declare it.
130977 2000-10-17  Jim Meyering  <meyering@lucent.com>
130979         * lib/quote.h (PARAMS): Define and use.
130980         Reported by Akim Demaille.
130982         * lib/getopt.c: Update from libc.
130984 2000-10-16  Jim Meyering  <meyering@lucent.com>
130986         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
130987         setlocale.
130988         From Jan Fedak.
130990 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
130992         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
130994 2000-09-25  Jim Meyering  <meyering@lucent.com>
130996         * lib/md5.h (rol): Define (from GnuPG).
130998         * lib/sha.c: Give credit (GnuPG) where due.
130999         (M): Use rol rather than open-coding it.
131000         Add a FIXME comment.
131002 2000-09-21  Jim Meyering  <meyering@lucent.com>
131004         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
131005         Reported by Michael Stone.
131007 2000-09-20  Jim Meyering  <meyering@lucent.com>
131009         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
131010         (noinst_HEADERS): Add sha.h.
131011         Based on code from Scott G. Miller and from GnuPG.
131013 2000-09-18  Jim Meyering  <meyering@lucent.com>
131015         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
131016         LIBS. Otherwise, everyone ends up linking with -lelf for some
131017         configurations.
131018         Reported by Mike Stone.
131020 2000-09-15  Jim Meyering  <meyering@lucent.com>
131022         * lib/regex.c: Update from libc.
131024 2000-09-10  Jim Meyering  <meyering@lucent.com>
131026         * lib/getopt.c (_getopt_internal): Update from glibc.
131028 2000-09-09  Jim Meyering  <meyering@lucent.com>
131030         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
131031         think it should be used as a general replacement for isascii.
131032         * lib/fnmatch.c: Likewise.
131033         * lib/mbswidth.c: Likewise
131034         * lib/regex.c: Likewise.
131036         Don't use atoi.
131037         * lib/userspec.c: Include sys/param.h and limits.h.
131038         Include xstrtol.h.
131039         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131040         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
131041         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
131042         UID, GID.  Check range.
131044 2000-09-06  Jim Meyering  <meyering@lucent.com>
131046         * lib/getopt.c (_getopt_internal): Update from glibc.
131048 2000-08-30  Jim Meyering  <meyering@lucent.com>
131050         * lib/strftime.c: Merge in changes from GNU libc.
131052 2000-08-26  Jim Meyering  <meyering@lucent.com>
131054         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
131055         * m4/fpending.m4: New file.
131057 2000-08-26  Jim Meyering  <meyering@lucent.com>
131059         * lib/closeout.c: Include "__fpending.h".
131060         (close_stdout_status): Return right away if there's nothing to flush.
131062         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
131063         * lib/__fpending.c: New file.
131064         * lib/__fpending.h: New file.
131066 2000-08-20  Jim Meyering  <meyering@lucent.com>
131068         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
131069         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
131070         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
131072 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
131074         Improve fileutils installation on systems where running
131075         programs (like install) can't be unlinked.
131076         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
131077         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
131079 2000-08-07  Paul Eggert  <eggert@twinsun.com>
131081         Standardize on "memory exhausted" instead of "Memory exhausted"
131082         or "virtual memory exhausted".
131083         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
131084         "virtual memory exhausted".
131085         * lib/same.c (same_name): Invoke xalloc_die instead of printing
131086         our own message.
131087         * lib/userspec.c (parse_user_spec): Likewise.
131088         * lib/bumpalloc.h: comment fix
131089         * lib/same.c, userspec.c: Include xalloc.h.
131091         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
131092         not char *const and pointing to a constant array.
131093         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
131094         (xrealloc): Comment fix.
131096         * lib/userspec.c (parse_user_spec):
131097         Don't translate a message until just before returning,
131098         to avoid unnecessary translation.
131100 2000-08-07  Jim Meyering  <meyering@lucent.com>
131102         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
131103         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
131104         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
131105         getgroups.c, gethostname.c, getopt.h, group-member.c,
131106         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
131107         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
131108         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
131109         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
131110         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
131111         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
131112         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
131113         yesno.c: Back out Copyright date changes for each file with no change
131114         this year.  This eases coordination with other programs using the same
131115         source code modules.  From Paul Eggert.
131117 2000-08-06  Paul Eggert  <eggert@twinsun.com>
131119         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
131120         not char, for compatibility with glibc 2.1.3 strftime.c.
131122 2000-08-03  Greg McGary  <greg@mcgary.org>
131124         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
131125         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
131126         (EXTEND_BUFFER): Use them.
131128 2000-08-01  Jim Meyering  <meyering@lucent.com>
131130         * lib/dirname.c (ISSLASH): Define.
131131         (BACKSLASH_IS_PATH_SEPARATOR): Define.
131132         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
131133         both `\' and `/' may be use as path separators.
131134         Based on a patch from Prashant TR.
131136 2000-07-31  Paul Eggert  <eggert@twinsun.com>
131138         * lib/quotearg.c (quotearg_n_options): Don't make the initial
131139         slot vector a constant, since it might get modified.
131141 2000-07-31  Jim Meyering  <meyering@lucent.com>
131143         * lib/xmalloc.c: Use `virtual memory exhausted', not
131144         `Memory exhausted'.
131145         * lib/obstack.c (print_and_abort): Likewise.
131147 2000-07-30  Paul Eggert  <eggert@twinsun.com>
131149         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
131150         buffer, so that the caller can always quote one small
131151         component of a "memory exhausted" message in slot 0.
131152         From a suggestion by Jim Meyering.
131154 2000-07-30  Jim Meyering  <meyering@lucent.com>
131156         * lib/makepath.c (make_path): Quote the other instance, too.
131158         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
131159         (STATIC_BUF_SIZE): Define.
131160         (quotearg_n_options): Use only statically allocated storage when
131161         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
131162         than STATIC_BUF_SIZE.
131164 2000-07-29  Jim Meyering  <meyering@lucent.com>
131166         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
131167         * lib/dirname.c (dir_name): Likewise.
131169         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
131170         `/'.
131172         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
131173         (dir_name): Assert that there are no trailing slashes.
131175 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
131177         * lib/mbswidth.h (mbswidth): Add a flags argument.
131178         (mbswidth): New declaration.
131179         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
131180         * lib/mbswidth.c (mbswidth): Add a flags argument.
131181         (mbsnwidth): New function.
131183 2000-07-24  Jim Meyering  <meyering@lucent.com>
131185         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
131187 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
131191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131193         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
131194         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
131195         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
131196         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
131197         invoke multibyte primitives.
131199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131201         * lib/quotearg.c:
131202         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
131203         so that mbstate_t is always defined.
131205         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
131206         be 1 in at least one GCC installation, and this configuration
131207         error is likely to be common.  Ignoring MB_LEN_MAX hurts
131208         performance on hosts that have mbrtowc but have only unibyte
131209         locales, but I assume these hosts are rare.
131211 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131213         * lib/mbswidth.c (_XOPEN_SOURCE):
131214         Don't define; this causes problems on Solaris 7.
131215         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
131217 2000-07-23  Jim Meyering  <meyering@lucent.com>
131219         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
131220         too: getgrgid, getpwuid, getuid.
131222 2000-07-23  Jim Meyering  <meyering@lucent.com>
131224         * lib/basename.c (base_name): Add an assertion.
131226 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
131228         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
131229         shadow its mbsinit function.
131231 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131233         * lib/mbswidth.h: New file.
131234         * lib/mbswidth.c: New file.
131235         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
131236         (noinst_HEADERS): Add mbswidth.h.
131238 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131240         * lib/config.charset: Add support for FreeBSD. Improve support for
131241         HP-UX and IRIX 6.
131243 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
131245         * m4/mbswidth.m4: New file.
131246         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
131248 2000-07-15  Jim Meyering  <meyering@lucent.com>
131250         * lib/makepath.c: Include quote.h.
131251         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
131252         corresponding argument in a `quote (...)' call.
131253         Give better diagnostics.
131255         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
131256         (noinst_HEADERS): Add quote.h.
131258         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
131259         from tar's src/misc.c.
131260         * lib/quote.h: New file.  Prototypes for same.
131262 2000-07-14  Paul Eggert  <eggert@twinsun.com>
131264         From a suggestion by Bruno Haible.
131265         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
131266         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
131267         to decide whether to define the BeOS workaround macro;
131268         this adjusts to the change to AC_MBSTATE_T.
131270 2000-07-14  Jim Meyering  <meyering@lucent.com>
131272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
131273         jm_AC_TYPE_UINTMAX_T.
131275 2000-07-13  Paul Eggert  <eggert@twinsun.com>
131277         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
131279         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
131280         quotearg_buffer_restyled): Add support for
131281         clocale_quoting_style.  Undo previous change to
131282         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
131283         and "{RIGHT QUOTATION MARK}" msgids.
131285 2000-07-10  Paul Eggert  <eggert@twinsun.com>
131287         From a suggestion by Bruno Haible.
131288         * m4/mbstate_t.m4 (AC_MBSTATE_T):
131289         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
131290         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
131291         and mbstate_t, to a single-part test that simply defines mbstate_t.
131292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
131293         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
131295 2000-07-10  Jim Meyering  <meyering@lucent.com>
131297         * m4/strerror_r.m4: Mirror the correction made in autoconf.
131299         * m4/gnu-source.m4: Output to confdefs.h directly.
131300         Suggestion from Akim Demaille.
131302 2000-07-09  Paul Eggert  <eggert@twinsun.com>
131304         The old behavior of quoting `like this' doesn't look good with
131305         newer, ISO-style fonts.  See:
131306         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
131308         Instead, quote "like this" by default.  Let the translator
131309         tailor the locale-specific quoting behavior by providing
131310         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
131312         * lib/quotearg.c (N_): New macro.
131313         (gettext_default): New function.
131314         (quotearg_buffer_restyled): Use
131315         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
131316         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
131318 2000-07-09  Jim Meyering  <meyering@lucent.com>
131320         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
131321         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
131323         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
131324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
131326 2000-07-09  Jim Meyering  <meyering@lucent.com>
131328         * lib/Most files: Update copyright dates to include 2000.
131330 2000-07-08  Jim Meyering  <meyering@lucent.com>
131332         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
131333         if not defined.
131334         (xgethostname): Remove now-unnecessary #ifdef.
131335         Move declaration of `err' into loop where it's used.
131337 2000-07-05  Paul Eggert  <eggert@twinsun.com>
131338         and Bruno Haible  <haible@clisp.cons.org>
131340         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
131341         only if the test for an object-type mbstate_t fails.  This
131342         prevents us from mistakenly reporting that mbstate_t is a
131343         system object type after we "#define mbstate_t int" to work
131344         around its lack.
131346 2000-07-05  Paul Eggert  <eggert@twinsun.com>
131347         and Bruno Haible  <haible@clisp.cons.org>
131349         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
131351 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131353         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
131354         to strerror_r.
131355         Include <ctype.h> for use of isalpha.
131357 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131359         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
131360         by allocating a larger buffer. Test the gethostname return value for
131361         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
131362         returns an error and ENAMETOOLONG isn't defined.
131364 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131366         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
131367         dimension.
131369 2000-07-04  Jim Meyering  <meyering@lucent.com>
131371         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
131372         of the deprecated AC_CHECKING.
131374 2000-07-04  Jim Meyering  <meyering@lucent.com>
131376         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
131377         Reported by Bruno Haible.
131379 2000-07-04  Jim Meyering  <meyering@lucent.com>
131381         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
131382         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
131383         lacks mbrtowc.
131385 2000-07-03  Paul Eggert  <eggert@twinsun.com>
131387         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
131388         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
131390 2000-07-03  Paul Eggert  <eggert@twinsun.com>
131391         and Bruno Haible  <haible@clisp.cons.org>
131393         * lib/quotearg.c (mbrtowc):
131394         Assign to *pwc, and return 1 only if result is nonzero.
131395         (iswprint): Use ISPRINT when substituting our own mbrtowc.
131397 2000-07-03  Jim Meyering  <meyering@lucent.com>
131399         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
131401 2000-07-03  Jim Meyering  <meyering@lucent.com>
131403         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
131404         This is necessary to get a definition of e.g., UTMP_FILE on
131405         HP-UX 10.20.
131406         From Bob Proulx.
131408 2000-07-02  Jim Meyering  <meyering@lucent.com>
131410         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
131412         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
131413         AC_LIBOBJ(function_name).
131414         * m4/chown.m4: Likewise.
131415         * m4/fnmatch.m4: Likewise.
131416         * m4/ftruncate.m4: Likewise.
131417         * m4/getgroups.m4: Likewise.
131418         * m4/getline.m4: Likewise.
131419         * m4/group-member.m4: Likewise.
131420         * m4/jm-macros.m4: Likewise.
131421         * m4/lstat.m4: Likewise.
131422         * m4/malloc.m4: Likewise.
131423         * m4/memcmp.m4: Likewise.
131424         * m4/nanosleep.m4: Likewise.
131425         * m4/putenv.m4: Likewise.
131426         * m4/realloc.m4: Likewise.
131427         * m4/regex.m4: Likewise.
131428         * m4/stat.m4: Likewise.
131429         * m4/strftime.m4: Likewise.
131431 2000-07-02  Jim Meyering  <meyering@lucent.com>
131433         * lib/quotearg.c (mbstate_t): Don't define here.
131435 2000-07-02  Jim Meyering  <meyering@lucent.com>
131437         * lib/nanosleep.c (SIGCONT): Define if not already defined.
131439 2000-07-01  Jim Meyering  <meyering@lucent.com>
131441         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
131443 2000-07-01  Jim Meyering  <meyering@lucent.com>
131445         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
131446         problem.
131448 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
131450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
131451         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
131453 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
131455         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
131456         per change in ../m4/ls-mntd-fs.m4.
131457         (read_filesystem_list): Ignore symbolic links.
131459 2000-06-29  Jim Meyering  <meyering@lucent.com>
131461         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
131462         for declaration of strcmp.
131464         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
131466         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
131467         Avoid warning by casting result to `char *' to remove `const'.
131469 2000-06-28  Jim Meyering  <meyering@lucent.com>
131471         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
131472         included by quotearg.c, for which we perform this test.  From
131473         Bruno Haible.
131475 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
131477         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
131478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
131479         <utmpx.h> exists, put readutmp.o into LIBOBJS.
131481 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
131483         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
131485 2000-06-26  Paul Eggert  <eggert@twinsun.com>
131487         savedir now sets errno on failure and invokes xmalloc to get memory.
131488         Fix a couple of other minor bugs while we're at it.
131490         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
131491         (NAMLEN): Remove macro.
131492         (malloc, realloc): Remove decls.
131493         (stpcpy): Likewise.
131494         ("xalloc.h"): Include.
131495         (NAME_SIZE_DEFAULT): New macro.
131496         (savedir): Use xmalloc / xrealloc to allocate memory.
131497         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
131498         Skip "" directory entries.
131499         Use strlen to calculate directory entry length, since the old method
131500         is rarely used these days and isn't worth supporting.
131501         Don't use a pointer after freeing it.
131502         Check for integer overflow when calculating allocation size.
131503         Use memcpy to copy entries, instead of stpcpy.
131504         Set errno properly when returning NULL.
131505         Check for readdir error.
131507 2000-06-26  Jim Meyering  <meyering@lucent.com>
131509         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
131511 2000-06-25  Jim Meyering  <meyering@lucent.com>
131513         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
131514         Linux header bug when _XOPEN_SOURCE is defined to 500.
131516 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
131518         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
131519         deficiency.
131521 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
131523         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
131524         Include xalloc.h.
131525         Don't include <stdlib.h>.  Don't declare malloc, realloc.
131527 2000-06-24  Jim Meyering  <meyering@lucent.com>
131529         * m4/strerror_r.m4: Revive this file -- to try out an experimental
131530         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
131531         for which strerror does return char*, but which lacks a conveniently
131532         accessible declaration of the function.  If the compile-test says
131533         strerror_r doesn't work, then resort to a `run'-test that works on
131534         BeOS and segfaults on DEC Unix.
131536 2000-06-24  Jim Meyering  <meyering@lucent.com>
131538         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
131540 2000-06-23  Paul Eggert  <eggert@twinsun.com>
131542         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
131543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
131545 2000-06-23  Paul Eggert  <eggert@twinsun.com>
131547         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
131548         (mbrtowc, mbstate_t): Define substitutes if
131549         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
131550         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
131551         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
131553 2000-06-23  Jim Meyering  <meyering@lucent.com>
131555         * m4/afs.m4: Add missing AC_MSG_RESULT.
131556         Reported by Bruno Haible.
131558         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
131559         Suggestion from Bruno Haible.
131561 2000-06-23  Jim Meyering  <meyering@lucent.com>
131563         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
131565 2000-06-21  Jim Meyering  <meyering@lucent.com>
131567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
131569 2000-06-21  Jim Meyering  <meyering@lucent.com>
131571         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
131572         (noinst_HEADERS): Add getstr.h.
131574         * lib/getline.c (getstr): Move into a separate file.
131575         * lib/getstr.c (getstr): New file, extracted from getline.c, with
131576         the following changes: new parameter, delim2; both delim[12]
131577         parameters have type `int', not `char'.  The latter would lose
131578         with 8-bit delimiters.
131579         * lib/getstr.h: New file.
131581 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
131583         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
131584         than 1024, return a memory chunk of least possible size, instead
131585         of size PATH_MAX + 2. In the loop, increment the size proportionally.
131586         Use free/xmalloc instead of xrealloc to avoid copying for very long
131587         paths.
131589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
131591         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
131592         the empty string.
131594 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
131596         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
131597         address, not strdup.  Include <stdlib.h> and don't declare free().
131599 2000-06-19  Jim Meyering  <meyering@lucent.com>
131601         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
131603 2000-06-18  Jim Meyering  <meyering@lucent.com>
131605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
131607         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
131608         `checking whether...' message to be consistent with that of the
131609         lstat test.
131611 2000-06-18  Jim Meyering  <meyering@lucent.com>
131613         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
131614         Besides, these days every porting target provides a mkdir function.
131616         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
131617         needed. (this snippet comes from src/system.h).
131619 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
131621         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
131623 2000-06-15  Paul Eggert  <eggert@twinsun.com>
131625         * lib/human.c (adjust_value): New function.
131626         (human_readable_inexact): Apply rounding style even when
131627         printing approximate values.
131629 2000-06-14  Paul Eggert  <eggert@twinsun.com>
131631         * lib/human.c (human_readable_inexact): Allow an input block
131632         size that is not a multiple of the output block size, and vice versa.
131633         Reported by Piergiorgio Sartor.
131635 2000-06-14  Paul Eggert  <eggert@twinsun.com>
131637         * lib/getdate.y (get_date): Apply relative times after time
131638         zone indicator, not before.  Reported by Todd A. Jacobs.
131640 2000-06-13  Jim Meyering  <meyering@lucent.com>
131642         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
131644         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
131646 2000-06-12  Paul Eggert  <eggert@twinsun.com>
131648         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
131650 2000-06-12  Jim Meyering  <meyering@lucent.com>
131652         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
131653         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
131654         optional argument.
131655         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
131656         the optional argument, `lib'.
131658 2000-06-08  Jim Meyering  <meyering@lucent.com>
131660         * m4/largefile.m4: Remove file (now that it's part of autoconf).
131662 2000-06-04  Paul Eggert  <eggert@twinsun.com>
131664         Rewrite largefile configuration so that we don't need to run
131665         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
131666         AC_CANONICAL_HOST in configure.in -- jmm]
131668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
131669         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
131670         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
131671         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
131672         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
131673         All uses changed.
131674         Instead of inspecting the output of getconf, try to compile the
131675         test program without and with the macro definition.
131676         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
131677         for getconf.  Instead, check for the needed flags by compiling
131678         test programs.
131680 2000-06-04  Paul Eggert  <eggert@twinsun.com>
131682         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
131684 2000-06-04  Jim Meyering  <meyering@lucent.com>
131686         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
131687         SunOS 4.1.4 for which gid_t is an unsigned type.
131689 2000-06-03  Jim Meyering  <meyering@lucent.com>
131691         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
131692         now that autoconf requires that.
131694         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
131695         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
131696         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
131698 2000-06-03  Jim Meyering  <meyering@lucent.com>
131700         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
131702 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
131704         * m4/glibc21.m4: New file.
131705         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
131707 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
131709         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
131710         newer, don't install charset.alias.
131711         * lib/config.charset: Change the Linux/glibc rules so they become empty
131712         on glibc-2.1 or newer.
131714 2000-06-02  Jim Meyering  <meyering@lucent.com>
131716         * lib/mountlist.c: Back out last change.  Instead, do this...
131717         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
131718         me_dummy member using the same `ignore'-testing code.
131719         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
131720         fs_type strings.
131721         From Mark D. Roth.
131723 2000-05-29  Jim Meyering  <meyering@lucent.com>
131725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
131726         mounts with the `ignore' attribute.  Based on a patch from
131727         Mark D. Roth.
131729 2000-05-28  Jim Meyering  <meyering@lucent.com>
131731         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
131732         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
131733         * m4/stat.m4: Likewise.
131734         * m4/lstat.m4: Likewise.
131735         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
131737         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
131738         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
131740 2000-05-26  Jim Meyering  <meyering@lucent.com>
131742         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
131744 2000-05-24  Jim Meyering  <meyering@lucent.com>
131746         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
131747         autoconf requires that.
131748         * m4/lib-check.m4: Likewise.
131749         * m4/jm-macros.m4: Likewise.
131750         * m4/strftime.m4: Likewise.
131752         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
131753         AC_CHECK_DECLS, now that autoconf requires that.
131755 2000-05-22  Jim Meyering  <meyering@lucent.com>
131757         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
131758         * m4/lstat.m4: Likewise.
131760 2000-05-22  Jim Meyering  <meyering@lucent.com>
131762         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
131764 2000-05-20  Jim Meyering  <meyering@lucent.com>
131766         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
131767         (jm_PREREQ): Use it.
131769 2000-05-18  Jim Meyering  <meyering@lucent.com>
131771         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
131772         back, too, since it may have been modified by allocate_entry.
131773         (hash_delete): Rewrite to use neither the assignment operator
131774         nor the comma operator in an if-expression.
131776 2000-05-15  Paul Eggert  <eggert@twinsun.com>
131778         * lib/closeout.c:
131779         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
131780         Remove; no longer needed.
131781         "quotearg.h": Add include.
131782         (file_name): Do not bother to explicitly initialize to NULL; it's less
131783         efficient on some hosts.
131784         (close_stdout_status): Remove test as to whether stdout was already
131785         closed; it breaks for the case "echo x | sort >&-".
131786         Quote file name colons.
131787         Do not assume that _("write error") lacks format strings.
131789 2000-05-15  Jim Meyering  <meyering@lucent.com>
131791         * lib/version-etc.c (version_etc_copyright): Update the copyright
131792         string used in all --version output.
131794 2000-05-14  Jim Meyering  <meyering@lucent.com>
131796         * lib/closeout.c (close_stdout_set_file_name): New function.
131797         (close_stdout_status): Use new file-scoped global.
131798         Return right away if fstat says the stdout file descriptor is invalid.
131799         * lib/closeout.h (close_stdout_set_file_name): Declare.
131801 2000-05-10  Jim Meyering  <meyering@lucent.com>
131803         * lib/closeout.c [default_exit_status]: New file-scoped variable.
131804         (close_stdout_set_status): New function.
131805         * lib/closeout.h (close_stdout_set_status): Declare.
131807 2000-05-09  Jim Meyering  <meyering@lucent.com>
131809         * m4/gettext.m4: Rename this...
131810         * m4/libintl.m4: ...to this.
131812 2000-05-08  Jim Meyering  <meyering@lucent.com>
131814         * lib/long-options.c: Don't include closeout.h.
131815         (parse_long_options): Don't call close_stdout for --version.
131817 2000-05-06  Paul Eggert  <eggert@twinsun.com>
131819         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
131820         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
131821         2.1.3 bug.  This avoids a clash when files like regex.c define
131822         _GNU_SOURCE.
131824 2000-05-06  Jim Meyering  <meyering@lucent.com>
131826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
131827         (AC_REPLACE_FUNCS): Add strnlen.
131829         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
131830         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
131832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
131833         AC_SEARCH_LIBS call for nanosleep.
131834         (LIB_NANOSLEEP): Set and AC_SUBST.
131836 2000-05-06  Jim Meyering  <meyering@lucent.com>
131838         * lib/strnlen.c: Undefine __strnlen and strnlen.
131839         [!weak_alias]: Define __strnlen to strnlen.
131841         * lib/atexit.c: New file, from libiberty.
131843 2000-05-06  Jim Meyering  <meyering@lucent.com>
131845         * lib/closeout.c (close_stdout_status): Also check for errors on the
131846         stderr stream.
131848 2000-05-05  Jim Meyering  <meyering@lucent.com>
131850         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
131851         AC_SEARCH_LIBS call for clock_gettime.
131852         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
131854         * m4/search-libs.m4: Update from autoconf.
131856         su doesn't work on Solaris 2.6.
131857         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
131858         <shadow.h>.  Reported by Dragos Harabor.
131860 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
131862         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
131863         memcpy instead of xmalloc, xrealloc, path_concat.
131864         (locale_charset): Treat empty environment variables as absent.
131865         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
131867 2000-05-04  Jim Meyering  <meyering@lucent.com>
131869         * lib/getopt.c: Update from glibc.
131870         * lib/obstack.c: Likewise.
131871         * lib/obstack.h: Likewise.
131872         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
131873         file
131875         * lib/regex.h: Likewise.
131876         * lib/strndup.c: Likewise.
131877         * lib/strnlen.c: New file, from glibc.
131879 2000-05-03  Jim Meyering  <meyering@lucent.com>
131881         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
131883 2000-05-02  Paul Eggert  <eggert@twinsun.com>
131885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
131886         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
131887         compile-time test, rather than inspecting host and OS, to
131888         decide whether to define _LARGEFILE_SOURCE.
131890 2000-05-01  Jim Meyering  <meyering@lucent.com>
131892         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
131894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
131895         Based on a patch from Bruno Haible.
131897 2000-05-01  Jim Meyering  <meyering@lucent.com>
131899         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
131901 2000-04-29  Jim Meyering  <meyering@lucent.com>
131903         * lib/path-concat.c: Declare strdup only if it's not defined.
131904         * lib/canon-host.c: Likewise.
131906 2000-04-28  Jim Meyering  <meyering@lucent.com>
131908         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
131909         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
131910         is included first, then limits.h is included by locale.h by libintl.h.
131911         From John David Anglin.
131913 2000-04-25  Jim Meyering  <meyering@lucent.com>
131915         * lib/makepath.c (S_IRWXUGO): Define.
131916         (make_path): Always perform explicit chmod if MODE specifies any
131917         of the `special' permission bits.  Prompted by a bug report against
131918         install from Mate Wierdl and Joost van Baal.
131920 2000-04-18  Jim Meyering  <meyering@lucent.com>
131922         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
131923         (jm_PREREQ): Use it.
131925 2000-04-18  Jim Meyering  <meyering@lucent.com>
131927         * lib/README: New file.
131929         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
131930         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
131932 2000-04-17  Jim Meyering  <meyering@lucent.com>
131934         Get it right :-)
131935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
131936         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
131937         Suggestion from Akim Demaille.
131939 2000-04-17  Jim Meyering  <meyering@lucent.com>
131941         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
131942         the definition of it to rpl_strftime also defined-away the system's
131943         declaration.
131945 2000-04-15  Jim Meyering  <meyering@lucent.com>
131947         Use `C' to denote so-called `contiguous' files, the same way
131948         that tar does.
131949         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
131950         (ftypelet): Use S_ISCTG.
131951         From Michael Deutschmann.
131953 2000-04-14  Jim Meyering  <meyering@lucent.com>
131955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
131956         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
131957         clobbered.
131959 2000-04-14  Jim Meyering  <meyering@lucent.com>
131961         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
131963 2000-04-13  Jim Meyering  <meyering@lucent.com>
131965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
131966         AH_VERBATIM to insert required #ifndef into config.h.in.
131967         Suggestion from Akim Demaille.
131969 2000-04-12  Jim Meyering  <meyering@lucent.com>
131971         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
131972         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
131973         Christian Krackowizer.
131975         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
131976         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
131977         (AC_SYS_LARGEFILE): Require.
131978         (AM_C_PROTOTYPES): Require.
131980 2000-04-08  Jim Meyering  <meyering@lucent.com>
131982         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
131983         names don't conflict.  Reported by Eli Zaretskii.
131985 2000-04-07  Jim Meyering  <meyering@lucent.com>
131987         * lib/putenv.c: Move inclusion of errno.h so it follows that of
131988         sys/types.h, to work around system header problems on AIX 3.2.5.
131989         From Bruno Haible.
131991 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
131993         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
131994         bug.  Deal with the different error behavior of Irix iconv.
131996 2000-04-05  Paul Eggert  <eggert@twinsun.com>
131998         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
131999         IRIX if the installer said otherwise.
132001 2000-04-05  Jim Meyering  <meyering@lucent.com>
132003         Portability tweaks required for ultrix4.3.
132004         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
132005         (jm_CHECK_DECLS): Add getutent to the list of functions.
132006         (_jm_DECL_HEADERS): Add utmpx.h.
132007         From John David Anglin.
132009         * m4/strftime.m4: Back out the 2000-04-02 change.
132010         Instead of that change, simply undefine putenv in the test program.
132012 2000-04-05  Jim Meyering  <meyering@lucent.com>
132014         Portability tweaks required for ultrix4.3.
132015         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
132016         getutent.
132017         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
132018         * lib/canon-host.c: Declare strdup.
132019         * lib/path-concat.c: Likewise.
132020         From John David Anglin.
132022 2000-04-04  Jim Meyering  <meyering@lucent.com>
132024         Be more DOS 8.3-friendly.
132025         * lib/ref-add.sin: Renamed from ref-add.sed.in.
132026         * lib/ref-del.sin: Renamed from ref-del.sed.in.
132027         * lib/Makefile.am: Reflect renaming.
132028         Reported by Eli Zaretskii.
132030         Use a temporary file name that won't clash with `charset.alias'
132031         in the DOS 8.3 name space.
132032         * lib/Makefile.am (charset_tmp): Define.
132033         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
132034         (uninstall-local): Likewise.
132035         Reported by Eli Zaretskii.
132037 2000-04-03  Jim Meyering  <meyering@lucent.com>
132039         * m4/gettext.m4: Fix typo in comment.
132041         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
132042         textutils/configure.in).  Suggestion from Paul Eggert.
132043         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
132045 2000-04-02  Paul Eggert  <eggert@twinsun.com>
132047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
132048         variable in the shell rather than using putenv, which isn't
132049         portable.  This avoids the configure-time inter-test dependency
132050         on the potentially-renamed putenv function.
132052 2000-03-30  Paul Eggert  <eggert@twinsun.com>
132054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
132055         before checking struct stat.st_blksize, so that
132056         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
132058 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
132061         since strftime.c uses HAVE_STRFTIME to decide whether to use
132062         the underlying strftime.
132064 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132066         * lib/time/strftime.c (my_strftime): Make sure we call the system
132067         strftime, not ourselves, when invoking the underlying strftime.
132069 2000-03-24  Jim Meyering  <meyering@lucent.com>
132071         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
132072         (charset_alias): Define.
132073         (install-exec-local): Factor out common code.
132074         (uninstall-local): Split lines longer than 80.
132075         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
132076         (SUFFIXES): Define.
132077         (.sed.in.sed): New rule.  Don't redirect directly to $@.
132078         (CLEANFILES): Add ref-add.sed and ref-del.sed.
132080 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
132082         * lib/config.charset: Output a line containing "Packages using this
132083         file".
132084         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
132085         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
132086         ref-del.sed): New rules.
132088 2000-03-17  Jim Meyering  <meyering@lucent.com>
132090         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
132091         Otherwise, include <strings.h>
132093 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
132095         * lib/unicodeio.c (utf8_wctomb): New function.
132096         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
132097         format instead of in UCS-4 with platform dependent endianness.
132099 2000-03-10  Jim Meyering  <meyering@lucent.com>
132101         * m4/lib-check.m4: Look for getspnam in -lgen, too.
132102         From Marco Franzen.
132104 2000-03-07  Paul Eggert  <eggert@twinsun.com>
132106         * lib/savedir.c (savedir): Work even if directory size is
132107         negative; this can happen with some screwy NFS configurations.
132109 2000-03-06  Jim Meyering  <meyering@lucent.com>
132111         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
132112         if it's NULL (because we ran out of memory).  From Bruno Haible.
132114 2000-03-05  Jim Meyering  <meyering@lucent.com>
132116         * lib/localcharset.c ("path-concat.h"): Include.
132117         (get_charset_aliases): Use path_concat instead of ANSI string
132118         concatenation.
132120         * lib/unicodeio.h (PARAMS): Define.
132121         Use it to guard prototype.
132123 2000-03-04  Jim Meyering  <meyering@lucent.com>
132125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
132126         for lib/localcharset.c.
132128 2000-03-04  Jim Meyering  <meyering@lucent.com>
132130         * lib/Makefile.am (install-exec-local): Create $(libdir) before
132131         installing into it.
132132         (uninstall-local): Uncomment this rule so `make distcheck' works
132133         once again.
132135         * lib/unicodeio.c (<errno.h>): Include it.
132136         (errno): Declare if not defined.
132138         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
132140         * lib/config.charset: New version, incorporating remarks from a linux
132141         i18n mailing list.  From Bruno Haible.
132143 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
132145         * m4/codeset.m4: New file.
132146         * m4/iconv.m4: New file.
132147         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
132149 2000-03-03  Jim Meyering  <meyering@lucent.com>
132151         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
132153 2000-03-02  Jim Meyering  <meyering@lucent.com>
132155         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
132156         the messages come out on separate lines.
132158         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
132159         rather than jm_CHECK_DECLARATIONS.
132160         * m4/decl.m4: Remove now-unused file.
132162         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
132163         geteuid.
132165 2000-03-02  Jim Meyering  <meyering@lucent.com>
132167         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
132169 2000-03-01  Jim Meyering  <meyering@lucent.com>
132171         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
132172         * lib/unicodeio.c: Likewise.
132174 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
132176         * lib/config.charset: New file.
132177         * lib/localcharset.c: New file.
132178         * lib/unicodeio.h, lib/unicodeio.c: New files.
132179         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
132180         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
132181         (noinst_HEADERS): Add unicodeio.h.
132182         (all-local, install-exec-local, charset.alias): New targets.
132184 2000-02-28  Paul Eggert  <eggert@twinsun.com>
132186         * lib/quotearg.c (ALERT_CHAR): New macro.
132187         (quotearg_buffer_restyled): Use it.
132189 2000-02-27  Jim Meyering  <meyering@lucent.com>
132191         * m4/check-decl.m4: Add getenv to the list.
132193 2000-02-27  Jim Meyering  <meyering@lucent.com>
132195         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
132196         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
132198         * lib/backupfile.c: Guard inclusion of stdlib.h with
132199         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
132200         Declare malloc if needed.
132202         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
132203         `#ifndef HAVE_DECL..'
132204         now that autoconf always defines the HAVE_DECL_ symbols.
132205         * lib/human.c: Likewise.
132206         * lib/same.c: Likewise.
132207         * lib/strtoumax.c: Likewise.
132209         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
132210         declaration check was not run.
132211         * lib/hash.c: Likewise.
132212         * lib/human.c: Likewise.
132213         * lib/same.c: Likewise.
132214         * lib/strtoumax.c: Likewise.
132216         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
132217         `.', then first look up the entire `.'-containing string as a login
132218         name.
132220 2000-02-23  Jim Meyering  <meyering@lucent.com>
132222         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
132223         in place of my hack.
132225 2000-02-18  Paul Eggert  <eggert@twinsun.com>
132227         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
132228         (textint): New typedef.
132229         (parser_control): Member year changed from int to textint.
132230         All uses changed.
132231         (YYSTYPE): Removed; replaced by %union with int and textint members.
132232         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
132233         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
132234         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
132235         (tSNUMBER, tUNUMBER): Now of type <textintval>.
132236         (date, number, to_year): Use width of number in digits, not its value,
132237         to determine whether it's a 2-digit year, or a 2-digit time.
132238         (yylex): Store number of digits of numeric tokens.
132239         Reported by John Kendall.
132241         (parser_control): Changed from struct parser_control to typedef (for
132242         consistency).  All uses changed.
132244         (tID): Removed; not used.
132245         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
132247 2000-02-14  Paul Eggert  <eggert@twinsun.com>
132249         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
132250         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
132252 2000-02-12  Jim Meyering  <meyering@lucent.com>
132254         * lib/userspec.c (ISDIGIT): Define it.
132255         (isdigit): Remove definition.
132256         (is_number): Use ISDIGIT, not isdigit.
132257         <libintl.h>: Include.
132258         (_ and N_): Define.
132259         (parse_user_spec): Mark translatable strings.
132261 2000-02-10  Jim Meyering  <meyering@lucent.com>
132263         With these changes, nanosleep.[ch] are finally enough like the other
132264         lib/* replacement files to compile on a few more losing systems.
132266         * lib/nanosleep.h: Don't include config.h.
132267         Remove prototype from declaration of nanosleep.
132268         (PARAMS): Remove now-unneeded definition.
132269         * lib/nanosleep.c: #undef nanosleep.
132270         (rpl_nanosleep): Rename from nanosleep.
132272 2000-02-10  Jim Meyering  <meyering@lucent.com>
132274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
132275         gnu_nanosleep to rpl_nanosleep.
132277 2000-02-09  Jim Meyering  <meyering@lucent.com>
132279         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
132280         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
132282 2000-02-08  Akim Demaille  <akim@epita.fr>
132284         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
132285         `[' and `]' and remove uses of `changequote'.
132286         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
132287         (AC_SYS_LARGEFILE): Likewise.
132288         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
132289         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
132290         of changequote.
132291         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
132292         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
132293         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
132294         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
132296 2000-02-05  Jim Meyering  <meyering@lucent.com>
132298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
132299         Remove explicit use of AC_HEADER_TIME.  It is required by
132300         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
132301         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
132302         in autoconf whereby the expansion of the latter ended up preceding
132303         the expansion of its prerequisite, AC_HEADER_TIME.
132304         Reported by Volker Borchert.
132306 2000-02-03  Jim Meyering  <meyering@lucent.com>
132308         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
132310 2000-02-03  Jim Meyering  <meyering@lucent.com>
132312         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
132313         rather than with `#if HAVE_UTMPNAME'.
132315 2000-02-02  Jim Meyering  <meyering@lucent.com>
132317         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
132318         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
132319         Reported by Eli Zaretskii.
132321 2000-02-01  Jim Meyering  <meyering@lucent.com>
132323         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
132325 2000-01-31  Jim Meyering  <meyering@lucent.com>
132327         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
132328         functions.  Add the time.h and sys/time.h headers along with the
132329         AC_REQUIRE'ment of AC_HEADER_TIME.
132331 2000-01-31  Jim Meyering  <meyering@lucent.com>
132333         * lib/nanosleep.h (nanosleep): Guard declaration with
132334         `#if ! HAVE_DECL_NANOSLEEP'.
132335         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
132336         the declaration in that vendor's sys/timers.h.
132337         Reported by Christian Krackowizer.
132339         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
132340         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
132341         (ISPRINT): Likewise.
132342         Reported by Tom Tromey.
132344 2000-01-30  Jim Meyering  <meyering@lucent.com>
132346         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
132348         * m4/prereq.m4 (utmp_includes): Define.
132349         Check for ut_user and ut_name members in both struct utmpx
132350         and struct utmp.
132352 2000-01-30  Jim Meyering  <meyering@lucent.com>
132354         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
132355         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
132356         header files where only utmpx.ut_user is declared.
132358         * lib/readutmp.h (UT_USER): Define.
132360 2000-01-29  Jim Meyering  <meyering@lucent.com>
132362         * m4/lib-check.m4: New file containing library-related checks from
132363         fileutils and sh-utils (textutils had none).
132365 2000-01-28  Jim Meyering  <meyering@lucent.com>
132367         * m4/perl.m4: Change format of warning message to look more like that
132368         from the missing script.  Suggestion from François Pinard.
132370 2000-01-25  Jim Meyering  <meyering@lucent.com>
132372         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
132373         well as time.h in the compile check.
132374         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
132375         Fix typo in cross-compiling case: s/yes/no/.
132377 2000-01-23  Jim Meyering  <meyering@lucent.com>
132379         * m4/jm-macros.m4: Move df-related tests here from
132380         fileutils/configure.in
132382         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
132383         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
132385         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
132386         s/space/ac_fsusage_space/.
132387         (jm_FILE_SYSTEM_USAGE): Take two parameters.
132389         * m4/ftruncate.m4: New file (derived from part of
132390         fileutils/configure.in).
132391         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
132392         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
132394         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
132395         AC_SUBST these here, rather than just in sh-util/configure.in, so
132396         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
132397         all the same.
132398         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
132399         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
132400         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
132401         (AC_SUBST(POW_LIBM)): Likewise.
132402         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
132404 2000-01-23  Jim Meyering  <meyering@lucent.com>
132406         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
132407         obstack.c.
132409 2000-01-22  Jim Meyering  <meyering@lucent.com>
132411         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
132413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
132415         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
132416         configure.in
132417         (AC_CHECK_HEADERS): Likewise for sh-utils.
132418         (AC_CHECK_HEADERS): Likewise for textutils.
132419         Merge the three lists of headers.
132421         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
132422         from fileutils' configure.in.
132424         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
132425         code. Moved tests into their own function (_jm_DECL_HEADERS) in
132426         check-decl.m4.
132428         * m4/check-decl.m4: Use #if rather than #ifdef.
132429         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
132430         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
132431         (_jm_DECL_HEADERS): Define new function.
132432         (jm_CHECK_DECLARATIONS): Require it.
132434 2000-01-22  Jim Meyering  <meyering@lucent.com>
132436         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
132437         [! HAVE_DECL_STRTOULL]: Declare strtoull.
132438         Required for some AIX systems.  Reported by Christian Krackowizer.
132439         [TESTING] (main): New function.
132441         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
132442         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
132443         letters.
132445         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
132446         iswprint.
132448         * lib/strverscmp.c (ISDIGIT): Define.
132449         (strverscmp): Use ISDIGIT, not isdigit.
132451 2000-01-19  Jim Meyering  <meyering@lucent.com>
132453         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
132454         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
132455         defines `struct timespec' in <sys/time.h>
132457         * m4/c-bs-a.m4: Remove uses of changequote altogether.
132458         Thanks to Akim for explaining.
132460 2000-01-17  Paul Eggert  <eggert@twinsun.com>
132462         * lib/nanosleep.c (nanosleep):
132463         Don't use SA_INTERRUPT to decide whether to call sigaction, as
132464         POSIX.1 doesn't require SA_INTERRUPT and some systems
132465         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
132466         it's been part of POSIX.1 since day 1 (in 1988).
132468 2000-01-17  Jim Meyering  <meyering@lucent.com>
132470         * lib/interlock: Remove unused file.  Reported by François Pinard.
132472 2000-01-16  Paul Eggert  <eggert@twinsun.com>
132474         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
132475         alert, backslash, formfeed, and vertical tab unnecessarily in
132476         shell quoting style.
132478 2000-01-16  Jim Meyering  <meyering@lucent.com>
132480         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
132481         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
132482         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
132483         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
132485 2000-01-16  Jim Meyering  <meyering@lucent.com>
132487         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
132488         because the latter didn't work.
132490 2000-01-15  Jim Meyering  <meyering@lucent.com>
132492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
132493         (AC_REPLACE_FUNCS): Add memcpy and memset.
132494         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
132495         Add strpbrk.
132496         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
132498 2000-01-12  Jim Meyering  <meyering@lucent.com>
132500         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
132501         (jm_PREREQ): Use it.
132502         (jm_PREREQ_READUTMP): New macro.
132503         (jm_PREREQ): Use it.
132505 2000-01-11  Paul Eggert  <eggert@twinsun.com>
132507         Quote multibyte characters correctly.
132508         * m4/c-bs-a.m4: New file.
132509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
132510         (jm_PREREQ): Use it.
132512 2000-01-11  Paul Eggert  <eggert@twinsun.com>
132514         * m4/uintmax_t.m4: Port to autoconf 2.13.
132516 2000-01-08  Jim Meyering  <meyering@ascend.com>
132518         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
132519         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
132521 2000-01-04  Jim Meyering  <meyering@ascend.com>
132523         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
132524         jm_STRUCT_DIRENT_D_TYPE.
132525         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
132526         jm_STRUCT_DIRENT_D_INO.
132527         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
132528         jm_STRUCT_UTIMBUF.
132529         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
132530         renamings.
132531         * m4/utime.m4: Likewise.
132533         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
132534         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
132536 2000-01-03  Paul Eggert  <eggert@twinsun.com>
132538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
132539         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
132541 2000-01-02  Jim Meyering  <meyering@ascend.com>
132543         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
132544         remember if this is necessary.
132546 1999-12-26  Jim Meyering  <meyering@ascend.com>
132548         * m4/jm-macros.m4: Use it here.
132549         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
132551 1999-12-23  Jim Meyering  <meyering@ascend.com>
132553         * m4/jm-macros.m4: Check for clock_gettime (moved from
132554         fileutils/configure.in)
132555         Check for gettimeofday.
132557 1999-12-20  Jim Meyering  <meyering@ascend.com>
132559         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
132560         autoconf-2.14a-1999-12-20.
132562 1999-12-19  Jim Meyering  <meyering@ascend.com>
132564         * m4/lstat-slash.m4: New file.
132565         * m4/jm-macros.m4: Use the new macro:
132566         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132568 1999-12-07  Jim Meyering  <meyering@ascend.com>
132570         * m4/perl.m4: Require that File::Compare be available, too.
132571         Too many systems seem to lack it.
132573         * m4/strftime.m4: Add checks for most of the cpp macros tested in
132574         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
132576 1999-11-18  Paul Eggert  <eggert@twinsun.com>
132578         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
132579         problem with the QNX 4.25 shell, which doesn't propagate exit
132580         status of failed commands inside shell assignments.
132582 1999-11-17  Jim Meyering  <meyering@ascend.com>
132584         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
132586 1999-11-07  Jim Meyering  <meyering@ascend.com>
132588         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
132590 1999-11-06  Jim Meyering  <meyering@ascend.com>
132592         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
132593         * m4/jm-macros.m4 (jm_MACROS): Use it here.
132595 1999-11-05  Jim Meyering  <meyering@ascend.com>
132597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
132598         configure.in of textutils, fileutils, and sh-utils into this one
132599         (shared between those packages) file.
132600         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
132601         AC_STRUCT_ST_BLKSIZE.
132603 1999-11-03  Jim Meyering  <meyering@ascend.com>
132605         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
132606         of AC_CHECK_TYPE checks includes unistd.h.
132607         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
132608         Suggestion from Akim Demaille.
132610 1999-10-30  Jim Meyering  <meyering@ascend.com>
132612         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
132613         m4-quoted string.
132614         * m4/ls-mntd-fs.m4: Likewise.
132615         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
132616         * m4/jm-winsz1.m4: Likewise.
132618         * m4/const.m4: Remove file, since the fix made it into the experimental
132619         version of autoconf.
132620         * m4/mktime.m4: Likewise.
132622         * m4/check-type.m4: Remove file, now that the latest version of
132623         AC_CHECK_TYPE takes a third arg to specify additional #includes.
132625         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
132626         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
132627         AC_CHECK_TYPE.
132629 1999-10-04  Jim Meyering  <meyering@ascend.com>
132631         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
132633 1999-09-22  Paul Eggert  <eggert@twinsun.com>
132635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
132636         2.95.1 bug with HP-UX 10.20.
132638 1999-09-17  Jim Meyering  <meyering@ascend.com>
132640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
132641         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
132642         due to missing strdup (against sh-utils-2.0).
132644 1999-08-29  Jim Meyering  <meyering@ascend.com>
132646         * m4/jm-macros.m4: Require jm_BISON.
132647         * m4/bison.m4: New file.
132649 1999-08-17  Paul Eggert  <eggert@twinsun.com>
132651         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
132652         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
132654 1999-08-05  Jim Meyering  <meyering@ascend.com>
132656         * m4/getline.m4: Rename test file from conftestdata to conftest.data
132657         to avoid conflicts with `conftest' on 8+3 filesystems.
132658         Suggestion from Eli Zaretskii.
132660 1999-08-04  Jim Meyering  <meyering@ascend.com>
132662         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
132663         fileutils and sh-utils (textutils's getline test was inadequate).
132664         (AM_FUNC_GETLINE): Run this test.
132665         (AC_CHECK_FUNCS): Check for getdelim.
132666         Reported by Bob Proulx.
132668 1999-08-02  Jim Meyering  <meyering@ascend.com>
132670         * m4/jm-macros.m4: Add a comment.
132672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
132674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
132675         <inttypes.h> defines strtoumax as a macro (and not as a
132676         function).
132678 1999-08-01  Paul Eggert  <eggert@twinsun.com>
132680         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
132681         that we can shift, multiply and divide unsigned long long
132682         values; Ultrix cc can't do it.
132684 1999-08-01  Paul Eggert  <eggert@twinsun.com>
132686         * m4/mktime.m4: New file, which is a preview of what should appear
132687         in the next public autoconf release.
132689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
132691         * m4/lfs.m4: Remove this file.
132692         * m4/largefile.m4: New file.  It contains the old contents of
132693         lfs.m4, except that all names with prefix AC_LFS have been
132694         changed to use the prefix AC_SYS_LARGEFILE instead, to be
132695         compatible with future autoconf versions.  Also, some minor m4
132696         quoting problems have been fixed.
132698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
132700         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
132701         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
132702         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
132703         and simplify the shell code.
132705 1999-08-01  Jim Meyering  <meyering@ascend.com>
132707         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
132708         m4.
132710 1999-07-20  Jim Meyering  <meyering@ascend.com>
132712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
132714 1999-07-15  Jim Meyering  <meyering@ascend.com>
132716         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
132718 1999-05-22  Jim Meyering  <meyering@ascend.com>
132720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
132722 1999-05-20  Jim Meyering  <meyering@ascend.com>
132724         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
132725         Add a colon after each `then' in case $4 is empty.
132727 1999-05-16  Jim Meyering  <meyering@ascend.com>
132729         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
132731 1999-05-10  Jim Meyering  <meyering@ascend.com>
132733         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
132735         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
132736         AC_FUNC_MKTIME.
132738 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
132740         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
132742 1999-05-04  Paul Eggert  <eggert@twinsun.com>
132744         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
132745         not CPPFLAGS, so that linking works correctly in IRIX.
132747 1999-04-30  Paul Eggert  <eggert@twinsun.com>
132749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
132751 1999-04-20  Paul Eggert  <eggert@twinsun.com>
132753         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
132754         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
132755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
132756         jm_AC_TYPE_UNSIGNED_LONG_LONG.
132757         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
132759         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
132761 1999-04-20  Jim Meyering  <meyering@ascend.com>
132763         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
132764         AC_REPLACE xstroull if necessary.  From Paul Eggert.
132765         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
132767 1999-04-18  Jim Meyering  <meyering@ascend.com>
132769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
132770         * m4/jm-macros.m4: Use it.
132772 1999-04-06  Jim Meyering  <meyering@ascend.com>
132774         * m4/strftime.m4: Remove test for %f.
132776 1999-03-29  Jim Meyering  <meyering@ascend.com>
132778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
132779         superset of the AC_TYPE_* checks in the textutils, fileutils,
132780         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
132781         AC_TYPE_PID_T.
132783 1999-03-28  Jim Meyering  <meyering@ascend.com>
132785         * m4/jm-macros.m4: Define GNU_PACKAGE here.
132786         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
132787         replaced e.g., in the *.sh files of the sh-utils.
132789 1999-03-20  Jim Meyering  <meyering@ascend.com>
132791         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
132792         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
132793         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
132795 1999-03-19  Jim Meyering  <meyering@ascend.com>
132797         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
132799 1999-03-12  Jim Meyering  <meyering@ascend.com>
132801         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
132803 1999-03-07  Jim Meyering  <meyering@ascend.com>
132805         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
132806         declared.
132808 1999-02-17  Jim Meyering  <meyering@ascend.com>
132810         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
132811         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
132813 1999-02-07  Jim Meyering  <meyering@ascend.com>
132815         * m4/group-member.m4: New file -- extracted from sh-utils'
132816         configure.in.
132818         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
132819         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
132821 1999-02-06  Jim Meyering  <meyering@ascend.com>
132823         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
132824         * m4/fnmatch.m4: Likewise.
132825         * m4/getgroups.m4: Likewise.
132826         * m4/lstat.m4: Likewise.
132827         * m4/malloc.m4: Likewise.
132828         * m4/putenv.m4: Likewise.
132829         * m4/realloc.m4: Likewise.
132830         * m4/regex.m4: Likewise.
132831         * m4/stat.m4: Likewise.
132832         * m4/strftime.m4: Likewise.
132833         Suggestion from Alain Magloire.
132835         * m4/chown.m4: Use `.$ac_objext', not `.o'.
132836         * m4/fnmatch.m4: Likewise.
132837         * m4/getgroups.m4: Likewise.
132838         * m4/getline.m4: Likewise.
132839         * m4/lstat.m4: Likewise.
132840         * m4/malloc.m4: Likewise.
132841         * m4/memcmp.m4: Likewise.
132842         * m4/putenv.m4: Likewise.
132843         * m4/realloc.m4: Likewise.
132844         * m4/regex.m4: Likewise.
132845         * m4/stat.m4: Likewise.
132846         * m4/strftime.m4: Likewise.
132847         Suggestion from Alain Magloire.
132849         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
132850         an argument.
132852         * m4/regex.m4: Add a run-time Test for proper operation of
132853         re_compile_pattern.
132855 1999-01-31  Jim Meyering  <meyering@ascend.com>
132857         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
132859 1999-01-30  Jim Meyering  <meyering@ascend.com>
132861         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
132863         * m4/jm-mktime.m4: Make this a wrapper around the official
132864         AM_FUNC_MKTIME rather than my private copy, now that the official one
132865         is up to date.
132866         * m4/mktime.m4: Remove file.
132868         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
132869         * m4/uptime.m4: Likewise.
132870         * m4/uintmax_t.m4: Likewise.
132872 1999-01-28  Jim Meyering  <meyering@ascend.com>
132874         * m4/jm-macros.m4: Use jm_AFS.
132875         * m4/afs.m4: New file (from fileutils' configure.in).
132877         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
132878         * m4/chown.m4: Likewise.
132879         * m4/d-ino.m4: Likewise.
132880         * m4/d-type.m4: Likewise.
132881         * m4/fnmatch.m4: Likewise.
132882         * m4/getgroups.m4: Likewise.
132883         * m4/gettext.m4: Likewise.
132884         * m4/jm-mktime.m4: Likewise.
132885         * m4/jm-winsz2.m4: Likewise.
132886         * m4/lcmessage.m4: Likewise.
132887         * m4/ls-mntd-fs.m4: Likewise.
132888         * m4/malloc.m4: Likewise.
132889         * m4/memcmp.m4: Likewise.
132890         * m4/putenv.m4: Likewise.
132891         * m4/realloc.m4: Likewise.
132892         * m4/st_mtim.m4: Likewise.
132893         * m4/strftime.m4: Likewise.
132895 1999-01-16  Jim Meyering  <meyering@ascend.com>
132897         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
132898         (ARGMATCH_DIE_DECL): Define.
132900 1999-01-12  Jim Meyering  <meyering@ascend.com>
132902         * m4/Makefile.am.in: Rewrite to avoid using fmt.
132903         Reported by Lars Hecking.
132905 1999-01-10  Jim Meyering  <meyering@ascend.com>
132907         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
132908         gross kludge.
132909         * m4/inttypes_h.m4: Likewise.
132910         * m4/lstat.m4: Likewise.
132911         * m4/malloc.m4: Likewise.
132912         * m4/readdir.m4: Likewise.
132913         * m4/realloc.m4: Likewise.
132914         * m4/st_dm_mode.m4: Likewise.
132915         * m4/stat.m4: Likewise.
132916         * m4/utimbuf.m4: Likewise.
132917         * m4/utimes.m4: Likewise.
132919         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
132920         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
132921         comments in config.h.in are meaningful.
132923         * m4/jm-macros.m4: Require autoconf-2.13 here.
132925         * m4/regex.m4: By default, don't use the included regex.c on systems
132926         with glibc 2.  Suggestion from Uli Drepper.
132928 1999-01-02  Jim Meyering  <meyering@ascend.com>
132930         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
132932 1998-12-18  Jim Meyering  <meyering@ascend.com>
132934         * m4/Makefile.am.in (Makefile.am): Simplify rule.
132935         Based on a suggestion from Lars Hecking.
132937 1998-11-16  Paul Eggert  <eggert@twinsun.com>
132939         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
132941 1998-11-16  Jim Meyering  <meyering@ascend.com>
132943         * m4/lfs.m4: Double-quote the `uname...` expression.
132945 1998-11-14  Jim Meyering  <meyering@ascend.com>
132947         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
132948         * m4/stat.m4: Likewise.
132950 1998-11-03  Jim Meyering  <meyering@ascend.com>
132952         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
132953         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
132955 1998-10-18  Jim Meyering  <meyering@ascend.com>
132957         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
132959 1998-10-17  Jim Meyering  <meyering@ascend.com>
132961         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
132962         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
132963         calls for those previously hard-coded headers.  Instead, take a new
132964         parameter.
132965         (jm_CHECK_DECLARATIONS): Reflect interface change.
132966         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
132967         (jm_CHECK_DECL_LOCALTIME_R): New macro.
132969         * m4/mktime.m4: Test for spring-forward gap before long-running test.
132971 1998-10-14  Jim Meyering  <meyering@ascend.com>
132973         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
132974         instead of "TZ=America/Vancouver".  From Paul Eggert.
132976 1998-10-11  Jim Meyering  <meyering@ascend.com>
132978         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
132979         This adds a test for a recently added compatibility fix for mktime.c.
132980         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
132982 1998-09-27  Jim Meyering  <meyering@ascend.com>
132984         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
132986         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
132987         ../configure.in, including a change from Gordon Matzigkeit to allow
132988         cross-compiling for the Hurd.
132990         * m4/glibc.m4: New file/macro to test for the GNU C Library
132991         versions 1 and 2.  From Gordon Matzigkeit.
132992         Indent.
132994 1998-09-21  Jim Meyering  <meyering@ascend.com>
132996         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
132998 1998-08-18  Paul Eggert  <eggert@twinsun.com>
133000         Port nanosecond-resolution times to UnixWare 2.1.2 and
133001         pedantic Solaris 2.6.
133003         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
133004         AC_STRUCT_ST_MTIM.
133005         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
133006         Generate name of ns member, instead of just 1 or undef.
133007         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
133009 1998-08-15  Jim Meyering  <meyering@ascend.com>
133011         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
133012         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
133013         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
133014         instead of jm_TYPE_SSIZE_T.
133016 1998-08-12  Jim Meyering  <meyering@ascend.com>
133018         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
133020 1998-08-02  Jim Meyering  <meyering@ascend.com>
133022         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
133023         in acconfig.h manually.
133025 1998-07-31  Paul Eggert  <eggert@twinsun.com>
133027         * m4/st_mtim.m4: New file.
133029 1998-07-28  Jim Meyering  <meyering@ascend.com>
133031         * m4/utimes.m4: Undef stat.
133033 1998-07-25  Jim Meyering  <meyering@ascend.com>
133035         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
133036         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
133038 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
133040         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
133041         uid and gid actually remain unchanged.
133043 1998-07-07  Jim Meyering  <meyering@ascend.com>
133045         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
133047 1998-07-04  Jim Meyering  <meyering@ascend.com>
133049         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
133050         to prove that this macro can be used in packages without regex.c.
133052 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
133054         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
133055         is to be used.
133057 1998-07-03  Jim Meyering  <meyering@ascend.com>
133059         * m4/gettext.m4: Add -lintl if it's found to be necessary.
133061         * m4/gettext.m4: New file -- from gettext-0.10.35.
133062         * m4/lcmessage.m4: Likewise.
133063         * m4/progtest.m4: Likewise.
133065         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
133066         * m4/jm-macros.m4: Require the new macro.
133068 1998-06-29  Jim Meyering  <meyering@ascend.com>
133070         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
133071         for the definition of NGROUPS (used in a system header included
133072         by sys/mount.h).
133074 1998-06-28  Jim Meyering  <meyering@ascend.com>
133076         * m4/ls-mntd-fs.m4: New file.
133077         * m4/fstypename.m4: New file.
133079         * m4/jm-macros.m4: Require the new macro.
133080         * m4/jm-glibc-io.m4: New file.
133082 1998-05-19  Jim Meyering  <meyering@ascend.com>
133084         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
133085         * m4/lchown.m4: New file.
133087         * m4/Makefile.am.in: New file.
133088         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
133090 1998-05-14  Jim Meyering  <meyering@ascend.com>
133092         * m4/Makefile.am (EXTRA_DIST): Add them.
133093         * m4/jm-macros.m4: New file.
133094         * m4/utimbuf.m4: New file.
133096 1998-05-12  Jim Meyering  <meyering@ascend.com>
133098         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
133100 1998-05-11  Jim Meyering  <meyering@ascend.com>
133102         * m4/isc-posix.m4: New file.
133104 1998-05-10  Jim Meyering  <meyering@ascend.com>
133106         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
133108 1998-05-09  Jim Meyering  <meyering@ascend.com>
133110         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
133111         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
133112         with automake.
133114         * m4/ssize_t.m4: New file.
133115         * m4/mktime.m4: Remove file -- the new automake has this now.
133117 1998-04-26  Jim Meyering  <meyering@ascend.com>
133119         * m4/assert.m4: New file.
133120         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
133122 1998-04-05  Jim Meyering  <meyering@ascend.com>
133124         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
133125         (jm_PREREQ): Use it here.
133127 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
133129         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
133130         in acconfig.h.
133132 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
133134         * m4/prereq.m4: New file.
133135         * m4/error.m4: New file.
133136         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
133138 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
133140         * m4/getline.m4: Don't set am_cv_func_working_getline before the
133141         cache-check for the same variable -- that defeated the purpose of
133142         the test; the test program was never run.  This was a problem only
133143         on systems with losing getline functions -- HP-UX 10.20 is one.
133144         Reported by Bjorn Helgaas.
133146 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
133148         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
133150 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
133152         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
133154         * m4/const.m4: New file.  Use an initializer in this declaration
133155         typedef int charset[2]; const charset x;
133156         Reported by Bob Glickstein.
133158 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
133160         * m4/chown.m4: Fix reversed types on -1 args to chown.
133161         From Kaveh Ghazi.
133163 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
133165         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
133166         Add lseek and memchr.
133168         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
133169         T.E.Dickey <dickey@clark.net> said that some older preprocessors
133170         have a 20-character limit on names.
133172 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
133174         * m4/inttypes_h.m4: New file.
133175         * m4/uintmax_t.m4: New file.
133176         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
133179         -----
133181         Local Variables:
133182         coding: utf-8
133183         End:
133185         Copyright (C) 1997-2020 Free Software Foundation, Inc.
133187         Copying and distribution of this file, with or without
133188         modification, are permitted provided the copyright notice
133189         and this notice are preserved.